make all
-- Boost version: 1.67.0
-- Found the following Boost libraries:
-- system
-- thread
-- filesystem
-- chrono
-- date_time
-- atomic
-- Found gflags (include: /usr/local/include, library: /usr/local/lib/libgflags.dylib)
-- Found glog (include: /usr/local/include, library: /usr/local/lib/libglog.dylib)
-- Found PROTOBUF Compiler: /usr/local/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.dylib)
-- Found LevelDB (include: /usr/local/include, library: /usr/local/lib/libleveldb.dylib)
-- Found Snappy (include: /usr/local/include, library: /usr/local/lib/libsnappy.dylib)
-- -- CUDA is disabled. Building without it...
-- OpenCV found (/usr/local/share/OpenCV)
-- Found vecLib as part of Accelerate.framework
-- NumPy ver. 1.14.5 found (include: /anaconda2/lib/python2.7/site-packages/numpy/core/include)
-- Could NOT find Boost
-- Python interface is disabled or not all required dependencies found. Building without it...
-- Detected Doxygen OUTPUT_DIRECTORY: ./doxygen/
--
-- ******************* Caffe Configuration Summary *******************
-- General:
-- Version : 1.0.0
-- Git : 1.0-117-g2a1c552b-dirty
-- System : Darwin
-- C++ compiler : /Library/Developer/CommandLineTools/usr/bin/c++
-- Release CXX flags : -O3 -DNDEBUG -fPIC -Wall -Wno-sign-compare -Wno-uninitialized
-- Debug CXX flags : -g -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 (vecLib)
-- Boost : Yes (ver. 1.67)
-- glog : Yes
-- gflags : Yes
-- protobuf : Yes (ver. 3.3.0)
-- lmdb : Yes (ver. 0.9.22)
-- LevelDB : Yes (ver. 1.20)
-- Snappy : Yes (ver. 1.1.7)
-- OpenCV : Yes (ver. 3.4.2)
-- CUDA : No
--
-- Documentaion:
-- Doxygen : /usr/local/bin/doxygen (1.8.14)
-- config_file : /Users/******/******/******/caffe/.Doxyfile
--
-- Install:
-- Install path : /Users/******/******/******/caffe/build/install
--
-- Configuring done
CMake Error at CMakeLists.txt:107 (add_dependencies):
The dependency target "pycaffe" of target "pytest" does not exist.
-- Generating done
-- Build files have been written to: /Users/******/******/******/caffe/build
You are trying to build pycaffe and pytest without a valid python interface. Try to open a terminal and type in:
Which python
And put the path this gives you as argument in the cmake for python_interpreter
Hope this helps
OpenCV_DIR */usr/local/share/OpenCV
PYTHON_EXECUTABLE */anaconda2/bin/python2.7
PYTHON_INCLUDE_DIR */anaconda2/include/python2.7
PYTHON_LIBRARY */anaconda2/lib/libpython2.7.dylib
I have encountered the same problem as you. How did you solve it?
cmake -DCMAKE_PREFIX_PATH=/Users/me/anaconda/envs/python37/ -D python_version=3 -DBOOST_ROOT=/usr/local/Cellar/boost/1.67.0_1/ -DBoost_DEBUG=1 -D python_interpreter=/Users/me/anaconda/envs/python37/bin/python ..