Skip to first unread message

黄瓜

unread,
Jul 25, 2018, 12:56:38 PM7/25/18
to Caffe Users
I follow the original tutorial of the installation with 
make all
but it didn't work properly.
Instead I use CMake, and here's what I've got

-- 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

I've tried every suggestion on github and stackoverflow. I've tried to reinstall opencv, boost, boost-python, protobuf. And I even tried different version. I always got the same result.
According to the log from the CMake, everything works just fine, and every dependencies are properly installed.

tob...@gmail.com

unread,
Jul 25, 2018, 1:07:47 PM7/25/18
to Caffe Users
Python interface is disabled or not all required dependencies found. Building without it...

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

黄瓜

unread,
Jul 25, 2018, 1:32:34 PM7/25/18
to Caffe Users

 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've used ccmake to set the path. Didn't work. 

在 2018年7月25日星期三 UTC+2下午7:07:47,tob...@gmail.com写道:

Genji Yuan

unread,
Sep 11, 2018, 8:45:59 AM9/11/18
to Caffe Users
I have encountered the same problem as you. How did you solve it?

在 2018年7月26日星期四 UTC+8上午12:56:38,黄瓜写道:

黄瓜

unread,
Sep 11, 2018, 6:28:42 PM9/11/18
to Caffe Users
I actually just use ccmake(cmake with gui) to change the directory of numpy and boost or reinstall numpy and boost. I can't remember how exactly did i solve the problem. But the problem was with those two dependencies. 

在 2018年9月11日星期二 UTC+2下午2:45:59,Genji Yuan写道:

黄瓜

unread,
Sep 11, 2018, 6:32:08 PM9/11/18
to Caffe Users
And I would suggest you also double check your python directory. Just like tob suggested

在 2018年9月11日星期二 UTC+2下午2:45:59,Genji Yuan写道:
I have encountered the same problem as you. How did you solve it?
Message has been deleted

Cecilia

unread,
Oct 17, 2018, 1:11:43 PM10/17/18
to Caffe Users
I'm having a similar issue, and I think in my case it has to do with cmake not finding boost_python.

I'm using the cmake command 

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 ..

The python_interpreter variable, suggested by tob, is not used by the project. Am I formatting it correctly?

The Boost_DEBUG flag gives a more verbose output. I've attached the output as a txt file.


cmake_output.txt
Reply all
Reply to author
Forward
0 new messages