Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Install Qt 4.8.7 on a Mac running OS X 10.11 (El Capitan)

Install Qt 4.8.7 on a Mac running OS X 10.11 (El Capitan)

Scheduled Pinned Locked Moved Solved General and Desktop
26 Posts 10 Posters 30.9k Views 3 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.
  • D Offline
    D Offline
    DoHuuVi
    wrote on last edited by
    #16

    @SGaist : yes, I retried from scratch but still encountered the error.

    I'm trying with nomake example.

    1 Reply Last reply
    0
    • SGaistS SGaist

      It really boils down to:

      ./configure
      make -jX where X is twice the number of core you have available
      sudo make install
      
      FresaYuanF Offline
      FresaYuanF Offline
      FresaYuan
      wrote on last edited by
      #17

      @SGaist
      Hi,
      I have tried to compile Qt 4.8.7 on Mac OS X 10.11(El Capitan)
      After make -j1
      I got
      3 warnings and 2 errors generated.
      make[2]: *** [.obj/debug-shared/qpaintengine_mac.o] Error 1
      make[1]: *** [debug-all] Error 2
      make: *** [sub-gui-make_default-ordered] Error 2

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

        Did you apply the patch I linked to ?

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

        FresaYuanF 1 Reply Last reply
        0
        • SGaistS SGaist

          Did you apply the patch I linked to ?

          FresaYuanF Offline
          FresaYuanF Offline
          FresaYuan
          wrote on last edited by
          #19

          @SGaist
          Thanks so much for your reply.
          I didn't try the patch. I am new to this, and could you please tell me more detail about how to apply it?

          mrjjM 1 Reply Last reply
          0
          • FresaYuanF FresaYuan

            @SGaist
            Thanks so much for your reply.
            I didn't try the patch. I am new to this, and could you please tell me more detail about how to apply it?

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by mrjj
            #20

            @FresaYuan
            Hi
            I think you just need to change the
            src/gui/painting/qpaintengine_mac.cpp
            file
            All in red are deleted and this line is inserted:
            CGColorSpaceRef colorSpace = CGDisplayCopyColorSpace(displayID);

            in the function
            QCoreGraphicsPaintEngine::macDisplayColorSpace

            There is a tool to apply patches but in this case
            "1 file changed, 1 insertion(+), 7 deletions(-)"
            Seems ok to apply by hand.

            FresaYuanF 2 Replies Last reply
            1
            • mrjjM mrjj

              @FresaYuan
              Hi
              I think you just need to change the
              src/gui/painting/qpaintengine_mac.cpp
              file
              All in red are deleted and this line is inserted:
              CGColorSpaceRef colorSpace = CGDisplayCopyColorSpace(displayID);

              in the function
              QCoreGraphicsPaintEngine::macDisplayColorSpace

              There is a tool to apply patches but in this case
              "1 file changed, 1 insertion(+), 7 deletions(-)"
              Seems ok to apply by hand.

              FresaYuanF Offline
              FresaYuanF Offline
              FresaYuan
              wrote on last edited by
              #21
              This post is deleted!
              1 Reply Last reply
              0
              • mrjjM mrjj

                @FresaYuan
                Hi
                I think you just need to change the
                src/gui/painting/qpaintengine_mac.cpp
                file
                All in red are deleted and this line is inserted:
                CGColorSpaceRef colorSpace = CGDisplayCopyColorSpace(displayID);

                in the function
                QCoreGraphicsPaintEngine::macDisplayColorSpace

                There is a tool to apply patches but in this case
                "1 file changed, 1 insertion(+), 7 deletions(-)"
                Seems ok to apply by hand.

                FresaYuanF Offline
                FresaYuanF Offline
                FresaYuan
                wrote on last edited by
                #22

                @mrjj
                Thanks a lot. After change the file, when input "sudo make -j1 install"
                It runs almost half an hour. And end up with errors like this
                make[3]: *** No rule to make target ../../WebCore/debug/libwebcored.a', needed by ../../../../../../lib/QtWebKit.framework/QtWebKit_debug'. Stop.
                make[2]: *** [debug-install] Error 2
                make[1]: *** [sub-WebKit-qt-QtWebKit-pro-install_subtargets-ordered] Error 2
                make: *** [sub-webkit-install_subtargets-ordered] Error 2

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

                  If you don't need webkit then disable its build. Also don't build as root.

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

                  FresaYuanF 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    If you don't need webkit then disable its build. Also don't build as root.

                    FresaYuanF Offline
                    FresaYuanF Offline
                    FresaYuan
                    wrote on last edited by
                    #24

                    @SGaist brew install qt4 works
                    Thanks a lot for your reply

                    1 Reply Last reply
                    0
                    • ICE7I Offline
                      ICE7I Offline
                      ICE7
                      wrote on last edited by
                      #25

                      Hello,
                      Would it be possible to share the build of qt.4.8.7 for El Capitan?

                      thanks.

                      1 Reply Last reply
                      0
                      • bowman hanB Offline
                        bowman hanB Offline
                        bowman han
                        wrote on last edited by
                        #26

                        brew install qt4
                        they have done all dirty works for you

                        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