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. Unable to do static build from Qt source on MAC
Forum Update on Monday, May 27th 2025

Unable to do static build from Qt source on MAC

Scheduled Pinned Locked Moved Solved Installation and Deployment
16 Posts 2 Posters 1.8k Views
  • 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.
  • V Offline
    V Offline
    vyau
    wrote on 24 Nov 2018, 21:42 last edited by
    #5

    i will check on that in a bit.

    I have since borrowed another Mac and tried to compile same Qt version statically.

    And I got different errors. Do you know what this one is about?

    -- Errors --

    orm/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AGL.framework/Headers -I../../../../mkspecs/macx-clang -o .obj/debug/qcocoawindow.o qcocoawindow.mm
    qcocoawindow.mm:407:59: error: use of undeclared identifier 'NSEventTypeMouseMoved'; did you mean 'kEventMouseMoved'?
    const auto button = e.type == NSEventTypeMouseMoved ? Qt::NoButton : cocoaButton2QtButton([e buttonNumber]);
    ^~~~~~~~~~~~~~~~~~~~~
    kEventMouseMoved
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/CarbonEvents.h:1721:3: note:
    'kEventMouseMoved' declared here
    kEventMouseMoved = 5
    ^
    qcocoawindow.mm:408:62: error: use of undeclared identifier 'NSEventTypeMouseMoved'; did you mean 'kEventMouseMoved'?
    const auto eventType = e.type == NSEventTypeMouseMoved ? QEvent::MouseMove : QEvent::MouseButtonPress;
    ^~~~~~~~~~~~~~~~~~~~~
    kEventMouseMoved

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 24 Nov 2018, 21:44 last edited by
      #6

      What version of Xcode are you using ?

      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
      • V Offline
        V Offline
        vyau
        wrote on 24 Nov 2018, 21:46 last edited by
        #7

        I am using Xcode 7.3.1

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 24 Nov 2018, 21:51 last edited by
          #8

          You are going to have to update. That version of Xcode is too old to build such a recent version of Qt. Or at least the platform plugin part.

          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
          • V Offline
            V Offline
            vyau
            wrote on 24 Nov 2018, 21:52 last edited by
            #9

            ok, I think I need to upgrade OS as well.

            1 Reply Last reply
            0
            • S SGaist
              24 Nov 2018, 21:28

              Since the build is failing for the MySQL plugin, you likely have it somewhere configure found.

              V Offline
              V Offline
              vyau
              wrote on 24 Nov 2018, 21:57 last edited by
              #10

              @SGaist
              I am using MySQL 8.0.12. It is installed by Brew on my Mac

              Is this version too old hence the error?

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 24 Nov 2018, 21:59 last edited by
                #11

                Current version if macOS Mojave.

                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
                • V Offline
                  V Offline
                  vyau
                  wrote on 24 Nov 2018, 22:10 last edited by
                  #12

                  @SGaist
                  I am using MySQL 8.0.12. It is installed by Brew on my Mac

                  Is this version too old hence the error?

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 24 Nov 2018, 22:18 last edited by
                    #13

                    IIRC, you need Qt 5.12. MySQL removed the use of the my_bool type at some point. The plugin has been updated.

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

                    V 1 Reply Last reply 24 Nov 2018, 22:45
                    1
                    • S SGaist
                      24 Nov 2018, 22:18

                      IIRC, you need Qt 5.12. MySQL removed the use of the my_bool type at some point. The plugin has been updated.

                      V Offline
                      V Offline
                      vyau
                      wrote on 24 Nov 2018, 22:45 last edited by
                      #14

                      @SGaist thanks

                      1 Reply Last reply
                      0
                      • V Offline
                        V Offline
                        vyau
                        wrote on 24 Nov 2018, 22:45 last edited by
                        #15

                        To summarize, I have oudated Xcode and Mysql :)

                        1 Reply Last reply
                        0
                        • S Offline
                          S Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on 24 Nov 2018, 22:52 last edited by
                          #16

                          Your MySQL is not outdated as the current version is 8.0.13.

                          As for Xcode, the current version is 10.1 IIRC.

                          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

                          14/16

                          24 Nov 2018, 22:45

                          • Login

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