think-cell / think-cell-library

think-cell core library
https://www.think-cell.com/en/career/devblog/overview
Boost Software License 1.0
407 stars 52 forks source link

complement Linux build settings #6

Closed frederich closed 1 year ago

frederich commented 8 years ago

Please complement build instructions. I can create a pull request if you accept it?

build example on Linux (Ubuntu 14.04 64-bit LTS):

% apt-get install clang llvm libc++-dev libc++abi-dev git cmake
% sudo update-alternatives --config c++  // use option 2

% sudo update-alternatives --config c++
There are 3 choices for the alternative c++ (providing /usr/bin/c++).
  Selection    Path                     Priority   Status
------------------------------------------------------------
  0            /usr/bin/g++              20        auto mode
  1            /usr/bin/clang++          10        manual mode
* 2            /usr/bin/clang++-libc++   5         manual mode
  3            /usr/bin/g++              20        manual mode
Press enter to keep the current choice[*], or type selection number:

% wget  http://downloads.sourceforge.net/project/boost/boost/1.59.0/boost_1_59_0.tar.gz?r=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fboost%2Ffiles%2Fboost%2F1.59.0%2F&ts=1458123810&use_mirror=kent
% mv boost_1_59_0.tar.gz\?r\=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fboost%2Ffiles%2Fboost%2F1.59.0%2F boost_1_59_0.tar.gz
% tar xvfz boost_1_59_0.tar.gz
% cd boost_1_59_0
% ./bootstrap.sh
% ./b2

% git clone https://github.com/think-cell/range.git
% cd range
% mkdir build
% cd build
% cmake -DBOOST_ROOT=/path/to/boost_1_59_0 ../Library/Utilities/Range
% make
% ./example_range.example.cpp