From e8f71869179f5c099228958a3d869b20005f7273 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Thu, 02 Jul 2020 18:08:02 +0800
Subject: [PATCH] update build_QT5.sh shell script, add comment for unrecognized command line option ‘-std=c++11’ error
---
3rdparty/qt/build_QT5.sh | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/3rdparty/qt/build_QT5.sh b/3rdparty/qt/build_QT5.sh
index fd3cef8..71a2e94 100755
--- a/3rdparty/qt/build_QT5.sh
+++ b/3rdparty/qt/build_QT5.sh
@@ -76,6 +76,12 @@
sed -i "s|arm-linux-gnueabi-|$CROSSTOOL|" ${QMAKE_FILE}
fi
+ # QT5.8 depends on g++-4.8 or higher version, or will throw error:
+ # unrecognized command line option ‘-std=c++11’
+ #
+ # Use follow command to choose higher version g++ compile
+ # sudo update-alternatives --config g++
+ #
./configure -opensource -confirm-license -release -shared -strip -prefix ${QT_INST_PATH} -c++std c++11 \
-xplatform linux-arm-gnueabi-g++ -qt-freetype -no-libproxy -no-avx -make libs \
-qt-zlib -no-mtdev -no-gif -qt-libpng -qt-libjpeg -no-openssl -no-cups -no-dbus -pch \
--
Gitblit v1.9.1