Some examples for the use of boost::python
You can build and run this examples directly on your system.
You need the following libraries: Boost, Python (v3 minimum).
- Install dependencies, e.g. on Ubuntu:
sudo apt-get install build-essential cmake libboost-dev libboost-python-dev python3
- Download the source from GitHub with:
git clone --recursive https://github.com/arttet/boost-python-examples
Alternatively, if you already have the existing source tree use:
git clone https://github.com/arttet/boost-python-examples
git submodule update --init
- Run the following commands:
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ../
cmake --build .
ctest