caffe icon indicating copy to clipboard operation
caffe copied to clipboard

use ninja on windows 10, can't find rules.ninja

Open yangtetris opened this issue 9 years ago • 1 comments

I want to run build_win.cmd on windows 10, this is my configuration: 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 = 1 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

I have installed ninja by

conda config --add channels conda-forge conda install ninja --yes

but I get an error: It fails with the following output: Change Dir: E:/caffe/scripts/build/CMakeFiles/CMakeTmp Run Build Command:"C:/PROGRA~1/ANACON~1/Library/bin/ninja.exe" "cmTC_0eee0" ninja: error: build.ninja:30: loading 'rules.ninja': can't find rules.ninja include rules.ninja ^ near here CMake will not be able to correctly generate this project.

I used Visual Studio 2015 community, CUDA 8.0 and CUDNN v5, Anaconda 4.2.0(with python 3.5)

could you please help me solve this problem, thanks

yangtetris avatar Jul 22 '17 06:07 yangtetris

I solved this myself. Remove cmake and ninja and corresponding PATH. Then Install them by the conda command

yangtetris avatar Jul 23 '17 08:07 yangtetris