Thanks Pits Warrior: https://www.cnblogs.com/whu-zeng/p/6874307.html
Today compiled Caffe, originally compiled countless times caffe, the basic pit can be solved. But this time it annoys me. have been uncertain.
The error message is this:
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8:undefined reference to ' [email protected]_4.0 '/usr/lib/ x86_64-linux-gnu/libopencv_highgui.so.2.4.8:undefined reference to ' [email protected]_4.0 '/usr/lib/x86_64- linux-gnu/libopencv_highgui.so.2.4.8:undefined reference to ' [email protected]_4.0 '/usr/lib/x86_64-linux-gnu /libopencv_highgui.so.2.4.8:undefined reference to ' [email protected]_4.0 '/usr/lib/x86_64-linux-gnu/ libopencv_highgui.so.2.4.8:undefined reference to ' [email protected]_4.0 '/USR/LIB/X86_64-LINUX-GNU/LIBOPENCV _highgui.so.2.4.8:undefined reference to ' [email protected]_4.0 '/usr/lib/x86_64-linux-gnu/libopencv_ highgui.so.2.4.8:undefined reference to ' [email protected]_4.0 '/usr/lib/x86_64-linux-gnu/libopencv_ highgui.so.2.4.8:undefined reference to ' [email protected]_4.0 '/usr/lib/x86_64-linux-gnu/libopencv_ highgui.so.2.4.8:undefined reference to ' [email protected]_4.0 '/usr/lib/x86_64-linux-gnu/libopencv_ Highgui.so.2.4.8:undefined reference to ' [email protected]_4.0 '/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8: Undefined reference to ' [email protected]_4.0 '/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8:undefined Reference to ' [email protected]_4.0 '/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8:undefined reference To ' [email protected]_4.0 '/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8:undefined reference to ' [email protected]_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 ' [email protected]_4.0 '/usr/lib/x86_64-linux-gnu/libopencv_ highgui.so.2.4.8:undefined reference to ' [email protected]_4.0 '/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.8:undefined reference to ' [email protected]_4.0 '/usr/lib/x86_64-linux-gnu/libopencv_ highgui.so.2.4.8:undefined reference to ' [email protected]_4.0 '/usr/lib/x86_64-linux-gnu/libopencv_ highgui.so.2.4.8:undefined reference to ' [email protected]_4.0 '/usr/lib/x86_64-linux-
Feeling is a package without:
Online said to pack this bag:
sudo apt-get install Libtiff4-dev
It's no use pretending to be ready.
Toss a half-day, simply uninstall, and then put anaconda2 below the libtiff.so removed.
2064 sudo apt-get remove Libtiff4-dev
2065 Locate libtiff.so
2066 mv/home/zenggq/anaconda2/lib/libtiff.so* ~/zenggq/bak/
Compile again, he succeeds, and the libtiff.so is created automatically under Anaconda2.
/home/zenggq/anaconda2/lib/libtiff.so
/usr/lib/x86_64-linux-gnu/libtiff.so
/usr/lib/x86_64-linux-gnu/libtiff.so.5
/usr/lib/x86_64-linux-gnu/libtiff.so.5.2.0
The estimate is a conflict. What the hell is the problem? Since I pits, I'll share it with you.
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9:undefined reference [email protected]_4.0 '