Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Building Qt 5 on mac in 32 bit

Building Qt 5 on mac in 32 bit

Scheduled Pinned Locked Moved Installation and Deployment
6 Posts 3 Posters 6.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    steno
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Same here on OSX 10.7.5...

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        cf. https://bugreports.qt-project.org/browse/QTBUG-28828

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dan.w
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          • S Offline
            S Offline
            steno
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              steno
              wrote on last edited by
              #6

              "32 bit on osx fixed in 5.0.2":https://bugreports.qt-project.org/browse/QTBUG-28862

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved