- This topic has 3 replies, 2 voices, and was last updated 3 years, 8 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Using SOFA › [SOLVED] Fail to compile SofaCV plugin
Tagged: Linux_ubuntu, SOFA_other, sofacv
Hi everyone,
I attempted to install SofaCV (computer vision) plugin for the last couple day, but not successful. Configuration and generating code by CMake seem okay but when I compile with ninja, the following errors related to the following component sofa::core::objectmodel::DataFileName.
[53/56] Building CXX object external_d.../SofaCV/acquisition/VideoGrabber.cpp.o
FAILED: external_directories/Ext-Plugins/SofaCV/CMakeFiles/SofaCV.dir/src/SofaCV/acquisition/VideoGrabber.cpp.o
In file included from /home/btt/Desktop/Ext-Plugins/SofaCV/src/SofaCV/acquisition/VideoGrabber.cpp:23:0:
/home/nhnhan/Desktop/Ext-Plugins/SofaCV/src/SofaCV/acquisition/VideoGrabber.h:63:28: error: ‘DataFileName’ in namespace ‘sofa::core::objectmodel’ does not name a type
sofa::core::objectmodel::DataFileName
^~~~~~~~~~~~
I tried with different Sofa versions (master, v2012, v2006, v1906) but the same problem occurred. Have anyone had the same problem or any suggestion to solve it? Thank you in advance.
Best regards,
btt
Dear @newbie
the SofaCV plugin is a private plugin. It is therefore hard for us to help. Does your plugin have an explicit dependency on SofaCore in the CMakeLists.txt (in target_link_libraries)? Does your code include DataFileName as well?
Best,
Hugo
Hi @hugo,
Thank you for your help, I have managed to compile this plugin. So I will mark this topic as solved.
Best,
btt
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.