From 1b729d3bc1c50c978fd0ad18956c53651d127712 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Thu, 02 Jul 2020 18:08:15 +0800
Subject: [PATCH] Merge branch 'master' of ssh://master.iot-yun.club:2280/ok335x

---
 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