123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 |
- #qtmake="/opt/qt/5.13.2/gcc_64/bin/qmake"
- qtmake=" "
- if [ ${#qtmake} -lt 5 ]; then
- echo "now need find qmake "
- 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 "maybe agx,find qmake 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
- echo -e "\e[33m qtmake: $qtmake \e[0m"
- MAKEOPT=-j8
- mkdir bin
- cd src/include/proto
- ./protomake.sh
- cd ../../../
- cd src/common/modulecomm/
- $qtmake modulecomm.pro
- make $MAKEOPT
- make clean
- cp libmodulecomm.so ./../../../bin/
- rm Makefile
- rm .qmake.stash
- cd ../../../
- cp thirdpartylib/FastRTPS/lib/libamd64/* bin/
- cp thirdpartylib/FastRTPS/lib/libarm64/* bin/
- cd src/common/xmlparam/
- $qtmake xmlparam.pro
- make $MAKEOPT
- make clean
- cp libxmlparam.so ./../../../bin/
- rm Makefile
- rm .qmake.stash
- cd ../../../
- cd src/common/ivlog/
- $qtmake ivlog.pro
- make $MAKEOPT
- make clean
- cp libivlog.so ./../../../bin/
- rm Makefile
- rm .qmake.stash
- cd ../../../
- cd src/common/ivfault/
- $qtmake ivfault.pro
- make $MAKEOPT
- make clean
- cp libivfault.so ./../../../bin/
- rm Makefile
- rm .qmake.stash
- cd ../../../
- cd src/common/platformif/
- $qtmake platformif.pro
- make $MAKEOPT
- make clean
- cp libplatformif.so ./../../../bin/
- rm Makefile
- rm .qmake.stash
- cd ../../../
- cd src/common/ivexit/
- $qtmake ivexit.pro
- make $MAKEOPT
- make clean
- cp libivexit.so ./../../../bin/
- rm Makefile
- rm .qmake.stash
- cd ../../../
- cd src/common/ivbacktrace/
- $qtmake ivbacktrace.pro
- make $MAKEOPT
- make clean
- cp libivbacktrace.so ./../../../bin/
- rm Makefile
- rm .qmake.stash
- cd ../../../
- cd src/common/ivchart/
- $qtmake ivchart.pro
- make $MAKEOPT
- make clean
- cp libivchart.so ./../../../bin/
- rm Makefile
- rm .qmake.stash
- cd ../../../
- cd src/common/makeprotointerface/
- $qtmake makeprotointerface.pro
- make $MAKEOPT
- make clean
- cp makeprotointerface ./../../../bin/
- rm Makefile
- rm .qmake.stash
- cd ../../../
- PWD=`pwd`
- PROTOPATH=$PWD/src/include/proto
- MSGTYPEPATH=$PWD/src/include/msgtype
- PROFOLDERPATH=$PWD/src/common
- echo $PROTOPATH
- echo $MSGTYPEPATH
- echo $PROFOLDERPATH
- $PWD/bin/makeprotointerface $PROTOPATH $MSGTYPEPATH $PROFOLDERPATH
- cp $PWD/src/common/ivprotoif/ivprotoif.h $PWD/include
- cd src/common/ivprotoif/
- $qtmake ivprotoif.pro
- make $MAKEOPT
- make clean
- cp libivprotoif.so ./../../../bin/
- rm Makefile
- rm .qmake.stash
- cd ../../../
|