- This topic has 3 replies, 2 voices, and was last updated 5 years, 3 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] Problem with SofaHAPI
Tagged: 64_bits, Plugin_other, SOFA_1812, SOFAHapi, Windows_10
Hi there,
I am trying to have my Novint Falcon device in Sofa scene. I successfully built Sofa in Cmake. However, when I want to have SofaHAPI plugin, my CMake cannot find a file named ..applications\plugins\SofaHAPI\SofaHAPI.h.in. I actually can not find that file in sofa v18.12 folder. So, I created an empty file and named it SofaHAPI.h.in. Cmake then could generate a project successully with many warnings. When I tried to rebuild the project, there are many errors with SofaHAPI:
Severity Code Description Project File Line Suppression State
Error C2079 'SofaHAPIForceFeedbackEffect' uses undefined class 'sofa::component::SOFA_SOFAHAPI_API' (compiling source file E:\Library\sofa\src\applications\plugins\SofaHAPI\SofaHAPIForceFeedbackEffect.cpp) SofaHAPI e:\library\sofa\src\applications\plugins\sofahapi\SofaHAPIForceFeedbackEffect.h 86
Severity Code Description Project File Line Suppression State
Error C2143 syntax error: missing ';' before ':' (compiling source file E:\Library\sofa\src\applications\plugins\SofaHAPI\SofaHAPIForceFeedbackEffect.cpp) SofaHAPI e:\library\sofa\src\applications\plugins\sofahapi\SofaHAPIForceFeedbackEffect.h 86
....
Anyone has successfully added SofaHAPI plugin, please share your experience
Thanks
Anyone knows what is this warning and how to solve:
WARNING: Target “SofaHAPI” requests linking to directory “C:/H3D/lib32”. Targets may link only to libraries. CMake is dropping the item.
I found the solution for this:
Instead of using “C:/H3D/lib32”, augment it to “C:/H3D/lib32/HAPI_vc15.lib”
Hi @simonau866
Thank you for sharing your issue and even the solution to it!
Congratulations!
We stay at your disposal (with our latency, sorry about it!)
Best
Hugo
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.