JakobEngel / dso_ros

ROS wrapper for dso
GNU General Public License v3.0
323 stars 210 forks source link

compilation error #2

Closed hfarazi closed 8 years ago

hfarazi commented 8 years ago

rosmake output:

[ rosmake ] rosmake starting...                                                                       
[ rosmake ] No package specified.  Building ['dso_ros']                                               
[ rosmake ] Packages requested are: ['dso_ros']                                                       
[ rosmake ] Logging to directory /home/hafez/.ros/rosmake/rosmake_output-20161114-122352              
[ rosmake ] Expanded args ['dso_ros'] to:
['dso_ros']                                                 
[rosmake-0] Starting >>> catkin [ make ]                                                              
[rosmake-0] Finished <<< catkin ROS_NOBUILD in package catkin
 No Makefile in package catkin          
[rosmake-6] Starting >>> cmake_modules [ make ]                                                       
[rosmake-7] Starting >>> genmsg [ make ]                                                              
[rosmake-0] Starting >>> cpp_common [ make ]                                                          
[rosmake-2] Starting >>> rosgraph [ make ]                                                            
[rosmake-3] Starting >>> rosclean [ make ]                                                            
[rosmake-0] Finished <<< cpp_common ROS_NOBUILD in package cpp_common
 No Makefile in package cpp_common
[rosmake-0] Starting >>> rostime [ make ]                                                             
[rosmake-7] Finished <<< genmsg ROS_NOBUILD in package genmsg
 No Makefile in package genmsg          
[rosmake-7] Starting >>> genlisp [ make ]                                                             
[rosmake-6] Finished <<< cmake_modules ROS_NOBUILD in package cmake_modules
 No Makefile in package cmake_modules
[rosmake-5] Starting >>> genpy [ make ]                                                               
[rosmake-6] Starting >>> rospack [ make ]                                                             
[rosmake-1] Starting >>> gencpp [ make ]                                                              
[rosmake-2] Finished <<< rosgraph ROS_NOBUILD in package rosgraph
 No Makefile in package rosgraph    
[rosmake-4] Starting >>> roslang [ make ]                                                             
[rosmake-2] Starting >>> rosparam [ make ]                                                            
[rosmake-3] Finished <<< rosclean ROS_NOBUILD in package rosclean
 No Makefile in package rosclean    
[rosmake-3] Starting >>> rosmaster [ make ]                                                           
[rosmake-7] Finished <<< genlisp ROS_NOBUILD in package genlisp
 No Makefile in package genlisp       
[rosmake-7] Starting >>> xmlrpcpp [ make ]                                                            
[rosmake-0] Finished <<< rostime ROS_NOBUILD in package rostime
 No Makefile in package rostime       
[rosmake-5] Finished <<< genpy ROS_NOBUILD in package genpy
 No Makefile in package genpy             
[rosmake-0] Starting >>> roscpp_traits [ make ]                                                       
[rosmake-1] Finished <<< gencpp ROS_NOBUILD in package gencpp
 No Makefile in package gencpp          
[rosmake-1] Starting >>> message_generation [ make ]                                                  
[rosmake-2] Finished <<< rosparam ROS_NOBUILD in package rosparam
 No Makefile in package rosparam    
[rosmake-3] Finished <<< rosmaster ROS_NOBUILD in package rosmaster
 No Makefile in package rosmaster 
[rosmake-4] Finished <<< roslang ROS_NOBUILD in package roslang
 No Makefile in package roslang       
[rosmake-7] Finished <<< xmlrpcpp ROS_NOBUILD in package xmlrpcpp
 No Makefile in package xmlrpcpp    
[rosmake-0] Finished <<< roscpp_traits ROS_NOBUILD in package roscpp_traits
 No Makefile in package roscpp_traits
[rosmake-0] Starting >>> roscpp_serialization [ make ]                                                
[rosmake-1] Finished <<< message_generation ROS_NOBUILD in package message_generation
 No Makefile in package message_generation
[rosmake-6] Finished <<< rospack ROS_NOBUILD in package rospack
 No Makefile in package rospack       
[rosmake-6] Starting >>> roslib [ make ]                                                              
[rosmake-6] Finished <<< roslib ROS_NOBUILD in package roslib
 No Makefile in package roslib          
[rosmake-6] Starting >>> rosunit [ make ]                                                             
[rosmake-0] Finished <<< roscpp_serialization ROS_NOBUILD in package roscpp_serialization
 No Makefile in package roscpp_serialization
[rosmake-0] Starting >>> message_runtime [ make ]                                                     
[rosmake-0] Finished <<< message_runtime ROS_NOBUILD in package message_runtime
 No Makefile in package message_runtime
[rosmake-6] Finished <<< rosunit ROS_NOBUILD in package rosunit
 No Makefile in package rosunit       
[rosmake-0] Starting >>> std_msgs [ make ]                                                            
[rosmake-1] Starting >>> rosbuild [ make ]                                                            
[rosmake-0] Finished <<< std_msgs ROS_NOBUILD in package std_msgs
 No Makefile in package std_msgs    
[rosmake-0] Starting >>> geometry_msgs [ make ]                                                       
[rosmake-2] Starting >>> rosgraph_msgs [ make ]                                                       
[rosmake-1] Finished <<< rosbuild ROS_NOBUILD in package rosbuild
 No Makefile in package rosbuild    
[rosmake-2] Finished <<< rosgraph_msgs ROS_NOBUILD in package rosgraph_msgs
 No Makefile in package rosgraph_msgs
[rosmake-0] Finished <<< geometry_msgs ROS_NOBUILD in package geometry_msgs
 No Makefile in package geometry_msgs
[rosmake-1] Starting >>> rosconsole [ make ]                                                          
[rosmake-0] Starting >>> sensor_msgs [ make ]                                                         
[rosmake-1] Finished <<< rosconsole ROS_NOBUILD in package rosconsole
 No Makefile in package rosconsole
[rosmake-0] Finished <<< sensor_msgs ROS_NOBUILD in package sensor_msgs
 No Makefile in package sensor_msgs
[rosmake-1] Starting >>> roscpp [ make ]                                                              
[rosmake-1] Finished <<< roscpp ROS_NOBUILD in package roscpp
 No Makefile in package roscpp          
[rosmake-1] Starting >>> rosout [ make ]                                                              
[rosmake-1] Finished <<< rosout ROS_NOBUILD in package rosout
 No Makefile in package rosout          
[rosmake-1] Starting >>> roslaunch [ make ]                                                           
[rosmake-3] Starting >>> rospy [ make ]                                                               
[rosmake-1] Finished <<< roslaunch ROS_NOBUILD in package roslaunch
 No Makefile in package roslaunch 
[rosmake-3] Finished <<< rospy ROS_NOBUILD in package rospy
 No Makefile in package rospy             
[rosmake-1] Starting >>> rostest [ make ]                                                             
[rosmake-1] Finished <<< rostest ROS_NOBUILD in package rostest
 No Makefile in package rostest       
[rosmake-1] Starting >>> cv_bridge [ make ]                                                           
[rosmake-1] Finished <<< cv_bridge ROS_NOBUILD in package cv_bridge
 No Makefile in package cv_bridge 
[rosmake-1] Starting >>> dso_ros [ make ]                                                             
[ rosmake ] Last 40 lineso_ros: 11.3 sec ]                                 [ 1 Active 33/34 Complete ]
{-------------------------------------------------------------------------------
  -- Performing Test HAS_SSE_EXTENSIONS - Success
  -- [rosbuild] Found SSE3 extensions, using flags: -msse3 -mfpmath=sse
  -- Configuring done
  -- Generating done
  -- Build files have been written to: /home/hafez/Workspace/src/dso_ros/build
  cd build && make -j8 -l8
  make[1]: Entering directory `/home/hafez/Workspace/src/dso_ros/build'
  make[2]: Entering directory `/home/hafez/Workspace/src/dso_ros/build'
  make[3]: Entering directory `/home/hafez/Workspace/src/dso_ros/build'
  Scanning dependencies of target rospack_genmsg_libexe
  make[3]: Leaving directory `/home/hafez/Workspace/src/dso_ros/build'
  [  0%] Built target rospack_genmsg_libexe
  make[3]: Entering directory `/home/hafez/Workspace/src/dso_ros/build'
  Scanning dependencies of target rosbuild_precompile
  make[3]: Leaving directory `/home/hafez/Workspace/src/dso_ros/build'
  [  0%] Built target rosbuild_precompile
  make[3]: Entering directory `/home/hafez/Workspace/src/dso_ros/build'
  Scanning dependencies of target dso_live
  make[3]: Leaving directory `/home/hafez/Workspace/src/dso_ros/build'
  make[3]: Entering directory `/home/hafez/Workspace/src/dso_ros/build'
  [100%] Building CXX object CMakeFiles/dso_live.dir/src/main.cpp.o
  Linking CXX executable bin/dso_live
  CMakeFiles/dso_live.dir/src/main.cpp.o: In function `ros::Subscriber ros::NodeHandle::subscribe<boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> >(std::string const&, unsigned int, void (*)(boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const>), ros::TransportHints const&)':
  /opt/ros/indigo/include/ros/node_handle.h:660: undefined reference to `ros::NodeHandle::subscribe(ros::SubscribeOptions&)'
  CMakeFiles/dso_live.dir/src/main.cpp.o: In function `main':
  /home/hafez/Workspace/src/dso_ros/src/main.cpp:159: undefined reference to `ros::init(int&, char**, std::string const&, unsigned int)'
  /home/hafez/Workspace/src/dso_ros/src/main.cpp:201: undefined reference to `ros::NodeHandle::NodeHandle(std::string const&, std::map<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > > const&)'
  /home/hafez/Workspace/src/dso_ros/src/main.cpp:204: undefined reference to `ros::spin()'
  /home/hafez/Workspace/src/dso_ros/src/main.cpp:202: undefined reference to `ros::Subscriber::~Subscriber()'
  /home/hafez/Workspace/src/dso_ros/src/main.cpp:209: undefined reference to `ros::NodeHandle::~NodeHandle()'
  /home/hafez/Workspace/src/dso_ros/src/main.cpp:202: undefined reference to `ros::Subscriber::~Subscriber()'
  /home/hafez/Workspace/src/dso_ros/src/main.cpp:209: undefined reference to `ros::NodeHandle::~NodeHandle()'
  collect2: error: ld returned 1 exit status
  make[3]: *** [bin/dso_live] Error 1
  make[3]: Leaving directory `/home/hafez/Workspace/src/dso_ros/build'
  make[2]: *** [CMakeFiles/dso_live.dir/all] Error 2
  make[2]: Leaving directory `/home/hafez/Workspace/src/dso_ros/build'
  make[1]: *** [all] Error 2
  make[1]: Leaving directory `/home/hafez/Workspace/src/dso_ros/build'
-------------------------------------------------------------------------------}
[ rosmake ] Output from build of package dso_ros written to:
[ rosmake ]    /home/hafez/.ros/rosmake/rosmake_output-20161114-122352/dso_ros/build_output.log
[rosmake-1] Finished <<< dso_ros [FAIL] [ 11.38 seconds ]                                             
[ rosmake ] Halting due to failure in package dso_ros. 
[ rosmake ] Waiting for other threads to complete.
[ rosmake ] Results:                                                                                  
[ rosmake ] Built 34 packages with 1 failures.                                                        
[ rosmake ] Summary output to directory                                                               
[ rosmake ] /home/hafez/.ros/rosmake/rosmake_output-20161114-122352 
hfarazi commented 8 years ago

To fix it, I changed manifest.xml to following:

<package>
  <description brief="dso_core">

     ROS Wrapper DSO.

  </description>
  <author>Jakob Engel</author>
  <license>see http://vision.in.tum.de/dso</license>
  <review status="unreviewed" notes=""/>
  <url>http://vision.in.tum.de/dso</url>
  <depend package="std_msgs"/>
  <depend package="rospy"/>
  <depend package="roscpp"/>
  <depend package="roslib"/>
  <depend package="cv_bridge"/>
  <depend package="sensor_msgs"/>
</package>
23pointsNorth commented 8 years ago

I had the same problem, so I converted it to catkin. Check out the pull request or the linked repo.

JakobEngel commented 8 years ago

Should be fixed - thanks!