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. Cannot build WebKit2 w/ Qt5.2RC1 on Mac ... please help
Forum Updated to NodeBB v4.3 + New Features

Cannot build WebKit2 w/ Qt5.2RC1 on Mac ... please help

Scheduled Pinned Locked Moved Installation and Deployment
7 Posts 3 Posters 2.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.
  • L Offline
    L Offline
    lgraber
    wrote on last edited by
    #1

    Changing title to try and attract more response

    Below is my original mail. I have made progress on some other issues with build but this is still biting me. It appears that WebKit2 wants all of the header files to be already placed in my build directory before compiling but that isn't happening. For kicks I changed the one issue I mentioned below (changed the include to "work") and then it simply failed later with similar include issues.

    Why can't I build WebKit2.
    Alternatively ... for now, how do I stop buildling WebKit2?
    Thanks


    I will eventually get to RTM since it just came out but I have honestly invested 2 weeks trying to get Qt5 building and getting our app to build against it and I am still not done.

    The problem I would like help with here is a build error:
    /Users/lgraber/dev/.../qtwebkit/Source/WebKit2/Platform/CoreIPC/Connection.cpp:29:10: fatal error: 'WebCore/RunLoop.h' file not found

    I am doing a shadow build and I got the source from the git repo. My configuration uses:
    -prefix ${myoutdir} -debug-and-release -opensource -confirm-license -no-framework -platform macx-clang -no-compile-examples -nomake examples -nomake tests -opengl desktop -qt-zlib -qt-libpng -qt-libjpeg

    A couple of things I have noted:

    1. No matter how many "no"s you put around build examples & tests, Qt build system will try to build them. I was eventually forced to simply delete the directories. That was necessary because they failed to build with a bunch of include files not found. Looking at the output ... there were missing Include paths.
    2. It is interesting that it is building WebKit when I didn't set -icu and it shouldn't be able to find it on my machine. On windows, not setting -icu means no webkit. I did actually try setting -icu and that fails miserably because I put the -I & -L on my configuration because my ICU is not installed. Qt build system does not work in this case as those paths are not flowed in a couple of cases. :(
    3. I searched for RunLoop.h and the only place I found it was in qtwebkit/Source/WebCore/platform/RunLoop.h. Clearly that could never work since "platform" is between WebCore and RunLoop.h. My only assumption is that it should have been placed somewhere but wasn't. I don't know how to track this down though.

    Any help is very much appreciated. I would love to be able to build and help my team move but ... it has not been smooth sailing. I was originally trying to build 5.1.1 and that one was failing so much that we decided to try 5.2 (which has gone a lot better but still is having issues). Hoping to hear from someone

    Thanks
    Lee

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

      Add:
      @
      -skip webkit
      @

      To configure flags. Make sure your setup is up-to-date (newest Xcode with command line tools). And you can now download the official Qt 5.2 release source code (just remember not do download the .zip package, as it's intended for Windows only).

      (Z(:^

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lgraber
        wrote on last edited by
        #3

        I want to build webkit. I would like to know how to get past this

        With regards to the zip / tar files, I am hoping that building from the git repo is fine. The issue with the zip / tar files is that I have to build for both Windows and Mac (and Linux soon). We build for windows on windows with msvc but we build for Mac on the mac with clang. We have had to make a number of fixes to Qt (some of which I will try to push up ... others might not make as much sense). I want to have one source repo where my changes occur. Is there any issue with using the git repo for doing real builds? If not, I have to keep two copies of the src and make modifications to both. :(

        Thanks

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

          No, git is more than fine for doing this ;) I somehow forgot you have written about it in your earlier post.

          (Z(:^

          1 Reply Last reply
          0
          • L Offline
            L Offline
            lgraber
            wrote on last edited by
            #5

            I would love to hear from someone on how to do this. In the mean time I have been forced to remove webkit2 from my build. :(

            1 Reply Last reply
            0
            • P Offline
              P Offline
              pi31415926
              wrote on last edited by
              #6

              Had the same issue when building Qt 5.4 on OS X.
              Building with "make" instead of "make all" helped - see "QTBUG-35514":https://bugreports.qt-project.org/browse/"QTBUG-35514

              1 Reply Last reply
              0
              • P Offline
                P Offline
                pi31415926
                wrote on last edited by
                #7

                Had the same issue when building Qt 5.4 on OS X.
                Building with "make" instead of "make all" helped - see "QTBUG-35514":https://bugreports.qt-project.org/browse/"QTBUG-35514

                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