building openmm on linux from src
Posted: Thu Sep 30, 2010 11:34 am
Hi,
I having a problem building openmm on a linux machine from source. I was able to do it on the mac (after having some troubles early on), and then was able to make changes to the source code to fit my application. Now I want to use this changed source code on a linux machine because it has a better gpu. This did not go well, as I got lots of errors when configuring such as (note I did not change any cmake files):
CMake Error at platforms/reference/tests/CMakeLists.txt:13 (ADD_EXECUTABLE):
add_executable called with incorrect number of arguments
CMake Error at platforms/reference/tests/CMakeLists.txt:15 (ADD_TEST):
add_test called with incorrect number of arguments
CMake Error at platforms/reference/tests/CMakeLists.txt:13 (ADD_EXECUTABLE):
add_executable called with incorrect number of arguments
I then tried to build openmm from pure source code (i.e. I did not change any of it). This failed as well, but with different errors. I was able to configure, but then when compiling I would get stuff like this:
Scanning dependencies of target OpenMM
[ 0%] Building CXX object CMakeFiles/OpenMM.dir/src/examples/Empty.cpp.o
[ 0%] Building CXX object CMakeFiles/OpenMM.dir/src/examples/HelloArgon.cpp.o
[ 0%] Building CXX object CMakeFiles/OpenMM.dir/src/examples/HelloWaterBox.cpp.o
[ 1%] Building CXX object CMakeFiles/OpenMM.dir/src/examples/HelloEthane.cpp.o
[ 1%] Building CXX object CMakeFiles/OpenMM.dir/src/examples/HelloSodiumChloride.cpp.o
[ 1%] Building CXX object CMakeFiles/OpenMM.dir/src/tests/TestParser.cpp.o
[ 1%] Building CXX object CMakeFiles/OpenMM.dir/src/tests/TestFindExclusions.cpp.o
[ 1%] Building CXX object CMakeFiles/OpenMM.dir/openmmapi/src/CustomExternalForceImpl.cpp.o
[ 2%] Building CXX object CMakeFiles/OpenMM.dir/openmmapi/src/CustomBondForce.cpp.o
[ 2%] Building CXX object CMakeFiles/OpenMM.dir/openmmapi/src/._CustomAngleForceImpl.cpp.o
/home/wieting/OpenMM2.0-Source/openmmapi/src/._CustomAngleForceImpl.cpp:1:1: warning: null character(s) ignored
/home/wieting/OpenMM2.0-Source/openmmapi/src/._CustomAngleForceImpl.cpp:1: error: stray ‘\5’ in program
/home/wieting/OpenMM2.0-Source/openmmapi/src/._CustomAngleForceImpl.cpp:1: error: stray ‘\26’ in program
/home/wieting/OpenMM2.0-Source/openmmapi/src/._CustomAngleForceImpl.cpp:1: error: stray ‘\7’ in program
/home/wieting/OpenMM2.0-Source/openmmapi/src/._CustomAngleForceImpl.cpp:1:5: warning: null character(s) ignored
/home/wieting/OpenMM2.0-Source/openmmapi/src/._CustomAngleForceImpl.cpp:1: error: stray ‘\2’ in program
/home/wieting/OpenMM2.0-Source/openmmapi/src/._CustomAngleForceImpl.cpp:1:7: warning: null character(s) ignored
/home/wieting/OpenMM2.0-Source/openmmapi/src/._CustomAngleForceImpl.cpp:1:17: warning: null character(s) ignored
/home/wieting/OpenMM2.0-Source/openmmapi/src/._CustomAngleForceImpl.cpp:1: error: stray ‘\2’ in program
/home/wieting/OpenMM2.0-Source/openmmapi/src/._CustomAngleForceImpl.cpp:1:27: warning: null character(s) ignored
/home/wieting/OpenMM2.0-Source/openmmapi/src/._CustomAngleForceImpl.cpp:1:35: warning: null character(s) ignored
/home/wieting/OpenMM2.0-Source/openmmapi/src/._CustomAngleForceImpl.cpp:1: error: stray ‘\2’ in program
/home/wieting/OpenMM2.0-Source/openmmapi/src/._CustomAngleForceImpl.cpp:1:43: warning: null character(s) ignored
/home/wieting/OpenMM2.0-Source/openmmapi/src/._CustomAngleForceImpl.cpp:1:47: warning: null character(s) ignored
/home/wieting/OpenMM2.0-Source/openmmapi/src/._CustomAngleForceImpl.cpp:1: error: stray ‘@’ in program
/home/wieting/OpenMM2.0-Source/openmmapi/src/._CustomAngleForceImpl.cpp:1:61: warning: null character(s) ignored
/home/wieting/OpenMM2.0-Source/openmmapi/src/._CustomAngleForceImpl.cpp:1:83: warning: no newline at end of file
/home/wieting/OpenMM2.0-Source/openmmapi/src/._CustomAngleForceImpl.cpp:1: error: ‘Mac’ does not name a type
Any ideas on how to fix this? I checked the versions of the compiler and cmake and that all seems up to date.
Here are some specs:
Linux 2.6.18-92.1.10.el5 #1 SMP Wed Jul 23 03:56:11 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
Thanks,
Jack
I having a problem building openmm on a linux machine from source. I was able to do it on the mac (after having some troubles early on), and then was able to make changes to the source code to fit my application. Now I want to use this changed source code on a linux machine because it has a better gpu. This did not go well, as I got lots of errors when configuring such as (note I did not change any cmake files):
CMake Error at platforms/reference/tests/CMakeLists.txt:13 (ADD_EXECUTABLE):
add_executable called with incorrect number of arguments
CMake Error at platforms/reference/tests/CMakeLists.txt:15 (ADD_TEST):
add_test called with incorrect number of arguments
CMake Error at platforms/reference/tests/CMakeLists.txt:13 (ADD_EXECUTABLE):
add_executable called with incorrect number of arguments
I then tried to build openmm from pure source code (i.e. I did not change any of it). This failed as well, but with different errors. I was able to configure, but then when compiling I would get stuff like this:
Scanning dependencies of target OpenMM
[ 0%] Building CXX object CMakeFiles/OpenMM.dir/src/examples/Empty.cpp.o
[ 0%] Building CXX object CMakeFiles/OpenMM.dir/src/examples/HelloArgon.cpp.o
[ 0%] Building CXX object CMakeFiles/OpenMM.dir/src/examples/HelloWaterBox.cpp.o
[ 1%] Building CXX object CMakeFiles/OpenMM.dir/src/examples/HelloEthane.cpp.o
[ 1%] Building CXX object CMakeFiles/OpenMM.dir/src/examples/HelloSodiumChloride.cpp.o
[ 1%] Building CXX object CMakeFiles/OpenMM.dir/src/tests/TestParser.cpp.o
[ 1%] Building CXX object CMakeFiles/OpenMM.dir/src/tests/TestFindExclusions.cpp.o
[ 1%] Building CXX object CMakeFiles/OpenMM.dir/openmmapi/src/CustomExternalForceImpl.cpp.o
[ 2%] Building CXX object CMakeFiles/OpenMM.dir/openmmapi/src/CustomBondForce.cpp.o
[ 2%] Building CXX object CMakeFiles/OpenMM.dir/openmmapi/src/._CustomAngleForceImpl.cpp.o
/home/wieting/OpenMM2.0-Source/openmmapi/src/._CustomAngleForceImpl.cpp:1:1: warning: null character(s) ignored
/home/wieting/OpenMM2.0-Source/openmmapi/src/._CustomAngleForceImpl.cpp:1: error: stray ‘\5’ in program
/home/wieting/OpenMM2.0-Source/openmmapi/src/._CustomAngleForceImpl.cpp:1: error: stray ‘\26’ in program
/home/wieting/OpenMM2.0-Source/openmmapi/src/._CustomAngleForceImpl.cpp:1: error: stray ‘\7’ in program
/home/wieting/OpenMM2.0-Source/openmmapi/src/._CustomAngleForceImpl.cpp:1:5: warning: null character(s) ignored
/home/wieting/OpenMM2.0-Source/openmmapi/src/._CustomAngleForceImpl.cpp:1: error: stray ‘\2’ in program
/home/wieting/OpenMM2.0-Source/openmmapi/src/._CustomAngleForceImpl.cpp:1:7: warning: null character(s) ignored
/home/wieting/OpenMM2.0-Source/openmmapi/src/._CustomAngleForceImpl.cpp:1:17: warning: null character(s) ignored
/home/wieting/OpenMM2.0-Source/openmmapi/src/._CustomAngleForceImpl.cpp:1: error: stray ‘\2’ in program
/home/wieting/OpenMM2.0-Source/openmmapi/src/._CustomAngleForceImpl.cpp:1:27: warning: null character(s) ignored
/home/wieting/OpenMM2.0-Source/openmmapi/src/._CustomAngleForceImpl.cpp:1:35: warning: null character(s) ignored
/home/wieting/OpenMM2.0-Source/openmmapi/src/._CustomAngleForceImpl.cpp:1: error: stray ‘\2’ in program
/home/wieting/OpenMM2.0-Source/openmmapi/src/._CustomAngleForceImpl.cpp:1:43: warning: null character(s) ignored
/home/wieting/OpenMM2.0-Source/openmmapi/src/._CustomAngleForceImpl.cpp:1:47: warning: null character(s) ignored
/home/wieting/OpenMM2.0-Source/openmmapi/src/._CustomAngleForceImpl.cpp:1: error: stray ‘@’ in program
/home/wieting/OpenMM2.0-Source/openmmapi/src/._CustomAngleForceImpl.cpp:1:61: warning: null character(s) ignored
/home/wieting/OpenMM2.0-Source/openmmapi/src/._CustomAngleForceImpl.cpp:1:83: warning: no newline at end of file
/home/wieting/OpenMM2.0-Source/openmmapi/src/._CustomAngleForceImpl.cpp:1: error: ‘Mac’ does not name a type
Any ideas on how to fix this? I checked the versions of the compiler and cmake and that all seems up to date.
Here are some specs:
Linux 2.6.18-92.1.10.el5 #1 SMP Wed Jul 23 03:56:11 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
Thanks,
Jack