Interfacing C++ and Python with pybind11 on ubuntu 16.04
Series
Guide
requirements:
pybind11 v2.3.dev0
python 3.5
install pytest
pip3 install pytest
compile
git clone https://github.com/pybind/pybind11.git
cd pybind11
mkdir build
cd build
cmake-gui ..
with options
PYBIND11_CPP_STANDARD /std:c++11 # default c++14
PYTHON_EXECUTABLE /usr/bin/python3.5
CMAKE_INSTALL_PREFIX /usr/local
install
make and install
make -j8
sudo make install
install to /usr/local/include/pybind11 with only include and /usr/local/share/cmake/pybind11
output
Install the project...
-- Install configuration: "MinSizeRel"
-- Installing: /usr/local/include/pybind11
-- Installing: /usr/local/include/pybind11/chrono.