12 Hours of trying to install Caffe, Please Help

204 views
Skip to first unread message

Joshua Smith

unread,
Mar 25, 2018, 12:59:36 AM3/25/18
to Caffe Users
Windows 10
Intel Core i7-7500U CPU @ 2.70GHz  2.90Ghz
NVIDIA Geforce 940MX
16 GB RAM


Here's my Current Error:

****
C:\Projects\caffe>scripts\build_win.cmd
The system cannot find the drive specified.
The system cannot find the drive specified.
INFO: ============================================================
INFO: Summary:
INFO: ============================================================
INFO: MSVC_VERSION               = 14
INFO: WITH_NINJA                 = 1
INFO: CMAKE_GENERATOR            = "Ninja"
INFO: CPU_ONLY                   = 0
INFO: CUDA_ARCH_NAME             = Auto
INFO: CMAKE_CONFIG               = Release
INFO: USE_NCCL                   = 0
INFO: CMAKE_BUILD_SHARED_LIBS    = 0
INFO: PYTHON_VERSION             = 2
INFO: BUILD_PYTHON               = 1
INFO: BUILD_PYTHON_LAYER         = 1
INFO: BUILD_MATLAB               = 0
INFO: PYTHON_EXE                 = "python"
INFO: RUN_TESTS                  = 0
INFO: RUN_LINT                   = 0
INFO: RUN_INSTALL                = 0
INFO: ============================================================
The system cannot find the path specified.
CMake Error: Error: generator : Ninja
Does not match the generator used previously: Visual Studio 15 2017
Either remove the CMakeCache.txt file and CMakeFiles directory or choose a different binary directory.
ERROR: Configure failed
****

I'm stuck on the last main step given on the Github page.

I do not have GCC installed or MinGW.

This is my typical error:

****
C:\Projects\caffe>scripts\build_win.cmd
The system cannot find the drive specified.
The system cannot find the drive specified.
INFO: ============================================================
INFO: Summary:
INFO: ============================================================
INFO: MSVC_VERSION               = 14
INFO: WITH_NINJA                 = 1
INFO: CMAKE_GENERATOR            = "Ninja"
INFO: CPU_ONLY                   = 0
INFO: CUDA_ARCH_NAME             = Auto
INFO: CMAKE_CONFIG               = Release
INFO: USE_NCCL                   = 0
INFO: CMAKE_BUILD_SHARED_LIBS    = 0
INFO: PYTHON_VERSION             = 2
INFO: BUILD_PYTHON               = 1
INFO: BUILD_PYTHON_LAYER         = 1
INFO: BUILD_MATLAB               = 0
INFO: PYTHON_EXE                 = "python"
INFO: RUN_TESTS                  = 0
INFO: RUN_LINT                   = 0
INFO: RUN_INSTALL                = 0
INFO: ============================================================
The system cannot find the path specified.
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:18 (project):
  No CMAKE_C_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.


CMake Error at CMakeLists.txt:18 (project):
  No CMAKE_CXX_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.


-- Configuring incomplete, errors occurred!
See also "C:/Projects/caffe/build/CMakeFiles/CMakeOutput.log".
See also "C:/Projects/caffe/build/CMakeFiles/CMakeError.log".
ERROR: Configure failed
****

When trying to use CMake to set CMAKE_C_COMPILER and CMAKE_CXX_COMPILER to cl.exe through my convoluted Visual Studio path (../../Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.13.26128/bin/Hostx64/x64/) I get an error saying I don't have CMakeLists.txt in there. When I manually add one, stuff happens, but it usually screws things up more. I don't even know which CMakeLists.txt it wants there (if it really even should be there) since there are so many automatically installed with Caffe.

I'd like to use pycaffe. I have Anaconda (Python 3.6 default) and an alternative Python 3.5 Environment installed.

Anything would be helpful.

Le Xuan Tuan Anh

unread,
Mar 29, 2018, 10:50:17 PM3/29/18
to Caffe Users
Try set  WITH_NINJA = 0
Unnecessary if you complie by MSVC
Reply all
Reply to author
Forward
0 new messages