Skip to content

Setup Boost

Stéphane Gagnon edited this page Feb 26, 2024 · 1 revision

Default lib recommended

  • apt-get install libboost-dev
  • apt-get install libboost-python-dev

Build Bootstrap latest

Don't do the build inside a virtual environment

  • sudo apt install python3.xx-dev
  • sudo apt install g++
  • Download Boost https://www.boost.org/users/history/version_1_82_0.html
  • ./bootstrap.sh --prefix=/usr --with-python=python3.xx --with-libraries=python --with-libraries=thread --with-toolset=gcc
  • ./b2 stage -j4 threading=multi link=shared
  • sudo ./b2 install threading=multi link=shared
  • In /lib
    • sudo ln -sf /lib/libboost_python3xx.so libboost_python.so
Clone this wiki locally