Skip to content

Instantly share code, notes, and snippets.

@souljaboy764
Last active January 26, 2023 21:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save souljaboy764/738b76c5bb6b76a8eb93ba7ae63862c9 to your computer and use it in GitHub Desktop.
Save souljaboy764/738b76c5bb6b76a8eb93ba7ae63862c9 to your computer and use it in GitHub Desktop.
Script for installing libqi and libqi-python for Python3 with Boost 1.77 on Ubuntu 22.04
#!/bin/bash
cd /tmp
mkdir playground
cd playground
# Download and Install boost
wget https://boostorg.jfrog.io/artifactory/main/release/1.77.0/source/boost_1_77_0.zip
unzip boost_1_77_0.zip
cd boost_1_77_0
./bootstrap.sh --prefix=$HOME/.local/
./b2 install
# Download and install libqi fork
pip3 install qibuild
cd /tmp/playground
git clone https://github.com/aldebaran/libqi
cd libqi
mkdir build && cd build
cmake .. -DQI_WITH_TESTS=OFF -DBOOST_ROOT=$HOME/.local
make -j`nproc`
make install DESTDIR=$HOME/.local/
# Download and install libqi-python
cd /tmp/playground
git clone https://github.com/aldebaran/libqi-python
cd libqi-python/
mkdir build && cd build
cmake .. -DQI_DIR=$HOME/.local -DBOOST_ROOT=$HOME/.local
make -j`nproc`
make install DESTDIR=$HOME/.local/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment