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

catkin_make #19

Open
hhz0328 opened this issue Jul 28, 2023 · 1 comment
Open

catkin_make #19

hhz0328 opened this issue Jul 28, 2023 · 1 comment

Comments

@hhz0328
Copy link

hhz0328 commented Jul 28, 2023

In file included from /home/hhz/intel_vision/src/code_utils/include/code_utils/math_utils/Polynomial.h:9,
from /home/hhz/intel_vision/src/code_utils/src/math_utils/Polynomial.cpp:1:
/home/hhz/intel_vision/src/code_utils/include/code_utils/eigen_utils.h:4:10: fatal error: eigen3/Eigen/Eigen: 没有那个文件或目录
4 | #include <eigen3/Eigen/Eigen>
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
[ 22%] Built target roscpp_generate_messages_py
[ 22%] Built target roscpp_generate_messages_nodejs
make[2]: *** [code_utils/CMakeFiles/polynomial.dir/build.make:63:code_utils/CMakeFiles/polynomial.dir/src/math_utils/Polynomial.cpp.o] 错误 1
make[1]: *** [CMakeFiles/Makefile2:724:code_utils/CMakeFiles/polynomial.dir/all] 错误 2
make[1]: *** 正在等待未完成的任务....
[ 22%] Built target rosgraph_msgs_generate_messages_eus
[ 22%] Built target rosgraph_msgs_generate_messages_lisp
[ 22%] Built target rosgraph_msgs_generate_messages_cpp
In file included from /home/hhz/intel_vision/src/code_utils/include/code_utils/cv_utils/pnp/pnp.h:4,
from /home/hhz/intel_vision/src/code_utils/src/cv_utils/pnp/pnp.cpp:1:
/home/hhz/intel_vision/src/code_utils/include/code_utils/cv_utils/pnp/../dlt/dlt.h:5:10: fatal error: eigen3/Eigen/Eigen: 没有那个文件或目录
5 | #include <eigen3/Eigen/Eigen>
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [code_utils/CMakeFiles/pnp.dir/build.make:76:code_utils/CMakeFiles/pnp.dir/src/cv_utils/pnp/pnp.cpp.o] 错误 1
make[2]: *** 正在等待未完成的任务....
In file included from /home/hhz/intel_vision/src/code_utils/src/cv_utils/dlt/dlt.cpp:1:
/home/hhz/intel_vision/src/code_utils/include/code_utils/cv_utils/dlt/dlt.h:5:10: fatal error: eigen3/Eigen/Eigen: 没有那个文件或目录
5 | #include <eigen3/Eigen/Eigen>
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [code_utils/CMakeFiles/pnp.dir/build.make:63:code_utils/CMakeFiles/pnp.dir/src/cv_utils/dlt/dlt.cpp.o] 错误 1
In file included from /home/hhz/intel_vision/src/code_utils/src/cv_utils/pnp/nonlinearpnp.cpp:1:
/home/hhz/intel_vision/src/code_utils/include/code_utils/cv_utils/pnp/nonlinearpnp.h:7:10: fatal error: usr/include/eigen3/Eigen/Eigen: 没有那个文件或目录
7 | #include <usr/include/eigen3/Eigen/Eigen>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [code_utils/CMakeFiles/pnp.dir/build.make:102:code_utils/CMakeFiles/pnp.dir/src/cv_utils/pnp/nonlinearpnp.cpp.o] 错误 1
In file included from /home/hhz/intel_vision/src/code_utils/src/cv_utils/pnp/linearpnp.cpp:1:
/home/hhz/intel_vision/src/code_utils/include/code_utils/cv_utils/pnp/linearpnp.h:6:10: fatal error: eigen3/Eigen/Eigen: 没有那个文件或目录
6 | #include <eigen3/Eigen/Eigen>
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [code_utils/CMakeFiles/pnp.dir/build.make:89:code_utils/CMakeFiles/pnp.dir/src/cv_utils/pnp/linearpnp.cpp.o] 错误 1
make[1]: *** [CMakeFiles/Makefile2:697:code_utils/CMakeFiles/pnp.dir/all] 错误 2
/home/hhz/intel_vision/src/code_utils/src/mat_io_test.cpp: In function ‘int main()’:
/home/hhz/intel_vision/src/code_utils/src/mat_io_test.cpp:33:47: error: ‘CV_LOAD_IMAGE_UNCHANGED’ was not declared in this scope
33 | Mat img1 = imread( "/home/gao/IMG_1.png", CV_LOAD_IMAGE_UNCHANGED );
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/hhz/intel_vision/src/code_utils/src/sumpixel_test.cpp: In function ‘void test1()’:
/home/hhz/intel_vision/src/code_utils/src/sumpixel_test.cpp:84:47: error: ‘CV_LOAD_IMAGE_GRAYSCALE’ was not declared in this scope
84 | Mat img1 = imread( "/home/gao/IMG_1.png", CV_LOAD_IMAGE_GRAYSCALE );
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/hhz/intel_vision/src/code_utils/src/sumpixel_test.cpp:94:35: error: ‘CV_MINMAX’ was not declared in this scope; did you mean ‘CV_MMX’?
94 | normalize( img, img2, 0, 255, CV_MINMAX );
| ^~~~~~~~~
| CV_MMX
/home/hhz/intel_vision/src/code_utils/src/sumpixel_test.cpp: In function ‘void test2()’:
/home/hhz/intel_vision/src/code_utils/src/sumpixel_test.cpp:107:47: error: ‘CV_LOAD_IMAGE_GRAYSCALE’ was not declared in this scope
107 | Mat img1 = imread( "/home/gao/IMG_1.png", CV_LOAD_IMAGE_GRAYSCALE );
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/hhz/intel_vision/src/code_utils/src/sumpixel_test.cpp:117:35: error: ‘CV_MINMAX’ was not declared in this scope; did you mean ‘CV_MMX’?
117 | normalize( img, img2, 0, 255, CV_MINMAX );
| ^~~~~~~~~
| CV_MMX
make[2]: *** [code_utils/CMakeFiles/matIO_test.dir/build.make:63:code_utils/CMakeFiles/matIO_test.dir/src/mat_io_test.cpp.o] 错误 1
make[1]: *** [CMakeFiles/Makefile2:319:code_utils/CMakeFiles/matIO_test.dir/all] 错误 2
make[2]: *** [code_utils/CMakeFiles/sumpixel_test.dir/build.make:63:code_utils/CMakeFiles/sumpixel_test.dir/src/sumpixel_test.cpp.o] 错误 1
make[1]: *** [CMakeFiles/Makefile2:373:code_utils/CMakeFiles/sumpixel_test.dir/all] 错误 2
make: *** [Makefile:130:all] 错误 2
Invoking "make -j12 -l12" failed

@LongofWhu
Copy link

opencv4.x以上,有些宏,API名字改了,需要改为新的
CV_LOAD_IMAGE_UNCHANGED 改为 cv::IMREAD_UNCHANGED
CV_LOAD_IMAGE_GRAYSCALE 改为 cv::IMREAD_GRAYSCALE
CV_LOAD_IMAGE_COLOR 改为 cv::IMREAD_COLOR
CV_LOAD_IMAGE_ANYDEPTH 改为 cv::IMREAD_ANYDEPTH
把 CV_MINMAX 改成 NORM_MINMAX 。

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

2 participants