Git Product home page Git Product logo

caffe-builder's Introduction

Caffe-Builder

Caffe-Builder is a set of CMake scripts (using CMake's ExternalProject) that automate the build and installation of popular C/C++ open source libraries on Windows using microsoft toolchain.

Using this project will (hopefully) make building, installing and using open source libraries on Windows much easier.

Build status

Building libraries

Get the Prerequisites

  • CMake (tested with 3.4 and 3.6)
  • Visual Studio (tested with 2013 and 2015 in 64 bit mode)
  • Git
  • Ninja

Make sure CMake, Git and Ninja are in your path.

Optional dependencies

  • CUDA (tested with 7.5) for GPU support in opencv and other libraries
  • Python (tested with 2.7.x) to build boost.python for example

Clone this repository:

cmd> cd %caffe_builder_root%
cmd> git clone https://github.com/willyd/caffe-builder.git caffe-builder

Building the libraries

Execute the following command to build the libraries

cmd> build_v120_x64.cmd

Alternatively you can execute one command after the other :: Create a build directory cmd> mkdir build && cd build :: Setup the VS compiler cmd> call "%VS120COMNTOOLS%....\VC\vcvarsall.bat" amd64 :: This will build all libraries that were configured to build with the BUILD_* options (see below) cmd> ninja :: Or alternatively cmd> ninja :: You can execute this command to list all possible targets cmd> ninja -t targets

The libraries will be installed in build\libraries. Alongside the libraries a series of Find*.cmake files will be installed and a caffe-builder-config.cmake file will be installed too. You can replace 120 with 140 in the commands above to build with VS 2015.

Using the built libraries in your project

cmd> cd myproject
cmd> mkdir build
cmd> cd build
cmd> cmake -G <generator name> -C %caffe_builder_root%\caffe-builder\build\libraries\caffe-build-config.cmake

caffe-builder's People

Contributors

jpsacha avatar nehaljwani avatar willyd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

caffe-builder's Issues

Build fails with missing 'pthread.h' in Caffe.vcxproj

I am building using VS12 on Windows 7 following instructions in readme (after correction for #18). It goes for a while fine till it stop on error in Caffe.vcxproj. The actual error message is in
Caffe-prefix\src\Caffe-build\CMakeFiles\CMakeError.log:

Determining if the include file pthread.h exists failed with the following output:

...

D:\build\Caffe-prefix\src\Caffe-build\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1): fatal error C1083: 
   Cannot open include file: 'pthread.h': No such file or directory [D:\build\Caffe-prefix\src\Caffe-build\CMakeFiles\CMakeTmp\cmTC_12ae6.vcxproj]

Look that I need to add pthreads library somewhere. What is the proper way to to it?

cmake error The source directory is a file, not a directory.

I apologize if this is the wrong place to ask this.
I successfully (I think) ran build_v140_x64.cmd and the necessary directories/files are generated.
I am trying to run cmake as stated in the readme, but it is failing.
I am pretty new to this, so I might be doing something wrong, but could you please help? Thanks!

C:\Projects\caffe\build>cmake -G Ninja -C C:\Projects\caffe-builder\build\libraries\caffe-builder-config.cmake
loading initial cache file C:\Projects\caffe-builder\build\libraries\caffe-builder-config.cmake
CMake Error: The source directory "C:/Projects/caffe-builder/build/libraries/caffe-builder-config.cmake" is a
file, not a directory.
Specify --help for usage, or press the help button on the CMake GUI.

Build with Ninja fails

Hi @willyd. I'm happy to see the upgrade of this project. I hope the related pull request to get Caffe built on Windows with CMake (BVLC/caffe#3990) is finally merged in BVLC's Caffe repo.

I've been testing it and I can get this compiled with Visual Studio by using the CMake GUI, but when I follow your instructions to compile this with CMake console commands and Ninja I get the following error:

-- verifying file...
     file='C:/LUI/Procrast/Software/caffe-builder-willyd/build/packages/boost/boost_download-prefix/src/boost_1_60_0.7z'
-- verifying file... warning: did not verify file - no URL_HASH specified?
-- extracting...
     src='C:/LUI/Procrast/Software/caffe-builder-willyd/build/packages/boost/boost_download-prefix/src/boost_1_60_0.7z'
     dst='C:/LUI/Procrast/Software/caffe-builder-willyd/build/packages/boost/boost_download-prefix/src/boost_download'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
ninja: build stopped: subcommand failed.

I don't know how to interpret this. Any clue?

Problem with LevelDB: Boost not found

After succesful CMake configuration, compiling the project, I get the following error:
[ 82%] Performing configure step for 'leveldb'
loading initial cache file C:/VFomin_folder/PISE_project/Caffe-willyd/build/leve
ldb-prefix/tmp/leveldb-cache.cmake
-- Looking for 64-bit boost libraries
CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.1/Modules/FindBoost.cm
ake:1182 (message):
Unable to find the requested Boost libraries.

Unable to find the Boost header files. Please set BOOST_ROOT to the root
directory containing Boost or BOOST_INCLUDEDIR to the directory containing
Boost's headers.
Call Stack (most recent call first):
CMakeLists.txt:50 (find_package)

CMake Error: The following variables are used in this project, but they are set
to NOTFOUND.

download prebuilt dependencies failed

after running build_win.cmd, the error shows download prebuild dependencies failed,.
CMake Error at cmake/WindowsDownloadPrebuiltDependencies.cmake:71 (file):
file DOWNLOAD HASH mismatch

Installing leveldb failed

I know it is not your fault. When I execute

pip install -r requirements.txt

in the python directory, I got error that leveldb failed to install. But I saw in the ./install/bin directory that I have:

  • leveldbutil.exe
  • leveldbutild.exe

So, maybe I do not need to use pip to install leveldb again? Care to comment on this?

Python error in unittest (C++ error)

Hello,
I am facing a low level error in test_solver.py (test_net.py pass):
[libprotobuf ERROR D:\Libraries2\caffe_x3\build\DownloadCache\protobuf\src\google\protobuf\text_format.cc:275] Error parsing text-format caffe.SolverParameter: 1:11: Expected eight hex digits up to 10ffff for \U escape sequence

-OPENCV3
-Python3.4

Have you any clues about that one?
Thanks again.

fatal error LNK1181: 无法打开输入文件“gflags_shared.lib”

Sys:
libraries_v140_x64_py35_1.1.0.tar.bz2

Executing caffe\scripts\build_win.cmd to build the caffe, fatal:

D:\code\machineLearning\caffe\build\ALL_BUILD.vcxproj”(默认目标) (1) ->
“D:\code\machineLearning\caffe\build\tools\caffe.bin.vcxproj”(默认目标) (5) ->
(Link 目标) ->
LINK : fatal error LNK1181: 无法打开输入文件“gflags_shared.lib” [D:\code\machineLearning\caffe\build\tools\caffe.bin.vcxproj]

“D:\code\machineLearning\caffe\build\ALL_BUILD.vcxproj”(默认目标) (1) ->
“D:\code\machineLearning\caffe\build\examples\classification.vcxproj”(默认目标) (7) ->
LINK : fatal error LNK1181: 无法打开输入文件“gflags_shared.lib” [D:\code\machineLearning\caffe\build\examples\classification.vcxproj]

“D:\code\machineLearning\caffe\build\ALL_BUILD.vcxproj”(默认目标) (1) ->
“D:\code\machineLearning\caffe\build\tools\compute_image_mean.vcxproj”(默认目标) (9) ->
LINK : fatal error LNK1181: 无法打开输入文件“gflags_shared.lib” [D:\code\machineLearning\caffe\build\tools\compute_image_mean.vcxproj]

“D:\code\machineLearning\caffe\build\ALL_BUILD.vcxproj”(默认目标) (1) ->
“D:\code\machineLearning\caffe\build\examples\convert_cifar_data.vcxproj”(默认目标) (11) ->
LINK : fatal error LNK1181: 无法打开输入文件“gflags_shared.lib” [D:\code\machineLearning\caffe\build\examples\convert_cifar_data.vcxproj]

“D:\code\machineLearning\caffe\build\ALL_BUILD.vcxproj”(默认目标) (1) ->
“D:\code\machineLearning\caffe\build\tools\convert_imageset.vcxproj”(默认目标) (13) ->
LINK : fatal error LNK1181: 无法打开输入文件“gflags_shared.lib” [D:\code\machineLearning\caffe\build\tools\convert_imageset.vcxproj]

“D:\code\machineLearning\caffe\build\ALL_BUILD.vcxproj”(默认目标) (1) ->
“D:\code\machineLearning\caffe\build\examples\convert_mnist_data.vcxproj”(默认目标) (15) ->
LINK : fatal error LNK1181: 无法打开输入文件“gflags_shared.lib” [D:\code\machineLearning\caffe\build\examples\convert_mnist_data.vcxproj]

“D:\code\machineLearning\caffe\build\ALL_BUILD.vcxproj”(默认目标) (1) ->
“D:\code\machineLearning\caffe\build\examples\convert_mnist_siamese_data.vcxproj”(默认目标) (17) ->
LINK : fatal error LNK1181: 无法打开输入文件“gflags_shared.lib” [D:\code\machineLearning\caffe\build\examples\convert_mnist_siamese_data.vcxproj]

“D:\code\machineLearning\caffe\build\ALL_BUILD.vcxproj”(默认目标) (1) ->
“D:\code\machineLearning\caffe\build\tools\device_query.vcxproj”(默认目标) (19) ->
LINK : fatal error LNK1181: 无法打开输入文件“gflags_shared.lib” [D:\code\machineLearning\caffe\build\tools\device_query.vcxproj]

“D:\code\machineLearning\caffe\build\ALL_BUILD.vcxproj”(默认目标) (1) ->
“D:\code\machineLearning\caffe\build\tools\extract_features.vcxproj”(默认目标) (21) ->
LINK : fatal error LNK1181: 无法打开输入文件“gflags_shared.lib” [D:\code\machineLearning\caffe\build\tools\extract_features.vcxproj]

“D:\code\machineLearning\caffe\build\ALL_BUILD.vcxproj”(默认目标) (1) ->
“D:\code\machineLearning\caffe\build\tools\finetune_net.vcxproj”(默认目标) (23) ->
LINK : fatal error LNK1181: 无法打开输入文件“gflags_shared.lib” [D:\code\machineLearning\caffe\build\tools\finetune_net.vcxproj]

“D:\code\machineLearning\caffe\build\ALL_BUILD.vcxproj”(默认目标) (1) ->
“D:\code\machineLearning\caffe\build\tools\net_speed_benchmark.vcxproj”(默认目标) (25) ->
LINK : fatal error LNK1181: 无法打开输入文件“gflags_shared.lib” [D:\code\machineLearning\caffe\build\tools\net_speed_benchmark.vcxproj]

“D:\code\machineLearning\caffe\build\ALL_BUILD.vcxproj”(默认目标) (1) ->
“D:\code\machineLearning\caffe\build\python\pycaffe.vcxproj”(默认目标) (27) ->
LINK : fatal error LNK1181: 无法打开输入文件“gflags_shared.lib” [D:\code\machineLearning\caffe\build\python\pycaffe.vcxproj]

“D:\code\machineLearning\caffe\build\ALL_BUILD.vcxproj”(默认目标) (1) ->
“D:\code\machineLearning\caffe\build\tools\test_net.vcxproj”(默认目标) (29) ->
LINK : fatal error LNK1181: 无法打开输入文件“gflags_shared.lib” [D:\code\machineLearning\caffe\build\tools\test_net.vcxproj]

“D:\code\machineLearning\caffe\build\ALL_BUILD.vcxproj”(默认目标) (1) ->
“D:\code\machineLearning\caffe\build\tools\train_net.vcxproj”(默认目标) (31) ->
LINK : fatal error LNK1181: 无法打开输入文件“gflags_shared.lib” [D:\code\machineLearning\caffe\build\tools\train_net.vcxproj]

“D:\code\machineLearning\caffe\build\ALL_BUILD.vcxproj”(默认目标) (1) ->
“D:\code\machineLearning\caffe\build\tools\upgrade_net_proto_binary.vcxproj”(默认目标) (33) ->
LINK : fatal error LNK1181: 无法打开输入文件“gflags_shared.lib” [D:\code\machineLearning\caffe\build\tools\upgrade_net_proto_binary.vcxproj]

“D:\code\machineLearning\caffe\build\ALL_BUILD.vcxproj”(默认目标) (1) ->
“D:\code\machineLearning\caffe\build\tools\upgrade_net_proto_text.vcxproj”(默认目标) (35) ->
LINK : fatal error LNK1181: 无法打开输入文件“gflags_shared.lib” [D:\code\machineLearning\caffe\build\tools\upgrade_net_proto_text.vcxproj]

“D:\code\machineLearning\caffe\build\ALL_BUILD.vcxproj”(默认目标) (1) ->
“D:\code\machineLearning\caffe\build\tools\upgrade_solver_proto_text.vcxproj”(默认目标) (37) ->
LINK : fatal error LNK1181: 无法打开输入文件“gflags_shared.lib” [D:\code\machineLearning\caffe\build\tools\upgrade_solver_proto_text.vcxproj]

9037 个警告
17 个错误

已用时间 00:52:19.22
ERROR: Build failed

Win32 support

Don't know, where to place it.
Certainly, issues is not the right place...

I built caffe with all dependencies on Win32.
Thank you for so nice project, it helps a lot =)

By the way, I have some win32 specific problems, which took some time to be resolved.
I wrote down some tips. Maybe, it will save someone's time.

https://gist.github.com/stoyanovd/c6931a14c4dd7c76b55f

Of course, it will be nice, if you could resolve these few problems on CMake level =)
If win32 support is not very old-fashioned thing...

nvcc.hpp(22): fatal error C1017:

When I use CUDA 9.1, I encountered the problem ".caffe/dependencies/libraries_v140_x64_py27_1.1.0/libraries/include/boost-1_61\boost/config/compiler/nvcc.hpp(22): fatal error C1017".
There is no this problem in CUDA 8.0.

examples?

I have compiled this and see there is an examples directory. Just to test it out, can you tell me how to run the simplest example? i.e. "caffe test model=???"
Edit: I got it working. I followed the directions from here: https://github.com/BVLC/caffe/tree/master/examples/cifar10
and whenever it said to use a .sh file, I opened it in a text editor and followed the steps by hand.

caffe doesn't compile

build\caffe-prefix\src\caffe-build\include\caffe\proto\caffe.pb.h(17): fatal error C1189: #error : This file was generated by an older version of protoc which is...

No ideas! :-), this file is auto generated at the build if understood well...

Library files structure

I wanted to build Caffe dependencies following this tutorial. I excluded caffe from the cmake build though because I wanted to manage the solution file manually.

After building into install, this is what I see.

image

The dependency libraries are not put into one place. Most are put into the lib directory. However, some are not. For example, opencv lib files are in x64\vc12\staticlib; protobuf files are in vsprojects\debug and vsprojects\release. In addition, there are lots of unnecessary folders/files in install as well.

Can we make the files structure cleaner for easier management?

Build script chooses gcc over VC if on path.

Hi, I accidentially had gcc installed (http://tdm-gcc.tdragon.net) - and this breaks the build script. [Output not pasted - ninja fails a subcommand on the variable "toolset"]

I assume it is a bug and not a feature that gcc is chosen as compiler if available, when running the build_v1*0_x64.cmd scripts?

Asbjørn

How to add support for python 3.6?

Hello @willyd and thank you for your already great job on Caffe windows.
Recently I thought of using pycaffe in Python3.6.
Is there any technical reason you didn't use python3.6 and instead opted for pyton3.5?
If I want to use python3.6 what should I do ?
Thanks in advance

python import caffe failed

I have successfully build everything you provided. Or I guess so, since the build process exited without error, and I got a bunch of files in ./install/bin. When I try to import caffe in python, I got something like:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "caffe\__init__.py", line 1, in <module>
    from .pycaffe import Net, SGDSolver
  File "caffe\pycaffe.py", line 13, in <module>
    from ._caffe import Net, SGDSolver
ImportError: DLL load failed: ?????????

The ??? is literally question marks.

I have added the ./install/bin into the sys.path variable. I cannot look into the _cafee.pyd file. So i don't know which DLL it is trying to load.

build_v120_x64.cmd failed

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.

Just a report

Just a report

Successfully build caffe using your fork on Windows 10 x64 and VS2013.

VS2010 don't work for me (too old compiler not all c++11 features supported).

On my hardware lenet_solver.prototxt takes:

CPU: Core 2 Duo E8500 ~16 min
GPU: GeForce GTX 460 ~4.5 min

Opening LMBD in convert_imageset check failed: mdb_status == 0 (112 vs. 0) 

Hi,

Has any one used convert_imageset with caffe-builder?

I want to create LMBD databases on Windows in C++.

I started out playing with convert_imageset and I can't seem to get it to work no matter what I do.

I am trying to use convert_imageset.cpp

db_lmdb.cpp fails at this line:

MDB_CHECK(mdb_env_open(mdb_env_, source.c_str(), flags, 0664));

F1003 08:49:07.526494 10752 db_lmdb.hpp:13] Check failed: mdb_status == 0 (112 vs. 0) �

I don't know if this is a Windows issue or I am calling it wrong. It gets as far as creating the directory, the data.mdb and lock.mdb. When it goes to open the LMDB it fails.

After I SET the Matlab_DIR in FindMatlabMex.cmake anthoer mistake happen, this mistake border me 5days plz help me

-- Found GFlags: /usr/include
-- Found gflags (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libgflags.so)
-- Found Glog: /usr/include
-- Found glog (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libglog.so)
-- Found Protobuf: /home/dgc/protobuf/lib/libprotobuf.so
-- Found PROTOBUF Compiler: /home/dgc/protobuf/bin/protoc
-- Found HDF5: /usr/lib/x86_64-linux-gnu/hdf5/serial/lib/libhdf5_hl.so;/usr/lib/x86_64-linux-gnu/hdf5/serial/lib/libhdf5.so;/usr/lib/x86_64-linux-gnu/libpthread.so;/usr/lib/x86_64-linux-gnu/libsz.so;/usr/lib/x86_64-linux-gnu/libz.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so (found version "1.8.16")
-- Found LMDB: /usr/include
-- Found lmdb (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/liblmdb.so)
-- Found LevelDB: /usr/include
-- Found LevelDB (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libleveldb.so)
-- Found Snappy: /usr/include
-- Found Snappy (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libsnappy.so)
-- CUDA detected: 8.0
-- Found cuDNN: ver. 5.1.10 found (include: /usr/local/cuda/include, library: /usr/local/cuda/lib64/libcudnn.so)
-- Added CUDA NVCC flags for: sm_61
-- OpenCV found (/usr/local/share/OpenCV)
-- Found Atlas: /usr/include
-- Found Atlas (include: /usr/include, library: /usr/lib/libatlas.so)
-- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.12", minimum required is "2.7")
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found suitable version "2.7.12", minimum required is "2.7")
-- Found NumPy: /usr/local/lib/python2.7/dist-packages/numpy/core/include (found suitable version "1.12.0", minimum required is "1.7.1")
-- NumPy ver. 1.12.0 found (include: /usr/local/lib/python2.7/dist-packages/numpy/core/include)
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- python
dirname: missing operand
Try 'dirname --help' for more information.
dirname: missing operand
Try 'dirname --help' for more information.
-- Found MatlabMex: /usr/local/MATLAB/R2014a/bin/mex
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.11")
-DCAFFE_VERSION=1.0.0-rc4;-I/home/dgc/new-caffe/build/include;-I/home/dgc/new-caffe/build)
)
CMake Error at cmake/Utils.cmake:357 (message):
Logic error. Need to update cmake script
Call Stack (most recent call first):
matlab/CMakeLists.txt:40 (caffe_parse_linker_libs)

CUDA 8.0

Your scripts have been configured to use CUDA7.5. Is there any changes we need to do to accommodate CUDA8.0 ? Can you please tell me how to do this if we need to change any script file.

compiler erro

F:\caffe-build\caffe-builder-master\build_v140_x64\ALL_BUILD.vcxproj”(default target) (1
) ->
“F:\caffe-build\caffe-builder-master\build_v140_x64\packages\boost\boost_debug.

vcxproj”(default target) (3) ->
(CustomBuild target) ->
libs\config\checks\architecture\arm.cpp(13): fatal error C1189: #error: "Not
ARM" [F:\caffe-build\caffe-builder-master\build_v140_x64\packages\boost\boost_
debug.vcxproj]
libs\config\checks\architecture\mips1.cpp(10): fatal error C1189: #error: "N
ot MIPS1" [F:\caffe-build\caffe-builder-master\build_v140_x64\packages\boost\bo
ost_debug.vcxproj]
libs\config\checks\architecture\power.cpp(13): fatal error C1189: #error: "N
ot PPC" [F:\caffe-build\caffe-builder-master\build_v140_x64\packages\boost\boos
t_debug.vcxproj]
libs\config\checks\architecture\sparc.cpp(10): fatal error C1189: #error: "N
ot SPARC" [F:\caffe-build\caffe-builder-master\build_v140_x64\packages\boost\bo
ost_debug.vcxproj]
libs\regex\build\has_icu_test.cpp(12): fatal error C1083: can not open inculde file: “
unicode/
uversion.h”: No such file or directory [F:\caffe-build\caffe-builder-master\bui

ld_v140_x64\packages\boost\boost_debug.vcxproj]
libs\locale\src..\build\has_iconv.cpp(8): fatal error C1083: can not open inculde file
: “icon
v.h”: No such file or directory [F:\caffe-build\caffe-builder-master\build_v140

_x64\packages\boost\boost_debug.vcxproj]
libs\locale\src..\build\has_iconv.cpp(8): fatal error C1083: can not open inculde file
: “icon
v.h”: No such file or directory [F:\caffe-build\caffe-builder-master\build_v140

_x64\packages\boost\boost_debug.vcxproj]
libs\locale\src..\build\has_icu_test.cpp(12): fatal error C1083: can not open inculde file: “
unicode/uversion.h”: No such file or directory [F:\caffe-build\caffe-builder-ma

ster\build_v140_x64\packages\boost\boost_debug.vcxproj]
libs\locale\src..\build\has_icu_test.cpp(12): fatal error C1083: can not open inculde file: “
unicode/uversion.h”: No such file or directory [F:\caffe-build\caffe-builder-ma

ster\build_v140_x64\packages\boost\boost_debug.vcxproj]
libs\log\config\visibility\visibility.cpp(10): fatal error C1189: #error: Vi
sibility option is only supported by gcc and compatible compilers [F:\caffe-bui
ld\caffe-builder-master\build_v140_x64\packages\boost\boost_debug.vcxproj]
libs\math\config\has_gcc_visibility.cpp(7): fatal error C1189: #error: "This
is a GCC specific test case". [F:\caffe-build\caffe-builder-master\build_v140_
x64\packages\boost\boost_debug.vcxproj]

“F:\caffe-build\caffe-builder-master\build_v140_x64\ALL_BUILD.vcxproj”(default target) (1
) ->
“F:\caffe-build\caffe-builder-master\build_v140_x64\packages\hdf5\hdf5_debug.vc

xproj”(default target) (17) ->
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.ta
rgets(171,5): error MSB6006: “cmd.exe” exit。 [F:\caffe-build\caffe
-builder-
master\build_v140_x64\packages\hdf5\hdf5_debug.vcxproj]

“F:\caffe-build\caffe-builder-master\build_v140_x64\ALL_BUILD.vcxproj”(default target) (1
) ->
“F:\caffe-build\caffe-builder-master\build_v140_x64\packages\hdf5\hdf5_release.

vcxproj”(default target) (19) ->
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.ta
rgets(171,5): error MSB6006: “cmd.exe” exit。 [F:\caffe-build\caffe
-builder-
master\build_v140_x64\packages\hdf5\hdf5_release.vcxproj]

1703 warning
13 erro

Build the newest Caffe with Multi-GPU support

Hi @willyd , thanks indeed for your caffe-builder work. It saved me a lot of time on making caffe works in my Windows PC.

I noticed that the newest version of BVLC/Caffe now supports Multi-GPU computation. I was wondering if it is possible to build it with your caffe-builder.

I modified line 5 in "caffe-builder/cmake/packages/Caffe.cmake" from

buildem_download_package(GIT_REPOSITORY "https://github.com/__willyd__/caffe.git"

to

buildem_download_package(GIT_REPOSITORY "https://github.com/__BLVC__/caffe.git"

However, it seems be not works. Could please kindly advise me about how to do it correctly?

Thanks!
Gucan

CMake Error: Could not create named generator Visual

I compile caffe windows branch. My environment is win10, cmake 3.7, vs2015, cuda8.0, no ninjia.

The compile script is:

set CMAKE_GENERATOR=Visual Studio 14 2015 Win64
set CMAKE_CONFIGURATION=Release
mkdir build
cd build
cmake -G%CMAKE_GENERATOR% -DBLAS=Open -DCMAKE_BUILD_TYPE=%CMAKE_CONFIGURATION% -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=%CAFFE_ROOT%\install -C %CAFFE_DEPENDENCIES%\caffe-builder-config.cmake ..
cmake --build . --config %CMAKE_CONFIGURATION%
cmake --build . --config %CMAKE_CONFIGURATION% --target install

But it reports the error as shown in the title.

Could you help? Thanks.

fatal link error: ZLIB_EXPORT_LIBRARIES.lib can not be found

Hi @willyd,

great work with this builder! :) I just wanted to try it out and unfortunately the build (repeatedly) fails for me with a the above linker error. It occurs when building HDF5. Do you have any hints on how to fix this? Can you reproduce it?

One quick important but unrelated question: you mention in the README.MD that this builds a static library on Windows. How did you fix the linking difficulties, i.e., that symbols are optimized out during the link process by the MSVC compiler? As to my knowledge, this has not been possible with the 'unmodified' caffe.

Best,
Christoph

Compiler Boost error

Hello,I run ‘build_v140.cmd’ in windows10,and occur an error`Performing configuration checks

- 32-bit                   : yes (cached)
- arm                      : no  (cached)
- mips1                    : no  (cached)
- power                    : no  (cached)
- sparc                    : no  (cached)
- x86                      : yes (cached)
- symlinks supported       : no  (cached)
- junctions supported      : yes (cached)
- hardlinks supported      : yes (cached)
- C++11 mutex              : yes (cached)
- has_icu builds           : no  (cached)

warning: Graph library does not contain MPI-based parallel components.
note: to enable them, add "using mpi ;" to your user-config.jam
- zlib : yes (cached)
- iconv (libc) : no (cached)
- iconv (separate) : no (cached)
- icu : no (cached)
- icu (lib64) : no (cached)
- compiler-supports-visibility : no (cached)
- message-compiler : yes (cached)
- compiler-supports-ssse3 : yes (cached)
- compiler-supports-avx2 : yes (cached)
- gcc visibility : no (cached)
- long double support : yes (cached)
warning: skipping optional Message Passing Interface (MPI) library.
note: to enable MPI support, add "using mpi ;" to user-config.jam.
note: to suppress this message, pass "--without-mpi" to bjam.
note: otherwise, you can safely ignore this message.
...found 1 target...
...updating 1 target...
config-cache.write D:\Deep_Learning\Win_Caffe\depends-builder\build_v140_x64\packages\boost\boost_release-prefix\src\boost_release-build\boost\bin.v2\project-cache.jam
...updated 1 target...

Component configuration:

- atomic                   : building
- chrono                   : building
- container                : building
- context                  : building
- coroutine                : building
- coroutine2               : building
- date_time                : building
- exception                : building
- filesystem               : building
- graph                    : building
- graph_parallel           : building
- iostreams                : building
- locale                   : building
- log                      : building
- math                     : building
- metaparse                : building
- mpi                      : building
- program_options          : building
- python                   : building
- random                   : building
- regex                    : building
- serialization            : building
- signals                  : building
- system                   : building
- test                     : building
- thread                   : building
- timer                    : building
- type_erasure             : building
- wave                     : building

...patience...
...patience...
...patience...
...patience...
...patience...
...patience...
...found 40030 targets...
...updating 46 targets...
failed to write output file 'D:\Deep_Learning\Win_Caffe\depends-builder\build_v140_x64\packages\boost\boost_release-prefix\src\boost_release-build\boost\bin.v2\libs\exception\build\msvc-14.0\release\address-model-64\link-static\threading-multi\clone_current_exception_non_intrusive.obj.rsp'!`
What should I do???
Please help me

boost minor problem: cannot find 'pyconfig.h'

...Caffe-builder\packages\boost\boost_download-prefix\src\boost_download\boost/python/detail/wrap_python.hpp(50): fatal error C1083: Cannot open include file: 'pyconfig.h': No such file or directory

Building with MSVC 2015 Update 3, and python = Anaconda .

I could not find out where the include path for boost is defined. Anaconda has a pyconfig.h. Obviously, boost just does not know where to look for it

How to make it support x86?

Hello,
I'm trying to compile an x86 version of caffe with CPU-ONLY on an old windows 7 machine.
I'm not familiar with CMAKE. But it seems that the scripts in this project work for 64-bit only.
So do you have any idea how can I compile a 32-bit version?
I'd appreciate that if you can offer me any help.
Thanks.

downloading protobuf fails with hash missmatch

Hi, Can this be a proxy issue:

-- verifying file...
file='C:/dev/CaffeAutomaticBuild/caffe-builder/build_v140_x64/download/protobuf-v3.1.0.tar.gz'
-- MD5 hash of
C:/dev/CaffeAutomaticBuild/caffe-builder/build_v140_x64/download/protobuf-v3.1.0.tar.gz
does not match expected value
expected: '14a532a7538551d5def317bfca41dace'
actual: '39d6a4fa549c0cce164aa3064b1492dc'
-- Hash mismatch, removing...
CMake Error at protobuf_download-stamp/download-protobuf_download.cmake:157 (message):
Each download failed!

LevelDB

For some reason the file leveldb-config.cmake can't be found even though it is there :/

caffe-builder finds already installed boost version

As reported in Caffe #15 by @lunzueta.

@willyd I've tested your Caffe version, but I'm getting a couple of build failures that I don't know how to fix. The first one is related to the VS project "leveldb". The compiler tells me:

2> Boost include path: (MY_PATH)/boost_1_56_0
2>

2> Could not find the following static Boost libraries:
2>

2> boost_date_time
2> boost_filesystem
2> boost_system
2>

2> No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the
2> directory containing Boost libraries or BOOST_ROOT to the location of
2> Boost.

The strange thing is that as far as I understand from your CMake builder, it's downloading Boost (version 1_58_0) to the folder "(MY_BUILD_PATH)\install\lib", which I guess should be used, but then it's not pointing at it. Nevertheless, those specific Boost libraries that the compiler is looking for aren't downloaded, but others which begin with "libboost_" instead of "boost_". I already had another version of Boost installed (version 1_56_0 mentioned by the compiler) and it seems the compiler is pointing at it, which I don't understand how, as I can't see any reference to it at the "leveldb" VS project preferences (not sure if this is something related to how CMake generates the VS project).

The other failure I get is related to the "OpenCV" VS project. As I'd like to use OpenCV 3.0 (instead of the included v2.4.10) I changed the download path in your OpenCV.cmake file. Then, when compiling I get the following error (which I don't get when compiling OpenCV 3.0 out of this Caffe version):

3>LINK : fatal error LNK1104: cannot open file 'python27_d.lib' [(MY_BUILD_PATH)\OpenCV-prefix\src\OpenCV-build\modules\python2\opencv_python2.vcxproj]

Strangely, this linking error also happens when compiling in "Release" mode (where I guess python27_d.lib shouldn't be linked at all).

Any hint of what to do to fix this?

32 bit Build for windows fail

Hi Willyd,

Thanks for your CAFFE windows builder. I builded the CAFFE in 64 bit Machine.Also
implemented the CAFFE to my Project but i used the following Requirements

  1. CUDA 6.5
  2. VS2013
  3. OpenCV3.0

I have an issue like this while i try to build the CAFFE for 32 bit.Will you suggest a solution to me.

  1. Error 141 error : invalid combination of type specifiers [E:\CAFFE_32\caffe-builder-master\build_32\Caffe-prefix\src\Caffe-build\src\caffe\caffe.vcxproj] e:\caffe_32\caffe-builder-master\build_32\install\include\H5public.h 152 1 Caffe
  2. Error 275 error : invalid combination of type specifiers [E:\CAFFE_32\caffe-builder-master\build_32\Caffe-prefix\src\Caffe-build\src\caffe\caffe.vcxproj] e:\caffe_32\caffe-builder-master\build_32\install\include\H5public.h 152 1 Caffe

"cmake --build" could not build entire project

I build caffe after you instruction:

cmake --build .

At the end of the compilation, I got the following errors:

"C:\caffe-builder\build\ALL_BUILD.vcxproj" (default target) (1) ->
"C:\caffe-builder\build\Boost.vcxproj" (default target) (2) ->
(CustomBuild target) ->
  libs\config\checks\architecture\arm.cpp(12): fatal error C1189: #error :  "No
t ARM" [C:\caffe-builder\build\Boost.vcxproj]
  libs\config\checks\architecture\mips1.cpp(10): fatal error C1189: #error :  "
Not MIPS1" [C:\caffe-builder\build\Boost.vcxproj]
  libs\config\checks\architecture\power.cpp(13): fatal error C1189: #error :  "
Not PPC" [C:\caffe-builder\build\Boost.vcxproj]
  libs\config\checks\architecture\sparc.cpp(10): fatal error C1189: #error :  "
Not SPARC" [C:\caffe-builder\build\Boost.vcxproj]
  libs\regex\build\has_icu_test.cpp(12): fatal error C1083: Cannot open include
 file: 'unicode/uversion.h': No such file or directory [C:\caffe-builder\build\
Boost.vcxproj]

    816 Warning(s)
    5 Error(s)

According to you instruction, they can be ignored. So, I assume I have finished the compilation successfully. However, I could not find a caffe.exe file, or any other file that could allow me to start working on the examples provided by caffe project.

However, if I execute:

msbuild caffe-builder.sln

I could get everything in .\install\bin.

protobuf compilation errors

Hi,
i have some protobuf similar errors in VS2012:
C:!DOWNLOAD\Caffe\WILLYD\build\DownloadCache\protobuf\gtest\include\gtest/gtest-printers.h(550): error C2977: std::tuple:
C:!DOWNLOAD\Caffe\WILLYD\build\DownloadCache\protobuf\gtest\include\gtest/internal/gtest-param-util-generated.h(4338): error C2977: std::tuple:

And i can't choose 64bit release, there is 32bit only in solution.

At the end of compilation:

-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- system
-- thread
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Using custom FindGFlags module
-- Using custom FindGlog module
-- Could NOT find PROTOBUF (missing: PROTOBUF_LIBRARY PROTOBUF_INCLUDE_DIR)
CMake Error at cmake/ProtoBuf.cmake:13 (message):
Could not find PROTOBUF Compiler
Call Stack (most recent call first):
cmake/Dependencies.cmake:27 (include)
CMakeLists.txt:28 (include)

Any ideas what's wrong here?

Support for dll

Thank you for the great effort. Everything builds like a charm. I was wondering about what additional effort is required to make shared libraries possible. I have to integrate Caffe with a huge .net project. The only way I can properly interop is by building a managed dll wrapper around it. I tried the following

  1. defined the usual __declspec(dllexport)/import based on CMAKE header CAFFE_EXPORTS.
  2. Added this definition to every Register Class and Instantiate class. This works without GPU. If GPU support is added the forward and backward GPU functions throw weird error saying dllimport is not allowed in definition, even though the macro is defined as dllexport in all those files.
    I was wondering if you have a working solution.
    Kind Regards,
    Rick

how to support cuda 9.0

I have a GTX1050 .only support cuda9.0,after run the build_win.cmd,
report error
Building NVCC (Device) object src/caffe/CMakeFiles/cuda_compile_1.dir/layers/Release/cuda_compile_1_generated_absval_
layer.cu.obj
nvcc fatal : Unsupported gpu architecture 'compute_90'

how can I do?

Support to make NVIDIA's Caffe fork (for NVIDIA DIGITS) work in Windows

@lukeyeager, I include you here because of your answer in this issue of DIGITS (NVIDIA/DIGITS#47). I'm not sure where on GitHub would be the best place to include this (here, @willyd's Caffe Windows port, NVIDIA's Caffe fork, DIGITS, or somewhere else), but I guess this could be a good place.

Based on @willyd's great Windows port and builder of Caffe (the most recent of the "unofficial Windows ports" cited in Caffe's Wiki: https://github.com/BVLC/caffe/wiki/Installation), I've done a first (unsuccessful) attempt to make NVIDIA's Caffe fork (https://github.com/NVIDIA/caffe) work in Windows too. I guess this is a necessary step to make NVIDIA DIGITS (https://github.com/NVIDIA/DIGITS) work in Windows, as I've seen that it has some extra files not included in this Caffe Windows port.

For that, in the Caffe.cmake file of Caffe-builder I replaced the repository from which Caffe is downloaded with that of NVIDIA's fork. Then, after compiling in VS2013-64-bit all the projects generated by Caffe-builder with NVIDIA's Caffe fork, the only one that failed was that of Caffe (obviously). So, I started checking what the compiler was reporting and based on that I did the following changes:

  1. Replaced the file caffe/include/caffe/util/io.hpp from NVIDIA's fork with that of Caffe's Windows port.
  2. Added caffe/include/caffe/util/msvc.hpp from Caffe's Windows port.
  3. Replaced caffe\src\caffe\layers\bnll_layer.cu with that of Caffe's Windows port.
  4. Updated caffe\src\caffe\common.cpp with some Windows-related code lines from that file of Caffe's Windows port.
  5. Replaced caffe\src\caffe\layers\contrastive_loss_layer.cpp with that of Caffe's Windows port.

After these changes I could solve some of the initial errors but I still get some that I don't know how to solve:

11>(MY_PATH)\DownloadCache\caffe\src\gtest/gtest.h(670): error C3855: 'std::tuple': template parameter '_Types' is incompatible with the declaration [(MY_PATH)\Caffe-prefix\src\Caffe-build\src\caffe\caffe.vcxproj]
11>(MY_PATH)\DownloadCache\caffe\src\gtest/gtest.h(670): error C2977: 'std::tuple' : too many template arguments [(MY_PATH)\Caffe-prefix\src\Caffe-build\src\caffe\caffe.vcxproj]
11>            C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\utility(75) : see declaration of 'std::tuple'
11>(MY_PATH)\DownloadCache\caffe\src\gtest/gtest.h(670): fatal error C1903: unable to recover from previous error(s); stopping compilation [(MY_PATH)\Caffe-prefix\src\Caffe-build\src\caffe\caffe.vcxproj]
11>    parallel.cpp
11>(MY_PATH)\DownloadCache\caffe\src\caffe\parallel.cpp(6): fatal error C1083: Cannot open include file: 'sys/ioctl.h': No such file or directory [(MY_PATH)\Caffe-prefix\src\Caffe-build\src\caffe\caffe.vcxproj]
11>    db.cpp
11>(MY_PATH)\DownloadCache\caffe\src\caffe\util\db.cpp(27): error C3861: 'mkdir': identifier not found [(MY_PATH)\Caffe-prefix\src\Caffe-build\src\caffe\caffe.vcxproj]
11>    math_functions.cpp
11>(MY_PATH)\DownloadCache\caffe\src\caffe\util\math_functions.cpp(186): warning C4244: 'argument' : conversion from 'const double' to 'const float', possible loss of data [(MY_PATH)\Caffe-prefix\src\Caffe-build\src\caffe\caffe.vcxproj]
11>(MY_PATH)\DownloadCache\caffe\src\caffe\util\math_functions.cpp(346): error C3861: '__builtin_popcount': identifier not found [(MY_PATH)\Caffe-prefix\src\Caffe-build\src\caffe\caffe.vcxproj]
11>(MY_PATH)\DownloadCache\caffe\src\caffe\util\math_functions.cpp(357): error C3861: '__builtin_popcountl': identifier not found [(MY_PATH)\Caffe-prefix\src\Caffe-build\src\caffe\caffe.vcxproj]

I'm not so experienced in porting so complex projects from Linux to Windows so that's why I got stuck, but my impression is that somebody more experienced could help to accomplish this goal. Can anybody help on this, please?

How to use caffe-builder with mingw?

I need to use mingw compiler to build caffe on windows.

I tried it like this:

C:\downloads\caffe_windows\caffe-builder\build>cmake -G "MinGW Makefiles" .
.
CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.4/Modules/CMakeMinGWFi
ndMake.cmake:22 (message):
  sh.exe was found in your PATH, here:


  C:/Users/user/Downloads/msys+7za+wget+svn+git+mercurial+cvs-rev13/msys/bin/s
h.exe


  For MinGW make to work correctly sh.exe must NOT be in your path.

  Run cmake from a shell that does not have sh.exe in your PATH.

  If you want to use a UNIX shell, then use MSYS Makefiles.

Call Stack (most recent call first):
  CMakeLists.txt:5 (project)


CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!

then I tried like this

C:\downloads\caffe_windows\caffe-builder\build>cmake -G "MSYS Makefiles" ..

-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- Check for working C compiler: C:/Qt5.3/Tools/mingw482_32/bin/gcc.exe
-- Check for working C compiler: C:/Qt5.3/Tools/mingw482_32/bin/gcc.exe -- works

-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Qt5.3/Tools/mingw482_32/bin/g++.exe
-- Check for working CXX compiler: C:/Qt5.3/Tools/mingw482_32/bin/g++.exe -- wor
ks
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Including pyleveldb spec.cmake
-- Adding package: boost
-- CPU count: 8
-- Adding target boost_install_include to ALL
-- Adding package: cudnn
CMake Warning at packages/cudnn/CMakeLists.txt:33 (message):
  CuDNN cannot is not supported in 32 bit


-- Adding package: gflags
-- Adding targets for: gflags
-- Adding package: glog
-- Adding targets for: glog
-- Adding package: ZLIB
-- Adding targets for: ZLIB
-- Adding package: hdf5
-- Adding targets for: HDF5
-- Adding package: leveldb
-- Adding targets for: leveldb
-- leveldb: Overriding BUILD_SHARED_LIBS with -DBUILD_SHARED_LIBS=OFF
-- Adding package: lmdb
-- Adding targets for: LMDB
-- LMDB: Overriding BUILD_SHARED_LIBS with -DBUILD_SHARED_LIBS=OFF
-- Adding package: openblas
-- Adding target install_openblas to ALL
-- Adding target install_openblas_mingw to ALL
-- Adding package: opencv
-- Build opencv components: calib3d;core;cudaarithm;cudabgsegm;cudacodec;cudafea
tures2d;cudafilters;cudaimgproc;cudalegacy;cudaobjdetect;cudaoptflow;cudastereo;
cudawarping;cudev;features2d;flann;highgui;imgcodecs;imgproc;ml;objdetect;photo;
shape;stitching;superres;video;videoio;videostab
-- Adding targets for: opencv
-- opencv: Overriding CMAKE_DEBUG_POSTFIX with -DCMAKE_DEBUG_POSTFIX=d
-- Adding package: protobuf
-- Adding targets for: protobuf
-- protobuf: Overriding BUILD_SHARED_LIBS with -DBUILD_SHARED_LIBS=OFF
-- protobuf: Overriding CMAKE_DEBUG_POSTFIX with -DCMAKE_DEBUG_POSTFIX=d
-- Adding package: pyleveldb
-- Adding targets for: pyleveldb
-- pyleveldb: Overriding CMAKE_DEBUG_POSTFIX with -DCMAKE_DEBUG_POSTFIX=d
-- Adding package: snappy
-- Adding targets for: snappy
-- snappy: Overriding CMAKE_DEBUG_POSTFIX with -DCMAKE_DEBUG_POSTFIX=d
-- Configuring done
-- Generating done
-- Build files have been written to: C:/downloads/caffe_windows/caffe-build
er/build

then build

C:\downloads\caffe_windows\caffe-builder\build>cmake --build .
Scanning dependencies of target boost_download
[  0%] Creating directories for 'boost_download'
[  0%] Performing download step (download, verify and extract) for 'boost_downlo
ad'
-- downloading...
     src='http://downloads.sourceforge.net/project/boost/boost/1.60.0/boost_1_60
_0.7z'
     dst='C:/downloads/caffe_windows/caffe-builder/build/packages/boost/boo
st_download-prefix/src/boost_1_60_0.7z'
     timeout='none'
-- [download 0% complete]
-- [download 1% complete]
...
-- [download 100% complete]
-- downloading... done
-- verifying file...
     file='C:/downloads/caffe_windows/caffe-builder/build/packages/boost/bo
ost_download-prefix/src/boost_1_60_0.7z'
-- verifying file... warning: did not verify file - no URL_HASH specified?
-- extracting...
     src='C:/downloads/caffe_windows/caffe-builder/build/packages/boost/boo
st_download-prefix/src/boost_1_60_0.7z'
     dst='C:/downloads/caffe_windows/caffe-builder/build/packages/boost/boo
st_download-prefix/src/boost_download'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[  1%] No patch step for 'boost_download'
[  1%] No update step for 'boost_download'
[  1%] Performing configure step for 'boost_download'
/bin/sh: bootstrap.bat: command not found
packages/boost/CMakeFiles/boost_download.dir/build.make:108: recipe for target `
packages/boost/boost_download-prefix/src/boost_download-stamp/boost_download-con
figure' failed
make[2]: *** [packages/boost/boost_download-prefix/src/boost_download-stamp/boos
t_download-configure] Error 127
CMakeFiles/Makefile2:201: recipe for target `packages/boost/CMakeFiles/boost_dow
nload.dir/all' failed
make[1]: *** [packages/boost/CMakeFiles/boost_download.dir/all] Error 2
Makefile:83: recipe for target `all' failed
make: *** [all] Error 2

How to fix this problem with boost?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.