build on windows does not find ninja

446 views
Skip to first unread message

felix.g...@tracxpoint.com

unread,
Jan 28, 2018, 10:39:53 PM1/28/18
to Caffe Users
Hi

I am trying to install caffe on windows by following the instructions on GitHub.
I got to the stage where I need to run

scripts\build_win.cmd

I installed Ninja through conda but the build script cannot find it. I get the following error message:



The system cannot find the drive specified.
The system cannot find the drive specified.
INFO
: ============================================================
INFO
: Summary:
INFO
: ============================================================
INFO
: MSVC_VERSION               = 15
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             = 3
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

What am I doing wrong? 
I thought the build script would contain a field where I can supply the paath to Ninja but apparently it doesn't. Is theer some other place I need to configure?

Thanks!

f Gt

unread,
Feb 11, 2018, 8:58:08 AM2/11/18
to Caffe Users
If I am right, you probably don want to use Ninja with MSVC. Try to change the script to disable ninja, and use cmake instead.
Reply all
Reply to author
Forward
0 new messages