Compiling Caffe on windows fails!

209 views
Skip to first unread message

Frank Darius

unread,
Aug 1, 2017, 8:42:07 AM8/1/17
to Caffe Users
Today I tried to compile the latest branch of caffe-windows. but I faced with these errors: 
G:\caffe_latest>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                 = 0
INFO
: CMAKE_GENERATOR            = "Visual Studio 14 2015 Win64"
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 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/x86_amd64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/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/x86_amd64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:31 (include):
  include could
not find load file:


    cmake
/Utils.cmake




CMake Error at CMakeLists.txt:32 (include):
  include could
not find load file:


    cmake
/Targets.cmake




CMake Error at CMakeLists.txt:33 (include):
  include could
not find load file:


    cmake
/Misc.cmake




CMake Error at CMakeLists.txt:34 (include):
  include could
not find load file:


    cmake
/Summary.cmake




CMake Error at CMakeLists.txt:35 (include):
  include could
not find load file:


    cmake
/ConfigGen.cmake




CMake Error at CMakeLists.txt:36 (include):
  include could
not find load file:


    cmake
/WindowsCreateLinkHeader.cmake




CMake Error at CMakeLists.txt:37 (include):
  include could
not find load file:


    cmake
/TargetResolvePrerequesites.cmake




CMake Error at CMakeLists.txt:40 (caffe_option):
 
Unknown CMake command "caffe_option".




-- Configuring incomplete, errors occurred!
See also "G:/caffe_latest/build/CMakeFiles/CMakeOutput.log".
ERROR
: Configure failed


G
:\caffe_latest>
Whats wrong? 

Sandareka Wickramanayake

unread,
Aug 1, 2017, 12:41:44 PM8/1/17
to Caffe Users
Hi, 

What are your Windows and CMake versions? 

BTW I also faced many issues while building Caffe in Windows 10. This video helped me a lot and I was able to build successfully. Hope it will help you as well. 

Frank Darius

unread,
Aug 2, 2017, 1:24:08 AM8/2/17
to Caffe Users
Thanks alot for your reply. 
I did'nt have any issues with compiling the windows version before. this just happened all of a sudden!  
I'm not sure but this actually happened just after I updated to the new 1703 build. (my 1607 RedStone was fine!). I guess this might have something to do with it! 
by the way I have Cmake 3.7.1 installed. 

Reply all
Reply to author
Forward
0 new messages