Forum Replies Created
-
AuthorPosts
-
2 May 2020 at 07:37 in reply to: Just build successfully in Debug and run runsofa with some plugins not found. #16003Star warBlocked
I have solved the problem of the Debug mode in Terminal by setting the suffix to empty in CMakeList.txt. However, in Xcode’s case, that doesn’t work and I am still struggling to solve it.
1 May 2020 at 19:53 in reply to: Just build successfully in Debug and run runsofa with some plugins not found. #16000Star warBlockedHi @faichele,
Thank you for your answer. It is insightful that these errors originate from the debug suffix(“_d”).
With best regards,
Enxing.Star warBlockedCGAL4.7 it is too old. I think you should try to upgrade toward the latest version 5.0
1 May 2020 at 06:44 in reply to: [SOLVED] SOFA build on MacOS && Fail to build libSofaGuiQt.dylib #15994Star warBlockedPreviously, I didn’t obey
We recommend to install Qt in your user directory with the unified installer
and installed qt by
brew install qt
. But just now I install the unified installer of QT and select the three components Macos, Charts, and WebEngine of QT with the latest version. After I uninstall old QT bybrew uninstall qt
, I succeed to build SOFA.Thank you.
Enxing.Star warBlockedDo you install CGAL package CGAL? if not, I think you should try to download and install it.
Star warBlockedOh, it builds successfully in C++14.
Star warBlockedI tried this plugin in Macos. And I get some errors when run “make” command.
here is the output:make:
Scanning dependencies of target SkeletonPlugin [ 33%] Building CXX object CMakeFiles/SkeletonPlugin.dir/initSkeletonPlugin.cpp.o [ 66%] Building CXX object CMakeFiles/SkeletonPlugin.dir/MeshSkeletonization.cpp.o In file included from /Users/steven/Code/sofa/sofa/v19.06/SofaSkeletonPlugin/SkeletonPlugin/MeshSkeletonization.cpp:31: In file included from /Users/steven/Code/sofa/sofa/v19.06/SofaSkeletonPlugin/SkeletonPlugin/MeshSkeletonization.inl:31: In file included from /Users/steven/Code/sofa/sofa/v19.06/SofaSkeletonPlugin/SkeletonPlugin/MeshSkeletonization.h:32: In file included from /Applications/runSofa.app/Contents/MacOS/include/SofaFramework/sofa/defaulttype/Vec.h:27: In file included from /Applications/runSofa.app/Contents/MacOS/include/SofaFramework/sofa/defaulttype/DataTypeInfo.h:27: In file included from /Applications/runSofa.app/Contents/MacOS/include/SofaFramework/sofa/helper/vector.h:37: In file included from /Applications/runSofa.app/Contents/MacOS/include/SofaFramework/sofa/helper/logging/Messaging.h:81: In file included from /Applications/runSofa.app/Contents/MacOS/include/SofaFramework/sofa/helper/logging/MessageDispatcher.h:30: In file included from /Applications/runSofa.app/Contents/MacOS/include/SofaFramework/sofa/helper/logging/Message.h:38: /Applications/runSofa.app/Contents/MacOS/include/SofaFramework/sofa/helper/logging/FileInfo.h:57:17: error: function definition does not declare parameters const char *filename {nullptr}; ^ /Applications/runSofa.app/Contents/MacOS/include/SofaFramework/sofa/helper/logging/FileInfo.h:58:9: error: function definition does not declare parameters int line {0}; ^ /Applications/runSofa.app/Contents/MacOS/include/SofaFramework/sofa/helper/logging/FileInfo.h:59:37: error: member initializer 'filename' does not name a non-static data member or base class FileInfo(const char *f, int l): filename(f), line(l) {} ^~~~~~~~~~~ /Applications/runSofa.app/Contents/MacOS/include/SofaFramework/sofa/helper/logging/FileInfo.h:59:50: error: member initializer 'line' does not name a non-static data member or base class FileInfo(const char *f, int l): filename(f), line(l) {} ^~~~~~~ /Applications/runSofa.app/Contents/MacOS/include/SofaFramework/sofa/helper/logging/FileInfo.h:62:17: error: member initializer 'filename' does not name a non-static data member or base class FileInfo(): filename(s_unknownFile), line(0) {} ^~~~~~~~~~~~~~~~~~~~~~~ /Applications/runSofa.app/Contents/MacOS/include/SofaFramework/sofa/helper/logging/FileInfo.h:62:42: error: member initializer 'line' does not name a non-static data member or base class FileInfo(): filename(s_unknownFile), line(0) {} ^~~~~~~ /Applications/runSofa.app/Contents/MacOS/include/SofaFramework/sofa/helper/logging/FileInfo.h:71:9: error: use of undeclared identifier 'filename' filename = tmp ; ^ /Applications/runSofa.app/Contents/MacOS/include/SofaFramework/sofa/helper/logging/FileInfo.h:72:9: error: use of undeclared identifier 'line' line = l ; ^ /Applications/runSofa.app/Contents/MacOS/include/SofaFramework/sofa/helper/logging/FileInfo.h:78:9: error: use of undeclared identifier 'filename' filename = tmp ; ^ /Applications/runSofa.app/Contents/MacOS/include/SofaFramework/sofa/helper/logging/FileInfo.h:79:9: error: use of undeclared identifier 'line' line = l ; ^ /Applications/runSofa.app/Contents/MacOS/include/SofaFramework/sofa/helper/logging/FileInfo.h:83:12: error: use of undeclared identifier 'filename' if(filename) ^ /Applications/runSofa.app/Contents/MacOS/include/SofaFramework/sofa/helper/logging/FileInfo.h:84:20: error: use of undeclared identifier 'filename' delete filename ; ^ In file included from /Users/steven/Code/sofa/sofa/v19.06/SofaSkeletonPlugin/SkeletonPlugin/MeshSkeletonization.cpp:31: In file included from /Users/steven/Code/sofa/sofa/v19.06/SofaSkeletonPlugin/SkeletonPlugin/MeshSkeletonization.inl:31: In file included from /Users/steven/Code/sofa/sofa/v19.06/SofaSkeletonPlugin/SkeletonPlugin/MeshSkeletonization.h:32: In file included from /Applications/runSofa.app/Contents/MacOS/include/SofaFramework/sofa/defaulttype/Vec.h:27: In file included from /Applications/runSofa.app/Contents/MacOS/include/SofaFramework/sofa/defaulttype/DataTypeInfo.h:27: In file included from /Applications/runSofa.app/Contents/MacOS/include/SofaFramework/sofa/helper/vector.h:37: In file included from /Applications/runSofa.app/Contents/MacOS/include/SofaFramework/sofa/helper/logging/Messaging.h:81: In file included from /Applications/runSofa.app/Contents/MacOS/include/SofaFramework/sofa/helper/logging/MessageDispatcher.h:32: /Applications/runSofa.app/Contents/MacOS/include/SofaFramework/sofa/helper/system/SofaOStream.h:136:29: error: function definition does not declare parameters logging::FileInfo::SPtr m_fileInfo {helper::logging::EmptyFileInfo}; ^ /Applications/runSofa.app/Contents/MacOS/include/SofaFramework/sofa/helper/system/SofaOStream.h:117:62: error: use of undeclared identifier 'm_fileInfo'; did you mean 'fileInfo'? const logging::FileInfo::SPtr& fileInfo() const { return m_fileInfo; } ^ /Applications/runSofa.app/Contents/MacOS/include/SofaFramework/sofa/helper/system/SofaOStream.h:117:36: note: 'fileInfo' declared here const logging::FileInfo::SPtr& fileInfo() const { return m_fileInfo; } ^ /Applications/runSofa.app/Contents/MacOS/include/SofaFramework/sofa/helper/system/SofaOStream.h:125:9: error: use of undeclared identifier 'm_fileInfo' m_fileInfo = helper::logging::EmptyFileInfo; ^ In file included from /Users/steven/Code/sofa/sofa/v19.06/SofaSkeletonPlugin/SkeletonPlugin/MeshSkeletonization.cpp:31: In file included from /Users/steven/Code/sofa/sofa/v19.06/SofaSkeletonPlugin/SkeletonPlugin/MeshSkeletonization.inl:31: In file included from /Users/steven/Code/sofa/sofa/v19.06/SofaSkeletonPlugin/SkeletonPlugin/MeshSkeletonization.h:32: In file included from /Applications/runSofa.app/Contents/MacOS/include/SofaFramework/sofa/defaulttype/Vec.h:27: In file included from /Applications/runSofa.app/Contents/MacOS/include/SofaFramework/sofa/defaulttype/DataTypeInfo.h:27: /Applications/runSofa.app/Contents/MacOS/include/SofaFramework/sofa/helper/vector.h:100:23: error: no template named 'initializer_list' in namespace 'std' vector(const std::initializer_list<T>& t) : std::vector<T,Alloc>(t) {} ~~~~~^ In file included from /Users/steven/Code/sofa/sofa/v19.06/SofaSkeletonPlugin/SkeletonPlugin/MeshSkeletonization.cpp:31: In file included from /Users/steven/Code/sofa/sofa/v19.06/SofaSkeletonPlugin/SkeletonPlugin/MeshSkeletonization.inl:31: In file included from /Users/steven/Code/sofa/sofa/v19.06/SofaSkeletonPlugin/SkeletonPlugin/MeshSkeletonization.h:32: In file included from /Applications/runSofa.app/Contents/MacOS/include/SofaFramework/sofa/defaulttype/Vec.h:27: /Applications/runSofa.app/Contents/MacOS/include/SofaFramework/sofa/defaulttype/DataTypeInfo.h:1295:1: error: expected expression { ^ /Applications/runSofa.app/Contents/MacOS/include/SofaFramework/sofa/defaulttype/DataTypeInfo.h:1297:2: error: expected a type }; ^ /Applications/runSofa.app/Contents/MacOS/include/SofaFramework/sofa/defaulttype/DataTypeInfo.h:1297:2: error: expected '{' after base class list fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make[2]: *** [CMakeFiles/SkeletonPlugin.dir/MeshSkeletonization.cpp.o] Error 1 make[1]: *** [CMakeFiles/SkeletonPlugin.dir/all] Error 2 make: *** [all] Error 2
I succeed in running ‘cmake’, but I get a lot of errors when running ‘make’ to generate the Library. I use the latest version of Sofa 19.12 and also try to use the old version of Sofa 19.06, but when I build it by “make install or make”, I get the same errors above.
I hope to receive the instruction according to these logs. Thank you!
Star warBlockedIn the console of runsofa, I got
[PluginManager] Plugin loading failed (E:/Tools/sofa19.06-exe/plugins/SkeletonPlugin/bin/SkeletonPlugin.dll): ~
Star warBlockedHi,
I have built the SkeletonPlugin successfully with Win10 and VS2017, and put them into the plugin file. I also add the plugin name and version in
plugin_list.conf.default
. But it failed to load this plugin in the runsofa frame. Did I miss some crucial steps?Thank you!
16 April 2020 at 09:20 in reply to: [SOLVED] Using beams when modeling the vessels as a mechanical structure #15784Star warBlockedHi Hugo and MFit,
Thank you for your reply.
I have read the reference. It helps a lot.
I do have the similar problem with MFit, which is building a vascular tree with beamFEM. And I am really interested in the info you mentioned about extracting centerlines and creating mechanical model. Could you gather more about it? Thank you.
Best,
Enxing -
AuthorPosts