starmac_kinect error
Hello, I'm working on a project that's related to ros-starmac-pkg, but when I try to rosmake the starmac_kinect package, it gives me the following error
/opt/ros/groovy/include/ros/serialization.h:719: undefined reference to
ros::serialization::throwStreamOverrun()' CMakeFiles/kinect_estimation.dir/nodes/kinect_estimation.cpp.o: In function
allInOne&>': /opt/ros/groovy/include/ros/serialization.h:719: undefined reference to
ros::serialization::throwStreamOverrun()' CMakeFiles/kinect_estimation.dir/nodes/kinect_estimation.cpp.o: In function
ros::SubscriptionCallbackHelperTros::MessageEvent<pcl::ModelCoefficients_<std::allocator<void const> const&, void>::deserialize(ros::SubscriptionCallbackHelperDeserializeParams const&)':
/opt/ros/groovy/include/ros/subscriptioncallbackhelper.h:160: undefined reference toros::console::print(ros::console::FilterBase*, log4cxx::Logger*, ros::console::levels::Level, char const*, int, char const*, char const*, ...)' /opt/ros/groovy/include/ros/subscription_callback_helper.h:160: undefined reference to
ros::console::initializeLogLocation(ros::console::LogLocation, std::basicstring<char, std::chartraits, std::allocator , ros::console::levels::Level)'> const&, ros::console::levels::Level)'
/opt/ros/groovy/include/ros/subscriptioncallbackhelper.h:160: undefined reference to `ros::console::setLogLocationLevel(ros::console::LogLocation
/opt/ros/groovy/include/ros/subscriptioncallbackhelper.h:160: undefined reference toros::console::checkLogLocationEnabled(ros::console::LogLocation*)' /opt/ros/groovy/include/ros/subscription_callback_helper.h:160: undefined reference to
ros::console::initialize()'
CMakeFiles/kinectestimation.dir/nodes/kinectestimation.cpp.o: In functionros::serialization::Stream::advance(unsigned int)': /opt/ros/groovy/include/ros/serialization.h:719: undefined reference to
ros::serialization::throwStreamOverrun()' /opt/ros/groovy/include/ros/serialization.h:719: undefined reference toros::serialization::throwStreamOverrun()' /opt/ros/groovy/include/ros/serialization.h:719: undefined reference to
ros::serialization::throwStreamOverrun()' /opt/ros/groovy/include/ros/serialization.h:719: undefined reference toros::serialization::throwStreamOverrun()' /opt/ros/groovy/include/ros/serialization.h:719: undefined reference to
ros::serialization::throwStreamOverrun()' CMakeFiles/kinectestimation.dir/nodes/kinectestimation.cpp.o:/opt/ros/groovy/include/ros/serialization.h:719: more undefined references toros::serialization::throwStreamOverrun()' follow CMakeFiles/kinect_estimation.dir/nodes/kinect_estimation.cpp.o: In function
ros::SubscriptionCallbackHelperTros::MessageEvent<sensor_msgs::PointCloud2_<std::allocator<void const> const&, void>::deserialize(ros::SubscriptionCallbackHelperDeserializeParams const&)':
/opt/ros/groovy/include/ros/subscriptioncallbackhelper.h:160: undefined reference toros::console::g_initialized' CMakeFiles/kinect_estimation.dir/nodes/kinect_estimation.cpp.o: In function
next':
/opt/ros/groovy/include/ros/serialization.h:719: undefined reference toros::serialization::throwStreamOverrun()' CMakeFiles/kinect_estimation.dir/nodes/kinect_estimation.cpp.o: In function
readros::serialization::IStream':
/opt/ros/groovy/include/ros/serialization.h:719: undefined reference toros::serialization::throwStreamOverrun()' /opt/ros/groovy/include/ros/serialization.h:719: undefined reference to
ros::serialization::throwStreamOverrun()' CMakeFiles/kinectestimation.dir/nodes/kinectestimation.cpp.o: In functionros::SubscriptionCallbackHelperT<ros::MessageEvent<sensor_msgs::PointCloud2_<std::allocator<void> const> const&, void>::deserialize(ros::SubscriptionCallbackHelperDeserializeParams const&)': /opt/ros/groovy/include/ros/subscription_callback_helper.h:160: undefined reference to
ros::console::print(ros::console::FilterBase, log4cxx::Logger, ros::console::levels::Level, char const, int, char const, char const, ...)'
/opt/ros/groovy/include/ros/subscriptioncallbackhelper.h:160: undefined reference to `ros::console::initializeLogLocation(ros::console::LogLocation, std::basicstring<char, std::chartraits, std::allocator > const&, ros::console::levels::Level)'
/opt/ros/groovy/include/ros/subscriptioncallbackhelper.h:160: undefined reference toros::console::setLogLocationLevel(ros::console::LogLocation*, ros::console::levels::Level)' /opt/ros/groovy/include/ros/subscription_callback_helper.h:160: undefined reference to
ros::console::checkLogLocationEnabled(ros::console::LogLocation)' /opt/ros/groovy/include/ros/subscriptioncallbackhelper.h:160: undefined reference toros::console::initialize()' CMakeFiles/kinect_estimation.dir/nodes/kinect_estimation.cpp.o: In function
ProxyExec0':
/home/hanwei1223/catkinwsstarmac/src/starmacsensors/starmackinect/nodes/kinectestimation.cpp:498: undefined reference to `consolebridge::log(char const, int, consolebridge::LogLevel, char const*, ...)'
CMakeFiles/kinectestimation.dir/nodes/kinectestimation.cpp.o:(.rodata.ZTIN24starmackinectestimator15KinectEstimatorE[typeinfo for starmackinectestimator::KinectEstimator]+0x8): undefined reference to `typeinfo for nodelet::Nodelet'
this is my CMakeLists.txt
cmakeminimumrequired(VERSION 2.6 FATALERROR) include($ENV{ROSROOT}/core/rosbuild/rosbuild.cmake)
set(ROSBUILDTYPE RelWithDebInfo)
rosbuildinit() adddefinitions (-Wall -O3 -Winvalid-pch -pipe -funroll-loops)
set(EXECUTABLEOUTPUTPATH ${PROJECTSOURCEDIR}/bin)
set(LIBRARYOUTPUTPATH ${PROJECTSOURCEDIR}/lib)
findpackage(catkin REQUIRED COMPONENTS roscpp stdmsgs genmsg)
rosbuildgenmsg() rosbuildgensrv()
set(PCLDIR "~/PCL-1.6.0-Source/build/PCLConfig.cmake") findpackage(PCL 1.3 REQUIRED COMPONENTS common io)
includedirectories(${PCLINCLUDEDIRS}) includedirectories(${starmackinect}) linkdirectories(${PCLLIBRARYDIRS}) adddefinitions(${PCLDEFINITIONS}) addexecutable(kinectestimation nodes/kinectestimation.cpp) targetlinklibraries(kinectestimation ${PCLCOMMONLIBRARIES} ${PCLIOLIBRARIES})
and the following are my dependencies in manifest.xml
pcl
tf
nodelet
pluginlib
message_filters
geometry_msgs
nav_msgs
visualization_msgs
opennicameradeprecated
sensor_msgs
opencv2
cv_bridge
roscpp
std_msgs
image_transport
any help is appreciated, thank you in advanced
p.s. I'm using ros-groovy on Ubuntu 12.04
Asked by chen1223 on 2013-06-22 13:31:17 UTC
Comments