123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413 |
- #qtmake="/opt/qt/5.10.1/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
- MAKEOPT=-j8
- cd ../../
- mkdir pilotlib
- mkdir pilotbin
- cd src/include/proto
- sh ./protomake.sh
- cd ../../../
- cd src/include/proto3
- sh ./protomake.sh
- cd ../../../
- cd src/common/modulecomm/
- $qtmake modulecomm.pro
- make $MAKEOPT
- make clean
- cp libmodulecomm.so ./../../../bin/
- rm Makefile
- rm .qmake.stash
- cd ../../../
- cd src/common/xmlparam/
- $qtmake xmlparam.pro
- make $MAKEOPT
- make clean
- cp libxmlparam.so ./../../../bin/
- rm Makefile
- rm .qmake.stash
- cd ../../../
- cd src/common/ndt_cpu/
- $qtmake ndt_cpu.pro
- make $MAKEOPT
- make clean
- cp libndt_cpu.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/ivservice/
- $qtmake ivservice.pro
- make $MAKEOPT
- make clean
- cp libivservice.so ./../../../bin/
- rm Makefile
- rm .qmake.stash
- cd ../../../
- #cd src/common/ndt_gpu/
- #$qtmake ndt_gpu.pro
- #make $MAKEOPT
- #make clean
- #cp libndt_gpu.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/ivbacktrace/
- $qtmake ivbacktrace.pro
- make $MAKEOPT
- make clean
- cp libivbacktrace.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/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 ../../../
- cp bin/lib* pilotlib/
- controller_app_name=(
- controller_bus
- controller_jinlong_peisong
- controller_midcar
- controller_problue
- controller_ge3
- controller_vv7
- controller_tju_vv7
- controller_hapo
- #controller_yuhesen
- )
- for x in ${controller_app_name[@]}
- do
- cd src/controller/${x}/
- $qtmake ${x}.pro
- make $MAKEOPT
- make clean
- cp ${x} ./../../../pilotbin/
- rm Makefile
- rm .qmake.stash
- rm ${x}
- cd ../../../
- done
- decition_app_name=(
- #decition_brain
- decition_brain_sf
- )
- for x in ${decition_app_name[@]}
- do
- cd src/decition/${x}/
- $qtmake ${x}.pro
- make $MAKEOPT
- make clean
- cp ${x} ./../../../pilotbin/
- rm Makefile
- rm .qmake.stash
- rm ${x}
- cd ../../../
- done
- driver_app_name=(
- #driver_camera_usb
- #driver_can_kvaser
- #driver_can_vci
- driver_can_nvidia_agx
- driver_camera_ioctl
- #driver_cloud_grpc_client
- #driver_cloud_grpc_pc
- #driver_cloud_grpc_server
- #driver_gps_ins550d
- driver_gps_hcp2
- #driver_lidar_bk16
- driver_lidar_hesai40line
- driver_lidar_hesai40p
- driver_lidar_hesaipandar64
- driver_lidar_rs16
- driver_lidar_rs32
- #driver_lidar_vlp16
- #driver_lidar_vlp32c
- #driver_lidar_vtdpoint
- driver_lidar_rsm1
- driver_map_trace
- driver_map_xodrload
- #driver_piccompress
- #driver_radio_p900
- driver_ntrip_client
- #driver_odomtogpsimu
- driver_rpc_client
- driver_rpc_server
- #driver_vbox_gaohong
- driver_ota_client
- #driver_grpc_client
- driver_grpc_server
- driver_group_grpc_client
- )
- for x in ${driver_app_name[@]}
- do
- cd src/driver/${x}/
- $qtmake ${x}.pro
- make $MAKEOPT
- make clean
- cp ${x} ./../../../pilotbin/
- rm Makefile
- rm .qmake.stash
- rm ${x}
- cd ../../../
- done
- detect_app_name=(
- detection_chassis
- #detection_gps_hcp2
- #detection_gps_vtd
- #detection_lidar_cnn_segmentation
- #detection_lidar_cnntogrid
- #detection_lidar_grid
- #detection_lidar_ukf_pda
- detection_mobileye
- #detection_ndt_matching_gpu_multi
- detection_radar_delphi_esr
- #detection_state_delphi_ins500d
- )
- for x in ${detect_app_name[@]}
- do
- cd src/detection/${x}/
- $qtmake ${x}.pro
- make $MAKEOPT
- make clean
- cp ${x} ./../../../pilotbin/
- rm Makefile
- rm .qmake.stash
- rm ${x}
- cd ../../../
- done
- fusion_app_name=(
- #fusion_gpsndt
- #fusion_pointcloud_bus
- )
- for x in ${fusion_app_name[@]}
- do
- cd src/fusion/${x}/
- $qtmake ${x}.pro
- make $MAKEOPT
- make clean
- cp ${x} ./../../../pilotbin/
- rm Makefile
- rm .qmake.stash
- rm ${x}
- cd ../../../
- done
- tool_app_name=(
- adciv_record
- adciv_replay
- #adcndtmultimapping
- #bqev_lidar_cnn_detect_view
- #bqev_multilidarcalib
- #bqev_pcdview
- ivmapmake
- ivmapmake_sharemem
- IVSysMan
- #map_lanetoxodr
- #map_mobieye
- #PerceptionShow
- #picview
- #pointcloudviewer
- #RemoteCtrl
- #tool_calcmd5
- tool_querymsg
- tool_xodrobj
- view_gps
- view_ivlog
- #view_pcdmap
- view_radar
- #view_rawcan
- tool_configivsysman
- #ivdiagnosis
- #map_rtkdatafromveh
- #picview_civetweb
- #tool_trace2vectormap
- #view_group_grpc
- view_ivchart
- view_message
- )
- for x in ${tool_app_name[@]}
- do
- cd src/tool/${x}/
- $qtmake ${x}.pro
- make $MAKEOPT
- make clean
- cp ${x} ./../../../pilotbin/
- rm Makefile
- rm .qmake.stash
- rm ${x}
- cd ../../../
- done
- ui_app_name=(
- ui_ads_hmi
- )
- for x in ${ui_app_name[@]}
- do
- cd src/ui/${x}/
- $qtmake ${x}.pro
- make $MAKEOPT
- make clean
- cp ${x} ./../../../pilotbin/
- rm Makefile
- rm .qmake.stash
- rm ${x}
- cd ../../../
- done
- cd pilotbin
- mkdir lib
- cp ../pilotlib/* lib/
- for x in ${ui_app_name[@]}
- do
- patchelf --set-rpath '$ORIGIN/lib/' ${x}
- done
- for x in ${controller_app_name[@]}
- do
- patchelf --set-rpath '$ORIGIN/lib/' ${x}
- done
- for x in ${decition_app_name[@]}
- do
- patchelf --set-rpath '$ORIGIN/lib/' ${x}
- done
- for x in ${driver_app_name[@]}
- do
- patchelf --set-rpath '$ORIGIN/lib/' ${x}
- done
- for x in ${detect_app_name[@]}
- do
- patchelf --set-rpath '$ORIGIN/lib/' ${x}
- done
- for x in ${tool_app_name[@]}
- do
- patchelf --set-rpath '$ORIGIN/lib/' ${x}
- done
|