Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

HAPTIX C++ API won't compile in VS2015

I'm trying to follow the tutorials for the HAPTIX limb API using Visual Studio, and following the documentation doesn't work for me. I can't get the code to compile, and can't the compiler to even find the .lib files or the haptix.h file unless I copy them into the working directory.

Where am I supposed to be creating my project files in VS? Do they need to be somewhere specific relative to the HAPTIX Windows SDK? Do they need to be on the same drive? And why is linking that property sheet to the solution not able to direct the compiler to the appropriate library and header file locations?

I think the documentation may need to be checked against the 2015 build of VS.

click to hide/show revision 2
Additional info after further test

HAPTIX C++ API won't compile in VS2015

I'm trying to follow the tutorials for the HAPTIX limb API using Visual Studio, and following the documentation doesn't work for me. I can't get the code to compile, and can't the compiler to even find the .lib files or the haptix.h file unless I copy them into the working directory.

Where am I supposed to be creating my project files in VS? Do they need to be somewhere specific relative to the HAPTIX Windows SDK? Do they need to be on the same drive? And why is linking that property sheet to the solution not able to direct the compiler to the appropriate library and header file locations?

I think the documentation may need to be checked against the 2015 build of VS.

An update: I tried putting my code in the SDK folder, one level up from the haptix-comm folder, as based on the commands I see in the property sheet that point to the $(HAPTIXSDKRoot) path. The property sheet looks like it's pretty close to pointing things in the right spot except for an additional slash, but there are a bunch of linker errors that are still trying to look in my solution path instead of in the haptix-comm path.