Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Building Qt 5 on mac in 32 bit



  • I have tried to build the Qt5 source on OSX 10.8.2 with the following configuration.

    @
    ./configure -platform macx-clang-32
    @

    But I got the following error in qmacstyle_mac.mm.

    @
    styles/qmacstyle_mac.mm:5021:28: error: no viable conversion from 'NSRect' (aka '_NSRect') to 'CGRect'
    CGRect rect = [scroller bounds];
    ^ ~~~~~~~~~~~~~~~~~
    /System/Library/Frameworks/ApplicationServices.framework/Headers/../Frameworks/CoreGraphics.framework/Headers/CGGeometry.h:29:8: note:
    candidate constructor (the implicit copy constructor) not viable: no known conversion from 'NSRect' (aka '_NSRect')
    to 'const CGRect &' for 1st argument;
    struct CGRect {
    @

    Has anyone else experienced this and might have an idea how to fix it?



  • Same here on OSX 10.7.5...





  • Has anyone successfully built 5.0.1 for Mac 10.6 32-bit deployment? I'm still getting a lot of errors:

    styles/qstyleoption.cpp:210:13: error: use of undeclared identifier 'QMacStyle'; did you mean 'QStyle'?
    switch (QMacStyle::widgetSizePolicy(widget)) {

    Steps to build (qt-everywhere-opensource-src-5.0.1):

    ./configure -platform macx-clang-32
    make



  • If I recall it didn't make it into 5.0.1. There is a fix if you download the stable build off of git.




Log in to reply