Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt5.6: cross compiling QtWebKit issue

Qt5.6: cross compiling QtWebKit issue

Scheduled Pinned Locked Moved Solved Mobile and Embedded
qt5.6qtwebkitcross-compile
3 Posts 2 Posters 2.9k Views
  • 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.
  • G Offline
    G Offline
    Gary Bisson
    wrote on last edited by
    #1

    Hi,

    I have an application relying on QtWebKit, running on a platform with no GPU so I can't upgrade to QtWebEngine. I used to build QtWebKit on Buildroot using the release package qtwebkit-opensource-src-5.5.1.tar.xz and it worked fine.

    Since QtWebKit has been removed from 5.6 release packages I'm trying to build from the github repo this time:
    https://github.com/qtproject/qtwebkit/tree/5.6

    The exact version used is the same as the meta-qt5:
    https://github.com/meta-qt5/meta-qt5/commit/e434995a

    While the build process goes well at first, libQt5WebKit.so generated just fine, then it complains about missing headers:
    Source/WebKit/qt/WidgetApi/qwebframe.h:29:36: fatal error: QtWebKit/qwebkitglobal.h: No such file or directory
    #include <QtWebKit/qwebkitglobal.h>

    Indeed, when looking at the previous release package, an include folder was there with QtWebKit/qwebkitglobal.h whereas in my case the header is in Source/WebKit/qt/Api/qwebkitglobal.h.

    So my question: how do we generate this include folder with the copy of the right headers at the right place? Is there a script to do it?

    I've tried using the previous Buildroot build procedure (qmake + make):
    https://github.com/buildroot/buildroot/blob/2015.05/package/qt5/qt5webkit/qt5webkit.mk#L33

    Then I also tried following qtwebkit wiki by issuing:
    cd $(@D); $(TARGET_MAKE_ENV) ./Tools/Scripts/build-webkit --qt --release

    Both result in the same missing header error.

    Any hint is appreciated ;)

    Regards,
    Gary

    G 1 Reply Last reply
    0
    • G Gary Bisson

      Hi,

      I have an application relying on QtWebKit, running on a platform with no GPU so I can't upgrade to QtWebEngine. I used to build QtWebKit on Buildroot using the release package qtwebkit-opensource-src-5.5.1.tar.xz and it worked fine.

      Since QtWebKit has been removed from 5.6 release packages I'm trying to build from the github repo this time:
      https://github.com/qtproject/qtwebkit/tree/5.6

      The exact version used is the same as the meta-qt5:
      https://github.com/meta-qt5/meta-qt5/commit/e434995a

      While the build process goes well at first, libQt5WebKit.so generated just fine, then it complains about missing headers:
      Source/WebKit/qt/WidgetApi/qwebframe.h:29:36: fatal error: QtWebKit/qwebkitglobal.h: No such file or directory
      #include <QtWebKit/qwebkitglobal.h>

      Indeed, when looking at the previous release package, an include folder was there with QtWebKit/qwebkitglobal.h whereas in my case the header is in Source/WebKit/qt/Api/qwebkitglobal.h.

      So my question: how do we generate this include folder with the copy of the right headers at the right place? Is there a script to do it?

      I've tried using the previous Buildroot build procedure (qmake + make):
      https://github.com/buildroot/buildroot/blob/2015.05/package/qt5/qt5webkit/qt5webkit.mk#L33

      Then I also tried following qtwebkit wiki by issuing:
      cd $(@D); $(TARGET_MAKE_ENV) ./Tools/Scripts/build-webkit --qt --release

      Both result in the same missing header error.

      Any hint is appreciated ;)

      Regards,
      Gary

      G Offline
      G Offline
      Gary Bisson
      wrote on last edited by
      #2

      @Gary-Bisson

      Alright, found the issue, you need to create a .git folder at the qtwebkit root folder for the include headers creation. It'd be nice if this was documented somewhere:
      https://github.com/meta-qt5/meta-qt5/blob/master/recipes-qt/qt5/qt5.inc#L36

      Regards,
      Gary

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

        Hi,

        I'd recommend using code.qt.io when cloning. GitHub is only a mirror.

        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

        • Login

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