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

build_v120_x64.cmd failed #30

Open
ilyes495 opened this issue Oct 21, 2016 · 3 comments
Open

build_v120_x64.cmd failed #30

ilyes495 opened this issue Oct 21, 2016 · 3 comments

Comments

@ilyes495
Copy link

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/zlib_debug-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
Copy link
Owner

willyd commented Oct 21, 2016

@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
Copy link

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
Copy link

@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?

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

4 participants