I'm trying to get caffe installed on a new Ubuntu 17.10 install. (i want to do a CPU only compile. )
I am trying to build caffe with make all command, but get the following error:
/usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5_hl.so: error adding symbols: File in wrong formatcollect2: error: ld returned 1 exit statussrc/caffe/CMakeFiles/caffe.dir/build.make:2741: recipe for target 'lib/libcaffe.so.1.0.0' failedmake[2]: *** [lib/libcaffe.so.1.0.0] Error 1CMakeFiles/Makefile2:267: recipe for target 'src/caffe/CMakeFiles/caffe.dir/all' failedmake[1]: *** [src/caffe/CMakeFiles/caffe.dir/all] Error 2Makefile:129: recipe for target 'all' failedmake: *** [all] Error 2
CPU_ONLY := 1
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serialLIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/hdf5/serial
# ---[ Includesset(${CMAKE_CXX_FLAGS} "-D_FORCE_INLINES ${CMAKE_CXX_FLAGS}")
BUILD_SHARED_LIBS:BOOL=ON
CMAKE_CXX_FLAGS:STRING=-fPIC
cmake ..
-- Boost version: 1.62.0-- Found the following Boost libraries:-- system-- thread-- filesystem-- chrono-- date_time-- atomic-- Found gflags (include: /usr/local/include, library: /usr/local/lib/libgflags.so)-- Found glog (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libglog.so)-- Found PROTOBUF Compiler: /usr/bin/protoc-- HDF5: Using hdf5 compiler wrapper to determine C configuration-- HDF5: Using hdf5 compiler wrapper to determine CXX configuration-- Found lmdb (include: /usr/local/include, library: /usr/local/lib/liblmdb.so)-- Found LevelDB (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libleveldb.so)-- Found Snappy (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libsnappy.so)-- -- CUDA is disabled. Building without it...-- OpenCV found (/usr/share/OpenCV)-- Found Atlas (include: /usr/include/x86_64-linux-gnu library: /usr/lib/x86_64-linux-gnu/libatlas.so lapack: /usr/lib/x86_64-linux-gnu/liblapack.soTraceback (most recent call last): File "<string>", line 1, in <module>ImportError: No module named numpy-- Could NOT find NumPy (missing: NUMPY_INCLUDE_DIR NUMPY_VERSION) (Required is at least version "1.7.1")-- Boost version: 1.62.0-- Found the following Boost libraries:-- python-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)-- Python interface is disabled or not all required dependencies found. Building without it...---- ******************* Caffe Configuration Summary *******************-- General:-- Version : 1.0.0-- Git : 1.0-87-g5c6a2905-dirty-- System : Linux-- C++ compiler : /usr/bin/c++-- Release CXX flags : -O3 -DNDEBUG -fPIC -fPIC -Wall -Wno-sign-compare -Wno-uninitialized-- Debug CXX flags : -g -fPIC -fPIC -Wall -Wno-sign-compare -Wno-uninitialized-- Build type : Release---- BUILD_SHARED_LIBS : ON-- BUILD_python : ON-- BUILD_matlab : OFF-- BUILD_docs : ON-- CPU_ONLY : ON-- USE_OPENCV : ON-- USE_LEVELDB : ON-- USE_LMDB : ON-- USE_NCCL : OFF-- ALLOW_LMDB_NOLOCK : OFF---- Dependencies:-- BLAS : Yes (Atlas)-- Boost : Yes (ver. 1.62)-- glog : Yes-- gflags : Yes-- protobuf : Yes (ver. 3.0.0)-- lmdb : Yes (ver. 0.9.70)-- LevelDB : Yes (ver. 1.20)-- Snappy : Yes (ver. ..)-- OpenCV : Yes (ver. 3.1.0)-- CUDA : No---- Documentaion:-- Doxygen : No-- config_file :---- Install:-- Install path : /home/caffe/build/install---- Configuring doneCMake Error at CMakeLists.txt:105 (add_dependencies): The dependency target "pycaffe" of target "pytest" does not exist.