Opencv-3.4.13 is too new, and errors will be encountered during the compilation of kalibr. The summary is as follows:
Error 1: sudo pip install python-igraph –upgrade failed
Solution:
sudo apt-get install python-igraph
Error 2:
Could not find a package configuration file provided by “code_utils” with
any of the following names:
code_utilsConfig.cmake
code_utils-config.cmake```
Solution:
- You need to put the following sentence in the sumpixel_test.cpp file
#include “backward.hpp”
to this line
#include “code_utils/backward.hpp” - Put code_utils into the workspace first, then catkin_ws once, then put imu_utils, then compile
Error 3: catkin build -DCMAKE_BUILD_TYPE=Release -j4 errors during compilation
3-1 error reporting:
error: ‘CV_GRAY2RGB’ was not declared in this scope
cv::cvtColor(imageCopy1, imageCopy1, CV_GRAY2RGB);
error: ‘CV_TERMCRIT_ITER’ was not declared in this scope
cv::TermCriteria(CV_TERMCRIT_EPS + CV_TERMCRIT_ITER, 30, 0.1));
error: ‘CV_TERMCRIT_EPS’ was not declared in this scope
cv::TermCriteria(CV_TERMCRIT_EPS + CV_TERMCRIT_ITER, 30, 0.1));
3-1 solution: add a header file to the corresponding file:
#include <opencv2/imgproc/types_c.h>
##############################################################################################################
3-2 cvstartwindowthread() error:
Change 3-2 to:
cv::startWindowThread()
3-3 CV_LOAD_IMAGE_UNCHANGED error:
3-3 changed to
cv::IMREAD_UNCHANGED
3-4 CV_LOAD_IMAGE_GRAYSCALE error:
3-4 changed to
cv::IMREAD_GRAYSCALE错误:
3-5 CV_ LOAD_ IMAGE_ Grayscale error:
Change 3-5 to
cv::IMREAD_GRAYSCALE
3-6 CV_LOAD_IMAGE_COLOR error:
Change 3-6 to
cv::IMREAD_COLOR
3-7 CV_LOAD_IMAGE_ANYDEPTH error:
3-7 changed to
cv::IMREAD_ANYDEPTH
3-8 CV_MINMAX error:
3-8 changed to
NORM_MINMAX
3-9 CV_FONT_HERSHEY_SIMPLEX error:
3-9 changed to
cv::FONT_HERSHEY_SIMPLEX```
3-10 CV_WINDOW_AUTOSIZE error:
3-10 changed to
cv::WINDOW_AUTOSIZE
3-11 error: error: aggregate ‘std::ofstream out_t’ has incomplete type and cannot be defined std::ofstream out_t;
3-11 Solution: add the header file as below:
#include <fstream>
Read More:
- How to Solve Yolov5 Common Error (Three Errors)
- Vs compile VTK, only generate install error, stop, ask God how to solve?
- Error failed to compile with 1 errors
- Using Lombok to compile and report errors
- [Solved] ERROR Failed to compile with 3 errors These dependencies were not found: * pdfjs-dist/es5/buil
- Error failed to compile with 1 errors after finding NPM run dev
- Vue running error: error failed to compile with 1 errors, browser error: cannot get/
- Ubuntu: CodeBlocks compile OpenGL super Dictionary (5th Edition) instance
- Error building player because scripts have compile errors in the editor
- How to manually upgrade Ubuntu 16.04 LTS to Ubuntu 18.04 LTS, Part I
- Common errors and solutions of Qt development application under Ubuntu
- The MySQL load data command parses and handles error 29 (errCode: 13) errors (in the Ubuntu environment)
- Remember once to solve the problem that Ubuntu 18.04 can’t enter GUI
- Graphviz. Backend. Executablenotfound: failed to execute ‘dot’ Python uses graphviz to solve drawing errors
- How to generate and view SSH keys in Ubuntu 16.04
- How to Fix errors in Chinese input of latex
- How to install cuda10.01in Ubuntu18.04
- How to search files or folders in Ubuntu
- How to install postman tool in Ubuntu 16.04
- Running Ubuntu 16.04 in VMware to solve the full screen problem