[meta-freescale] meta-qt5 and WebKit2 examples?
Erik Botö
erik.boto at pelagicore.com
Thu Apr 3 23:26:03 PDT 2014
Hi all,
Ok, so I did another test. Qt 5.2.1 but using QtWebkit 5.1.1. This
works well for me on a nitrogen6x, and I'll probably use this as a
work-around for now.
FYI, there's a thread on qt-dev about this,
http://lists.qt-project.org/pipermail/interest/2014-April/011807.html
.
I had to do two minor backports in order to compile the older
qtwebkit, see below. I also saw that there were error building with
qtlocation, but I just disabled that since I'm not using it right now
anyway. It can probably be fixed as well though if you just look in to
it.
diff -ur qtwebkit-opensource-src-5.1.1/Source/ThirdParty/ANGLE/src/compiler/glslang.y
qtwebkit-opensource-src-5.1.1.fixed/Source/ThirdParty/ANGLE/src/compiler/glslang.y
--- qtwebkit-opensource-src-5.1.1/Source/ThirdParty/ANGLE/src/compiler/glslang.y
2013-08-25 20:04:43.000000000 +0200
+++ qtwebkit-opensource-src-5.1.1.fixed/Source/ThirdParty/ANGLE/src/compiler/glslang.y
2014-04-02 15:25:54.436352726 +0200
@@ -47,6 +47,7 @@
%expect 1 /* One shift reduce conflict because of if | else */
%pure-parser
%parse-param {TParseContext* context}
+%lex-param {YYLEX_PARAM}
%union {
struct {
diff -ur qtwebkit-opensource-src-5.1.1/Source/WebKit/qt/WidgetApi/qwebviewaccessible_p.h
qtwebkit-opensource-src-5.1.1.fixed/Source/WebKit/qt/WidgetApi/qwebviewaccessible_p.h
--- qtwebkit-opensource-src-5.1.1/Source/WebKit/qt/WidgetApi/qwebviewaccessible_p.h
2013-08-25 20:04:54.000000000 +0200
+++ qtwebkit-opensource-src-5.1.1.fixed/Source/WebKit/qt/WidgetApi/qwebviewaccessible_p.h
2014-04-02 17:30:08.228405250 +0200
@@ -22,7 +22,7 @@
#include <qaccessible.h>
#include <qaccessibleobject.h>
-#if QT_VERSION >= QT_VERSION_CHECK(5, 1, 0)
+#if QT_VERSION >= QT_VERSION_CHECK(5, 1, 0) && QT_VERSION <
QT_VERSION_CHECK(5, 2, 0)
#include <private/qaccessiblewidget_p.h>
#else
#include <qaccessiblewidget.h>
Cheers,
Erik
On Wed, Mar 26, 2014 at 5:57 PM, Erik Botö <erik.boto at pelagicore.com> wrote:
> On Wed, Mar 26, 2014 at 5:43 PM, Martin Jansa <martin.jansa at gmail.com> wrote:
>> On Wed, Mar 26, 2014 at 01:38:14PM -0300, Otavio Salvador wrote:
>>> Hello Erik,
>>>
>>> On Wed, Mar 26, 2014 at 1:06 PM, Erik Botö <erik.boto at pelagicore.com> wrote:
>>> > I haven't tried the examples, but we can display e.g. google maps in a
>>> > webview on imx6 (eglfs). I'm not on latest meta-qt5, but I think it
>>> > should work there as well.
>>> >
>>> > QtWebProcess seems to require a certain pixelformat of the
>>> > framebuffer. In order to get it displaying properly I pass fbpix=BGR32
>>> > on the kernel command line. I use a nitrogen6x with the 10" hannstar
>>> > display so I basically do this in the u-boot-boundary-scripts package:
>>> >
>>> > diff -uNr git.orig/board/boundary/nitrogen6x/6x_bootscript-yocto.txt
>>> > git/board/boundary/nitrogen6x/6x_bootscript-yocto.txt
>>> > --- git.orig/board/boundary/nitrogen6x/6x_bootscript-yocto.txt
>>> > 2014-03-20 10:08:34.351756548 +0100
>>> > +++ git/board/boundary/nitrogen6x/6x_bootscript-yocto.txt 2014-03-20
>>> > 10:10:00.711759080 +0100
>>> > @@ -15,7 +15,7 @@
>>> >
>>> > i2c dev 2
>>> > if i2c probe 0x04 ; then
>>> > - setenv bootargs $bootargs video=mxcfb${nextcon}:dev=ldb,LDB-XGA,if=RGB666
>>> > + setenv bootargs $bootargs video=mxcfb${nextcon}:dev=ldb,fbpix=BGR32
>>> > if test "0" -eq $nextcon; then
>>> > setenv fbmem "fbmem=10M";
>>> > else
>>>
>>> Oh!
>>>
>>> > Also, make sure you set QT_QPA_PLATFORM=eglfs when you run your app,
>>> > since using -platform eglfs won't propagate to the launched
>>> > QtWebProcess.
>>>
>>> Martin, do you know if something related to this has been fixed in
>>> last Qt5 releases?
>>
>> What version were you using in this test?
>
> This was qtwebkit-5.1.1. I'll start a build of meta-qt5 master to see
> if 5.2.1 work ok for me.
>
> Cheers,
> Erik
>
>>
>> There were some changes for different fb formats in 5.2.1 (not really
>> sure if really related to the issue you're seeing) and there is
>> branch for 5.3.0-beta1 if you want to test it there.
>>
>> --
>> Martin 'JaMa' Jansa jabber: Martin.Jansa at gmail.com
More information about the meta-freescale
mailing list