PRO_DIR=`pwd` CONFIG_IVSysMan="IVSysMan_HAPO_1.xml" check_result=`whereis patchelf | awk '{print $2}'` if [ ! $check_result ];then echo -e "\e[31m no found patchelf, Plz install patchelf first\e[0m" exit 1 fi app_name=( driver_lidar_leishen16 driver_gps_ins550d driver_can_vci driver_map_xodrload #driver_obu #driver_platform detection_lidar_grid detection_chassis decition_brain_sf_1x controller_hunter view_pointcloud view_gps IVSysMan view_ivlog ui_ads_hmi_1px tool_xodrobj ivlog_record adciv_record ) for x in ${app_name[@]} do echo "deploy $x" cp ./bin/${x} ./ ./deploy.sh $x if [ $? == 1 ];then echo "build $x faile" exit 1 fi rm ${x} done lib_name=( libmodulecomm.so libndt_cpu.so libxmlparam.so libivfault.so libivlog.so libplatformif.so libivexit.so libivchart.so ) for x in ${lib_name[@]} do echo "link lib $x" patchelf --set-rpath '$ORIGIN' ./bin/$x if [ "$?" != 0 ];then echo -e "\e[31m patchelf $EXE faile, Ensure patchelf tool installed\e[0m" exit 1 fi done cp ./bin/*.so ./deploy/app/lib/ qt_com=`arch` if [ $qt_com = "aarch64" ];then cp -r /usr/lib/aarch64-linux-gnu/nss/* ./deploy/app/lib/ else cp -r /usr/lib/x86_64-linux-gnu/nss/* ./deploy/app/lib/ fi cp ./sh/BaiDuMap.html ./deploy/app/ cp ./sh/car.png ./deploy/app/ cp ./sh/asphalt.jpg ./deploy/app/ echo "" echo "***************" echo "*** done! ***" echo "***************"