Cmake编译caffe

来源:互联网 发布:数据库是按一定的结构 编辑:程序博客网 时间:2024/06/05 03:17

问题1:

Found the following Boost libraries:pythondirname: missing operandTry 'dirname --help' for more information.dirname: missing operandTry 'dirname --help' for more information.CMake Error at cmake/Utils.cmake:357 (message):  Logic error.  Need to update cmake scriptCall 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 statustools/CMakeFiles/caffe.bin.dir/build.make:148: recipe for target 'tools/caffe' failedmake[2]: *** [tools/caffe] Error 1CMakeFiles/Makefile2:657: recipe for target 'tools/CMakeFiles/caffe.bin.dir/all' failedmake[1]: *** [tools/CMakeFiles/caffe.bin.dir/all] Error 2Makefile:127: recipe for target 'all' failedmake: *** [all] Error 2

使用

sudo sumake all
原创粉丝点击