-
Notifications
You must be signed in to change notification settings - Fork 18.7k
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
libopencv_highgui.so:undefined reference to `TIFFIsTiled@LIBTIFF_4.0' #1559
Comments
if you install libopencv using apt, install libtiff4 such as |
@rndmania thx, It solved my problem and I try another way by install opencv not by apt-get |
Can you explain the source of this problem? Opencv conflict with TIFF library or something else? |
how did you solve this problem?@luyifan , cause i just met this issue. |
@Lakung , here is the solution: http://www.voidcn.com/blog/cfyzcc/article/p-6253725.html |
rndmania: there is no libtiff4 available in current ubuntu 16.04 only libtiff5, I have 4.07 compiled from source but don't know where to set it so the compiler knows where it is (http://stackoverflow.com/questions/29272497/linking-error-with-libopencv-highgui-so-under-ubuntu-14-04-strange-result-wit) so where to put the -L/directoryof file -ltiff empty16: make all -j16 did not solve the problem for me: It goes bit further though? Below also the details for cmake and make all without any other parameters. make all -j16 cmake .. -- ******************* Caffe Configuration Summary ******************* -- BUILD_SHARED_LIBS : ON -- Dependencies: -- NVIDIA CUDA: -- Python: -- Documentaion: -- Install: -- Configuring done make all |
conda uninstall libtiff worked for me |
conda uninstall libtiff worked for me too. |
@juiceboxjoe good idea! it works for me. But why it it the problem of conda? |
I have a solution from here: lagadic/visp#109 These errors may appear after installation of anaconda. If you follow the default anaconda installation, you can see that anaconda has a set of libraries in ~/anaconda3/lib like libtiff.so, libjpeg.so, libxml2.so ... that are also installed in /usr/lib but with other versions. The result is that the corresponding system libraries in /usr/lib/x86_64-linux-gnu may be hidden by files in ~/anaconda3/lib. The solution I found to be able to build caffe with OpenCV is to remove anaconda3/bin folder from PATH. < export PATH="/home/user/anaconda3/bin:$PATH" #export PATH="/home/user/anaconda3/bin:$PATH" Then do a fresh build at caffe directory rm -r build |
|
I solve this porblem by add sudo |
after you have install anaconda, in your .bashrc you should have added this line: export PATH="/home/user/anaconda2/bin:$PATH" before you make -j8 ,you should comment this line first: #export PATH="/home/user/anaconda2/bin:$PATH" |
@abelguima Thanks your solution worked for me... |
conda uninstall libtiff works! |
conda uninstall libtiff works for me, too! |
conda uninstall libtiff works |
reinstall opencv can solve the problem in my side. |
@balajib197 |
rndmania: there is no libtiff4 available in current ubuntu 16.04 only libtiff5.
Because in my system Ubuntu16.04, libtiff5 is default. So I just |
I'm looking at a similar problem, and thought I'd chime in. There is no libtiff5. libtiff.so.5 is the libtiff 4.X ABI. They had to jump an ABI number because of a mistake in an earlier version. I'm seeing this exact same problem; Cmake is building against the system libtiff.so.5, but is linking against anaconda's libtiff.so.5. The ABI versions aren't that different, but the symbols in the system version include a suffix of @@LIBTIFF_4.0, and the anaconda version doesn't. |
Bump? |
by what? |
I solved the problem by manually compiling The error of
While, So, solutionThe way is to make Step 1: manually compile the
This will install Step 2: recompile
The critical in step 2 is that set Step 3: recompile
In
This will force
|
conda install --channel https://conda.anaconda.org/menpo opencv3 |
works for me
|
|
I noticed that there are some conflict with conda |
This solved the problem for me when I was trying to build and run cudnn samples. |
这是来自QQ邮箱的假期自动回复邮件。
您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
|
Today I use caffe and use the command make all
And then It have some errors.
The errors are as follow:g++ .build_debug/tools/compute_image_mean.o .build_debug/lib/libcaffe.a -o .build_debug/tools/compute_image_mean.bin -fPIC -DDEBUG -g -O0 -I/root/anaconda/include -I/root/anaconda/include/python2.7 -I/root/anaconda/lib/python2.7/site-packages/numpy/core/include -I/usr/local/include -I.build_debug/src -I./src -I./include -I/usr/local/cuda/include -Wall -Wno-sign-compare -L/root/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 -lcblas -latlas
/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/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/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/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/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/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_debug/tools/compute_image_mean.bin] Error 1
I use the ubuntu 14.04 LTS Desktop
and nvidia qudaro K4000
And I don't know how to solve this problem,
Could someone help me? Thanks a lot !!!
The text was updated successfully, but these errors were encountered: