Linking Error in Centos:

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Musa Audu
Posts: 47
Joined: Mon Nov 24, 2008 11:30 am

Linking Error in Centos:

Post by Musa Audu » Fri Sep 28, 2018 9:03 am

Hi,
I successfully installed Simbody 3.6 and OpenSim 4.0 on Centos Linux and all tests passed for both. I installed Simbody in /usr/local/ and OpenSim in /opt/opensim-core/ (with Simbody copied to /opensim-core directory). When I tried to build an example problem, it always fails with an error of form: "fatal error: SimTKcommon/internal/Xml.h". I see the header files for simbody are all there in /opt/opensim-core/include/simbody. Do I need to add something specific to the CMakeLists.txt file to ensure that these headers are 'seen' by the compiler?
Thanks.
Musa

Tags:

User avatar
Musa Audu
Posts: 47
Joined: Mon Nov 24, 2008 11:30 am

Re: Linking Error in Centos:

Post by Musa Audu » Fri Sep 28, 2018 12:12 pm

I found the solution. The sample Simbody CMake file says to add "include_directories(${Simbody_INCLUDE_DIR})"; and says this is "...only necessary if Simbody was built using CMake older than 3.0.2". I am using CMake version 3.12.1 and I only got the thing to work by adding that line! Thanks.
Musa

POST REPLY