This repository has been archived on 2022-03-25. You can view files and clone it, but cannot push or open issues or pull requests.
manjaroConfiguration/installgl4D.sh

26 lines
802 B
Bash
Raw Normal View History

2021-11-08 20:18:48 +01:00
# On installe les dépendances
sudo apt update
2021-11-11 23:41:25 +01:00
sudo apt install libsdl2-dev git pkg-config automake make autoconf libtool -y
2021-11-08 20:18:48 +01:00
# On télécharge et build GL4D
git clone https://github.com/noalien/GL4Dummies.git
cd GL4Dummies
make -f Makefile.autotools
./configure
make
# On installe GL4D
sudo make install
# On supprime le code source
cd ..
rm -rf GL4Dummies
2021-11-08 20:23:21 +01:00
# Fix pour les librairies partagées (https://stackoverflow.com/a/9395355)
sudo ldconfig
2021-11-11 22:54:07 +01:00
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"