-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbuild.sh
executable file
·19 lines (18 loc) · 1.28 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
cd src/utils/include/utils/
# Run make and capture any error
if ! make; then
# Print error message in red
echo -e "\e[31mCompilation failed due to link of gfortran. You should refer to https://askubuntu.com/questions/276892/cannot-find-lgfortran or use ubuntu20 instead\e[0m"
echo -e "\e[31mCompilation failed due to link of gfortran. You should refer to https://askubuntu.com/questions/276892/cannot-find-lgfortran or use ubuntu20 instead\e[0m"
echo -e "\e[31mCompilation failed due to link of gfortran. You should refer to https://askubuntu.com/questions/276892/cannot-find-lgfortran or use ubuntu20 instead\e[0m"
echo -e "\e[31mCompilation failed due to link of gfortran. You should refer to https://askubuntu.com/questions/276892/cannot-find-lgfortran or use ubuntu20 instead\e[0m"
echo -e "\e[31mCompilation failed due to link of gfortran. You should refer to https://askubuntu.com/questions/276892/cannot-find-lgfortran or use ubuntu20 instead\e[0m"
echo -e "\e[31mCompilation failed due to link of gfortran. You should refer to https://askubuntu.com/questions/276892/cannot-find-lgfortran or use ubuntu20 instead\e[0m"
exit 1
else
echo "Compilation succeeded."
fi
make clean &&sleep 1
cd ../../../../
catkin_make -j20 -DPYTHON_EXECUTABLE=/usr/bin/python3