Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error :catkin_make -DCMAKE_BUILD_TYPE="Release" #93

Closed
ChenxDD opened this issue Jul 23, 2020 · 0 comments
Closed

Error :catkin_make -DCMAKE_BUILD_TYPE="Release" #93

ChenxDD opened this issue Jul 23, 2020 · 0 comments

Comments

@ChenxDD
Copy link

ChenxDD commented Jul 23, 2020

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::vectorcv::Mat&, const std::vectorKinect2Bridge::Status&)’:
/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::vectorcv::Mat&, const std::vectorKinect2Bridge::Status&)’:
/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::vectorcv::Mat&, const std::vectorKinect2Bridge::Status&)’:
/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::vectorcv::Mat&, const std::vectorKinect2Bridge::Status&)’:
/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

@ChenxDD ChenxDD closed this as completed Jul 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant