GithubHelp home page GithubHelp logo

mrpoudel / boost-cmake-ubuntu-linux Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 11 KB

This repository demonstrates how to set up a boost library in a Ubuntu machine and use the CMake as a build system generator.

License: MIT License

CMake 100.00%

boost-cmake-ubuntu-linux's Introduction

Boost-CMake-Ubuntu-Linux

This repository demonstrates how to set up a boost library in a Ubuntu machine and use CMake as a build system generator.

This repository demonstrates how to include and link boost library from cmake.

Prerequisite: I assume that you have already installed the latest boost library in your machine correctly. if not,

  1. download the latest boost library from : https://www.boost.org/users/history/version_1_67_0.html
  2. extract the boost library to the the desired location using: tar --bzip2 -xf /path/to/boost_1_67_0.tar.bz2
  3. go to the extracted directory: cd /path/to/boost_1_67_0
  4. ./bootstrap.sh --prefix=/usr/local
  5. sudo ./b2 install

After these steps boost library headers will be installed on /usr/local/include and compiled libraries will be installed on /usr/local/lib directory.

Example

This project shows two examples using boost library. The first one, header_only.cpp needs header only boost library and the second one, boost_program_option.cpp needs a pre-compiled libboost_program_options library to be linked.

Out-of-source build

create a directory called build in projects's root directory: mkdir build
navigate to the build directory : cd build
Turn ON ENABLE_EXAMPLES: ccmake ..
Make the project: make

boost-cmake-ubuntu-linux's People

Watchers

 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.