Robotics StackExchange | Archived questions

skeletal_tracker build fails

I m trying to build skeletal_tracker package from kinect demos in ubuntu 12.04and running into following error log:

/opt/ros/fuerte/include/ros/publisher.h:103: 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)' /opt/ros/fuerte/include/ros/publisher.h:103: undefined reference toros::console::setLogLocationLevel(ros::console::LogLocation, ros::console::levels::Level)' /opt/ros/fuerte/include/ros/publisher.h:103: undefined reference to `ros::console::checkLogLocationEnabled(ros::console::LogLocation)' /opt/ros/fuerte/include/ros/publisher.h:103: undefined reference to ros::console::print(ros::console::FilterBase*, log4cxx::Logger*, ros::console::levels::Level, char const*, int, char const*, char const*, ...)' /opt/ros/fuerte/include/ros/publisher.h:103: undefined reference toros::console::initialize()' /opt/ros/fuerte/include/ros/publisher.h:103: undefined reference to ros::console::print(ros::console::FilterBase*, log4cxx::Logger*, ros::console::levels::Level, char const*, int, char const*, char const*, ...)' /opt/ros/fuerte/include/ros/publisher.h:103: undefined reference toros::console::initialize()' CMakeFiles/tracker.dir/src/main.o: In function ros::Publisher ros::NodeHandle::advertise<mapping_msgs::PolygonalMap_<std::allocator<void> > >(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, bool)': /opt/ros/fuerte/include/ros/node_handle.h:241: undefined reference toros::NodeHandle::advertise(ros::AdvertiseOptions&)' CMakeFiles/tracker.dir/src/main.o: In function ros::Publisher ros::NodeHandle::advertise<body_msgs::Skeletons_<std::allocator<void> > >(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, bool)': /opt/ros/fuerte/include/ros/node_handle.h:241: undefined reference toros::NodeHandle::advertise(ros::AdvertiseOptions&)' CMakeFiles/tracker.dir/src/main.o: In function main': /home/pragyan/Techiome/SandBox/kinect_demos/mit-ros-pkg/kinect_utils/skeletal_tracker/src/main.cpp:373: undefined reference toros::init(int&, char*, std::basicstring<char, std::chartraits, std::allocator > const&, unsigned int)' /home/pragyan/Techiome/SandBox/kinectdemos/mit-ros-pkg/kinectutils/skeletaltracker/src/main.cpp:374: undefined reference to `ros::NodeHandle::NodeHandle(std::basicstring, std::allocator > const&, std::map, std::allocator >, std::basicstring<char, std::chartraits, std::allocator >, std::less, std::allocator > >, std::allocator, std::allocator > const, std::basicstring<char, std::chartraits, std::allocator > > > > const&)' /home/pragyan/Techiome/SandBox/kinectdemos/mit-ros-pkg/kinectutils/skeletaltracker/src/main.cpp:380: undefined reference to `ros::Publisher::~Publisher()' /home/pragyan/Techiome/SandBox/kinectdemos/mit-ros-pkg/kinectutils/skeletaltracker/src/main.cpp:381: undefined reference to ros::Publisher::~Publisher()' /home/pragyan/Techiome/SandBox/kinect_demos/mit-ros-pkg/kinect_utils/skeletal_tracker/src/main.cpp:439: undefined reference toros::NodeHandle::~NodeHandle()' /home/pragyan/Techiome/SandBox/kinectdemos/mit-ros-pkg/kinectutils/skeletaltracker/src/main.cpp:398: undefined reference to `ros::package::getPath(std::basicstring, std::allocator > const&)' /home/pragyan/Techiome/SandBox/kinectdemos/mit-ros-pkg/kinectutils/skeletaltracker/src/main.cpp:439: undefined reference to `ros::NodeHandle::~NodeHandle()' /home/pragyan/Techiome/SandBox/kinectdemos/mit-ros-pkg/kinectutils/skeletaltracker/src/main.cpp:439: undefined reference to ros::NodeHandle::~NodeHandle()' /home/pragyan/Techiome/SandBox/kinect_demos/mit-ros-pkg/kinect_utils/skeletal_tracker/src/main.cpp:381: undefined reference toros::Publisher::~Publisher()' /home/pragyan/Techiome/SandBox/kinectdemos/mit-ros-pkg/kinectutils/skeletaltracker/src/main.cpp:380: undefined reference to ros::Publisher::~Publisher()' CMakeFiles/tracker.dir/src/main.o: In functionstaticinitializationanddestruction0': /home/pragyan/Techiome/SandBox/kinectdemos/mit-ros-pkg/kinectutils/skeletaltracker/src/main.cpp:65: undefined reference to ros::Publisher::~Publisher()' /home/pragyan/Techiome/SandBox/kinect_demos/mit-ros-pkg/kinect_utils/skeletal_tracker/src/main.cpp:65: undefined reference toros::Publisher::~Publisher()' CMakeFiles/tracker.dir/src/main.o: In function ros::serialization::Stream::advance(unsigned int)': /opt/ros/fuerte/include/ros/serialization.h:678: undefined reference toros::serialization::throwStreamOverrun()' /opt/ros/fuerte/include/ros/serialization.h:678: undefined reference to ros::serialization::throwStreamOverrun()' /opt/ros/fuerte/include/ros/serialization.h:678: undefined reference toros::serialization::throwStreamOverrun()' /opt/ros/fuerte/include/ros/serialization.h:678: undefined reference to ros::serialization::throwStreamOverrun()' /opt/ros/fuerte/include/ros/serialization.h:678: undefined reference toros::serialization::throwStreamOverrun()' CMakeFiles/tracker.dir/src/main.o:/opt/ros/fuerte/include/ros/serialization.h:678: more undefined references to `ros::serialization::throwStreamOverrun()' follow collect2: ld returned 1 exit status make[3]: ** [../bin/tracker] Error 1 make[3]: Leaving directory /home/pragyan/Techiome/SandBox/kinect_demos/mit-ros-pkg/kinect_utils/skeletal_tracker/build' make[2]: *** [CMakeFiles/tracker.dir/all] Error 2 make[2]: Leaving directory/home/pragyan/Techiome/SandBox/kinectdemos/mit-ros-pkg/kinectutils/skeletaltracker/build' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/pragyan/Techiome/SandBox/kinectdemos/mit-ros-pkg/kinectutils/skeletaltracker/build' -------------------------------------------------------------------------------} [ rosmake ] Output from build of package skeletaltracker written to: [ rosmake ] /home/pragyan/.ros/rosmake/rosmakeoutput-20120518-163051/skeletaltracker/buildoutput.log [rosmake-2] Finished <<< skeletaltracker [FAIL] [ 2.59 seconds ]
[ rosmake ] Halting due to failure in package skeletal
tracker. [ rosmake ] Waiting for other threads to complete. [ rosmake ] Results:
[ rosmake ] Built 8 packages with 1 failures.
[ rosmake ] Summary output to directory
[ rosmake ] /home/pragyan/.ros/rosmake/rosmake_output-20120518-163051

Any suggestion how to solve this?

Asked by pntripathi9417 on 2012-05-18 01:05:53 UTC

Comments

Answers