[Development] Running Qt 5.4.0 Applicationat Mac 10.6

Robert Iakobashvili coroberti at gmail.com
Mon Jan 26 09:09:15 CET 2015


Hello,

Qt-5.4.0 was built from sources at 10.9 build machine
with flag -no-c++11
and in qtbase/mkspecs/macx-clang/qmake.conf
was set:
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.6

The application does run at 10.6 target but crashes:

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   org.qt-project.QtWidgets            0x0000000100fcb762 0x100fbe000 +
55138
1   org.qt-project.QtWidgets            0x00000001010589f5
QStyleFactory::create(QString const&) + 181
2   org.qt-project.QtWidgets            0x0000000100fec2d2
QApplication::style() + 370
3   org.qt-project.QtWidgets            0x0000000100feb624
QApplicationPrivate::initializ
e() + 100
4   org.qt-project.QtWidgets            0x0000000100feb460
QApplicationPrivate::construct() + 96
5   com.mydomain.MyApp               0x000000010000b7b9 main + 41
6   com.mydomain.MyApp              0x0000000100005e74 start + 52

It seems that QStyle returns 0.

Should I create some style in advance and pass it to application?
Which style could be appropriate for 10.6?

Yes, I know that 10.6 is not a supported target for 5.4.0,
but any advise or direction would be very much appreciated.

Thank you in advance.

Regards,
Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20150126/0baff31c/attachment.html>


More information about the Development mailing list