1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- qtmake=" "
- if [ ${#qtmake} -lt 5 ]; then
- optfiles=`find /usr/lib/x86_64-linux-gnu -name 'qmake'`
- for entry in $optfiles
- do
- x=${entry:0-14:14}
- if [ "$x" == "/qt5/bin/qmake" ]; then
- qtmake="$entry"
- echo " -----find qmake"
- echo "$qtmake"
- fi
- done
- fi
- if [ ${#qtmake} -lt 5 ]; then
- echo "maybe agx,find qmake in usr folder "
- optfiles=`find /usr/lib/aarch64-linux-gnu -name 'qmake'`
- for entry in $optfiles
- do
- x=${entry:0-14:14}
- if [ "$x" == "/qt5/bin/qmake" ]; then
- qtmake="$entry"
- echo " -----find qmake"
- echo "$qtmake"
- fi
- done
- fi
- if [ ${#qtmake} -lt 5 ]; then
- echo "find in /usr folder "
- optfiles=`find /usr -name 'qmake'`
- for entry in $optfiles
- do
- x=${entry:0-14:14}
- if [ "$x" == "/qt5/bin/qmake" ]; then
- qtmake="$entry"
- echo " -----find qmake"
- echo "$qtmake"
- fi
- done
- fi
- if [ ${#qtmake} -lt 5 ]; then
- echo "find in /opt folder "
- optfiles=`find /opt -name 'qmake'`
- for entry in $optfiles
- do
- x=${entry:0-17:17}
- if [ "$x" == "/gcc_64/bin/qmake" ]; then
- qtmake="$entry"
- echo " -----find qmake"
- echo "$qtmake"
- fi
- done
- fi
- if [ ${#qtmake} -lt 5 ]; then
- echo "fail to find qmake.No qmake in /usr or /opt directory. You can munual set qmake."
-
- else
- echo "---qmake---:""$qtmake"
- fi
- cpu_num=`cat /proc/stat | grep cpu[0-9] -c`
- cd src/tool/adciv_maketool
- $qtmake adciv_maketool.pro
- make -j${cpu_num}
- make clean
- cp adciv_maketool ./../../../
- rm Makefile
- rm .qmake.stash
- cd ../../../
|