Skip to contentSkip to conversation

qtwebkit: do not skip build - use cmake as build system

PATCH In review Andreas Müller 3 participants 10 messages Jun 4, 2018 – Jun 7, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qtwebkit: do not skip build - use cmake as build system

log.do_configure says:

| The WebKit build was disabled for the following reasons:
|     * cross-compilation of QtWebKit with qmake is not supported yet
|    * Missing cmake from PATH
|    * Using cmake version , but at least cmake 2.8.12 is required to build QtWebKit.

and build was finished without errors (but surprisingly fast). Looking into qtwebkit, it seems they have changed to cmake build system and Webkit.pro is just a wrapper for preparing and running cmake.

For the transition the packageconfigs were translated as close as possible. 'libxcomposite' and 'libxrender' were merged to 'x11' - there is only one option 'ENABLE_X11_TARGET' available for both.

---
 .../0001-Do-not-skip-build-for-cross-compile.patch | 31 +++++++++++++
 recipes-qt/qt5/qtwebkit_git.bb                     | 51 ++++++++++------------
 2 files changed, 54 insertions(+), 28 deletions(-)
 create mode 100644 recipes-qt/qt5/qtwebkit/0001-Do-not-skip-build-for-cross-compile.patch
recipes-qt/qt5/qtwebkit/0001-Do-not-skip-build-for-cross-compile.patch new file +31 -0
new file mode 100644
index 0000000..dac4815
@@ -0,0 +1,31 @@
+From d9f4d11ffdf1e8b5485aefc3556b1bef3e009587 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Andreas=20M=C3=BCller?= <[email protected]>
+Date: Mon, 4 Jun 2018 10:35:46 +0200
+Subject: [PATCH] Do not skip build for cross-compile
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Upstream-Status: Inappropriate [OE specific]
+
+Signed-off-by: Andreas Müller <[email protected]>
+---
+ Tools/qmake/mkspecs/features/functions.prf | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/Tools/qmake/mkspecs/features/functions.prf b/Tools/qmake/mkspecs/features/functions.prf
+index e3f42cec4..797b7085f 100644
+--- a/Tools/qmake/mkspecs/features/functions.prf
++++ b/Tools/qmake/mkspecs/features/functions.prf
+@@ -53,8 +53,6 @@ defineReplace(appleSdkVersion) {
+ defineTest(isPlatformSupported) {
+     !qtHaveModule(widgets): skipBuild("QtWidgets module is required to build QtWebKit.")
+ 
+-    cross_compile: skipBuild("cross-compilation of QtWebKit with qmake is not supported yet")
+-
+     requiredPrograms = cmake gperf python perl bison ruby flex
+     for(program, requiredPrograms): \
+         !programExistsInPath($$program): \
+-- 
+2.14.3
+
recipes-qt/qt5/qtwebkit_git.bb +23 -28

76 lines not on this page · raw message

Signature · 1 line
2.14.3
#1 lore raw
Quoted 15 lines · Andreas Müller

log.do_configure says:

| The WebKit build was disabled for the following reasons:
|     * cross-compilation of QtWebKit with qmake is not supported yet
|    * Missing cmake from PATH
|    * Using cmake version , but at least cmake 2.8.12 is required to build QtWebKit.

and build was finished without errors (but surprisingly fast). Looking into qtwebkit, it seems they have changed to cmake build system and Webkit.pro is just a wrapper for preparing and running cmake.

For the transition the packageconfigs were translated as close as possible. 'libxcomposite' and 'libxrender' were merged to 'x11' - there is only one option 'ENABLE_X11_TARGET' available for both.

Quoted 7 lines
---
 .../0001-Do-not-skip-build-for-cross-compile.patch | 31 +++++++++++++
 recipes-qt/qt5/qtwebkit_git.bb                     | 51 ++++++++++------------
 2 files changed, 54 insertions(+), 28 deletions(-)
 create mode 100644 recipes-qt/qt5/qtwebkit/0001-Do-not-skip-build-for-cross-compile.patch

Cannot see (yet) what's wrong with this patch but now qtquick1 fails with:

| error: QGraphicsWebView: No such file or directory

Andreas

#2 lore raw

Thanks Andreas for taking care of this, I was planing to look at it later and then I forgot about it when I wanted to push first 5.11 recipes.

With gcc8 I see small issue:
http://errors.yoctoproject.org/Errors/Details/179245/

In fedora they just added -fpermissive in:
https://bugzilla.redhat.com/show_bug.cgi?id=1582954

Are you interested in fixing it properly? I don't use qtwebkit anywhere (switched
to qtwebengine long time ago), so I don't mind adding -fpermissive as well.

Quoted 41 lines · Andreas Müller
Quoted 6 lines · Andreas Müller

log.do_configure says:

| The WebKit build was disabled for the following reasons:
|     * cross-compilation of QtWebKit with qmake is not supported yet
|    * Missing cmake from PATH
|    * Using cmake version , but at least cmake 2.8.12 is required to

build QtWebKit.

Quoted 2 lines

and build was finished without errors (but surprisingly fast). Looking

into

Quoted 1 line

qtwebkit, it seems they have changed to cmake build system and

Webkit.pro is

Quoted 3 lines

just a wrapper for preparing and running cmake.

For the transition the packageconfigs were translated as close as

possible.

Quoted 7 lines

'libxcomposite' and 'libxrender' were merged to 'x11' - there is only one option 'ENABLE_X11_TARGET' available for both.

---
 .../0001-Do-not-skip-build-for-cross-compile.patch | 31 +++++++++++++
 recipes-qt/qt5/qtwebkit_git.bb                     | 51

++++++++++------------

Quoted 2 lines
 2 files changed, 54 insertions(+), 28 deletions(-)
 create mode 100644

recipes-qt/qt5/qtwebkit/0001-Do-not-skip-build-for-cross-compile.patch

Quoted 1 line

Cannot see (yet) what's wrong with this patch but now qtquick1 fails with:

| error: QGraphicsWebView: No such file or directory

Andreas
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#3 lore raw
Quoted 6 lines · Martin Jansa

Thanks Andreas for taking care of this, I was planing to look at it later and then I forgot about it when I wanted to push first 5.11 recipes.

With gcc8 I see small issue:
http://errors.yoctoproject.org/Errors/Details/179245/

Quoted 7 lines

In fedora they just added -fpermissive in:
https://bugzilla.redhat.com/show_bug.cgi?id=1582954

Are you interested in fixing it properly? I don't use qtwebkit anywhere (switched
to qtwebengine long time ago), so I don't mind adding -fpermissive as well.

IMO adding -fpermissive is acceptable for this package, its on a lifeline anyway

Quoted 49 lines
Quoted 32 lines · Andreas Müller
Quoted 6 lines · Andreas Müller

log.do_configure says:

| The WebKit build was disabled for the following reasons:
|     * cross-compilation of QtWebKit with qmake is not supported yet
|    * Missing cmake from PATH
|    * Using cmake version , but at least cmake 2.8.12 is required to

build QtWebKit.

Quoted 2 lines

and build was finished without errors (but surprisingly fast). Looking

into

Quoted 1 line

qtwebkit, it seems they have changed to cmake build system and

Webkit.pro is

Quoted 3 lines

just a wrapper for preparing and running cmake.

For the transition the packageconfigs were translated as close as

possible.

Quoted 7 lines

'libxcomposite' and 'libxrender' were merged to 'x11' - there is only one option 'ENABLE_X11_TARGET' available for both.

---
 .../0001-Do-not-skip-build-for-cross-compile.patch | 31 +++++++++++++
 recipes-qt/qt5/qtwebkit_git.bb                     | 51

++++++++++------------

Quoted 2 lines
 2 files changed, 54 insertions(+), 28 deletions(-)
 create mode 100644

recipes-qt/qt5/qtwebkit/0001-Do-not-skip-build-for-cross-compile.patch

Quoted 1 line

Cannot see (yet) what's wrong with this patch but now qtquick1 fails with:

Quoted 9 lines

| error: QGraphicsWebView: No such file or directory

Andreas
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#4 lore raw
Quoted 7 lines · Khem Raj
Quoted 6 lines · Martin Jansa

Thanks Andreas for taking care of this, I was planing to look at it later and then I forgot about it when I wanted to push first 5.11 recipes.

With gcc8 I see small issue:
http://errors.yoctoproject.org/Errors/Details/179245/

Quoted 6 lines
Quoted 6 lines

In fedora they just added -fpermissive in:
https://bugzilla.redhat.com/show_bug.cgi?id=1582954

Are you interested in fixing it properly? I don't use qtwebkit anywhere (switched
to qtwebengine long time ago), so I don't mind adding -fpermissive as well.

Yes - I will check - have still recipes in meta-qt5-extra depending on. Maybe I should check which dependency is still necessary or just left over. One question: is gcc8 already upstream in oe-core because I ran tests with quite recent masters allover.

Quoted 3 lines
Quoted 1 line

IMO adding -fpermissive is acceptable for this package, its on a lifeline anyway

Dead ones live longer :)

Andreas

#5 lore raw
Quoted 14 lines · Andreas Müller
Quoted 7 lines · Khem Raj
Quoted 6 lines · Martin Jansa

Thanks Andreas for taking care of this, I was planing to look at it later and then I forgot about it when I wanted to push first 5.11 recipes.

With gcc8 I see small issue:
http://errors.yoctoproject.org/Errors/Details/179245/

Quoted 6 lines
Quoted 6 lines

In fedora they just added -fpermissive in:
https://bugzilla.redhat.com/show_bug.cgi?id=1582954

Are you interested in fixing it properly? I don't use qtwebkit anywhere (switched
to qtwebengine long time ago), so I don't mind adding -fpermissive as well.

Quoted 8 lines

Yes - I will check - have still recipes in meta-qt5-extra depending on. Maybe I should check which dependency is still necessary or just left over. One question: is gcc8 already upstream in oe-core because I ran tests with quite recent masters allover.

Quoted 3 lines
Quoted 1 line

IMO adding -fpermissive is acceptable for this package, its on a lifeline anyway

Dead ones live longer :)

indeed in memories.

#6 lore raw
In reply to Andreas Müller

It's not in oe-core master yet, there is branch from Khem I was using to start the testing with gcc8.

http://git.openembedded.org/openembedded-core-contrib/log/?h=kraj/gcc-8

Quoted 29 lines · Andreas Müller
Quoted 1 line · Khem Raj

On Wed, Jun 6, 2018 at 10:13 AM, Martin Jansa <[email protected]>

Quoted 1 line · wrote:
Quoted 1 line

Thanks Andreas for taking care of this, I was planing to look at it

later

Quoted 11 lines
Quoted 11 lines

and then I forgot about it when I wanted to push first 5.11 recipes.

With gcc8 I see small issue:
http://errors.yoctoproject.org/Errors/Details/179245/

In fedora they just added -fpermissive in:
https://bugzilla.redhat.com/show_bug.cgi?id=1582954

Are you interested in fixing it properly? I don't use qtwebkit anywhere (switched
to qtwebengine long time ago), so I don't mind adding -fpermissive as

well.
Yes - I will check - have still recipes in meta-qt5-extra depending on. Maybe I should check which dependency is still necessary or just left over. One question: is gcc8 already upstream in oe-core because I ran tests with quite recent masters allover.

Quoted 3 lines
Quoted 1 line

IMO adding -fpermissive is acceptable for this package, its on a

lifeline anyway
Dead ones live longer :)

Andreas

#8 lore raw
Quoted 9 lines · Andreas Müller
Quoted 5 lines · Martin Jansa

It's not in oe-core master yet, there is branch from Khem I was using to start the testing with gcc8.

http://git.openembedded.org/openembedded-core-contrib/log/?h=kraj/gcc-8

OK - gcc8 - off to new challenges

Andreas

I've added commit to meta-qt5 master-next with -fpermissive and verified that it builds for me again.

Now when qtwebkit built ok, I see failure in qtwebkit-examples:
http://errors.yoctoproject.org/Errors/Build/60754/

This might be a bit more complicated to resolve, are you interested in qtwebkit-examples as well or should we remove it as you did with qtquick1?

And for qtquick1 removal, one more change is needed:
ERROR: Nothing PROVIDES 'qtquick1' (but /OE/build/oe-core/meta-qt5/recipes-qt/qt5/qt5-creator_4.5.1.bb DEPENDS on or otherwise requires it)

Cheers,

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#9 lore raw

On Thu, Jun 7, 2018 at 8:08 AM, Martin Jansa <[email protected]> wrote:
Hi Martin,

Quoted 3 lines

I've added commit to meta-qt5 master-next with -fpermissive and verified that it builds for me again.

Thanks

Quoted 7 lines

Now when qtwebkit built ok, I see failure in qtwebkit-examples:
http://errors.yoctoproject.org/Errors/Build/60754/

This might be a bit more complicated to resolve, are you interested in qtwebkit-examples as well or should we remove it as you did with qtquick1?

I am not interested in qtwebkit-examples - anybody else?

Quoted 5 lines

And for qtquick1 removal, one more change is needed:
ERROR: Nothing PROVIDES 'qtquick1' (but /OE/build/oe-core/meta-qt5/recipes-qt/qt5/qt5-creator_4.5.1.bb DEPENDS on or otherwise requires it)

Will take care.

Quoted 4 lines

Cheers,
--
Martin 'JaMa' Jansa jabber: [email protected]

Andreas