uos / sick_tim

A ROS driver for the SICK TiM series of laser scanners.
http://wiki.ros.org/sick_tim
47 stars 90 forks source link

Error :catkin_make -DCMAKE_BUILD_TYPE="Release" #93

Closed ChenxDD closed 4 years ago

ChenxDD commented 4 years ago

Hi, Can you tell me why the following happens when I input “catkin_make -DCMAKE_BUILD_TYPE="Release" This is the log

gcslam@ubuntu:~/catkin_ws$ catkin_make -DCMAKE_BUILD_TYPE="Release" Base path: /home/gcslam/catkin_ws Source space: /home/gcslam/catkin_ws/src Build space: /home/gcslam/catkin_ws/build Devel space: /home/gcslam/catkin_ws/devel Install space: /home/gcslam/catkin_ws/install

Running command: "make cmake_check_build_system" in "/home/gcslam/catkin_ws/build"

Running command: "make -j2 -l2" in "/home/gcslam/catkin_ws/build"

[ 27%] Built target kinect2_registration [ 36%] Building CXX object iai_kinect2/kinect2_bridge/CMakeFiles/kinect2_bridge.dir/src/kinect2_bridge.cpp.o [ 45%] Building CXX object iai_kinect2/kinect2_bridge/CMakeFiles/kinect2_bridge_nodelet.dir/src/kinect2_bridge.cpp.o /home/gcslam/catkin_ws/src/iai_kinect2/kinect2_bridge/src/kinect2_bridge.cpp: In member function ‘void Kinect2Bridge::initCompression(int32_t, int32_t, bool)’: /home/gcslam/catkin_ws/src/iai_kinect2/kinect2_bridge/src/kinect2_bridge.cpp:464:28: error: ‘CV_IMWRITE_JPEG_QUALITY’ was not declared in this scope 464 | compressionParams[0] = CV_IMWRITE_JPEG_QUALITY; | ^~~~~~~ /home/gcslam/catkin_ws/src/iai_kinect2/kinect2_bridge/src/kinect2_bridge.cpp: In member function ‘void Kinect2Bridge::initCompression(int32_t, int32_t, bool)’: /home/gcslam/catkin_ws/src/iai_kinect2/kinect2_bridge/src/kinect2_bridge.cpp:464:28: error: ‘CV_IMWRITE_JPEG_QUALITY’ was not declared in this scope 464 | compressionParams[0] = CV_IMWRITE_JPEG_QUALITY; | ^~~~~~~ /home/gcslam/catkin_ws/src/iai_kinect2/kinect2_bridge/src/kinect2_bridge.cpp:466:28: error: ‘CV_IMWRITE_PNG_COMPRESSION’ was not declared in this scope 466 | compressionParams[2] = CV_IMWRITE_PNG_COMPRESSION; | ^~~~~~ /home/gcslam/catkin_ws/src/iai_kinect2/kinect2_bridge/src/kinect2_bridge.cpp:466:28: error: ‘CV_IMWRITE_PNG_COMPRESSION’ was not declared in this scope 466 | compressionParams[2] = CV_IMWRITE_PNG_COMPRESSION; | ^~~~~~ /home/gcslam/catkin_ws/src/iai_kinect2/kinect2_bridge/src/kinect2_bridge.cpp:468:28: error: ‘CV_IMWRITE_PNG_STRATEGY’ was not declared in this scope 468 | compressionParams[4] = CV_IMWRITE_PNG_STRATEGY; | ^~~~~~~ /home/gcslam/catkin_ws/src/iai_kinect2/kinect2_bridge/src/kinect2_bridge.cpp:468:28: error: ‘CV_IMWRITE_PNG_STRATEGY’ was not declared in this scope 468 | compressionParams[4] = CV_IMWRITE_PNG_STRATEGY; | ^~~~~~~ /home/gcslam/catkin_ws/src/iai_kinect2/kinect2_bridge/src/kinect2_bridge.cpp:469:28: error: ‘CV_IMWRITE_PNG_STRATEGY_RLE’ was not declared in this scope 469 | compressionParams[5] = CV_IMWRITE_PNG_STRATEGY_RLE; | ^~~~~~~ /home/gcslam/catkin_ws/src/iai_kinect2/kinect2_bridge/src/kinect2_bridge.cpp:469:28: error: ‘CV_IMWRITE_PNG_STRATEGY_RLE’ was not declared in this scope 469 | compressionParams[5] = CV_IMWRITE_PNG_STRATEGY_RLE; | ^~~~~~~ /home/gcslam/catkin_ws/src/iai_kinect2/kinect2_bridge/src/kinect2_bridge.cpp: In member function ‘void Kinect2Bridge::receiveColor()’: /home/gcslam/catkin_ws/src/iai_kinect2/kinect2_bridge/src/kinect2_bridge.cpp:1103:45: error: ‘CV_BGRA2BGR’ was not declared in this scope 1103 | cv::cvtColor(tmp, images[COLOR_HD], CV_BGRA2BGR); | ^~~ /home/gcslam/catkin_ws/src/iai_kinect2/kinect2_bridge/src/kinect2_bridge.cpp: In member function ‘void Kinect2Bridge::receiveColor()’: /home/gcslam/catkin_ws/src/iai_kinect2/kinect2_bridge/src/kinect2_bridge.cpp:1103:45: error: ‘CV_BGRA2BGR’ was not declared in this scope 1103 | cv::cvtColor(tmp, images[COLOR_HD], CV_BGRA2BGR); | ^~~ /home/gcslam/catkin_ws/src/iai_kinect2/kinect2_bridge/src/kinect2_bridge.cpp:1107:45: error: ‘CV_RGBA2BGR’ was not declared in this scope 1107 | cv::cvtColor(tmp, images[COLOR_HD], CV_RGBA2BGR); | ^~~ /home/gcslam/catkin_ws/src/iai_kinect2/kinect2_bridge/src/kinect2_bridge.cpp:1107:45: error: ‘CV_RGBA2BGR’ was not declared in this scope 1107 | cv::cvtColor(tmp, images[COLOR_HD], CV_RGBA2BGR); | ^~~ /home/gcslam/catkin_ws/src/iai_kinect2/kinect2_bridge/src/kinect2_bridge.cpp: In member function ‘void Kinect2Bridge::processIrDepth(const cv::Mat&, std::vector&, const std::vector&)’: /home/gcslam/catkin_ws/src/iai_kinect2/kinect2_bridge/src/kinect2_bridge.cpp:1183:50: error: ‘CV_BGRA2BGR’ was not declared in this scope 1183 | cv::cvtColor(tmp, images[COLOR_SD_RECT], CV_BGRA2BGR); | ^~~ /home/gcslam/catkin_ws/src/iai_kinect2/kinect2_bridge/src/kinect2_bridge.cpp: In member function ‘void Kinect2Bridge::processIrDepth(const cv::Mat&, std::vector&, const std::vector&)’: /home/gcslam/catkin_ws/src/iai_kinect2/kinect2_bridge/src/kinect2_bridge.cpp:1183:50: error: ‘CV_BGRA2BGR’ was not declared in this scope 1183 | cv::cvtColor(tmp, images[COLOR_SD_RECT], CV_BGRA2BGR); | ^~~ /home/gcslam/catkin_ws/src/iai_kinect2/kinect2_bridge/src/kinect2_bridge.cpp:1187:50: error: ‘CV_RGBA2BGR’ was not declared in this scope 1187 | cv::cvtColor(tmp, images[COLOR_SD_RECT], CV_RGBA2BGR); | ^~~ /home/gcslam/catkin_ws/src/iai_kinect2/kinect2_bridge/src/kinect2_bridge.cpp:1187:50: error: ‘CV_RGBA2BGR’ was not declared in this scope 1187 | cv::cvtColor(tmp, images[COLOR_SD_RECT], CV_RGBA2BGR); | ^~~ /home/gcslam/catkin_ws/src/iai_kinect2/kinect2_bridge/src/kinect2_bridge.cpp: In member function ‘void Kinect2Bridge::processColor(std::vector&, const std::vector&)’: /home/gcslam/catkin_ws/src/iai_kinect2/kinect2_bridge/src/kinect2_bridge.cpp:1250:55: error: ‘CV_BGR2GRAY’ was not declared in this scope 1250 | cv::cvtColor(images[COLOR_HD], images[MONO_HD], CV_BGR2GRAY); | ^~~ /home/gcslam/catkin_ws/src/iai_kinect2/kinect2_bridge/src/kinect2_bridge.cpp: In member function ‘void Kinect2Bridge::processColor(std::vector&, const std::vector&)’: /home/gcslam/catkin_ws/src/iai_kinect2/kinect2_bridge/src/kinect2_bridge.cpp:1250:55: error: ‘CV_BGR2GRAY’ was not declared in this scope 1250 | cv::cvtColor(images[COLOR_HD], images[MONO_HD], CV_BGR2GRAY); | ^~~ /home/gcslam/catkin_ws/src/iai_kinect2/kinect2_bridge/src/kinect2_bridge.cpp:1254:65: error: ‘CV_BGR2GRAY’ was not declared in this scope 1254 | cv::cvtColor(images[COLOR_HD_RECT], images[MONO_HD_RECT], CV_BGR2GRAY); | ^~~ /home/gcslam/catkin_ws/src/iai_kinect2/kinect2_bridge/src/kinect2_bridge.cpp:1254:65: error: ‘CV_BGR2GRAY’ was not declared in this scope 1254 | cv::cvtColor(images[COLOR_HD_RECT], images[MONO_HD_RECT], CV_BGR2GRAY); | ^~~ /home/gcslam/catkin_ws/src/iai_kinect2/kinect2_bridge/src/kinect2_bridge.cpp:1258:57: error: ‘CV_BGR2GRAY’ was not declared in this scope 1258 | cv::cvtColor(images[COLOR_QHD], images[MONO_QHD], CV_BGR2GRAY); | ^~~ /home/gcslam/catkin_ws/src/iai_kinect2/kinect2_bridge/src/kinect2_bridge.cpp:1258:57: error: ‘CV_BGR2GRAY’ was not declared in this scope 1258 | cv::cvtColor(images[COLOR_QHD], images[MONO_QHD], CV_BGR2GRAY); | ^~~ /home/gcslam/catkin_ws/src/iai_kinect2/kinect2_bridge/src/kinect2_bridge.cpp:1262:67: error: ‘CV_BGR2GRAY’ was not declared in this scope 1262 | cv::cvtColor(images[COLOR_QHD_RECT], images[MONO_QHD_RECT], CV_BGR2GRAY); | ^~~ /home/gcslam/catkin_ws/src/iai_kinect2/kinect2_bridge/src/kinect2_bridge.cpp:1262:67: error: ‘CV_BGR2GRAY’ was not declared in this scope 1262 | cv::cvtColor(images[COLOR_QHD_RECT], images[MONO_QHD_RECT], CV_BGR2GRAY); | ^~~ make[2]: [iai_kinect2/kinect2_bridge/CMakeFiles/kinect2_bridge.dir/build.make:63:iai_kinect2/kinect2_bridge/CMakeFiles/kinect2_bridge.dir/src/kinect2_bridge.cpp.o] 错误 1 make[1]: [CMakeFiles/Makefile2:1042:iai_kinect2/kinect2_bridge/CMakeFiles/kinect2_bridge.dir/all] 错误 2 make[1]: 正在等待未完成的任务.... make[2]: [iai_kinect2/kinect2_bridge/CMakeFiles/kinect2_bridge_nodelet.dir/build.make:63:iai_kinect2/kinect2_bridge/CMakeFiles/kinect2_bridge_nodelet.dir/src/kinect2_bridge.cpp.o] 错误 1 make[1]: [CMakeFiles/Makefile2:1069:iai_kinect2/kinect2_bridge/CMakeFiles/kinect2_bridge_nodelet.dir/all] 错误 2 make: [Makefile:141:all] 错误 2 Invoking "make -j2 -l2" failed