-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
27 lines (26 loc) · 1.22 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
printf '#---------------------------------------------------------------------------------\n# ' cat >> $HOME/.bashrc
date | cat >> $HOME/.bashrc
echo "# Environnement variables for the graphic libraries <g2x> <g3x>
#---------------------------------------------------------------------------------
# tests if the config. is 32 or 64 bits
case \`uname -m\` in
i686) export PROCBIT=32b;;
x86_64 | ia64) export PROCBIT=64b;;
esac
# g2x librairies
export G2X_PATH=$PWD/libg2x
# g3x librairies
export G3X_PATH=$PWD/libg3x
# standard path fot the OpenGL libraries (gl, glu, glut) - if it doesn't work : whereismygl.sh
export lGL_PATH=/usr/lib
export iGL_PATH=/usr/include
# environnement variables for Makefile, with the good version (32b/64b) of <libg2x>
export libG2X='-lm -L\$(lGL_PATH) -lGL -lGLU -lglut -L\$(G2X_PATH) -lg2x.\$(PROCBIT)'
export incG2X='-I\$(G2X_PATH)/include -I\$(iGL_PATH)'
export libG3X='-lm -L\$(lGL_PATH) -lGL -lGLU -lglut -L\$(G3X_PATH) -lg3x.\$(PROCBIT)'
export incG3X='-I\$(G3X_PATH)/include -I\$(iGL_PATH)'
# export path for 'ld'
export LD_LIBRARY_PATH=\$G2X_PATH:\$G3X_PATH:\$LD_LIBRARY_PATH
#---------------------------------------------------------------------------------"| cat >> $HOME/.bashrc;
bash;