Qt 5.4 - Support for Mac OS X 10.6

I have compiled my application with Qt 5.3.2 on my Mac OS X 10.9 and it works on Mac OS X 10.6 without any problem. But due to a bug in Qt 5.3.2 (uncommitted) that causes applications to crash when maximized if focus is on the tree view, I had to switch to Qt 5.4.

After compiling my application with Qt 5.4 on Mac OS X 10.9, it no longer works on Mac OS X 10.6. It fails with the error:

dyld: library not loaded: /usr/lib/libc++.1.dylib Qt

      

+3


source to share


2 answers


After some searching, I realized that

Running Qt applications on Mac OS X 10.6 is not supported by the Qt 5.4 binaries available on the Qt Website. This requires a custom assembly.

According to one source:

To have clang ++ build g ++ compatible binaries from llvm-gcc-4.2.1 use these compiler and linker flags: -stdlib = libstdc ++ -mmacosx-version-min = 10.6



They will be linked to 10.6 CRT and that we will not link to libC ++ (the default C ++ library for clang ++).

For a custom build:

./configure -prefix $PWD/qtbase -opensource -no-c++11 -debug-and-release -nomake examples -nomake demos 

      

+3


source


10.6 is no longer supported in Qt 5.4

If you even compile it manually with -no-C ++ 11, your executable executable application will crash with error 10.6



5.3.2 is the latest to support 10.6 with -no-c ++ 11

+1


source







All Articles