|
@@ -1,19 +1,18 @@
|
|
|
+#qt_com=$(arch)
|
|
|
+qt_com=`arch`
|
|
|
+if [ $qt_com = "aarch64" ];then
|
|
|
+qtmake="/usr/lib/aarch64-linux-gnu/qt5/bin/qmake"
|
|
|
+else
|
|
|
+qtmake="/opt/Qt5.10.1/5.10.1/gcc_64/bin/qmake"
|
|
|
+fi
|
|
|
|
|
|
-#qtmake="/opt/Qt5.10.1/5.10.1/gcc_64/bin/qmake"
|
|
|
-#qtmake=/usr/bin/qmake
|
|
|
-#qtmake="/usr/lib/aarch64-linux-gnu/qt5/bin/qmake"
|
|
|
-if [ ! $qtmake ];then
|
|
|
- echo -e "\e[33m qtmake not set, auto find it\e[0m"
|
|
|
- qtmake=`find /opt -name "qmake" 2>/dev/null | grep 'gcc_64'`
|
|
|
+if [ $(uname -m) == "x86_64" ]; then
|
|
|
+ qtmake="/usr/lib/x86_64-linux-gnu/qt5/bin/qmake"
|
|
|
fi
|
|
|
|
|
|
if [ ! $qtmake ];then
|
|
|
- echo -e "\e[33m qtmake not ,may be agx, auto find it\e[0m"
|
|
|
- if [ -d '/usr/lib/aarch64-linux-gnu/qt5' ]; then
|
|
|
- qtmake='/usr/lib/aarch64-linux-gnu/qt5/bin/qmake'
|
|
|
- else
|
|
|
- echo "if NVIDIA,please sudo apt install qt"
|
|
|
- fi
|
|
|
+ echo -e "\e[33m qtmake not set, auto find it\e[0m"
|
|
|
+ qtmake=`find /opt -name "qmake" 2>/dev/null | grep 'gcc_64'`
|
|
|
fi
|
|
|
|
|
|
if [ ! $qtmake ];then
|
|
@@ -34,37 +33,6 @@ check_result()
|
|
|
fi
|
|
|
}
|
|
|
|
|
|
-function checkOS_TYPE(){
|
|
|
- if [[ ! -z "`uname | grep Darwin`" ]];then
|
|
|
- OS_TYPE=osx
|
|
|
- install_path=/Applications
|
|
|
- elif [[ ! -z "`uname | grep Linux`" ]];then
|
|
|
- OS_TYPE=linux
|
|
|
- install_path=/usr/lib
|
|
|
- else
|
|
|
- echo "Unsupported operating systems!"
|
|
|
- exit 1
|
|
|
- fi
|
|
|
- echo "The current operating system is"
|
|
|
- echo $OS_TYPE
|
|
|
-}
|
|
|
-
|
|
|
-function checkos(){
|
|
|
- if [[ -f /etc/redhat-release ]];then
|
|
|
- OS=Centos
|
|
|
- elif [[ ! -z "`cat /etc/issue | grep bian`" ]];then
|
|
|
- OS=Debian
|
|
|
- elif [[ ! -z "`cat /etc/issue | grep Ubuntu`" ]];then
|
|
|
- OS=Ubuntu
|
|
|
- else
|
|
|
- echo "Unknow!!!"
|
|
|
- fi
|
|
|
- echo $OS
|
|
|
-}
|
|
|
-
|
|
|
-checkOS_TYPE
|
|
|
-checkos
|
|
|
-
|
|
|
MAKEOPT=-j8
|
|
|
|
|
|
mkdir bin
|
|
@@ -75,6 +43,7 @@ cd ../../../
|
|
|
|
|
|
cd src/common/modulecomm/
|
|
|
$qtmake modulecomm.pro
|
|
|
+check_result $?
|
|
|
make $MAKEOPT
|
|
|
check_result $?
|
|
|
make clean
|
|
@@ -153,6 +122,16 @@ rm Makefile
|
|
|
rm .qmake.stash
|
|
|
cd ../../../
|
|
|
|
|
|
+cd src/common/ivchart/
|
|
|
+$qtmake ivchart.pro
|
|
|
+make $MAKEOPT
|
|
|
+check_result $?
|
|
|
+make clean
|
|
|
+cp libivchart.so ./../../../bin/
|
|
|
+rm Makefile
|
|
|
+rm .qmake.stash
|
|
|
+cd ../../../
|
|
|
+
|
|
|
controller_app_name=(
|
|
|
# controller_midcar
|
|
|
)
|
|
@@ -212,7 +191,7 @@ do
|
|
|
done
|
|
|
|
|
|
detect_app_name=(
|
|
|
- detection_radar_delphi_srr
|
|
|
+# detection_radar_delphi_srr
|
|
|
detection_mobileye
|
|
|
)
|
|
|
|