Fri 20 Dec 2013 12:44:27 AM UTC, original submission:
Under RHEL 6.1, I run the following commands:
cvs -z3 -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/certi co certi
mkdir build
cd build
cmake ../certi/
make
The error is:
[ 75%] Building CXX object RTIA/CMakeFiles/rtia.dir/Statistics.cc.o
[ 76%] Building CXX object RTIA/CMakeFiles/rtia.dir/TimeManagement.cc.o
Linking CXX executable rtia
[ 76%] Built target rtia
Scanning dependencies of target FedTime
[ 77%] Building CXX object libRTI/CMakeFiles/FedTime.dir/RTIfedTime.cc.o
/home/hudson/src/tmp/certi/libRTI/RTIfedTime.cc:25:22: fatal error: fedtime.hh: No such file or directory
#include "fedtime.hh"
^
compilation terminated.
make[2]: *** [libRTI/CMakeFiles/FedTime.dir/RTIfedTime.cc.o] Error 1
make[1]: *** [libRTI/CMakeFiles/FedTime.dir/all] Error 2
make: *** [all] Error 2
I ran make VERBOSE=1
[ 77%] Building CXX object libRTI/CMakeFiles/FedTime.dir/RTIfedTime.cc.o
cd /home/hudson/src/tmp/build/libRTI && /usr/local/gcc-4.8.2/bin/c++ -DFedTime_EXPORTS -DHOST_IS_64BITS -DHAVE_CONFIG_H=1 -DHAVE_XML -DRTI_USES_STD_FSTREAM -fmessage-length=0 -fvisibility=hidden -std=c++98 -Wall -Woverloaded-virtual -Wno-unused-function -Wno-long-long -g -fPIC -I/usr/include/libxml2 -I/home/hudson/src/tmp/certi/include -I/home/hudson/src/tmp/build/include -I/home/hudson/src/tmp/build -I/home/hudson/src/tmp/certi/libCERTI -I/home/hudson/src/tmp/certi/libHLA -o CMakeFiles/FedTime.dir/RTIfedTime.cc.o -c /home/hudson/src/tmp/certi/libRTI/RTIfedTime.cc
/home/hudson/src/tmp/certi/libRTI/RTIfedTime.cc:25:22: fatal error: fedtime.hh: No such file or directory
#include "fedtime.hh"
^
fedtime.hh is present:
bash-4.1$ find ../certi/ -name "fedtime.hh"
../certi/include/hla-1_3/fedtime.hh
bash-4.1$
but that directory is not included on the command line executed by make.
To get a succesful build, I had to copy these files
cp ../certi/include/hla-1_3/*.hh include
cp include/hla-1_3/* include/
cp ../certi/include/ieee1516-2000/RTI/*.h include/RTI/
It appears that the cmake configuration is not including the correct directories.
I'm running:
bash-4.1$ uname -a
Linux sisyphus.eecs.berkeley.edu 2.6.32-431.1.2.el6.x86_64 #1 SMP Sun Nov 24 09:37:37 EST 2013 x86_64 x86_64 x86_64 GNU/Linux
bash-4.1$ cmake --version
cmake version 2.8.7
bash-4.1$ make --version
GNU Make 3.81
|