Commit a54ec1b3 authored by Sergio Galindo's avatar Sergio Galindo

Added scripts for installing the corresponding modules' libraries.

parent edc45f44
# Install GNU modules
sudo apt-get install environment-modules
# Create directories for modules
mkdir -p $HOME/opt
# Download available modules
cd $HOME/opt
git clone git@gitlab.gmrv.es:common/modules-linux.git modules
# Create directory for source
mkdir -p $HOME/opt/src
# Make module available and set MODULEPATH
echo "source /etc/profile.d/modules.sh" >> $HOME/.bashrc
echo "export MODULEPATH=\$HOME/opt/modules:\$MODULEPATH" >> $HOME/.bashrc
\ No newline at end of file
# Download, compile and install cmake 3.3.1
cd $HOME/opt/src
wget http://www.cmake.org/files/v3.3/cmake-3.3.1.tar.gz
tar zxvf cmake-3.3.1.tar.gz
cd cmake-3.3.1
mkdir -p Release
cd Release
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$HOME/opt/cmake-3.3.1
make install
echo "module load cmake-3.3.1" >> $HOME/.bashrc
source $HOME/.bashrc
mkdir -p ~/opt/src && cd ~/opt/src
git clone https://github.com/RLovelett/eigen
cd eigen
git checkout 3.1.2
mkdir -p Release && cd Release
cmake .. -DCMAKE_INSTALL_PREFIX=~/opt/eigen-3.1.2 -DCMAKE_BUILD_TYPE=Release
make install
echo "module load eigen-3.1.2" >> $HOME/.bashrc
source $HOME/.bashrc
mkdir -p $HOME/opt/src && cd ~/opt/src
wget http://trac.openscenegraph.org/downloads/developer_releases/OpenSceneGraph-3.4.0.zip
unzip OpenSceneGraph-3.4.0.zip
mkdir OpenSceneGraph-3.4.0/Release && cd OpenSceneGraph-3.4.0/Release
cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/opt/OpenSceneGraph-3.4.0 -DCMAKE_BUILD_TYPE=Release
make install
#Fix for CMake scripts to work
cd $HOME/opt/OpenSceneGraph-3.4.0
ln -s lib64 lib
echo "module load OpenSceneGraph-3.4.0" >> $HOME/.bashrc
source $HOME/.bashrc
cd $HOME/opt
wget http://gmrv.es/~ptoharia/OpenSceneGraph-3.4.0-Qt5.5.tgz
tar zxvf OpenSceneGraph-3.4.0-Qt5.5.tgz
rm OpenSceneGraph-3.4.0-Qt5.5.tgz
echo "module load OpenSceneGraph-3.4.0-Qt5.5" >> $HOME/.bashrc
source $HOME/.bashrc
cd $HOME/opt
wget http://gmrv.es/~ptoharia/Qt-5.5.tgz
tar zxvf Qt-5.5.tgz
rm Qt-5.5.tgz
echo "module load Qt-5.5" >> $HOME/.bashrc
source $HOME/.bashrc
\ No newline at end of file
sudo apt-get install libturbojpeg libjpeg-turbo8-dev
mkdir -p ~/opt/src && cd ~/opt/src
wget http://netassist.dl.sourceforge.net/project/virtualgl/2.4.1/VirtualGL-2.4.1.tar.gz
tar zxvf VirtualGL-2.4.1.tar.gz
mkdir -p VirtualGL-2.4.1/Release && cd VirtualGL-2.4.1/Release
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=~/opt/VirtualGL-2.4.1 -DTJPEG_INCLUDE_DIR=/usr/include/ -DTJPEG_LIBRARY=/usr/lib/x86_64-linux-gnu/libturbojpeg.so.0
make -j4 install
echo "module load VirtualGL-2.4.1" >> $HOME/.bashrc
source $HOME/.bashrc
sudo apt-get install libqt5designer5 qttools5-dev
mkdir -p ~/opt/src && cd ~/opt/src
wget http://gmrv.es/~ptoharia/libQGLViewer-2.6.3.tar.gz
tar zxvf libQGLViewer-2.6.3.tar.gz
cd libQGLViewer-2.6.3
qmake
make -j4
INSTALL_ROOT=~/opt/libQGLViewer-2.6.3 make install
echo "module load libQGLViewer-2.6.3" >> $HOME/.bashrc
source $HOME/.bashrc
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment