BVLC / caffe

Caffe: a fast open framework for deep learning.
http://caffe.berkeleyvision.org/
Other
34.01k stars 18.71k forks source link

build_win.cmd error #6863

Open Salmonrice opened 4 years ago

Salmonrice commented 4 years ago

I got this error.

PS D:\pj\NN\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 = 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 C compiler identification is MSVC 19.0.24245.0 -- The CXX compiler identification is MSVC 19.0.24245.0 -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe -- broken CMake Error at C:/Program Files/CMake/share/cmake-3.16/Modules/CMakeTestCCompiler.cmake:60 (message): The C compiler

"C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: D:/pj/NN/caffe/scripts/build/CMakeFiles/CMakeTmp

Run Build Command(s):D:/pj/NN/ninja-win/ninja.exe cmTC_67393 && [1/2] Building C object CMakeFiles\cmTC_67393.dir\testCCompiler.c.obj
[2/2] Linking C executable cmTC_67393.exe
FAILED: cmTC_67393.exe
cmd.exe /C "cd . && "C:\Program Files\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_67393.dir --rc=rc --mt="C:\Program Files (x86)\Windows Kits\8.1\bin\x64\mt.exe" --manifests  -- C:\PROGRA~2\MICROS~1.0\VC\bin\amd64\link.exe /nologo CMakeFiles\cmTC_67393.dir\testCCompiler.c.obj  /out:cmTC_67393.exe /implib:cmTC_67393.lib /pdb:cmTC_67393.pdb /version:0.0  /machine:x64  /debug /INCREMENTAL /subsystem:console  kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
RC Pass 1: command "rc /fo CMakeFiles\cmTC_67393.dir/manifest.res CMakeFiles\cmTC_67393.dir/manifest.rc" failed (exit code 0) with the following output:
The system cannot find the file specified
ninja: build stopped: subcommand failed.

CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:18 (project)

-- Configuring incomplete, errors occurred! See also "D:/pj/NN/caffe/scripts/build/CMakeFiles/CMakeOutput.log". See also "D:/pj/NN/caffe/scripts/build/CMakeFiles/CMakeError.log". ERROR: Configure failed