Home › Forum › SOFA › Building SOFA › Just build successfully in Debug and run runsofa with some plugins not found.
Tagged: 64_bits, GCC, MacOS, Plugin_other, SOFA_1912
- This topic has 4 replies, 3 voices, and was last updated 4 years, 6 months ago by Hugo.
-
AuthorPosts
-
1 May 2020 at 19:14 #15998Star warBlocked
Dear Sofa,
I build successfully in the Debug mode bycmake -DCMAKE_BUILD_TYPE=Debug .. && make -j12 && ./bin/runsofa_d
, but there are some plugins not found when I try to run./runsofa_d
. I don’t know whether it is because of my fault in the “build” step. However, in Release mode bycmake -DCMAKE_BUILD_TYPE=Release .. && make -j12 && ./bin/runsofa
, Sofa can run normally without any error on plugins not found.log from
./runsofa_d
[INFO] [runSofa] PluginRepository paths = /Users/steven/Code/sofa/v19.12/Debug/plugins:/Users/steven/Code/sofa/v19.12/Debug/lib [INFO] [runSofa] DataRepository paths = /Users/steven/Code/sofa/v19.12/share:/Users/steven/Code/sofa/v19.12/examples [INFO] [runSofa] GuiDataRepository paths = /Users/steven/Code/sofa/v19.12/applications/projects/runSofa/resources:/Users/steven/Code/sofa/v19.12/applications/sofa/gui/qt/resources Created directory: /Users/steven/Code/sofa/v19.12/Debug/config Created directory: /Users/steven/Code/sofa/v19.12/Debug/screenshots [INFO] [runSofa] Loading automatically plugin list in /Users/steven/Code/sofa/v19.12/Debug/lib/plugin_list.conf.default [ERROR] [PluginManager] Plugin not found: "SofaExporter" [ERROR] [PluginManager] Plugin not found: "SofaSparseSolver" [ERROR] [PluginManager] Plugin not found: "SofaPreconditioner" [ERROR] [PluginManager] Plugin not found: "SofaHaptics" [ERROR] [PluginManager] Plugin not found: "SofaOpenglVisual" [ERROR] [PluginManager] Plugin not found: "CImgPlugin" [ERROR] [PluginManager] Plugin not found: "SofaMiscCollision" [INFO] [GUIManager] INFO(SofaGUI): lastUsedGUI.ini not found; using default GUI. The constructor with a QGLFormat is deprecated, use the regular contructor instead. [ERROR] [ObjectFactory::addAlias()] Target class for alias 'OglModel' not found: VisualModel [WARNING] [SofaViewer] Could not create file '/Users/steven/Code/sofa/v19.12/share/textures/SOFA_logo.bmp' Valid extensions: dds [ERROR] [RequiredPlugin(SofaOpenglVisual)] Plugin not found: "SofaOpenglVisual" Failed to load: SofaOpenglVisual [ERROR] [RequiredPlugin(requiredPlugin1)] Plugin not found: "CImgPlugin" Failed to load: CImgPlugin [ERROR] [InfoComponent(Not created (LightManager))] Object type LightManager<> was not created This component has been PLUGINIZED since SOFA v19.06. To continue using this component you need to update you scene and add <RequiredPlugin name='SofaOpenglVisual'/> [ERROR] [InfoComponent(Not created (SpotLight))] Object type SpotLight<> was not created The object is not in the factory. [ERROR] [InfoComponent(Not created (SpotLight))] Object type SpotLight<> was not created The object is not in the factory. [INFO] [TagFactory] creating new tag 2: NoPicking [ERROR] [InfoComponent(Not created (OglModel))] Object type OglModel<> was not created This component has been PLUGINIZED since SOFA v19.06. To continue using this component you need to update you scene and add <RequiredPlugin name='SofaOpenglVisual'/> [ERROR] [InfoComponent(Not created (BarycentricMapping))] Object type BarycentricMapping<Vec3d,Vec3d> was not created The object is in the factory but cannot be created. Requested template: Vec3d,Vec3d() Available templates: Vec3d,Rigid3d, Vec3d,Vec3d, [ERROR] [InfoComponent(Not created (OglModel))] Object type OglModel<> was not created This component has been PLUGINIZED since SOFA v19.06. To continue using this component you need to update you scene and add <RequiredPlugin name='SofaOpenglVisual'/> [ERROR] [InfoComponent(Not created (BarycentricMapping))] Object type BarycentricMapping<Vec3d,Vec3d> was not created The object is in the factory but cannot be created. Requested template: Vec3d,Vec3d() Available templates: Vec3d,Rigid3d, Vec3d,Vec3d, [ERROR] [InfoComponent(Not created (OglModel))] Object type OglModel<> was not created This component has been PLUGINIZED since SOFA v19.06. To continue using this component you need to update you scene and add <RequiredPlugin name='SofaOpenglVisual'/> [ERROR] [InfoComponent(Not created (BarycentricMapping))] Object type BarycentricMapping<Vec3d,Vec3d> was not created The object is in the factory but cannot be created. Requested template: Vec3d,Vec3d() Available templates: Vec3d,Rigid3d, Vec3d,Vec3d, [ERROR] [InfoComponent(Not created (OglModel))] Object type OglModel<> was not created This component has been PLUGINIZED since SOFA v19.06. To continue using this component you need to update you scene and add <RequiredPlugin name='SofaOpenglVisual'/> [ERROR] [SceneLoaderXML] Node initialization failed. [INFO] [SceneCheckerVisitor] Validating node "root" with checks: [SceneCheckAPIChange, SceneCheckDuplicatedName, SceneCheckMissingRequiredPlugin, SceneCheckUsingAlias] [INFO] [SceneCheckAPIChange] No 'APIVersion' component in scene. Using the default APIVersion level: 19.06 [WARNING] [SceneCheckDuplicatedName] - Found duplicated names ['Not created (SpotLight)', ] in node '/' Nodes with similar names at the same level in your scene can crash certain operations, please rename them [INFO] [SceneCheckerVisitor] Finished validating node "root".
the log from
make -j12
:1 warning generated. [ 99%] Linking CXX shared library ../../lib/libSofaGuiQt_d.dylib [ 99%] Built target SofaGuiQt Scanning dependencies of target SofaGuiMain [ 99%] Building CXX object SofaGui/SofaGuiMain/CMakeFiles/SofaGuiMain.dir/__/Main.cpp.o [100%] Linking CXX shared library ../../lib/libSofaGuiMain_d.dylib [100%] Built target SofaGuiMain Scanning dependencies of target sceneCreatorExamples Scanning dependencies of target runSofa [100%] Building CXX object applications/plugins/SceneCreator/sceneCreatorExamples/CMakeFiles/sceneCreatorExamples.dir/SceneCreatorBenchmarks.cpp.o [100%] Building CXX object applications/projects/runSofa/CMakeFiles/runSofa.dir/Main.cpp.o [100%] Linking CXX executable ../../../../bin/sceneCreatorExamples [100%] Built target sceneCreatorExamples [100%] Linking CXX executable ../../../bin/runSofa_d [100%] Built target runSofa
I also try to build Sofa in Xcode by
cmake -G "Xcode" ..
and run it, but unfortunately, I get similar errors as the previous output in Terminal.the log from running “runSofa” in Xcode:
[92m[INFO] [34m[runSofa] [39mPluginRepository paths = /Users/steven/Code/sofa/v19.12/Xcode/plugins:/Users/steven/Code/sofa/v19.12/Xcode/lib [92m[INFO] [34m[runSofa] [39mDataRepository paths = /Users/steven/Code/sofa/v19.12/share:/Users/steven/Code/sofa/v19.12/examples [92m[INFO] [34m[runSofa] [39mGuiDataRepository paths = /Users/steven/Code/sofa/v19.12/applications/projects/runSofa/resources:/Users/steven/Code/sofa/v19.12/applications/sofa/gui/qt/resources [92m[INFO] [34m[runSofa] [39mLoading automatically plugin list in /Users/steven/Code/sofa/v19.12/Xcode/lib/plugin_list.conf.default [91m[ERROR] [34m[PluginManager] [39mPlugin not found: "SofaExporter" [91m[ERROR] [34m[PluginManager] [39mPlugin not found: "SofaSparseSolver" [91m[ERROR] [34m[PluginManager] [39mPlugin not found: "SofaPreconditioner" [91m[ERROR] [34m[PluginManager] [39mPlugin not found: "SofaHaptics" [91m[ERROR] [34m[PluginManager] [39mPlugin not found: "SofaOpenglVisual" [91m[ERROR] [34m[PluginManager] [39mPlugin not found: "CImgPlugin" [91m[ERROR] [34m[PluginManager] [39mPlugin not found: "SofaMiscCollision" 2020-05-02 00:55:17.160319+0800 runSofa[86286:2837825] Metal API Validation Enabled 2020-05-02 00:55:17.203641+0800 runSofa[86286:2838657] flock failed to lock maps file: errno = 35 2020-05-02 00:55:17.204686+0800 runSofa[86286:2838657] flock failed to lock maps file: errno = 35 The constructor with a QGLFormat is deprecated, use the regular contructor instead. [91m[ERROR] [34m[ObjectFactory::addAlias()] [39mTarget class for alias 'OglModel' not found: VisualModel [96m[WARNING] [34m[SofaViewer] [39mCould not create file '/Users/steven/Code/sofa/v19.12/share/textures/SOFA_logo.bmp' Valid extensions: dds [91m[ERROR] [34m[RequiredPlugin(SofaOpenglVisual)] [39mPlugin not found: "SofaOpenglVisual" Failed to load: SofaOpenglVisual [91m[ERROR] [34m[RequiredPlugin(requiredPlugin1)] [39mPlugin not found: "CImgPlugin" Failed to load: CImgPlugin [91m[ERROR] [34m[InfoComponent(Not created (LightManager))] [39mObject type LightManager<> was not created This component has been PLUGINIZED since SOFA v19.06. To continue using this component you need to update you scene and add <RequiredPlugin name='SofaOpenglVisual'/> [91m[ERROR] [34m[InfoComponent(Not created (SpotLight))] [39mObject type SpotLight<> was not created The object is not in the factory. [91m[ERROR] [34m[InfoComponent(Not created (SpotLight))] [39mObject type SpotLight<> was not created The object is not in the factory. [91m[ERROR] [34m[InfoComponent(Not created (OglModel))] [39mObject type OglModel<> was not created This component has been PLUGINIZED since SOFA v19.06. To continue using this component you need to update you scene and add <RequiredPlugin name='SofaOpenglVisual'/> [91m[ERROR] [34m[InfoComponent(Not created (BarycentricMapping))] [39mObject type BarycentricMapping<Vec3d,Vec3d> was not created The object is in the factory but cannot be created. Requested template: Vec3d,Vec3d() Available templates: Vec3d,Rigid3d, Vec3d,Vec3d, [91m[ERROR] [34m[InfoComponent(Not created (OglModel))] [39mObject type OglModel<> was not created This component has been PLUGINIZED since SOFA v19.06. To continue using this component you need to update you scene and add <RequiredPlugin name='SofaOpenglVisual'/> [91m[ERROR] [34m[InfoComponent(Not created (BarycentricMapping))] [39mObject type BarycentricMapping<Vec3d,Vec3d> was not created The object is in the factory but cannot be created. Requested template: Vec3d,Vec3d() Available templates: Vec3d,Rigid3d, Vec3d,Vec3d, [91m[ERROR] [34m[InfoComponent(Not created (OglModel))] [39mObject type OglModel<> was not created This component has been PLUGINIZED since SOFA v19.06. To continue using this component you need to update you scene and add <RequiredPlugin name='SofaOpenglVisual'/> [91m[ERROR] [34m[InfoComponent(Not created (BarycentricMapping))] [39mObject type BarycentricMapping<Vec3d,Vec3d> was not created The object is in the factory but cannot be created. Requested template: Vec3d,Vec3d() Available templates: Vec3d,Rigid3d, Vec3d,Vec3d, [91m[ERROR] [34m[InfoComponent(Not created (OglModel))] [39mObject type OglModel<> was not created This component has been PLUGINIZED since SOFA v19.06. To continue using this component you need to update you scene and add <RequiredPlugin name='SofaOpenglVisual'/> [91m[ERROR] [34m[SceneLoaderXML] [39mNode initialization failed. [92m[INFO] [34m[SceneCheckerVisitor] [39mValidating node "root" with checks: [SceneCheckAPIChange, SceneCheckDuplicatedName, SceneCheckMissingRequiredPlugin, SceneCheckUsingAlias] [92m[INFO] [34m[SceneCheckAPIChange] [39mNo 'APIVersion' component in scene. Using the default APIVersion level: 19.06 [96m[WARNING] [34m[SceneCheckDuplicatedName] [39m - Found duplicated names ['Not created (SpotLight)', ] in node '/' Nodes with similar names at the same level in your scene can crash certain operations, please rename them [92m[INFO] [34m[SceneCheckerVisitor] [39mFinished validating node "root".
Thank you.
Enxing1 May 2020 at 19:25 #15999faicheleBlockedHello!
I encountered the same problem, ending up Fixing it locally by patching the PluginManager class to take the debug suffix in the file names for libraries (“_d”) into account when searching for the .dll/.so files.
I can submit a pull request for that if that is helpful?
With best regards,
Fabian1 May 2020 at 19:53 #16000Star warBlockedHi @faichele,
Thank you for your answer. It is insightful that these errors originate from the debug suffix(“_d”).
With best regards,
Enxing.2 May 2020 at 07:37 #16003Star warBlockedI 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.
5 May 2020 at 10:26 #16023HugoKeymasterHi @enxing
I tried to send a reply yesterday evening, but it apparently did not work.
It seems you are using the v19.12 release. Since then, I think this has been fixed in the master branch of SOFA (see PR #1313). The path to the pluginManager.cpp was incomplete, prefix was empty and not set to _d in debug mode.This will therefore be fixed in the next release v20.06.
Best,
Hugo
-
AuthorPosts
- You must be logged in to reply to this topic.