- This topic has 1 reply, 2 voices, and was last updated 6 years, 11 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Using SOFA › Adding sofa/gui namespace
Hello! iam new to sofa. I need to add a file from sofa/gui. But in
#include <sofa/gui/GraspFunction.h> isn’t appearing automatically.
When i add include sofa then gui doesnt appear and if i add maually, it tells
unable to open file π
please tell me how to solve this problem. I also added sofaGui in cmakelists file but still no solution.
Please help me sooner rather than later.
Thanku
Hi rubab,
Welcome in the community π
Basically if you want to use sofa/gui/*.h you have to include it with find_package(SofaGui)
and link it with target_link_libraries(${PROJECT_NAME} SofaGuiMain)
or target_link_libraries(${PROJECT_NAME} SofaGuiCommon)
or target_link_libraries(${PROJECT_NAME} SofaGuiQt)
depending on what you are interested in.
Have a look at applications/plugins/image/image_gui or applications/projects/SofaPhysicsAPI for examples.
All that said, I can’t find any GraspFunction.h in my SOFA. Where is yours?
Hope that helps,
Guillaume.
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.