1 Star 0 Fork 0

aczz / caffe-builder

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
BSD-2-Clause

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
Copyright (c) 2015, Guillaume Dumont All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

简介

暂无描述 展开 收起
BSD-2-Clause
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/aczz/caffe-builder.git
git@gitee.com:aczz/caffe-builder.git
aczz
caffe-builder
caffe-builder
master

搜索帮助

14c37bed 8189591 565d56ea 8189591