willyd / caffe-builder

CMake build scripts to automate building the Caffe library and its dependencies.
BSD 2-Clause "Simplified" License
186 stars 117 forks source link

build_v120_x64.cmd failed #30

Open ilyes495 opened 7 years ago

ilyes495 commented 7 years ago

I tried to build the libraries as described in the instruction, but I got this error over and over. can someone please help with this. Thanks E:\Education\caffe-windows\caffe-builder\build_v120_x64>ninja [18/230] Performing build step for 'zlib_debug' FAILED: cmd.exe /C "cd /D E:\Education\caffe-windows\caffe-builder\build_v120_x64\packages\zlib\zlib_debug-prefix\src\zlib_debug-build && "C:\Program Files\CMak e\bin\cmake.exe" --build . --target install --config Debug && "C:\Program Files\CMake\bin\cmake.exe" -E touch E:/Education/caffe-windows/caffe-builder/build_v12 0_x64/packages/zlib/zlib_debug-prefix/src/zlib_debug-stamp/zlib_debug-build" [1/26] Generating zlib1rc.obj FAILED: cmd.exe /C "cd /D E:\Education\caffe-windows\caffe-builder\build_v120_x64\packages\zlib\zlib_debug-prefix\src\zlib_debug-build && C:\cygnus\cygwin-b20\H -i586-cygwin32\bin\windres.exe -D GCC_WINDRES -I E:/Education/caffe-windows/caffe-builder/build_v120_x64/packages/zlib/zlib_download-prefix/src/zlib_download -I E:/Education/caffe-windows/caffe-builder/build_v120_x64/packages/zlib/zlib_debug-prefix/src/zlibdebug-build -o E:/Education/caffe-windows/caffe-builder/build v120_x64/packages/zlib/zlib_debug-prefix/src/zlib_debug-build/zlib1rc.obj -i E:/Education/caffe-windows/caffe-builder/build_v120_x64/packages/zlib/zlib_download -prefix/src/zlib_download/win32/zlib1.rc" /cygnus/cygwin-b20/H-i586-cygwin32/bin/windres.exe: invalid option -- D Usage: /cygnus/cygwin-b20/H-i586-cygwin32/bin/windres.exe [options] [input-file] [output-file] Options: -i FILE, --input FILE Name input file -o FILE, --output FILE Name output file -I FORMAT, --input-format FORMAT Specify input format -O FORMAT, --output-format FORMAT Specify output format -F TARGET, --target TARGET Specify COFF target --preprocessor PROGRAM Program to use to preprocess rc file --include-dir DIR Include directory when preprocessing rc file --define SYM[=VAL] Define SYM when preprocessing rc file --language VAL Set language when reading rc file --help Print this help message --version Print version information FORMAT is one of rc, res, or coff, and is deduced from the file name extension if not specified. A single file name is an input file. No input-file is stdin, default rc. No output-file is stdout, default rc. /cygnus/cygwin-b20/H-i586-cygwin32/bin/windres.exe: supported targets: pe-i386 pei-i386 srec symbolsrec tekhex binary ihex ninja: build stopped: subcommand failed. [18/230] Performing download step (git clone) for 'leveldb_download' Cloning into 'leveldb_download'... Note: checking out 'f8699ba75e2cc2a2641c019eeab40149734d3390'.

You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example:

git checkout -b

HEAD is now at f8699ba... Added preprocessor if clause to support VS 2015 [18/230] Performing configure step for 'boost_download' Building Boost.Build engine

Bootstrapping is done. To build, run:

.\b2

To adjust configuration, edit 'project-config.jam'. Further information:

- Command line help:
.\b2 --help

- Getting started guide:
http://boost.org/more/getting_started/windows.html

- Boost.Build documentation:
http://www.boost.org/build/doc/html/index.html

ninja: build stopped: subcommand failed.

willyd commented 7 years ago

@ilyes495 Looks like cygwin is causing you some trouble. Can you tell me what are the value for:

CMAKE_RC_COMPILER CMAKE_CXX_COMPILER CMAKE_C_COMPILER

in your CMakeCache.txt?

maulakhan commented 7 years ago

not working at all. Error is thrown when executing 'build_v120_x64.cmd'.

The system path cannot be found 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.

suleymanov commented 5 years ago

@willyd I'm facing the same issue trying to build dependencies for caffe having native Python 3.6 and MS visual studio 2017 installed. I have "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.14.26428\bin\Hostx86\x86\cl.exe" set for both CMAKE_CXX_COMPILER and CMAKE_C_COMPILER and they are finely echoed in cmd. Nevertheless, both "build_v120_x64.cmd" and "build_v140_x64.cmd" fail for me. Is there anything I'm doing wrong?