tum-vision / lsd_slam

LSD-SLAM
GNU General Public License v3.0
2.59k stars 1.23k forks source link

rosmake error in building package #249

Open TheKarex opened 7 years ago

TheKarex commented 7 years ago

I had already installed and ran the lsd slam, it worked perfectly without any error. But when i tried to do a clean install again i am getting the following error. Could anyone help me ????

[ rosmake ] rosmake starting...
[ rosmake ] Packages requested are: ['lsd_slam']
[ rosmake ] Logging to directory /home/karthi/.ros/rosmake/rosmake_output-20170324-134214 [ rosmake ] Expanded args ['lsd_slam'] to: ['lsd_slam_viewer', 'lsd_slam_core'] [rosmake-0] Starting >>> catkin [ make ]
[rosmake-0] Finished <<< catkin ROS_NOBUILD in package catkin No Makefile in package catkin [rosmake-0] Starting >>> genmsg [ make ]
[rosmake-1] Starting >>> cpp_common [ make ]
[rosmake-3] Starting >>> cmake_modules [ make ]
[rosmake-0] Finished <<< genmsg ROS_NOBUILD in package genmsg No Makefile in package genmsg [rosmake-0] Starting >>> genlisp [ make ]
[rosmake-2] Starting >>> genpy [ make ]
[rosmake-3] Finished <<< cmake_modules ROS_NOBUILD in package cmake_modules No Makefile in package cmake_modules [rosmake-3] Starting >>> gencpp [ make ]
[rosmake-1] Finished <<< cpp_common ROS_NOBUILD in package cpp_common Complete ] No Makefile in package cpp_common [rosmake-0] Finished <<< genlisp ROS_NOBUILD in package genlisp No Makefile in package genlisp [rosmake-2] Finished <<< genpy ROS_NOBUILD in package genpy No Makefile in package genpy [rosmake-0] Starting >>> rospack [ make ]
[rosmake-1] Starting >>> rostime [ make ]
[rosmake-2] Starting >>> rosgraph [ make ]
[rosmake-3] Finished <<< gencpp ROS_NOBUILD in package gencpp No Makefile in package gencpp [rosmake-3] Starting >>> message_generation [ make ]
[rosmake-2] Finished <<< rosgraph ROS_NOBUILD in package rosgraph No Makefile in package rosgraph [rosmake-2] Starting >>> rosparam [ make ]
[rosmake-1] Finished <<< rostime ROS_NOBUILD in package rostime No Makefile in package rostime [rosmake-1] Starting >>> roscpp_traits [ make ]
[rosmake-0] Finished <<< rospack ROS_NOBUILD in package rospack No Makefile in package rospack [rosmake-3] Finished <<< message_generation ROS_NOBUILD in package message_generation No Makefile in package message_generation [rosmake-0] Starting >>> roslib [ make ]
[rosmake-3] Starting >>> rosmaster [ make ]
[rosmake-2] Finished <<< rosparam ROS_NOBUILD in package rosparam No Makefile in package rosparam [rosmake-2] Starting >>> roslang [ make ]
[rosmake-1] Finished <<< roscpp_traits ROS_NOBUILD in package roscpp_traits No Makefile in package roscpp_traits [rosmake-1] Starting >>> roscpp_serialization [ make ]
[rosmake-0] Finished <<< roslib ROS_NOBUILD in package roslib No Makefile in package roslib [rosmake-3] Finished <<< rosmaster ROS_NOBUILD in package rosmaster No Makefile in package rosmaster [rosmake-2] Finished <<< roslang ROS_NOBUILD in package roslang No Makefile in package roslang [rosmake-0] Starting >>> rosunit [ make ]
[rosmake-3] Starting >>> xmlrpcpp [ make ]
[rosmake-2] Starting >>> rosclean [ make ]
[rosmake-1] Finished <<< roscpp_serialization ROS_NOBUILD in package roscpp_serialization No Makefile in package roscpp_serialization [rosmake-1] Starting >>> message_runtime [ make ]
[rosmake-2] Finished <<< rosclean ROS_NOBUILD in package rosclean No Makefile in package rosclean [rosmake-3] Finished <<< xmlrpcpp ROS_NOBUILD in package xmlrpcpp No Makefile in package xmlrpcpp [rosmake-0] Finished <<< rosunit ROS_NOBUILD in package rosunit No Makefile in package rosunit [rosmake-0] Starting >>> roslz4 [ make ]
[rosmake-1] Finished <<< message_runtime ROS_NOBUILD in package message_runtime No Makefile in package message_runtime [rosmake-1] Starting >>> std_msgs [ make ]
[rosmake-2] Starting >>> rosbuild [ make ]
[rosmake-0] Finished <<< roslz4 ROS_NOBUILD in package roslz4 No Makefile in package roslz4 [rosmake-0] Starting >>> rosbag_storage [ make ]
[rosmake-1] Finished <<< std_msgs ROS_NOBUILD in package std_msgs No Makefile in package std_msgs [rosmake-1] Starting >>> geometry_msgs [ make ]
[rosmake-3] Starting >>> rosgraph_msgs [ make ]
[rosmake-2] Finished <<< rosbuild ROS_NOBUILD in package rosbuild No Makefile in package rosbuild [rosmake-2] Starting >>> rosconsole [ make ]
[rosmake-1] Finished <<< geometry_msgs ROS_NOBUILD in package geometry_msgs No Makefile in package geometry_msgs [rosmake-1] Starting >>> sensor_msgs [ make ]
[rosmake-3] Finished <<< rosgraph_msgs ROS_NOBUILD in package rosgraph_msgs No Makefile in package rosgraph_msgs [rosmake-0] Finished <<< rosbag_storage ROS_NOBUILD in package rosbag_storage No Makefile in package rosbag_storage [rosmake-2] Finished <<< rosconsole ROS_NOBUILD in package rosconsole No Makefile in package rosconsole [rosmake-1] 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-3] Starting >>> rospy [ make ]
[rosmake-1] Finished <<< rosout ROS_NOBUILD in package rosout No Makefile in package rosout [rosmake-1] Starting >>> roslaunch [ make ]
[rosmake-3] Finished <<< rospy ROS_NOBUILD in package rospy No Makefile in package rospy [rosmake-1] Finished <<< roslaunch ROS_NOBUILD in package roslaunch No Makefile in package roslaunch [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-0] Starting >>> topic_tools [ make ]
[rosmake-1] Finished <<< cv_bridge ROS_NOBUILD in package cv_bridge No Makefile in package cv_bridge [rosmake-0] Finished <<< topic_tools ROS_NOBUILD in package topic_tools No Makefile in package topic_tools [rosmake-0] Starting >>> rosbag [ make ]
[rosmake-0] Finished <<< rosbag ROS_NOBUILD in package rosbagve 36/42 Complete ] No Makefile in package rosbag [rosmake-0] Starting >>> rosmsg [ make ]
[rosmake-0] Finished <<< rosmsg ROS_NOBUILD in package rosmsg No Makefile in package rosmsg [rosmake-0] Starting >>> rosservice [ make ]
[rosmake-0] Finished <<< rosservice ROS_NOBUILD in package rosservice No Makefile in package rosservice [rosmake-0] Starting >>> dynamic_reconfigure [ make ]
[rosmake-0] Finished <<< dynamic_reconfigure ROS_NOBUILD in package dynamic_reconfigure No Makefile in package dynamic_reconfigure [rosmake-0] Starting >>> lsd_slam_viewer [ make ]
[ rosmake ] Output from build of package lsd_slam_viewer written to: [ 1 Active 40/42 Complete ] [ rosmake ] /home/karthi/.ros/rosmake/rosmake_output-20170324-134214/lsd_slam_viewer/build_output.log [rosmake-0] Finished <<< lsd_slam_viewer [PASS] [ 77.65 seconds ] [ 37 warnings [ 3 unused_var ] ]
[rosmake-0] Starting >>> lsd_slam_core [ make ]
[ rosmake ] Last 40 linesd_slam_core: 55.8 sec ] [ 1 Active 41/42 Complete ] {------------------------------------------------------------------------------- const float epsilon() { ^ /opt/ros/indigo/include/sophus/sophus.hpp:55:18: warning: type qualifiers ignored on function return type [-Wignored-qualifiers] const float pi() { ^ In file included from /home/karthi/rosbuild_ws/package_dir/lsd_slam/lsd_slam_core/src/util/SophusUtil.h:23:0, from /home/karthi/rosbuild_ws/package_dir/lsd_slam/lsd_slam_core/src/DataStructures/Frame.h:22, from /home/karthi/rosbuild_ws/package_dir/lsd_slam/lsd_slam_core/src/DataStructures/Frame.cpp:21: /opt/ros/indigo/include/sophus/sim3.hpp: In instantiation of ‘void Sophus::Sim3GroupBase::setScale(const Scalar&) const [with Derived = Sophus::Sim3Group; Sophus::Sim3GroupBase::Scalar = double]’: /home/karthi/rosbuild_ws/package_dir/lsd_slam/lsd_slam_core/src/util/SophusUtil.h:56:23: required from here /opt/ros/indigo/include/sophus/sim3.hpp:339:5: error: passing ‘const RxSO3Type {aka const Sophus::RxSO3Group}’ as ‘this’ argument of ‘void Sophus::RxSO3GroupBase::setScale(const Scalar&) [with Derived = Sophus::RxSO3Group; Sophus::RxSO3GroupBase::Scalar = double]’ discards qualifiers [-fpermissive] rxso3().setScale(scale); ^ In file included from /home/karthi/rosbuild_ws/package_dir/lsd_slam/lsd_slam_core/src/util/SophusUtil.h:23:0, from /home/karthi/rosbuild_ws/package_dir/lsd_slam/lsd_slam_core/src/DataStructures/Frame.h:22, from /home/karthi/rosbuild_ws/package_dir/lsd_slam/lsd_slam_core/src/DataStructures/FrameMemory.cpp:22: /opt/ros/indigo/include/sophus/sim3.hpp: In instantiation of ‘void Sophus::Sim3GroupBase::setScale(const Scalar&) const [with Derived = Sophus::Sim3Group; Sophus::Sim3GroupBase::Scalar = double]’: /home/karthi/rosbuild_ws/package_dir/lsd_slam/lsd_slam_core/src/util/SophusUtil.h:56:23: required from here /opt/ros/indigo/include/sophus/sim3.hpp:339:5: error: passing ‘const RxSO3Type {aka const Sophus::RxSO3Group}’ as ‘this’ argument of ‘void Sophus::RxSO3GroupBase::setScale(const Scalar&) [with Derived = Sophus::RxSO3Group; Sophus::RxSO3GroupBase::Scalar = double]’ discards qualifiers [-fpermissive] rxso3().setScale(scale); ^ In file included from /home/karthi/rosbuild_ws/package_dir/lsd_slam/lsd_slam_core/src/util/SophusUtil.h:23:0, from /home/karthi/rosbuild_ws/package_dir/lsd_slam/lsd_slam_core/src/SlamSystem.h:31, from /home/karthi/rosbuild_ws/package_dir/lsd_slam/lsd_slam_core/src/SlamSystem.cpp:21: /opt/ros/indigo/include/sophus/sim3.hpp: In instantiation of ‘void Sophus::Sim3GroupBase::setScale(const Scalar&) const [with Derived = Sophus::Sim3Group; Sophus::Sim3GroupBase::Scalar = double]’: /home/karthi/rosbuild_ws/package_dir/lsd_slam/lsd_slam_core/src/util/SophusUtil.h:56:23: required from here /opt/ros/indigo/include/sophus/sim3.hpp:339:5: error: passing ‘const RxSO3Type {aka const Sophus::RxSO3Group}’ as ‘this’ argument of ‘void Sophus::RxSO3GroupBase::setScale(const Scalar&) [with Derived = Sophus::RxSO3Group; Sophus::RxSO3GroupBase::Scalar = double]’ discards qualifiers [-fpermissive] rxso3().setScale(scale); ^ make[3]: [CMakeFiles/lsdslam.dir/src/DataStructures/FramePoseStruct.cpp.o] Error 1 make[3]: Waiting for unfinished jobs.... make[3]: [CMakeFiles/lsdslam.dir/src/DataStructures/Frame.cpp.o] Error 1 make[3]: [CMakeFiles/lsdslam.dir/src/DataStructures/FrameMemory.cpp.o] Error 1 make[3]: [CMakeFiles/lsdslam.dir/src/SlamSystem.cpp.o] Error 1 make[3]: Leaving directory `/home/karthi/rosbuild_ws/package_dir/lsd_slam/lsd_slam_core/build' make[2]: [CMakeFiles/lsdslam.dir/all] Error 2 make[2]: Leaving directory /home/karthi/rosbuild_ws/package_dir/lsd_slam/lsd_slam_core/build' make[1]: *** [all] Error 2 make[1]: Leaving directory/home/karthi/rosbuild_ws/package_dir/lsd_slam/lsd_slam_core/build' -------------------------------------------------------------------------------} [ rosmake ] Output from build of package lsd_slam_core written to: [ rosmake ] /home/karthi/.ros/rosmake/rosmake_output-20170324-134214/lsd_slam_core/build_output.log [rosmake-0] Finished <<< lsd_slam_core [FAIL] [ 55.79 seconds ]
[ rosmake ] Halting due to failure in package lsd_slam_core. [ rosmake ] Waiting for other threads to complete.
[ rosmake ] Results:
[ rosmake ] Built 42 packages with 1 failures.
[ rosmake ] Summary output to directory
[ rosmake ] /home/karthi/.ros/rosmake/rosmake_output-20170324-134214

ulkesh11 commented 7 years ago

I am getting the same error. @TheKarex Were you able to fix it?

TheKarex commented 7 years ago

@vacky11 no luck with that. I reinstalled Ubuntu and tried again, it works fine now. But no idea about the error.

ulkesh11 commented 7 years ago

@TheKarex Thanks for replying. I tried building it in catkin workspace by following the instructions given in this link and it worked for me.

Hope it helps others who are not able to get rid of this error.

jreed-theneumachine commented 6 years ago

Thanks @vacky11 I tried the rosbuild today and it failed but using the link you gave it worked.