The problem with deploying on Mac OS X 10.6 is that it does not have libc++ installed. Therefor, you have to avoid enabling C++11 in the build of Qt itself.
We will do a shadow build, the sources are in qt-5.3.2 and we’ll build in qt-5.3.2-build.
Remove non-Apple tools from your PATH (I have macports installed):
> export PATH=/usr/bin:/bin:/usr/sbin:/sbin
Configure:
> cd qt-5.3.2-build
> ../qt-5.3.2/configure -debug-and-release -prefix /usr/local/Qt-5.3.2 -nomake examples -sdk macosx10.9 -no-c++11
Note: if you remove the ‘-no-c++11’ it will link against libc++ and require 10.7+.
Build & install with documentation:
> make
> sudo make install
> make generate_docs
> make qch_docs
> sudo make install_qch_docs
Done!
Note that with such a build, you can use C++11 language constructs in your code, it’s just the Standard Library that will not be up to C++11 standard.
i.e. language construct like this will work:
for ( auto it : vec ){}
but any new classes or methods from STL will not be available (like std::thread, etc).