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. Error to build with Static Qt 5.6.3 on Mac

Error to build with Static Qt 5.6.3 on Mac

Scheduled Pinned Locked Moved Solved Installation and Deployment
10 Posts 2 Posters 1.5k 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.
  • LinggoL Offline
    LinggoL Offline
    Linggo
    wrote on last edited by
    #1

    Download the source code of qt5.6.3

    • http://download.qt.io/archive/qt/5.6/5.6.3/single/qt-everywhere-opensource-src-5.6.3.tar.xz

    Compile error, command as follows

    ./configure -static -debug-and-release -nomake examples -nomake tests -prefix ~/Qt/5.6.3_static_osx -qt-sql-sqlite -plugin-sql-sqlite -qt-libpng -qt-libjpeg -qt-zlib -qt-pcre -opensource -confirm-license -opengl -qt-freetype
    

    Make error, modify the qtbase/src/plugins/platforms/cocoa/qcocoahelpers.mmfile before execution

    0_1550046242698_a9aabb1c-dad5-4372-8310-7de51364c0e0-image.png

    Perform make is not an error, but make install error

    0_1550046354848_d27c2c62-0320-49ca-81a8-9c4ebad41489-image.png

    How do I compile correctly?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What version of macOS and Xcode are you using ?
      Why are you trying to build such an outdated version of Qt ?

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

      LinggoL 2 Replies Last reply
      0
      • SGaistS SGaist

        Hi,

        What version of macOS and Xcode are you using ?
        Why are you trying to build such an outdated version of Qt ?

        LinggoL Offline
        LinggoL Offline
        Linggo
        wrote on last edited by
        #3

        @SGaist hello,Sorry for the late reply。

        • The Mac version is MACOSX Sierra 10.12.6

        • Xcode is version 9.2

        • Because of the unified version of Mac and Windows, 5.6.3 should be used for Windows compatible with xp

        1 Reply Last reply
        0
        • SGaistS SGaist

          Hi,

          What version of macOS and Xcode are you using ?
          Why are you trying to build such an outdated version of Qt ?

          LinggoL Offline
          LinggoL Offline
          Linggo
          wrote on last edited by
          #4

          @SGaist error is as follows

          /Users/shandikeji/Desktop/Qt/QtStatic/5.6.3/src/qtconnectivity/src/bluetooth/osx/osxbtledeviceinquiry.mm:205:33: error: 
                cannot initialize a variable of type 'const CBCentralManagerState' with an
                rvalue of type 'CBManagerState'
          
          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Then maybe a silly question but are you using the Qt Connectivity module for your application ?
            If not then don't build it.

            On a side note, why are you doing a custom build of Qt ?

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

            LinggoL 3 Replies Last reply
            1
            • SGaistS SGaist

              Then maybe a silly question but are you using the Qt Connectivity module for your application ?
              If not then don't build it.

              On a side note, why are you doing a custom build of Qt ?

              LinggoL Offline
              LinggoL Offline
              Linggo
              wrote on last edited by Linggo
              #6

              @SGaist you mean to remove the superfluous build like this
              ./configure -static -debug-and-release -nomake examples -nomake tests -prefix ~/Qt/qt5.6.3/5.6.3/clang_64/ -opensource -confirm-license

              I'm sorry that I didn't quite understand what you said about a custom build of Qt

              1 Reply Last reply
              0
              • SGaistS SGaist

                Then maybe a silly question but are you using the Qt Connectivity module for your application ?
                If not then don't build it.

                On a side note, why are you doing a custom build of Qt ?

                LinggoL Offline
                LinggoL Offline
                Linggo
                wrote on last edited by
                #7
                This post is deleted!
                1 Reply Last reply
                0
                • SGaistS SGaist

                  Then maybe a silly question but are you using the Qt Connectivity module for your application ?
                  If not then don't build it.

                  On a side note, why are you doing a custom build of Qt ?

                  LinggoL Offline
                  LinggoL Offline
                  Linggo
                  wrote on last edited by Linggo
                  #8

                  @SGaist

                  After making the changes, the compilation succeeded. The changes are as follows

                  • qtbase/src/platformsupport/fontdatabases/mac/qfontengine_coretext.mm
                    0_1550811950932_5d12261d-b4ef-448e-9843-d3c9b70a1d81-image.png
                  • qtbase/src/plugins/platforms/cocoa/qcocoahelpers.h
                    0_1550811974592_96a73a0f-38f4-4080-8be0-0f55c14b230b-image.png
                  • qtbase/src/plugins/platforms/cocoa/qcocoahelpers.mm
                    0_1550811785757_aad50fde-ad1a-431b-b2a3-72dfa615932f-image.png
                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    Good !

                    Since you have it building now, please mark the thread as solved using the "Topic Tools" button so that other forum users may know a solution has been found :)

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

                    LinggoL 1 Reply Last reply
                    0
                    • SGaistS SGaist

                      Good !

                      Since you have it building now, please mark the thread as solved using the "Topic Tools" button so that other forum users may know a solution has been found :)

                      LinggoL Offline
                      LinggoL Offline
                      Linggo
                      wrote on last edited by
                      #10

                      @SGaist Thank you very much for the tip

                      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