Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt 5.4 - Mac OS X 10.6 Support

Tags:

macos

qt

I compiled my App using Qt 5.3.2 on my Mac OS X 10.9 and it runs on Mac OS X 10.6 without any issue. But due to a bug in Qt 5.3.2 (unfixed) which causes the apps to crash on maximizing, if focus is on tree view, I had to switch to Qt 5.4.

After compiling my app using Qt 5.4 on Mac OS X 10.9, it no more runs on Mac OS X 10.6. It crashes with the error:

dyld: library not loaded: /usr/lib/libc++.1.dylib Qt
like image 469
adnan kamili Avatar asked Dec 14 '25 09:12

adnan kamili


1 Answers

After some searching I figured out that

Running Qt apps on Mac OS X 10.6 is not supported by Qt 5.4 binaries available on Qt Website. A custom build is required for the same.

As per one source:

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

These will make sure we link with the 10.6 CRT and that we do not link with libc++ (the default C++ library for clang++).

For custom build:

./configure -prefix $PWD/qtbase -opensource -no-c++11 -debug-and-release -nomake examples -nomake demos 
like image 195
adnan kamili Avatar answered Dec 16 '25 23:12

adnan kamili



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!