https://github.com/Klimmasch/AEC
Tip revision: 96e9ae2336937469a8f1602c178ea5e0cb8564b6 authored by Lukas Klimmasch on 13 August 2021, 14:16:04 UTC
Merge branch 'alternateRearing' of https://github.com/Klimmasch/AEC into alternateRearing
Merge branch 'alternateRearing' of https://github.com/Klimmasch/AEC into alternateRearing
Tip revision: 96e9ae2
setupOESRenderer.sh
#!/bin/bash
#
# Script for setting up and compiling OpenEyeSim Renderer
#
echo ""
echo "OpenEyeSim Renderer Setup"
echo "============================"
# Export neccessary environment variables
echo -n "Exporting neccessary environment variables..."
TMP="$(echo $(pwd)/OpenSimInstall)"
export OPENSIM_INSTALL_DIR=$TMP
if [ -z ${LD_LIBRARY_PATH+x} ]
then
export LD_LIBRARY_PATH=$TMP/lib
echo "export LD_LIBRARY_PATH=$TMP/lib" >> ~/.bashrc
fi
echo "done."
# Compile MEX object
echo -n "Compiling MEX object..."
LOG="./err.log"
matlab -nodisplay -r "makeOpenEyeSim; quit" | tee -a $LOG
if [ $? -eq 0 ]
then
exit 0
else
echo "Error occured! See $LOG for details."
exit 1
fi