# Installing depedencies sudo apt update sudo apt install libsdl2-dev git pkg-config automake make autoconf libtool -y # Downloading and building GL4D git clone https://github.com/noalien/GL4Dummies.git cd GL4Dummies make -f Makefile.autotools ./configure make # Installing GL4D sudo make install # Removing sourcecode cd .. rm -rf GL4Dummies # Fix for shared libraries (https://stackoverflow.com/a/9395355) sudo ldconfig echo "" echo "" echo "Add theses lines to your ~/.bashrc" echo "export PATH=\$PATH:\$HOME/local/bin" echo "export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:\$HOME/local/lib" echo "" echo "If you use Fish, add theses lines to your ~/.config/fish/config.fish" echo "set -gx PATH $HOME/local/bin $PATH" echo "set -gx LD_LIBRARY_PATH $HOME/local/lib $LD_LIBRARY_PATH"