dji-sdk / Guidance-SDK-ROS

The official ROS package of Guidance SDK for 32/64 bit Ubuntu and XU3
80 stars 87 forks source link

Problem in catkin_make the package #44

Open Himson opened 6 years ago

Himson commented 6 years ago

/usr/bin/ld: warning: libpcre.so.1, needed by //home/li/anaconda2/lib/libgobject-2.0.so.0, not found (try using -rpath or -rpath-link) CMakeFiles/guidanceNodeCalibration.dir/src/GuidanceNodeCalibration.cpp.o: In functionmy_callback(int, int, char*)': GuidanceNodeCalibration.cpp:(.text+0x9a7): undefined reference to cv::imshow(cv::String const&, cv::_InputArray const&)' GuidanceNodeCalibration.cpp:(.text+0xb9e): undefined reference tocv::imshow(cv::String const&, cv::_InputArray const&)' GuidanceNodeCalibration.cpp:(.text+0xddf): undefined reference to cv::imshow(cv::String const&, cv::_InputArray const&)' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference toTIFFReadRGBAStrip@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference to TIFFReadDirectory@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference toTIFFWriteEncodedStrip@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference to TIFFIsTiled@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference toTIFFWriteScanline@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference to TIFFGetField@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference toTIFFNumberOfStrips@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference to TIFFScanlineSize@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference toTIFFReadEncodedTile@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference to TIFFReadRGBATile@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference toTIFFClose@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference to TIFFClientOpen@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference toTIFFRGBAImageOK@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference to TIFFOpen@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference toTIFFReadEncodedStrip@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference to TIFFSetField@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference toTIFFSetWarningHandler@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference to TIFFSetErrorHandler@LIBTIFF_4.0' collect2: error: ld returned 1 exit status Guidance-SDK-ROS-master/CMakeFiles/guidanceNodeCalibration.dir/build.make:146: recipe for target '/home/li/catkin_ws/devel/lib/guidance/guidanceNodeCalibration' failed make[2]: *** [/home/li/catkin_ws/devel/lib/guidance/guidanceNodeCalibration] Error 1 CMakeFiles/Makefile2:357: recipe for target 'Guidance-SDK-ROS-master/CMakeFiles/guidanceNodeCalibration.dir/all' failed make[1]: *** [Guidance-SDK-ROS-master/CMakeFiles/guidanceNodeCalibration.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... /usr/bin/ld: warning: libpcre.so.1, needed by //home/li/anaconda2/lib/libgobject-2.0.so.0, not found (try using -rpath or -rpath-link) CMakeFiles/guidanceNode.dir/src/GuidanceNode.cpp.o: In functionmy_callback(int, int, char*)': GuidanceNode.cpp:(.text+0x1ce): undefined reference to cv::imshow(cv::String const&, cv::_InputArray const&)' GuidanceNode.cpp:(.text+0x382): undefined reference tocv::imshow(cv::String const&, cv::_InputArray const&)' GuidanceNode.cpp:(.text+0x580): undefined reference to cv::imshow(cv::String const&, cv::_InputArray const&)' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference toTIFFReadRGBAStrip@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference to TIFFReadDirectory@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference toTIFFWriteEncodedStrip@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference to TIFFIsTiled@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference toTIFFWriteScanline@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference to TIFFGetField@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference toTIFFNumberOfStrips@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference to TIFFScanlineSize@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference toTIFFReadEncodedTile@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference to TIFFReadRGBATile@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference toTIFFClose@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference to TIFFClientOpen@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference toTIFFRGBAImageOK@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference to TIFFOpen@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference toTIFFReadEncodedStrip@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference to TIFFSetField@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference toTIFFSetWarningHandler@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference to TIFFSetErrorHandler@LIBTIFF_4.0' collect2: error: ld returned 1 exit status Guidance-SDK-ROS-master/CMakeFiles/guidanceNode.dir/build.make:146: recipe for target '/home/li/catkin_ws/devel/lib/guidance/guidanceNode' failed make[2]: *** [/home/li/catkin_ws/devel/lib/guidance/guidanceNode] Error 1 CMakeFiles/Makefile2:394: recipe for target 'Guidance-SDK-ROS-master/CMakeFiles/guidanceNode.dir/all' failed make[1]: *** [Guidance-SDK-ROS-master/CMakeFiles/guidanceNode.dir/all] Error 2 /usr/bin/ld: warning: libpcre.so.1, needed by //home/li/anaconda2/lib/libgobject-2.0.so.0, not found (try using -rpath or -rpath-link) CMakeFiles/guidanceNodeTest.dir/src/GuidanceNodeTest.cpp.o: In functionleft_image_callback(boost::shared_ptr<sensormsgs::Image<std::allocator > const> const&)': GuidanceNodeTest.cpp:(.text+0xa9): undefined reference to cv::imshow(cv::String const&, cv::_InputArray const&)' CMakeFiles/guidanceNodeTest.dir/src/GuidanceNodeTest.cpp.o: In functionright_image_callback(boost::shared_ptr<sensormsgs::Image<std::allocator > const> const&)': GuidanceNodeTest.cpp:(.text+0x37a): undefined reference to cv::imshow(cv::String const&, cv::_InputArray const&)' CMakeFiles/guidanceNodeTest.dir/src/GuidanceNodeTest.cpp.o: In functiondepth_image_callback(boost::shared_ptr<sensormsgs::Image<std::allocator > const> const&)': GuidanceNodeTest.cpp:(.text+0x6d0): undefined reference to cv::imshow(cv::String const&, cv::_InputArray const&)' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference toTIFFReadRGBAStrip@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference to TIFFReadDirectory@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference toTIFFWriteEncodedStrip@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference to TIFFIsTiled@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference toTIFFWriteScanline@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference to TIFFGetField@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference toTIFFNumberOfStrips@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference to TIFFScanlineSize@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference toTIFFReadEncodedTile@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference to TIFFReadRGBATile@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference toTIFFClose@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference to TIFFClientOpen@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference toTIFFRGBAImageOK@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference to TIFFOpen@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference toTIFFReadEncodedStrip@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference to TIFFSetField@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference toTIFFSetWarningHandler@LIBTIFF_4.0' /opt/ros/lunar/lib/libopencv_imgcodecs3.so.3.3.1: undefined reference to TIFFSetErrorHandler@LIBTIFF_4.0' collect2: error: ld returned 1 exit status Guidance-SDK-ROS-master/CMakeFiles/guidanceNodeTest.dir/build.make:120: recipe for target '/home/li/catkin_ws/devel/lib/guidance/guidanceNodeTest' failed make[2]: *** [/home/li/catkin_ws/devel/lib/guidance/guidanceNodeTest] Error 1 CMakeFiles/Makefile2:655: recipe for target 'Guidance-SDK-ROS-master/CMakeFiles/guidanceNodeTest.dir/all' failed make[1]: *** [Guidance-SDK-ROS-master/CMakeFiles/guidanceNodeTest.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j4 -l4" failed Then when I try to rosrun guidance guidanceNode, [rosrun] Couldn't find executable named GuidanceNode below /home/li/catkin_ws/src/Guidance-SDK-ROS-master What would go wrong? Please help me. I will offer more information if needed.

pifordi commented 6 years ago

Did you solve the problem?

XLMaverick commented 5 years ago

I think you should check the version of opencv, the version of opencv in the Guidance- SDK-ROS/CMakeList.txt is Opencv 2, you should change the version which you intsall on your computer.