Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with scripts\build_win.cmd #6563

Closed
SriSk87 opened this issue Oct 11, 2018 · 4 comments
Closed

Issue with scripts\build_win.cmd #6563

SriSk87 opened this issue Oct 11, 2018 · 4 comments

Comments

@SriSk87
Copy link

SriSk87 commented Oct 11, 2018

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: ============================================================
-- Selecting Windows SDK version to target Windows 10.0.15063.
-- The C compiler identification is MSVC 19.0.24210.0
-- The CXX compiler identification is MSVC 19.0.24210.0
-- 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
-- Found PythonInterp: C:/Users/Srikanth1.R/AppData/Local/Continuum/anaconda3/python.exe (found suitable version "3.6.5", minimum required is "2.7")
CMake Error at cmake/WindowsDownloadPrebuiltDependencies.cmake:40 (message):
Could not find url for MSVC version = 1900 and Python version = 3.6.
Call Stack (most recent call first):
CMakeLists.txt:77 (include)

-- Configuring incomplete, errors occurred!
See also "C:/Users/Srikanth1.R/caffe/build/CMakeFiles/CMakeOutput.log".
ERROR: Configure failed

According to what I understand there is some sort of error with python 3.6. Is it that this is built only for versions till python 3.5 ? Please suggest me the solution

@willyd
Copy link
Contributor

willyd commented Oct 11, 2018

You are correct. I have built caffe's dependencies for python 2.7 and 3.5. So the automatic download of those dependencies fails since you have 3.6.

You can build your own version of the dependencies with python 3.6 using caffe-builder.

@Coderx7 had success at compiling the dependencies for python 3.6 as documented here: willyd/caffe-builder#46

@willyd willyd closed this as completed Oct 11, 2018
@Coderx7
Copy link
Contributor

Coderx7 commented Oct 11, 2018

In case you want the prebuilt libraries for python3.6 , here it is; libraries_v140_x64_py36_1.1.0.tar.bz2. note that you need to alter several sections in WindowsDownloadPrebuiltDependencies.cmake ,download_prebuilt_dependencies.py and needless to say the build_win.cmd config file. if you open those, you know what to do. its straight forward.
if you want, you can use my branch for this as well.

@ItsSyed
Copy link

ItsSyed commented Nov 3, 2018

I'm getting almost the same error on Windows-10.
here is Error.
`C:\Windows\System32\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 = 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: ============================================================

'"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools....\VC\vcvarsall.bat"' is not
recognized as an internal or external command,

operable program or batch file.

'cmake' is not recognized as an internal or external command,

operable program or batch file.

ERROR: Configure failed_`

Need Help

@mjodhaniSN
Copy link

In case you want the prebuilt libraries for python3.6 , here it is; libraries_v140_x64_py36_1.1.0.tar.bz2. note that you need to alter several sections in WindowsDownloadPrebuiltDependencies.cmake ,download_prebuilt_dependencies.py and needless to say the build_win.cmd config file. if you open those, you know what to do. its straight forward.
if you want, you can use my branch for this as well.

Hi @Coderx7,

Using your dependency prebuilt(for python 3.6) for building caffe, takes hdf5 debug library instead of release version even the library pre-built is available for debug and release both in tar, because CMake/hdf5-target-release.cmake file is not available. Due to that the caffe build does not work on all the windows machines as it copies the hdf5*_D.dll but caffe does not copy the dependent debug dlls from the Visual Studio.
I copied the generated hdf5-target-release.cmake file in Users/.caffe/dependencies/libraries_v140_x64_py36_1.1.0/CMake directory and generated caffe build. This has resolved dependency on debug dlls.

It will be helpful if you can upload the updated tar.bz2 at the same url so that manual copying can be avoided.

Thanks,
Maulik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants