Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Issue while catkin_make. Getting started with Open_cv

Hello! I follow this tutorial.

I'm on a step 6.k and I get the following error:

Scanning dependencies of target mycv_node [ 81%] Building CXX object mycv/CMakeFiles/mycv_node.dir/src/image_converter.cpp.o [ 90%] Linking CXX executable /home/aleks/catkin_ws/devel/lib/mycv/mycv_node CMakeFiles/mycv_node.dir/src/image_converter.cpp.o: In function `ImageConverter::ImageConverter()': image_converter.cpp:(.text._ZN14ImageConverterC2Ev[_ZN14ImageConverterC5Ev]+0x5b0): undefined reference to `cv::namedWindow(cv::String const&, int)' CMakeFiles/mycv_node.dir/src/image_converter.cpp.o: In function `ImageConverter::~ImageConverter()': image_converter.cpp:(.text._ZN14ImageConverterD2Ev[_ZN14ImageConverterD5Ev]+0x35): undefined reference to `cv::destroyWindow(cv::String const&)' CMakeFiles/mycv_node.dir/src/image_converter.cpp.o: In function `ImageConverter::imageCb(boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> const&)': image_converter.cpp:(.text._ZN14ImageConverter7imageCbERKN5boost10shared_ptrIKN11sensor_msgs6Image_ISaIvEEEEE[_ZN14ImageConverter7imageCbERKN5boost10shared_ptrIKN11sensor_msgs6Image_ISaIvEEEEE]+0x180): undefined reference to `cv::imshow(cv::String const&, cv::_InputArray const&)' image_converter.cpp:(.text._ZN14ImageConverter7imageCbERKN5boost10shared_ptrIKN11sensor_msgs6Image_ISaIvEEEEE[_ZN14ImageConverter7imageCbERKN5boost10shared_ptrIKN11sensor_msgs6Image_ISaIvEEEEE]+0x1ca): undefined reference to `cv::waitKey(int)' collect2: error: ld returned 1 exit status mycv/CMakeFiles/mycv_node.dir/build.make:131: recipe for target '/home/aleks/catkin_ws/devel/lib/mycv/mycv_node' failed make[2]: *** [/home/aleks/catkin_ws/devel/lib/mycv/mycv_node] Error 1 CMakeFiles/Makefile2:2209: recipe for target 'mycv/CMakeFiles/mycv_node.dir/all' failed make[1]: *** [mycv/CMakeFiles/mycv_node.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [100%] Linking CXX shared library /home/aleks/catkin_ws/devel/lib/python2.7/dist-packages/cv_bridge/boost/cv_bridge_boost.so [100%] Built target cv_bridge_boost Makefile:138: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make install -j4 -l4" failed

P.S. Please tell me how to make the text block above look better?

Issue while catkin_make. Getting started with Open_cv

Hello! Hello!

I follow this tutorial.

I'm on a step 6.k and I get the following error:

 Scanning dependencies of target mycv_node
[ 81%] Building CXX object mycv/CMakeFiles/mycv_node.dir/src/image_converter.cpp.o
[ 90%] Linking CXX executable /home/aleks/catkin_ws/devel/lib/mycv/mycv_node
CMakeFiles/mycv_node.dir/src/image_converter.cpp.o: In function `ImageConverter::ImageConverter()':
image_converter.cpp:(.text._ZN14ImageConverterC2Ev[_ZN14ImageConverterC5Ev]+0x5b0): undefined reference to `cv::namedWindow(cv::String const&, int)'
CMakeFiles/mycv_node.dir/src/image_converter.cpp.o: In function `ImageConverter::~ImageConverter()':
image_converter.cpp:(.text._ZN14ImageConverterD2Ev[_ZN14ImageConverterD5Ev]+0x35): undefined reference to `cv::destroyWindow(cv::String const&)'
CMakeFiles/mycv_node.dir/src/image_converter.cpp.o: In function `ImageConverter::imageCb(boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> const&)':
image_converter.cpp:(.text._ZN14ImageConverter7imageCbERKN5boost10shared_ptrIKN11sensor_msgs6Image_ISaIvEEEEE[_ZN14ImageConverter7imageCbERKN5boost10shared_ptrIKN11sensor_msgs6Image_ISaIvEEEEE]+0x180): undefined reference to `cv::imshow(cv::String const&, cv::_InputArray const&)'
image_converter.cpp:(.text._ZN14ImageConverter7imageCbERKN5boost10shared_ptrIKN11sensor_msgs6Image_ISaIvEEEEE[_ZN14ImageConverter7imageCbERKN5boost10shared_ptrIKN11sensor_msgs6Image_ISaIvEEEEE]+0x1ca): undefined reference to `cv::waitKey(int)'
collect2: error: ld returned 1 exit status
mycv/CMakeFiles/mycv_node.dir/build.make:131: recipe for target '/home/aleks/catkin_ws/devel/lib/mycv/mycv_node' failed
make[2]: *** [/home/aleks/catkin_ws/devel/lib/mycv/mycv_node] Error 1
CMakeFiles/Makefile2:2209: recipe for target 'mycv/CMakeFiles/mycv_node.dir/all' failed
make[1]: *** [mycv/CMakeFiles/mycv_node.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[100%] Linking CXX shared library /home/aleks/catkin_ws/devel/lib/python2.7/dist-packages/cv_bridge/boost/cv_bridge_boost.so
[100%] Built target cv_bridge_boost
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make install -j4 -l4" failed

P.S. Please tell me how to make the text block above look better?