Installation error: undefined reference to `TIFFIsTiled@LIBTIFF_4.0'

11,725 views
Skip to first unread message

Daniel

unread,
Nov 27, 2014, 2:22:10 AM11/27/14
to caffe...@googlegroups.com
>> make all
bc: symbol lookup error: /home/u/anaconda/lib/libreadline.so.6: undefined symbol: PC

g++ .build_release/tools/convert_imageset.o .build_release/lib/libcaffe.a -o .build_release/tools/convert_imageset.bin -fPIC -DNDEBUG -O2 -DUSE_CUDNN -I/home/cuongpc/anaconda/include -I/home/cuongpc/anaconda/include/python2.7 -I/home/cuongpc/anaconda/lib/python2.7/site-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -I/usr/local/cuda/include -Wall -Wno-sign-compare -L/home/cuongpc/anaconda/lib -L/usr/local/lib -L/usr/lib -L/usr/local/cuda/lib64 -L/usr/local/cuda/lib -lcudart -lcublas -lcurand -lglog -lgflags -lprotobuf -lleveldb -lsnappy -llmdb -lboost_system -lhdf5_hl -lhdf5 -lopencv_core -lopencv_highgui -lopencv_imgproc -lpthread -lboost_thread -lcudnn -lcblas -latlas

//usr/lib/x86_64-linux-gnu/libx264.so.142: undefined reference to `__exp_finite@GLIBC_2.15'
//usr/lib/x86_64-linux-gnu/libx264.so.142: undefined reference to `__log10_finite@GLIBC_2.15'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_highgui.so: undefined reference to `TIFFIsTiled@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_highgui.so: undefined reference to `TIFFOpen@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libxvidcore.so.4: undefined reference to `__logf_finite@GLIBC_2.15'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_highgui.so: undefined reference to `TIFFReadEncodedStrip@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_highgui.so: undefined reference to `TIFFSetField@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_highgui.so: undefined reference to `TIFFWriteScanline@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libvorbis.so.0: undefined reference to `__acosf_finite@GLIBC_2.15'
//usr/lib/x86_64-linux-gnu/libx264.so.142: undefined reference to `__pow_finite@GLIBC_2.15'
//usr/lib/x86_64-linux-gnu/libx264.so.142: undefined reference to `__log2_finite@GLIBC_2.15'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_highgui.so: undefined reference to `TIFFGetField@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_highgui.so: undefined reference to `TIFFScanlineSize@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libxvidcore.so.4: undefined reference to `__log10f_finite@GLIBC_2.15'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_highgui.so: undefined reference to `TIFFSetWarningHandler@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_highgui.so: undefined reference to `TIFFSetErrorHandler@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_highgui.so: undefined reference to `TIFFReadEncodedTile@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libxvidcore.so.4: undefined reference to `__log_finite@GLIBC_2.15'
//usr/lib/x86_64-linux-gnu/libx264.so.142: undefined reference to `__powf_finite@GLIBC_2.15'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_highgui.so: undefined reference to `TIFFReadRGBATile@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_highgui.so: undefined reference to `TIFFClose@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libx264.so.142: undefined reference to `__log2f_finite@GLIBC_2.15'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_highgui.so: undefined reference to `TIFFRGBAImageOK@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libopencv_highgui.so: undefined reference to `TIFFReadRGBAStrip@LIBTIFF_4.0'
collect2: error: ld returned 1 exit status
make: *** [.build_release/tools/convert_imageset.bin] Error 1

I solved the "
GLIBC_2.15" follow the help in: https://github.com/BVLC/caffe/issues/985

But, please help me to solve the "
LIBTIFF_4.0" error.

Thank you

Wei Yang

unread,
Dec 3, 2014, 8:59:01 PM12/3/14
to caffe...@googlegroups.com
Hi Daniel,

I met the same error yesterday, and I solved the problem by rebuilding the OpenCV from the source according to this thread: http://answers.opencv.org/question/35642/libtiff_40-link-errors/


在 2014年11月27日星期四UTC+8下午3时22分10秒,Daniel写道:

Sebastián Ramírez

unread,
Jun 4, 2015, 6:19:19 PM6/4/15
to caffe...@googlegroups.com
You are using the LD_LIBRARY_PATH from Anaconda, if you don't use it, you won't have those errors.

But if you use the system LD_LIBRARY_PATH, you will probably have errors related to libhdf5_hl.so.9, you can solve those errors with the following instructions:

  • Go to the libraries directory:

    cd /usr/lib/x86_64-linux-gnu
    
  • Link the system version of HDF5 from 7 to 9:

    sudo ln -s libhdf5.so.7 libhdf5.so.9
    sudo ln -s libhdf5_hl.so.7 libhdf5_hl.so.9
    
  • Update the "Dynamic Linker":

    sudo ldconfig
    

By the way, I wrote a guide to install almost everything in Ubuntu 14.04 (from there I copied the above instructions), it's waiting for the pull request, but you can read it here: https://github.com/tiangolo/caffe/blob/ubuntu-tutorial-b/docs/install_apt2.md
Reply all
Reply to author
Forward
0 new messages