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. Mac build not working qt5 stable
Qt 6.11 is out! See what's new in the release blog

Mac build not working qt5 stable

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 2 Posters 2.9k 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.
  • R Offline
    R Offline
    rickbkis
    wrote on last edited by
    #1

    OS: Mac 0S 10.7.5
    Qt: source pulled from Gitorious (qt/qt5)
    XCode: 4.3.3

    Getting an error trying to build WebCore:

    g++ (..snip..) obj/debug/MediaPlayerPrivateQTKit.o
    In file included from /System/Library/Frameworks/QuartzCore.framework/Headers/CAOpenGLLayer.h:6,
    from /System/Library/Frameworks/AppKit.framework/Headers/NSOpenGLLayer.h:10,
    from /System/Library/Frameworks/AppKit.framework/Headers/AppKit.h:143,
    from /System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:13,
    from /System/Library/Frameworks/QTKit.framework/Headers/QTMovie.h:40,
    from /System/Library/Frameworks/QTKit.framework/Headers/QTKit.h:14,
    from platform/graphics/mac/MediaPlayerPrivateQTKit.mm:45:
    /System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h:50: error: expected unqualified-id before ‘[’ token
    make[4]: *** [obj/debug/MediaPlayerPrivateQTKit.o] Error 1
    make[3]: *** [debug-all] Error 2
    make[2]: *** [sub-Target-pri-make_first-ordered] Error 2
    make[1]: *** [sub-Source-WebCore-WebCore-pro-make_first-ordered] Error 2
    make: *** [module-qtwebkit-make_first] Error 2

    Actually looks like a mac compile error. Maybe g++ flag to relax a compiler constraint?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Try compiling with -platform macx-llvm. G++ is broken and shamefully outdated on Mac.

      (Z(:^

      1 Reply Last reply
      0
      • R Offline
        R Offline
        rickbkis
        wrote on last edited by
        #3

        Worse problems - for one, even though I specify '-platform macx-llvm' (which it uses in the configure to build qmake), it still uses macx-g++ when it actually compiles the library sources (I see 'g++' and '-Imkspecs/macx-g++' in the compile line...) (Note I cleaned out the directory and did a fresh clone, just to make sure nothing was hanging around...)

        That failing, I copied over the macx-llvm makespec to macx-g++ to force the use of the llvm & then it gets various unresolves linking qtgui...

        I seem to recall that g++42 was a problem, before, but that g++40 worked ok (but that was to get it to work on 10.4.) Try that next, I guess...

        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