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. Qt 5 doesn`t build - too many errors emitted
Forum Updated to NodeBB v4.3 + New Features

Qt 5 doesn`t build - too many errors emitted

Scheduled Pinned Locked Moved Installation and Deployment
6 Posts 3 Posters 5.2k 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
    SonicTheHedgehog
    wrote on 31 May 2013, 09:50 last edited by
    #1

    Hi everyone!

    I try to compile a 32 Bit Version of Qt on Mac OS X 10.8.3, but after a short time it throws many errors and ends up with the fatal error: too many errors emitted, stopping now.
    I uninstalled Xcode 4 some time ago because I had to work on another project using Xcode 3. Is there a relationship? I reinstalled Version 4 now but nevertheless the output looks like this:

    @./configure -nomake tests -platform macx-clang-32 -DNS_BUILD_32_LIKE_64

    [...]

    /System/Library/Frameworks/CoreGraphics.framework/Headers/CGRemoteOperation.h:381:56: error: expected function body after function declarator
    CG_EXTERN CFMachPortRef CGWindowServerCFMachPort(void) CF_RETURNS_RETAINED
    ^
    In file included from /Users/rtwdev/Desktop/qt-everywhere-opensource-src-5.0.2/qtbase/qmake/generators/mac/pbuilder_pbx.cpp:56:
    In file included from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:55:
    In file included from /System/Library/Frameworks/ImageIO.framework/Headers/ImageIO.h:14:
    /System/Library/Frameworks/ImageIO.framework/Headers/CGImageSource.h:14:1: error: unknown type name 'CG_EXTERN_C_BEGIN'
    CG_EXTERN_C_BEGIN
    ^
    /System/Library/Frameworks/ImageIO.framework/Headers/CGImageSource.h:17:1: error: expected unqualified-id
    enum CGImageSourceStatus {
    ^
    /System/Library/Frameworks/ImageIO.framework/Headers/CGImageSource.h:25:14: error: ISO C++ forbids forward references to 'enum' types
    typedef enum CGImageSourceStatus CGImageSourceStatus;
    ^
    /System/Library/Frameworks/ImageIO.framework/Headers/CGImageSource.h:193:1: error: unknown type name 'CG_EXTERN_C_END'
    CG_EXTERN_C_END
    ^
    In file included from /Users/rtwdev/Desktop/qt-everywhere-opensource-src-5.0.2/qtbase/qmake/generators/mac/pbuilder_pbx.cpp:56:
    In file included from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:55:
    In file included from /System/Library/Frameworks/ImageIO.framework/Headers/ImageIO.h:16:
    /System/Library/Frameworks/ImageIO.framework/Headers/CGImageDestination.h:10:1: error: expected unqualified-id
    typedef struct CGImageDestination *CGImageDestinationRef;
    ^
    /System/Library/Frameworks/ImageIO.framework/Headers/CGImageDestination.h:14:1: error: unknown type name 'CG_EXTERN_C_BEGIN'
    CG_EXTERN_C_BEGIN
    ^
    /System/Library/Frameworks/ImageIO.framework/Headers/CGImageDestination.h:29:1: error: expected unqualified-id
    CG_EXTERN const CFStringRef kCGImageDestinationLossyCompressionQuality AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER;
    ^
    /System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h:63:22: note: expanded from macro 'CG_EXTERN'

    define CG_EXTERN extern "C"

    [...]

    fatal error: too many errors emitted, stopping now [-ferror-limit=]
    20 errors generated.
    make: *** [pbuilder_pbx.o] Error 1
    *** qtbase/configure exited with non-zero status.@

    What is going wrong? Thanks for any help.

    Best regards,
    Sonic

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 4 Jun 2013, 20:55 last edited by
      #2

      Hi,

      IIRC you have to change the os x SDK used to build Qt, otherwise it defaults to the latest which uses 64bit.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • J Offline
        J Offline
        Jesdisciple
        wrote on 4 Jun 2013, 22:57 last edited by
        #3

        Add -xplatform unsupported/macx-ios-clang to your configure line. Cross-compilations require that option with a "mkspec" value. mkspecs are qmake files shipped with qt: http://qt.gitorious.org/qt/qtbase/trees/stable/mkspecs

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SonicTheHedgehog
          wrote on 6 Jun 2013, 10:12 last edited by
          #4

          Thank you very much. I tried both hints but the upshot was that I went to another mac in our office and configured with "-universal" and Qt was built fine. After "sudo make -j1 install" I took the files back to my machine and could import the framework in my 32 Bit project.

          1 Reply Last reply
          0
          • J Offline
            J Offline
            Jesdisciple
            wrote on 10 Jun 2013, 22:45 last edited by
            #5

            I must have misunderstood when I posted; it seems you weren't interested in iOS. Regardless, you probably don't want to be building a PowerPC binary, as even Apple doesn't support that architecture anymore. Unless one of your Macs actually has it?

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SonicTheHedgehog
              wrote on 11 Jun 2013, 07:13 last edited by
              #6

              The goal was to build a 32 Bit version to use it on a current OSX in collaboration with an old plugin SDK for Pro Tools: http://qt-project.org/forums/viewthread/8825/
              I built Qt on OSX 10.6 and it works fine on my mac which runs with 10.8. This solution was more time-saving than to investigate why my mac did not want to build itself.

              1 Reply Last reply
              0

              1/6

              31 May 2013, 09:50

              • Login

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