summaryrefslogtreecommitdiffstats
path: root/src/doc/src
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@digia.com>2014-03-14 17:31:56 +0100
committerLaszlo Agocs <laszlo.agocs@digia.com>2014-03-17 14:50:13 +0200
commitaf296297e1d91228e8f63846c388fa1796b59e8a (patch)
treece1c464c2271c5442c75ab116cd8116a81853810 /src/doc/src
parentf5adb6e04035adcfa2d31b5328d01436b2a7ce65 (diff)
Document C++11 usage
The Android toolchain contains gcc 4.6 which does not pass Qt's own C++11 test. Therefore, even though the standard library is there with the headers, one has to manually add -std=c++11 to the compiler flags (CONFIG+=c++11 has no effect). Document this. Task-number: QTEE-67 Change-Id: I6ce33135450e73f097e812d03bb881069de896aa Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
Diffstat (limited to 'src/doc/src')
-rw-r--r--src/doc/src/b2qt.qdoc10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/doc/src/b2qt.qdoc b/src/doc/src/b2qt.qdoc
index ca23881..53cb4e7 100644
--- a/src/doc/src/b2qt.qdoc
+++ b/src/doc/src/b2qt.qdoc
@@ -1238,6 +1238,16 @@
See \l{Customization}.
+ \section2 C++11 features do not work on Android
+
+ To enable C++11 features in the compiler, add \e{CONFIG += c++11} to the .pro file.
+ On Embedded Linux this will be enough because there the toolchain contains a more
+ recent version of gcc (4.8.x). On Embedded Android however the toolchain is based on
+ gcc 4.6. This offers limited support for C++11 and Qt's own C++11 support is disabled,
+ meaning that adding \e{c++11} to \e{CONFIG} will have no effect. There is still a
+ possibility however to manually enable some level of C++11 support just for the
+ application, by adding \e{QMAKE_CXXFLAGS += -std=c++11} to the .pro file.
+
\section1 Connectivity Issues
\section2 I cannot connect to my hardware device via USB