forked from AlexRookie/AppliedRoboticsStudentInterface
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathenvironment.sh
25 lines (22 loc) · 831 Bytes
/
environment.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
#!/bin/bash
#THIS SCRIPT SHOULD RUN AFTER environment.sh contained in AppliedRoboticsEncironment folder
CATKIN_SHELL=bash
printf "* StudentInterface/environment.sh\n"
if [ -z "$AR_ROOT" ]
then
if [ -z "$AR_CATKIN_ROOT" ]
then
printf "\t* \e[31mERROR. Did you source the environment in AppliedRoboticsEnvironment?\e[0m\n"
else
source "$(dirname "${BASH_SOURCE[0]}" )/aliases"
printf "\t\t* \e[32m DONE!\n\e[0m"
fi
# Convert rpath to runpath
chrpath -c $AR_CATKIN_ROOT/devel/lib/libimage_elab_LIBRARY.so
chrpath -c $AR_CATKIN_ROOT/devel/lib/libimage_elab_nodelet.so
chrpath -c $AR_CATKIN_ROOT/devel/lib/image_elab/*
# Add student build folder shared library
LD_LIBRARY_PATH=$AR_ROOT/build:$LD_LIBRARY_PATH
else
printf "\t*\e[33m Seems that you already source this environment.\e[0m\n"
fi