ethz-asl / kitti_to_rosbag

Dataset tools for working with the KITTI dataset raw data ( http://www.cvlibs.net/datasets/kitti/raw_data.php ) and converting it to a ROS bag. Also allows a library for direct access to poses, velodyne scans, and images.
248 stars 100 forks source link

build under melodic #12

Closed ZacharyTaylor closed 5 years ago

ZacharyTaylor commented 5 years ago

Otherwise gives

Errors     << kitti_to_rosbag:make /home/z/catkin_ws/logs/kitti_to_rosbag/build.make.001.log
/home/z/catkin_ws/src/kitti_to_rosbag/kitti_to_rosbag/src/kitti_parser.cpp: In member function ‘std::__cxx11::string kitti::KittiParser::getFilenameForEntry(uint64_t) const’:
/home/z/catkin_ws/src/kitti_to_rosbag/kitti_to_rosbag/src/kitti_parser.cpp:574:35: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
   sprintf(buffer, "%010llu", entry);
                                   ^
CMakeFiles/tiny_disp_view.dir/src/tiny_disp_view.cpp.o: In function `disparityCallback(boost::shared_ptr<stereo_msgs::DisparityImage_<std::allocator<void> > const> const&)':
tiny_disp_view.cpp:(.text+0x27b): undefined reference to `cv::imshow(cv::String const&, cv::_InputArray const&)'
tiny_disp_view.cpp:(.text+0x28d): undefined reference to `cv::waitKey(int)'
collect2: error: ld returned 1 exit status
make[2]: *** [/home/z/catkin_ws/devel/lib/kitti_to_rosbag/tiny_disp_view] Error 1
make[1]: *** [CMakeFiles/tiny_disp_view.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [all] Error 2
cd /home/z/catkin_ws/build/kitti_to_rosbag; catkin build --get-env kitti_to_rosbag | catkin env -si  /usr/bin/make --jobserver-fds=6,7 -j; cd -
alexmillane commented 5 years ago

@helenol I'll merge this. I just ran into the same problem and fixed it before realizing the fix was already here.