BVLC / caffe

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

installing caffe with MSVC 2019 on windows 10 #6995

Open jbensabat opened 3 years ago

jbensabat commented 3 years ago

Important - read before submitting

Please read the guidelines for contributing before submitting this issue!

Please do not post installation, build, usage, or modeling questions, or other requests for help to Issues. Use the caffe-users list instead. This helps developers maintain a clear, uncluttered, and efficient view of the state of Caffe.

Issue summary

Steps to reproduce

Tried solutions

System configuration

Issue checklist

jbensabat commented 3 years ago

Hello I am trying to install caffe on MSVC 2019 the available script is for MSVC 2015 and I get the following msg

C:\software\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 = 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: ============================================================ CMake Error: Error: generator : Ninja Does not match the generator used previously: Visual Studio 16 2019 Either remove the CMakeCache.txt file and CMakeFiles directory or choose a different binary directory. ERROR: Configure failed

C:\software\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 = 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: ============================================================ CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake.

Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions.

-- The C compiler identification is MSVC 19.0.24245.0 -- The CXX compiler identification is MSVC 19.0.24245.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - failed -- 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:/miniconda3/Library/share/cmake-3.19/Modules/CMakeTestCCompiler.cmake:66 (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: C:/software/caffe/build/CMakeFiles/CMakeTmp

Run Build Command(s):C:/miniconda3/Library/bin/ninja.exe cmTC_5e807 && [1/2] Building C object CMakeFiles\cmTC_5e807.dir\testCCompiler.c.obj
[2/2] Linking C executable cmTC_5e807.exe
FAILED: cmTC_5e807.exe
cmd.exe /C "cd . && C:\miniconda3\Library\bin\cmake.exe -E vs_link_exe --intdir=CMakeFiles\cmTC_5e807.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests  -- C:\PROGRA~2\MICROS~1.0\VC\bin\amd64\link.exe /nologo CMakeFiles\cmTC_5e807.dir\testCCompiler.c.obj  /out:cmTC_5e807.exe /implib:cmTC_5e807.lib /pdb:cmTC_5e807.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_5e807.dir/manifest.res CMakeFiles\cmTC_5e807.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 "C:/software/caffe/build/CMakeFiles/CMakeOutput.log". See also "C:/software/caffe/build/CMakeFiles/CMakeError.log". ERROR: Configure failed

any help would be appreciated best jac

jybxie123 commented 3 years ago

I have the similar question, maybe there are some problems in the cl.exe? Have you solve this problem? Please tell me if you have any idea.

jbensabat commented 3 years ago

Hi I just dont have the time to struggle - I am using MLPACK instead best

jybxie123 commented 3 years ago

hi thank you, I use pytorch instead of caffe, too. haha, 

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2021年4月4日(星期天) 下午3:21 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [BVLC/caffe] installing caffe with MSVC 2019 on windows 10 (#6995)

Hi I just dont have the time to struggle - I am using MLPACK instead best

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.