error building molmodel against simbody
Posted: Sat Jan 17, 2015 8:39 pm
Guys (Sherm?),
I'm having trouble building molmodel on a macbook pro running OSX 10.9.5 . This is not the laptop I had in Sherm's office. The errors go like:
samuel-floress-macbook-pro-2:build Sam$ make -j8
Linking CXX shared library ../libSimTKmolmodel.dylib
Undefined symbols for architecture x86_64:
"SimTK::State::updU()", referenced from:
SimTK::VelocityRescalingThermostat::VelocityRescalingThermostatImpl::rescale(SimTK::State&) in VelocityRescalingThermostat.cpp.o
"SimTK::State::getNUDotErr() const", referenced from:
SimTK::VelocityRescalingThermostat::calcCurrentTemperature(SimTK::State const&) const in VelocityRescalingThermostat.cpp.o
SimTK::VelocityRescalingThermostat::calcNumThermalDofs(SimTK::State const&) const in VelocityRescalingThermostat.cpp.o
...
"SimTK::Subsystem::getSystem() const", referenced from:
SimTK::VanderWallSphereImpl::calcForce(SimTK::State const&, SimTK::Vector_<SimTK::Vec<2, SimTK::Vec<3, double, 1>, 1> >&, SimTK::Vector_<SimTK::Vec<3, double, 1> >&, SimTK::Vector_<double>&) const in VanderWallSphere.cpp.o
SimTK::VanderWallSphereImpl::calcPotentialEnergy(SimTK::State const&) const in VanderWallSphere.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libSimTKmolmodel.dylib] Error 1
make[1]: *** [sharedTarget/CMakeFiles/SimTKmolmodel.dir/all] Error 2
make: *** [all] Error 2
samuel-floress-macbook-pro-2:build Sam$
I seem to recall that we fixed an error like this by setting BUILD_PLATFORM the same on simbody and molmodel. However both simbody and molmodel insist on overriding my settings for this. simbody wants Darwin:x64, and molmodel wants Mac:x64. Any ideas on how to fix this? I am not confident that this is the root cause. Other seemingly relevant cmake variables are set identically for both molmodel and simbody:
CMAKE_OSX_ARCHITECTURES x86_64
CMAKE_OSX_DEPLOYMENT_TARGET 10.9
CMAKE_OSX_SYSROOT /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
Many thanks
I'm having trouble building molmodel on a macbook pro running OSX 10.9.5 . This is not the laptop I had in Sherm's office. The errors go like:
samuel-floress-macbook-pro-2:build Sam$ make -j8
Linking CXX shared library ../libSimTKmolmodel.dylib
Undefined symbols for architecture x86_64:
"SimTK::State::updU()", referenced from:
SimTK::VelocityRescalingThermostat::VelocityRescalingThermostatImpl::rescale(SimTK::State&) in VelocityRescalingThermostat.cpp.o
"SimTK::State::getNUDotErr() const", referenced from:
SimTK::VelocityRescalingThermostat::calcCurrentTemperature(SimTK::State const&) const in VelocityRescalingThermostat.cpp.o
SimTK::VelocityRescalingThermostat::calcNumThermalDofs(SimTK::State const&) const in VelocityRescalingThermostat.cpp.o
...
"SimTK::Subsystem::getSystem() const", referenced from:
SimTK::VanderWallSphereImpl::calcForce(SimTK::State const&, SimTK::Vector_<SimTK::Vec<2, SimTK::Vec<3, double, 1>, 1> >&, SimTK::Vector_<SimTK::Vec<3, double, 1> >&, SimTK::Vector_<double>&) const in VanderWallSphere.cpp.o
SimTK::VanderWallSphereImpl::calcPotentialEnergy(SimTK::State const&) const in VanderWallSphere.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libSimTKmolmodel.dylib] Error 1
make[1]: *** [sharedTarget/CMakeFiles/SimTKmolmodel.dir/all] Error 2
make: *** [all] Error 2
samuel-floress-macbook-pro-2:build Sam$
I seem to recall that we fixed an error like this by setting BUILD_PLATFORM the same on simbody and molmodel. However both simbody and molmodel insist on overriding my settings for this. simbody wants Darwin:x64, and molmodel wants Mac:x64. Any ideas on how to fix this? I am not confident that this is the root cause. Other seemingly relevant cmake variables are set identically for both molmodel and simbody:
CMAKE_OSX_ARCHITECTURES x86_64
CMAKE_OSX_DEPLOYMENT_TARGET 10.9
CMAKE_OSX_SYSROOT /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
Many thanks