Problem to build Cafee on windows 10

2,828 views
Skip to first unread message

Sheng Lu

unread,
Feb 5, 2017, 4:57:24 PM2/5/17
to Caffe Users
do not understand why could not find url for MSVC version, do I need to set some path?

>build_win.cmd
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: CMAKE_CONFIG               = Release
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: ============================================================
CMake Error at cmake/WindowsDownloadPrebuiltDependencies.cmake:29 (message):
  Could not find url for MSVC version = 1900 and Python version =
  {PYTHON_VERSION_MAJOR}.6.
Call Stack (most recent call first):
  CMakeLists.txt:74 (include)

Thank you for your help.

Guillaume Dumont

unread,
Feb 6, 2017, 8:39:12 AM2/6/17
to Caffe Users
It seems that you have python 3.6. Only 2.7 and 3.5 are supported. The error message contained a typo. I will fix this.

R.Wolf

unread,
Feb 6, 2017, 8:15:14 PM2/6/17
to Caffe Users
This seems pretty similar to the error that I got. Please help!

D:\Projects\ninja>D:\Projects\caffe\scripts\build_win.cmd
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: CMAKE_CONFIG               = Release
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: ============================================================
'"D:\Software\VisualStudio\Common7\Tools\..\..\VC\vcvarsall.bat"' is not recognized as an internal or external command,
operable program or batch file.
CMake Error: CMake was unable to find a build program corresponding to "Ninja".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
ERROR: Configure failed

On Sunday, February 5, 2017 at 4:57:24 PM UTC-5, Sheng Lu wrote:

Sheng Lu

unread,
Feb 8, 2017, 10:14:14 AM2/8/17
to Caffe Users
Hi Wolf, 
I can find CMake_C_Compiler and CMake_CXX_Compiler, you need to set up the environment using set command.
something like CMAKE_C_COMPILER=xxxxx\cl.exe.

R.Wolf

unread,
Feb 8, 2017, 10:51:02 AM2/8/17
to Caffe Users
Thanks for replying!
I've already solved this problem by creating a C++ project with Visual Studio 2015. VS2015 asked me to install the C++ compiler and then it worked. But i got another problem even after this step. i couldn't find the caffe executable file under the building directory and i couldn't start the Digits server. Do you have these kind problems?

Thanks!

Sheng Lu

unread,
Feb 8, 2017, 11:25:17 AM2/8/17
to Caffe Users
No, I do not have the problem. but I have a different one.
D:\user\xxx\DL\caffe\scripts>build_win.cmd
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: CMAKE_CONFIG               = Release
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: ============================================================
-- Removing file because sha1 does not match.
-- Downloading file dependencies
CMake Error at cmake/WindowsDownloadPrebuiltDependencies.cmake:54 (file):
  file DOWNLOAD HASH mismatch

    for file: [D:/user/xxx/DL/caffe/scripts/build/libraries_v140_x64_py35_1.0.1.tar.bz2]
      expected hash: [1f55dac54aeab7ae3a1cda145ca272dea606bdf9]
        actual hash: [da39a3ee5e6b4b0d3255bfef95601890afd80709]
             status: [7;"Couldn't connect to server"]

Call Stack (most recent call first):
  CMakeLists.txt:74 (include)


-- Extracting dependencies
CMake Error at cmake/WindowsDownloadPrebuiltDependencies.cmake:72 (message):
  Something went wrong while dowloading dependencies could not open
  caffe-builder-config.cmake
Call Stack (most recent call first):
  CMakeLists.txt:74 (include)


-- Configuring incomplete, errors occurred!
See also "D:/user/Slu/DL/caffe/scripts/build/CMakeFiles/CMakeOutput.log".
ERROR: Configure failed

Sheng Lu

unread,
Feb 8, 2017, 11:27:18 AM2/8/17
to Caffe Users
Thanks, Guillaume. the problem is resolved after I installed python 3.5.
However, I got another problem.
Could you take a look?
Thanks.

D:\user\xxx\DL\caffe\scripts>build_win.cmd
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: CMAKE_CONFIG               = Release
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: ============================================================
-- Removing file because sha1 does not match.
-- Downloading file dependencies
CMake Error at cmake/WindowsDownloadPrebuiltDependencies.cmake:54 (file):
  file DOWNLOAD HASH mismatch

    for file: [D:/user/xxx/DL/caffe/scripts/build/libraries_v140_x64_py35_1.0.1.tar.bz2]
      expected hash: [1f55dac54aeab7ae3a1cda145ca272dea606bdf9]
        actual hash: [da39a3ee5e6b4b0d3255bfef95601890afd80709]
             status: [7;"Couldn't connect to server"]

Call Stack (most recent call first):
  CMakeLists.txt:74 (include)


-- Extracting dependencies
CMake Error at cmake/WindowsDownloadPrebuiltDependencies.cmake:72 (message):
  Something went wrong while dowloading dependencies could not open
  caffe-builder-config.cmake
Call Stack (most recent call first):
  CMakeLists.txt:74 (include)


-- Configuring incomplete, errors occurred!
See also "D:/user/xxx/DL/caffe/scripts/build/CMakeFiles/CMakeOutput.log".
ERROR: Configure failed
Reply all
Reply to author
Forward
0 new messages