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. Problem deploying statically linked Qt for macOS
Forum Updated to NodeBB v4.3 + New Features

Problem deploying statically linked Qt for macOS

Scheduled Pinned Locked Moved Solved Installation and Deployment
8 Posts 2 Posters 942 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.
  • DiogoPereira98D Offline
    DiogoPereira98D Offline
    DiogoPereira98
    wrote on last edited by
    #1

    When making Qt statically linked this happens... 0_1548875139744_Captura de ecrã 2019-01-30, às 19.01.41.jpg

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

      Hi,

      What exact parameters did you pass to configure ?

      On a side note, don't forget the licensing implication of using a static 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

      1 Reply Last reply
      0
      • DiogoPereira98D Offline
        DiogoPereira98D Offline
        DiogoPereira98
        wrote on last edited by
        #3

        I've followed this, put no parameters in "<other parameters>" 0_1548882191534_Captura de ecrã 2019-01-30, às 21.01.35.jpg

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

          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
          • DiogoPereira98D Offline
            DiogoPereira98D Offline
            DiogoPereira98
            wrote on last edited by DiogoPereira98
            #5

            0_1548884353830_Captura de ecrã 2019-01-30, às 21.38.19.jpg

            I also find something suspicious with my paths, they don't look to match exactly the paths describe the ones in the guide, check the first pwd command and the location of the configure files
            0_1548884669568_Captura de ecrã 2019-01-30, às 21.40.55.jpg

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

              First thing to do: do an out of source build. That should avoid you some trouble.

              You installed Qt in the /Application folder which is likely write protected in some aspects.

              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
              1
              • DiogoPereira98D Offline
                DiogoPereira98D Offline
                DiogoPereira98
                wrote on last edited by
                #7

                thank you for the answer, I'll do that but I thought it caused no trouble, meanwhile I discovered that there is a macdeployqt, something I've missed and solved my problem, either way what you're saying about the location of my Qt installation might have caused me already some strange behaviors sometimes, I'll reinstall once I have the time. Do you think i's better to use macdeployqt than statically linked qt?

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

                  Yes it does. For several reasons:

                  • you don't face the same licensing constraints as with the use of a static build of Qt.
                  • Apple's guidelines is in the favour of using frameworks rather than static libraries which is something to take into account if you plan to distribute your application through the Mac App Store
                  • A static build is pretty long and heavy to do

                  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
                  1

                  • Login

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