Created
June 1, 2023 09:29
-
-
Save JeanElsner/44a1d812187e51f863c0fdfbecb676c0 to your computer and use it in GitHub Desktop.
libfranka install script for Ubuntu
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 | |
LIBFRANKA_VER="0.9.1" | |
sudo apt install build-essential cmake git libpoco-dev libeigen3-dev | |
# For legacy versions, use my patched repository | |
repo="https://github.com/frankaemika/libfranka.git" | |
if [[ "$LIBFRANKA_VER" == "0.7.1" || "$LIBFRANKA_VER" == "0.8.0" ]]; then | |
repo="https://github.com/JeanElsner/libfranka.git" | |
fi | |
sudo apt remove "*libfranka*" | |
git clone --recursive $repo | |
cd libfranka | |
git checkout $LIBFRANKA_VER | |
git submodule update | |
mkdir build && cd build | |
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=OFF -DBUILD_EXAMPLES=OFF .. | |
cmake --build . | |
cpack -G DEB | |
sudo dpkg -i libfranka*.deb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment