- This topic has 1 reply, 1 voice, and was last updated 3 years, 8 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 › [SOLVED] Cannot compile SofaHapi Plugin
Tagged: building error, plugin, SOFA_2012, SOFAHapi, Windows_10
Hello,
I have been struggling with compiling the SofaHapi plugin for the past 2 days and I’m now stuck. Firstly, I installed the HAPI from h3d.org. After Configuring and Generating the Sofa sln with Cmake, I tried building the solution but the SofaHapi plugin failed to build successfully.
The first error I received was that “HAPI.h” couldn’t be found. I changed the filename of “HAPI_32.h” to “HAPI.h” located in “HAPI/include” in the H3D directory. This solved the error.
Now I’m currently getting LNK2019 errors and I don’t know how to advance.
Can anyone help please? Any help would be appreciated.
If anyone encounters the exact same problem. This is how I solved:
1) Installed SofaHapi normally [H3D directory]
2) Downloaded the source code as well (link for it can be found on h3d.org)
3) Copied the HAPI.h and H3DUtil.h file to the respective include folders in the H3D directory
4) Did some debugging and that was it
5) And don’t forget to add the BIN folder to the environment path!
The HAPI.h and H3DUtil.h files were getting removed from my H3D directory for some reason.
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.