I have written a bash script to automate cross-compiling an OpenCV program:
echo "Compiling started for: $1"
if [[ $1 == *.c ]]
then
gcc -ggdb
pkg-config --cflags opencv
-o basename $1 .c
$1 pkg-config --libs opencv
;
elif [[ $1 == *.cpp ]]
then
g++ -ggdb pkg-config --cflags opencv
-o basename $1 .cpp
$1 pkg-config --libs opencv
;
else
echo "Only c or c++ files"
fi
echo "Output: ${1%.*}"
But now I noticed that there does not exist a bashrc at the Angstrom distribution. So what can I do?
Asked by Amadeus
(101 rep)
Nov 3, 2012, 01:50 PM
Last activity: Mar 10, 2019, 04:17 AM
Last activity: Mar 10, 2019, 04:17 AM