问题1:
Found the following Boost libraries:
python
dirname: missing operand
Try 'dirname --help' for more information.
dirname: missing operand
Try 'dirname --help' for more information.
CMake Error at cmake/Utils.cmake:357 (message):
Logic error. Need to update cmake script
Call Stack (most recent call first):
matlab/CMakeLists.txt:38 (caffe_parse_linker_libs)
I solved it by editing the file cmake/Utils.cmake and change
message(FATAL_ERROR "Logic error. Need to update cmake script")
to
message(WARNING "Logic error. Need to update cmake script")
参考:
https://groups.google.com/forum/#!topic/caffe-users/kam4s9RggTA
问题2:
/home/cuizhou/Downloads/opencv-3.3.0/build/lib/libopencv_imgcodecs.so.3.3.0: undefined reference to `TIFFReadDirectory@LIBTIFF_4.0'
/home/cuizhou/Downloads/opencv-3.3.0/build/lib/libopencv_imgcodecs.so.3.3.0: undefined reference to `TIFFWriteEncodedStrip@LIBTIFF_4.0'
/home/cuizhou/Downloads/opencv-3.3.0/build/lib/libopencv_imgcodecs.so.3.3.0: undefined reference to `TIFFIsTiled@LIBTIFF_4.0'
/home/cuizhou/Downloads/opencv-3.3.0/build/lib/libopencv_imgcodecs.so.3.3.0: undefined reference to `TIFFOpen@LIBTIFF_4.0'
/home/cuizhou/Downloads/opencv-3.3.0/build/lib/libopencv_imgcodecs.so.3.3.0: undefined reference to `TIFFReadEncodedStrip@LIBTIFF_4.0'
/home/cuizhou/Downloads/opencv-3.3.0/build/lib/libopencv_imgcodecs.so.3.3.0: undefined reference to `TIFFSetField@LIBTIFF_4.0'
/home/cuizhou/Downloads/opencv-3.3.0/build/lib/libopencv_imgcodecs.so.3.3.0: undefined reference to `TIFFWriteScanline@LIBTIFF_4.0'
/home/cuizhou/Downloads/opencv-3.3.0/build/lib/libopencv_imgcodecs.so.3.3.0: undefined reference to `TIFFGetField@LIBTIFF_4.0'
/home/cuizhou/Downloads/opencv-3.3.0/build/lib/libopencv_imgcodecs.so.3.3.0: undefined reference to `TIFFScanlineSize@LIBTIFF_4.0'
/home/cuizhou/Downloads/opencv-3.3.0/build/lib/libopencv_imgcodecs.so.3.3.0: undefined reference to `TIFFNumberOfStrips@LIBTIFF_4.0'
/home/cuizhou/Downloads/opencv-3.3.0/build/lib/libopencv_imgcodecs.so.3.3.0: undefined reference to `TIFFSetWarningHandler@LIBTIFF_4.0'
/home/cuizhou/Downloads/opencv-3.3.0/build/lib/libopencv_imgcodecs.so.3.3.0: undefined reference to `TIFFSetErrorHandler@LIBTIFF_4.0'
/home/cuizhou/Downloads/opencv-3.3.0/build/lib/libopencv_imgcodecs.so.3.3.0: undefined reference to `TIFFReadEncodedTile@LIBTIFF_4.0'
/home/cuizhou/Downloads/opencv-3.3.0/build/lib/libopencv_imgcodecs.so.3.3.0: undefined reference to `TIFFReadRGBATile@LIBTIFF_4.0'
/home/cuizhou/Downloads/opencv-3.3.0/build/lib/libopencv_imgcodecs.so.3.3.0: undefined reference to `TIFFClose@LIBTIFF_4.0'
/home/cuizhou/Downloads/opencv-3.3.0/build/lib/libopencv_imgcodecs.so.3.3.0: undefined reference to `TIFFRGBAImageOK@LIBTIFF_4.0'
/home/cuizhou/Downloads/opencv-3.3.0/build/lib/libopencv_imgcodecs.so.3.3.0: undefined reference to `TIFFReadRGBAStrip@LIBTIFF_4.0'
collect2: error: ld returned 1 exit status
tools/CMakeFiles/caffe.bin.dir/build.make:148: recipe for target 'tools/caffe' failed
make[2]: *** [tools/caffe] Error 1
CMakeFiles/Makefile2:657: recipe for target 'tools/CMakeFiles/caffe.bin.dir/all' failed
make[1]: *** [tools/CMakeFiles/caffe.bin.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
使用
sudo su
make all