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 for VS 2017 x64

cmd> build_v150_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

abhitronix avatar jpsacha avatar nehaljwani avatar willyd avatar

Watchers

 avatar  avatar

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.