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. Qt5 compiling problem on OSX
Forum Updated to NodeBB v4.3 + New Features

Qt5 compiling problem on OSX

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 3.4k 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.
  • M Offline
    M Offline
    miketopen
    wrote on last edited by
    #1

    Hi,

    Following this tutorial:

    http://qt-project.org/wiki/Building_Qt_5_from_Git

    I can't compile Qt5 on my OSX (Mountain Lion).

    I run into the this problem:
    @In file included from xml/parser/XMLDocumentParser.h:33:
    xml/XMLErrors.h:36:10: fatal error: 'libxml/parser.h' file not found
    #include <libxml/parser.h>
    ^
    1 error generated.
    make[4]: *** [obj/debug/dom/Document.o] Error 1
    make[4]: *** Waiting for unfinished jobs....
    make[3]: *** [debug-all] Error 2
    make[2]: *** [sub-Target-pri-make_first-ordered] Error 2
    make[1]: *** [sub-Source-WebCore-WebCore-pro-make_first-ordered] Error 2
    make: *** [module-qtwebkit-make_first] Error 2
    bash-3.2$ git rev-parse HEAD
    a9e3e72b2ee5ede0ca3ea04912d437230861d8c5
    bash-3.2$ @

    Can anybody suggest me something?

    Thanks in advance

    Mike

    www.topen.org

    1 Reply Last reply
    0
    • M Offline
      M Offline
      miketopen
      wrote on last edited by
      #2

      OK, I finally had some time to go on with that problem and was able to avoid it by
      explicitly using the libxml installed by macport:

      @
      ./configure -developer-build -opensource -I/opt/local/include/libxml2 -release
      @

      However, it simple didn't solve the complete problem, because I'm running into linker problems.....

      I would like to try something else; the configure command with the given arguments above uses clang. How can I switch to gcc? It was not clear to me reading the help page, also I didn't found any option to switch of webkit.

      Thanks for you help.

      Mike
      

      www.topen.org

      1 Reply Last reply
      0
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #3

        Just remove contents of QtWebkit directory and it will stop compiling :)

        You can choose the mkspecs with -platform or -spec, I don't remember.

        (Z(:^

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tucnak
          wrote on last edited by
          #4

          Hi, ~miketopen!

          Use Qt instead of QuickTime (QT), please.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            miketopen
            wrote on last edited by
            #5

            I finally had some time to try to complie Qt 5 again. I used a newer version (4cad9e466784ec54e3cf6f216d3df20ba7a595b0) from the git repository. Fortunatly, with this version
            no further adjustments had to be done on my Mountain Lion. I compiled it with the following three commands:
            @
            ./init-repository -f
            ./configure -prefix $PWD/qtbase -opensource -nomake tests
            make -j 2
            @

            For me the issue is now closed. Thanks to all for your help.

            Bests

            Mike
            

            www.topen.org

            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