Share 
Follow 
AboutDownloadsDocumentsForumsSource CodeIssuesNews
Date:
2012-11-07 18:24
Priority:
3
State:
Open
Submitted by:
Christopher Dembia (chrisdembia)
Assigned to:
Kevin Xu (kevinxu)
Summary:
API Examples CMakeLists.txt not linking correctly.

Detailed description
In at least exampleMain and testEnvironment, on Linux (Ubuntu 12.04), the CMakeLists.txt looks for libraries in $OPENSIM_INSTALL_DIR/bin rather than in $OPENSIM_INSTALL_DIR/lib, which is where they are located. See the command below generated by the Makefile:

/usr/bin/c++ CMakeFiles/exampleMain.dir/TugOfWar1_CreateModel.cpp.o -o exampleMain -rdynamic -L~/simtk/opensim/sdk/lib -L~/simtk/opensim/bin -losimSimulation -losimActuators -losimCommon -losimAnalyses -losimTools -lOpenSim_SimTKcommon -lOpenSim_SimTKmath -lOpenSim_SimTKsimbody -lSimTKlapack -Wl,-rpath,~/simtk/opensim/sdk/lib:~/simtk/opensim/bin

Add A Comment: Notepad

Message  ↓
Date: 2012-11-07 18:37
Sender: Ayman Habib

Kevin,

I don't have a linux environment to test this with, but we should be linking with .lib files on windows and .so on linux (which I don't know where they end up). Would be good to fix before the source distribution.

Thanks

Field Old Value Date By
assigned_toaseth2012-11-07 18:37aymanh
Feedback