Windows10 Caffe install not accepting glog and protobuf

277 views
Skip to first unread message

Trevor Murray

unread,
May 4, 2017, 10:49:20 PM5/4/17
to Caffe Users
I've tried a lot of different approaches but cannot get caffe up an running on windows 10. My stumbling block seems to be Glog and protobuf which are installed but apparently not acceptible?

Any advice to resolve this issue would be greatly appreciated, here are my entire cmd logs, let me know if you want any of the other logs.


C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin>vcvars32.bat
C
:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin>conda config --add channels conda-forge
Warning: 'conda-forge' already in 'channels' list, moving to the top


C
:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin>conda config --add channels willyd
Warning: 'willyd' already in 'channels' list, moving to the top


C
:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin>conda install --yes cmake ninja numpy scipy protobuf==3.1.0 six scikit-image pyyaml pydotplus graphviz
Fetching package metadata .............
Solving package specifications: ..........


# All requested packages already installed.
# packages in environment at C:\ProgramData\Anaconda2:
#
cmake                    
3.8.0                         0    conda-forge
graphviz                  
2.38.0                        4    conda-forge
ninja                    
1.7.1                         0    willyd
numpy                    
1.12.1                   py27_0
protobuf                  
3.1.0                py27_vc9_1  [vc9]  willyd
pydotplus                
2.0.2                    py27_0    conda-forge
pyyaml                    
3.12                     py27_1    conda-forge
scikit
-image              0.13.0              np112py27_0    conda-forge
scipy                    
0.19.0              np112py27_0
six                      
1.10.0                   py27_1    conda-forge


C
:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin>cd\


C
:\>cd deeplearning


C
:\DeepLearning>cd caf


C
:\DeepLearning\caf>git clone https://github.com/BVLC/caffe.git
Cloning into 'caffe'...
remote
: Counting objects: 38595, done.
remote
: Compressing objects: 100% (27/27), done.
remote
: Total 38595 (delta 28), reused 18 (delta 18), pack-reused 38550
Receiving objects: 100% (38595/38595), 48.01 MiB | 5.32 MiB/s, done.
Resolving deltas: 100% (25915/25915), done.


C
:\DeepLearning\caf>cd caffe


C
:\DeepLearning\caf\caffe>git checkout windows
Switched to a new branch 'windows'
Branch windows set up to track remote branch windows from origin.


C
:\DeepLearning\caf\caffe>
C
:\DeepLearning\caf\caffe>cmake -G"Ninja" ^
More?       -DBLAS=mk1 ^
More?       -DCMAKE_BUILD_TYPE:STRING=%CMAKE_CONFIG% ^
More?       -DBUILD_SHARED_LIBS:BOOL=%CMAKE_BUILD_SHARED_LIBS% ^
More?       -DBUILD_python:BOOL=%BUILD_PYTHON% ^
More?       -DBUILD_python_layer:BOOL=%BUILD_PYTHON_LAYER% ^
More?       -DBUILD_matlab=ON
-- The C compiler identification is MSVC 19.0.24215.1
-- The CXX compiler identification is MSVC 19.0.24215.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning at CMakeLists.txt:73 (message):
 
Some tests (solvers) will fail when building as a shared library with MSVC




-- Found PythonInterp: C:/ProgramData/Anaconda2/python.exe (found suitable version "2.7.13", minimum required is "2.7")
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Boost version: 1.61.0
-- Found the following Boost libraries:
--   system
--   thread
--   filesystem
--   chrono
--   date_time
--   atomic
-- Found GFlags: C:/Users/Trev_Murray/.caffe/dependencies/libraries_v140_x64_py27_1.1.0/libraries/include
-- Found gflags  (include: C:/Users/Trev_Murray/.caffe/dependencies/libraries_v140_x64_py27_1.1.0/libraries/include, library: gflags_shared)
CMake Warning at cmake/Modules/FindGlog.cmake:21 (find_package):
 
Could not find a configuration file for package "glog" that is compatible
 
with requested version "".


 
The following configuration files were considered but not accepted:


    C
:/Users/Trev_Murray/.caffe/dependencies/libraries_v140_x64_py27_1.1.0/libraries/lib/cmake/glog/glog-config.cmake, version: 0.3.4 (64bit)


Call Stack (most recent call first):
  cmake
/External/glog.cmake:8 (find_package)
  cmake
/Dependencies.cmake:38 (include)
 
CMakeLists.txt:80 (include)




-- Could NOT find Glog (missing:  GLOG_LIBRARY)
CMake Error at cmake/ProtoBuf.cmake:6 (find_package):
 
Could not find a configuration file for package "Protobuf" that is
  compatible
with requested version "".


 
The following configuration files were considered but not accepted:


    C
:/Users/Trev_Murray/.caffe/dependencies/libraries_v140_x64_py27_1.1.0/libraries/cmake/protobuf-config.cmake, version: 3.1.0 (64bit)
    C
:/ProgramData/Anaconda2/Library/cmake/protobuf-config.cmake, version: 3.1.0 (64bit)


Call Stack (most recent call first):
  cmake
/Dependencies.cmake:48 (include)
 
CMakeLists.txt:80 (include)




-- Configuring incomplete, errors occurred!
See also "C:/DeepLearning/caf/caffe/CMakeFiles/CMakeOutput.log".
See also "C:/DeepLearning/caf/caffe/CMakeFiles/CMakeError.log".


Trevor Murray

unread,
May 4, 2017, 11:59:52 PM5/4/17
to Caffe Users
 
Running Windows 10, Cuda 8.0, Anaconda 2.7, mkl, VS2015, Ninja, cuDNN

Compiling for matlab 2016b and python 2.7 with CUDA 8.0 GPU support 
CMakeOutput.log
CMakeError.log

Yasmine Serdouk

unread,
Mar 5, 2018, 8:35:50 AM3/5/18
to Caffe Users
Hello Trevor Murray,

I know this post is a year old. But, I'm facing the exact same prolem. Have you find a solution to that ?

Thanks in advance
Reply all
Reply to author
Forward
0 new messages