Skip to content

Instantly share code, notes, and snippets.

@JeanElsner
Created June 1, 2023 09:29
Show Gist options
  • Save JeanElsner/44a1d812187e51f863c0fdfbecb676c0 to your computer and use it in GitHub Desktop.
Save JeanElsner/44a1d812187e51f863c0fdfbecb676c0 to your computer and use it in GitHub Desktop.
libfranka install script for Ubuntu
#!/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