Last active
January 26, 2023 21:43
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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