From 597df865fc16f336cba79a0b5b7b9c3ffe261311 Mon Sep 17 00:00:00 2001 From: xiaoming <2014500726@smail.xtu.edu.cn> Date: Tue, 30 Jun 2020 10:29:01 +0800 Subject: [PATCH] update build_deb.sh --- build_deb.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build_deb.sh b/build_deb.sh index 3d9793d..c73d973 100755 --- a/build_deb.sh +++ b/build_deb.sh @@ -14,6 +14,10 @@ YVYVIEWER_REVISION="5" ############################################################################### +export PATH=$QT_DIR/bin:$PATH +export LD_LIBRARY_PATH=$OPENCV_DIR/lib:$QT_DIR/lib:$LD_LIBRARY_PATH +export QT_PLUGIN_PATH=$QT_DIR/plugins:$QT_PLUGIN_PATH +export QML2_IMPORT_PATH=$QT_DIR/qml:$QML2_IMPORT_PATH # 合成版本号 YVYVIEWER_VERSION="V"$YVYVIEWER_MAJARVERSION""$YVYVIEWER_SUBVERSION""$YVYVIEWER_REVISION"" # 编译 @@ -29,10 +33,6 @@ cp -r ./dpkg/YUVviewer ./dpkg/YUVviewer_Linux_"$YVYVIEWER_VERSION"_x86_64 mkdir -p ./dpkg/YUVviewer_Linux_"$YVYVIEWER_VERSION"_x86_64/opt/YUVviewer cp ./build_release/out/YUVviewer ./dpkg/YUVviewer_Linux_"$YVYVIEWER_VERSION"_x86_64/opt/YUVviewer/YUVviewer # 使用linuxdeployqt拷贝依赖so库到打包目录 -export PATH=$QT_DIR/bin:$PATH -export LD_LIBRARY_PATH=$OPENCV_DIR/lib:$QT_DIR/lib:$LD_LIBRARY_PATH -export QT_PLUGIN_PATH=$QT_DIR/plugins:$QT_PLUGIN_PATH -export QML2_IMPORT_PATH=$QT_DIR/qml:$QML2_IMPORT_PATH ./tools/linuxdeployqt ./dpkg/YUVviewer_Linux_"$YVYVIEWER_VERSION"_x86_64/opt/YUVviewer/YUVviewer -appimage rm -rf ./dpkg/YUVviewer_Linux_"$YVYVIEWER_VERSION"_x86_64/opt/YUVviewer/doc ./dpkg/YUVviewer_Linux_"$YVYVIEWER_VERSION"_x86_64/opt/YUVviewer/default.png ./dpkg/YUVviewer_Linux_"$YVYVIEWER_VERSION"_x86_64/opt/YUVviewer/AppRun ./dpkg/YUVviewer_Linux_"$YVYVIEWER_VERSION"_x86_64/opt/YUVviewer/default.desktop cp ./img/ico.png ./dpkg/YUVviewer_Linux_"$YVYVIEWER_VERSION"_x86_64/opt/YUVviewer/YUVviewer.png