From ffa59a8bddb4f2da26a03b1e09743c1bdd9cbb8c Mon Sep 17 00:00:00 2001
From: Guo Wenxue <“guowenxue@gmail.com”>
Date: Mon, 11 Oct 2021 20:15:17 +0800
Subject: [PATCH] Add setup_tools.sh
---
3rdparty/qt5/build.sh | 31 ++++++++++++++++++++++++++++++-
1 files changed, 30 insertions(+), 1 deletions(-)
diff --git a/3rdparty/qt5/build.sh b/3rdparty/qt5/build.sh
index 4e3f66d..0abc4ce 100755
--- a/3rdparty/qt5/build.sh
+++ b/3rdparty/qt5/build.sh
@@ -18,7 +18,7 @@
JOBS=`cat /proc/cpuinfo |grep "processor"|wc -l`
LIBS_PATH=`pwd`/../install/
-QT_INST_PATH=/apps/QT5.9_ARM920T
+QT_INST_PATH=/apps/QT5.6_ARM920T
LYFTP_SRC=ftp://master.iot-yun.club/src/
@@ -109,6 +109,34 @@
cd -
}
+function pack_qt_tslib()
+{
+ QTLIB_PATH=${QT_INST_PATH}/lib
+
+ DIR_QT_LIB=QT5/lib
+ DIR_QT_FONTS=QT5/fonts
+ DIR_PLUGINS=QT5/plugins
+
+ mkdir -p QT5/{lib,fonts,plugins}
+
+ cp -af ${QTLIB_PATH}/libQt5Core*so.* ${DIR_QT_LIB}
+ cp -af ${QTLIB_PATH}/libQt5Gui*so.* ${DIR_QT_LIB}
+ cp -af ${QTLIB_PATH}/libQt5Network*so.* ${DIR_QT_LIB}
+ cp -af ${QTLIB_PATH}/libQt5Qml*so.* ${DIR_QT_LIB}
+ cp -af ${QTLIB_PATH}/libQt5SerialPort*so.* ${DIR_QT_LIB}
+ cp -af ${QTLIB_PATH}/libQt5Sql*so.* ${DIR_QT_LIB}
+ cp -af ${QTLIB_PATH}/libQt5Widgets*so.* ${DIR_QT_LIB}
+ cp -af ${QTLIB_PATH}/libqlinuxfb.so* ${DIR_QT_LIB}
+
+ cp -af ${LIBS_PATH}/lib/lib*ts*.so* ${DIR_QT_LIB}
+ cp -af ${LIBS_PATH}/lib/ts/*.so* ${DIR_PLUGINS}
+
+ cp /apps/qt_fonts/* ${DIR_QT_FONTS}
+
+ tar -cjf QT5_fl2440.tar.bz2 QT5
+ rm -rf QT5
+}
+
cd ../tslib
./build.sh
cd -
@@ -119,4 +147,5 @@
compile_qt
+pack_qt_tslib
--
Gitblit v1.9.1