Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

Undefined reference to TIFFReadDirectory@LIBTIFF_4.0

$
0
0
Hi there, I am running opencv 2.4.8 compiled from source with the following options enabled in cmake: ``` cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_OPENGL=ON -D WITH_CUDA=ON -D ENABLE_FAST_MATH=1 -D CUDA_FAST_MATH=1 -D WITH_CUBLAS=1 -D WITH_OPENNI=ON -D WITH_OPENMP=ON -D WITH_OPENCL=ON -D WITH_OPENGL=ON -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D CUDA_GENERATION=Kepler -D WITH_TIFF=ON ../ ``` I am running two applications that run opencv simultaneously. One used the kinect Xbox camera while the other uses the kinect2 ToF camera. The xbox code runs fine but I find that the kinect2 does not compile as it fets linking errors with libtiff_4.0. Now, before I installed opencv with cuda option, I had both programs running smoothly with no error from opencv. But once I got opencv with cuda installed, I ran into issues with the linking during compilation for the kinect2 code. Here is the output for kinect2: ``` /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFIsTiled@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFOpen@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFReadEncodedStrip@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFSetField@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFWriteScanline@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFGetField@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFScanlineSize@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFSetWarningHandler@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFSetErrorHandler@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFReadEncodedTile@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFReadRGBATile@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFClose@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFRGBAImageOK@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFReadRGBAStrip@LIBTIFF_4.0' collect2: error: ld returned 1 exit status make[2]: *** [/home/lex/catkin_ws/devel/lib/kinect2_calibration/kinect2_calibration] Error 1 make[1]: *** [iai_kinect2/kinect2_calibration/CMakeFiles/kinect2_calibration.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFIsTiled@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFOpen@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFReadEncodedStrip@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFSetField@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFWriteScanline@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFGetField@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFScanlineSize@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFSetWarningHandler@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFSetErrorHandler@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFReadEncodedTile@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFReadRGBATile@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFClose@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFRGBAImageOK@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: undefined reference to `TIFFReadRGBAStrip@LIBTIFF_4.0' collect2: error: ld returned 1 exit status make[2]: *** [/home/lex/catkin_ws/devel/lib/kinect2_bridge/kinect2_bridge] Error 1 make[1]: *** [iai_kinect2/kinect2_bridge/CMakeFiles/kinect2_bridge.dir/all] Error 2 /usr/lib/libvtkIO.so.5.8.0: undefined reference to `TIFFReadDirectory@LIBTIFF_4.0' /usr/lib/libvtkIO.so.5.8.0: undefined reference to `TIFFIsTiled@LIBTIFF_4.0' /usr/lib/libvtkIO.so.5.8.0: undefined reference to `TIFFScanlineSize@LIBTIFF_4.0' /usr/lib/libvtkIO.so.5.8.0: undefined reference to `TIFFClose@LIBTIFF_4.0' /usr/lib/libvtkIO.so.5.8.0: undefined reference to `TIFFGetFieldDefaulted@LIBTIFF_4.0' /usr/lib/libvtkIO.so.5.8.0: undefined reference to `TIFFSetWarningHandler@LIBTIFF_4.0' /usr/lib/libvtkIO.so.5.8.0: undefined reference to `_TIFFmalloc@LIBTIFF_4.0' /usr/lib/libvtkIO.so.5.8.0: undefined reference to `TIFFDefaultStripSize@LIBTIFF_4.0' /usr/lib/libvtkIO.so.5.8.0: undefined reference to `TIFFReadTile@LIBTIFF_4.0' /usr/lib/libvtkIO.so.5.8.0: undefined reference to `TIFFWriteScanline@LIBTIFF_4.0' /usr/lib/libvtkIO.so.5.8.0: undefined reference to `_TIFFfree@LIBTIFF_4.0' /usr/lib/libvtkIO.so.5.8.0: undefined reference to `TIFFGetField@LIBTIFF_4.0' /usr/lib/libvtkIO.so.5.8.0: undefined reference to `TIFFClientOpen@LIBTIFF_4.0' /usr/lib/libvtkIO.so.5.8.0: undefined reference to `TIFFNumberOfDirectories@LIBTIFF_4.0' /usr/lib/libvtkIO.so.5.8.0: undefined reference to `TIFFOpen@LIBTIFF_4.0' /usr/lib/libvtkIO.so.5.8.0: undefined reference to `TIFFReadRGBAImage@LIBTIFF_4.0' /usr/lib/libvtkIO.so.5.8.0: undefined reference to `TIFFSetField@LIBTIFF_4.0' /usr/lib/libvtkIO.so.5.8.0: undefined reference to `TIFFSetErrorHandler@LIBTIFF_4.0' /usr/lib/libvtkIO.so.5.8.0: undefined reference to `TIFFSetDirectory@LIBTIFF_4.0' /usr/lib/libvtkIO.so.5.8.0: undefined reference to `TIFFReadScanline@LIBTIFF_4.0' /usr/lib/libvtkIO.so.5.8.0: undefined reference to `TIFFNumberOfTiles@LIBTIFF_4.0' collect2: error: ld returned 1 exit status make[2]: *** [/home/lex/catkin_ws/devel/lib/kinect2_viewer/kinect2_viewer] Error 1 make[1]: *** [iai_kinect2/kinect2_viewer/CMakeFiles/kinect2_viewer.dir/all] Error 2 make: *** [all] Error 2 ``` I have installed libtiff4-dev from the Ubuntu directory and `find /usr/lib | grep tiff*` gives me the following: ``` /usr/lib/x86_64-linux-gnu/libtiff.so.4.3.6 /usr/lib/x86_64-linux-gnu/libtiff.so.4 /usr/lib/x86_64-linux-gnu/pkgconfig/libtiff-4.pc /usr/lib/libtiff.so.5 /usr/lib/libtiff.so.5.2.2 /usr/lib/i386-linux-gnu/libtiff.so.5 /usr/lib/i386-linux-gnu/libtiff.so.5.2.0 /usr/lib/evince/4/backends/libtiffdocument.so ``` I have enabled the `WITH_TIFF` to be `ON` during installation, installed libtiff4-dev, downloaded libtiff4 source codes from libtiff website and going by everythjing I have gleaned on the internet since this problem arose, I should not be having this issue any more. Here's my **Ubuntu lsb release** details: `Linux 4.0.9-040009-generic x86_64 x86_64 x86_64 GNU/Linux` What could I possibly be missing? Would appreciate any help!

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>