opensim-org / opensim-core

SimTK OpenSim C++ libraries and command-line applications, and Java/Python wrapping.
https://opensim.stanford.edu
Apache License 2.0
758 stars 308 forks source link

Wrong OpenSim path in all cpp files #3737

Closed hmejbri closed 3 months ago

hmejbri commented 3 months ago

All cpp files include the wrong path to the OpenSim folder "OpenSim/.." which in my case should be "/home/ubuntu/dw/opensim-core/OpenSim/..."

So when i execute g++ -o opensim-visualize opensim-visualize.cpp -lOpenSim

I get the error opensim-visualize.cpp:33:10: fatal error: OpenSim/Common/IO.h: No such file or directory 33 | #include <OpenSim/Common/IO.h>

nickbianco commented 3 months ago

Hi @hmejbri, you can try pointing to the OpenSim headers you want to include via an include path in your GCC command:

g++ -o opensim-visualize opensim-visualize.cpp -I/home/ubuntu/dw/opensim-core -lOpenSim

nickbianco commented 3 months ago

Since this is not really a bug or an issue with our build system, I am closing this issue.