error while compiling camera1394
Hi there,
I am trying to compile camera1394 (master branch)from source. However, I got many error like these:
dev_camera1394.cpp:(.text+0xe28): undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, ros::console::levels::Level)'
dev_camera1394.cpp:(.text+0xe62): undefined reference to `ros::console::setLogLocationLevel(ros::console::LogLocation*, ros::console::levels::Level)'
dev_camera1394.cpp:(.text+0xe6e): undefined reference to `ros::console::checkLogLocationEnabled(ros::console::LogLocation*)'
I am using Gumstix Overo and its OS is Linaro.
Then I try to build camera1394 (groovy branch) with rosmake, but I got following error:
[ rosmake ] Last 40 linesmera1394: 721.5 sec ] [ 1 Active 8/9 Complete ]
{-------------------------------------------------------------------------------
Scanning dependencies of target rospack_gencfg_real
make[3]: Leaving directory `/root/rosbuild_ws/camera1394/build'
[ 7%] Built target rospack_gencfg_real
make[3]: Entering directory `/root/rosbuild_ws/camera1394/build'
Scanning dependencies of target rospack_genmsg_libexe
make[3]: Leaving directory `/root/rosbuild_ws/camera1394/build'
[ 7%] Built target rospack_genmsg_libexe
make[3]: Entering directory `/root/rosbuild_ws/camera1394/build'
Scanning dependencies of target rosbuild_precompile
make[3]: Leaving directory `/root/rosbuild_ws/camera1394/build'
[ 7%] Built target rosbuild_precompile
make[3]: Entering directory `/root/rosbuild_ws/camera1394/build'
Scanning dependencies of target camera1394_node
make[3]: Leaving directory `/root/rosbuild_ws/camera1394/build'
make[3]: Entering directory `/root/rosbuild_ws/camera1394/build'
[ 15%] Building CXX object src/nodes/CMakeFiles/camera1394_node.dir/camera1394_node.cpp.o
In file included from /root/rosbuild_ws/camera1394/src/nodes/driver1394.h:44:0,
from /root/rosbuild_ws/camera1394/src/nodes/camera1394_node.cpp:38:
/root/catkin_ws/install/include/driver_base/driver.h: In static member function ‘static const string& driver_base::Driver::getStateName(driver_base::Driver::state_t)’:
/root/catkin_ws/install/include/driver_base/driver.h:238:14: warning: comparison is always true due to limited range of data type [-Wtype-limits]
[ 23%] Building CXX object src/nodes/CMakeFiles/camera1394_node.dir/modes.cpp.o
[ 30%] Building CXX object src/nodes/CMakeFiles/camera1394_node.dir/format7.cpp.o
[ 38%] Building CXX object src/nodes/CMakeFiles/camera1394_node.dir/features.cpp.o
[ 46%] Building CXX object src/nodes/CMakeFiles/camera1394_node.dir/dev_camera1394.cpp.o
[ 53%] Building CXX object src/nodes/CMakeFiles/camera1394_node.dir/driver1394.cpp.o
In file included from /root/rosbuild_ws/camera1394/src/nodes/driver1394.h:44:0,
from /root/rosbuild_ws/camera1394/src/nodes/driver1394.cpp:42:
/root/catkin_ws/install/include/driver_base/driver.h: In static member function ‘static const string& driver_base::Driver::getStateName(driver_base::Driver::state_t)’:
/root/catkin_ws/install/include/driver_base/driver.h:238:14: warning: comparison is always true due to limited range of data type [-Wtype-limits]
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
make[3]: *** [src/nodes/CMakeFiles/camera1394_node.dir/driver1394.cpp.o] Error 4
make[3]: Leaving directory `/root/rosbuild_ws/camera1394/build'
make[2]: *** [src/nodes/CMakeFiles/camera1394_node.dir/all] Error 2
make[2]: Leaving directory `/root/rosbuild_ws/camera1394/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/rosbuild_ws/camera1394/build'
I have successfully compiled all the dependencies of camera1394.
Can anyone ...
Now you are getting an internal compiler error. What compiler version are you using?
Do you mean gcc? I have gcc with version 4.6.3