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

opencv version? #15

Open
XiangZhou1 opened this issue May 14, 2021 · 2 comments
Open

opencv version? #15

XiangZhou1 opened this issue May 14, 2021 · 2 comments

Comments

@XiangZhou1
Copy link

请问这个安装包是使用什么版本的opencv安装的?
我使用opencv3.4.6编译错误。
[100%] Building CXX object ls_calibration/calibration_camera_lidar/CMakeFiles/calibration_publisher.dir/nodes/calibration_publisher/calibration_publisher.cpp.o
[100%] Linking CXX executable /media/4T/zhongxiang/PCLDemo/Autoware/catkin_sync_ws/devel/lib/calibration_camera_lidar/calibration_publisher
CMakeFiles/calibration_publisher.dir/nodes/calibration_publisher/calibration_publisher.cpp.o:在函数‘main’中:
/usr/local/opencv3.4.6/include/opencv2/core/cvstd.inl.hpp:150:对‘cv::read(cv::FileNode const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator >&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)’未定义的引用
collect2: error: ld returned 1 exit status
ls_calibration/calibration_camera_lidar/CMakeFiles/calibration_publisher.dir/build.make:330: recipe for target '/media/4T/zhongxiang/PCLDemo/Autoware/catkin_sync_ws/devel/lib/calibration_camera_lidar/calibration_publisher' failed
make[2]: *** [/media/4T/zhongxiang/PCLDemo/Autoware/catkin_sync_ws/devel/lib/calibration_camera_lidar/calibration_publisher] Error 1
CMakeFiles/Makefile2:5311: recipe for target 'ls_calibration/calibration_camera_lidar/CMakeFiles/calibration_publisher.dir/all' failed
make[1]: *** [ls_calibration/calibration_camera_lidar/CMakeFiles/calibration_publisher.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j32 -l32" failed

@XidianLemon
Copy link
Owner

请问这个安装包是使用什么版本的opencv安装的?
我使用opencv3.4.6编译错误。
[100%] Building CXX object ls_calibration/calibration_camera_lidar/CMakeFiles/calibration_publisher.dir/nodes/calibration_publisher/calibration_publisher.cpp.o
[100%] Linking CXX executable /media/4T/zhongxiang/PCLDemo/Autoware/catkin_sync_ws/devel/lib/calibration_camera_lidar/calibration_publisher
CMakeFiles/calibration_publisher.dir/nodes/calibration_publisher/calibration_publisher.cpp.o:在函数‘main’中:
/usr/local/opencv3.4.6/include/opencv2/core/cvstd.inl.hpp:150:对‘cv::read(cv::FileNode const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator >&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)’未定义的引用
collect2: error: ld returned 1 exit status
ls_calibration/calibration_camera_lidar/CMakeFiles/calibration_publisher.dir/build.make:330: recipe for target '/media/4T/zhongxiang/PCLDemo/Autoware/catkin_sync_ws/devel/lib/calibration_camera_lidar/calibration_publisher' failed
make[2]: *** [/media/4T/zhongxiang/PCLDemo/Autoware/catkin_sync_ws/devel/lib/calibration_camera_lidar/calibration_publisher] Error 1
CMakeFiles/Makefile2:5311: recipe for target 'ls_calibration/calibration_camera_lidar/CMakeFiles/calibration_publisher.dir/all' failed
make[1]: *** [ls_calibration/calibration_camera_lidar/CMakeFiles/calibration_publisher.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j32 -l32" failed

我用的是ros自带的opencv,是kinetic自带的那个版本

@AndrewJSong
Copy link

编辑:
/home/andrew/Documents/test/src/calibration_camera_lidar/CMakeLists.txt
原:
target_link_libraries(calibration_publisher
${catkin_LIBRARIES}
)
改:
target_link_libraries(calibration_publisher
${catkin_LIBRARIES}
${OpenCV_LIBS}
)

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

3 participants