[DUPLICATE] Trying to build for Android, Qt 5.2.2, GCC 4.8 and C++11

I'm trying to build a Qt project (in Qt Creator 3.0.1), with Qt 5.2.2 and android-ndk-r9c. I set <code>CONFIG+=c++11</code>, which didn't supply the needed <code>-std=c++11</code>, so I added <code>QMAKE_CXXFLAGS+=-std=c++11</code>. The existing <code>android-g++/qmake.conf</code> added <code>-std=gnu++0x</code>, so I was ending up the <code>-std=gnu++0x -std=c++11</code>.

The problem I was seeing was that the compiler wasn't recognizing some C++11 features (specifically <code>shared_ptr</code>). I finally tried a compilation line that looked like this: