Skip to content

Build on Ubuntu 22.04

Jakob Flierl edited this page Oct 20, 2022 · 13 revisions
sudo apt -y install libbullet-dev libassimp-dev liblua5.2-dev libluabind-dev  \
                    libqglviewer-headers libqglviewer-dev-qt5 freeglut3-dev libglew-dev \
                    libsdl2-dev git g++ libqscintilla2-qt5-dev help2man

Optional but recommended run-time dependencies:

sudo apt -y install openscad
sudo apt -y install povray povray-examples

For development Qt Creator is recommended:

sudo apt -y install qtcreator

Build and run BPP within Qt Creator:

git clone https://github.com/bullet-physics-playground/bpp
cd bpp
qtcreator bpp.pro

Build and run BPP from command-line:

git clone https://github.com/bullet-physics-playground/bpp
cd bpp
QT_SELECT=qt5 qmake CONFIG+=debug   # for bpp debug binary
QT_SELECT=qt5 qmake CONFIG+=release # for bpp release binary
make -j $(nproc)
release/bpp

Or build and install a Debian package:

sudo apt -qq -y install -qq devscripts equivs
mk-build-deps -i -s sudo -t "apt --yes --no-install-recommends"
TARGET=$(. /etc/lsb-release && echo $DISTRIB_CODENAME)
VERSION="$(git describe --tags | sed -e "s/^v//" -e "s/-/+git/")"
dch --create \
            --distribution ${TARGET} \
            --package bpp \
            --newversion ${VERSION}~${TARGET}1 \
            "Automatic build from Github"
dpkg-buildpackage -b -rfakeroot -us -uc
cd ..
sudo dpkg -i bpp*.deb
sudo apt -f install

and run BPP from the Ubuntu program launcher (windows key + search, type "bpp").