[webkit-qt] QtWebKit, QtWebKit 2 and... WebGL

Ivan De Marino ivan.de.marino at gmail.com
Tue Apr 27 00:02:49 PDT 2010


The problem when trying to compile on Mac OS X:
# ./WebKitTools/Scripts/build-webkit --qt --3d-canvas --3d-rendering --debug
[... a lot of stuff ...]
In file included from /opt/qt-4.7-stable/include/QtGui/QtGui:65,
                 from /opt/qt-4.7-stable/include/QtOpenGL/QtOpenGL:4,
                 from
../../../WebCore/platform/graphics/GraphicsContext3D.h:48,
                 from ../../../WebCore/platform/graphics/GraphicsLayer.h:37,
                 from
../../../WebCore/platform/graphics/qt/GraphicsLayerQt.h:23,
                 from
../../../WebKit/qt/WebCoreSupport/ChromeClientQt.cpp:65:
/opt/qt-4.7-stable/include/QtGui/qitemdelegate.h:124:40: error: macro
"check" passed 3 arguments, but takes just 1
In file included from /opt/qt-4.7-stable/include/QtGui/QtGui:65,
                 from /opt/qt-4.7-stable/include/QtOpenGL/QtOpenGL:4,
                 from
../../../WebCore/platform/graphics/GraphicsContext3D.h:48,
                 from ../../../WebCore/platform/graphics/GraphicsLayer.h:37,
                 from
../../../WebCore/platform/graphics/qt/GraphicsLayerQt.h:23,
                 from
../../../WebKit/qt/WebCoreSupport/ChromeClientQt.cpp:65:
/opt/qt-4.7-stable/include/QtGui/qitemdelegate.h:123: error: expected ‘;’
before ‘const’
make[1]: *** [obj/debug/ChromeClientQt.o] Error 1
make: *** [sub-WebCore-make_default-ordered] Error 2



On 26 April 2010 16:12, Ivan De Marino <ivan.de.marino at gmail.com> wrote:

> Hi Jarkko.
> Happy to see you here and thanks to take the time to answer.
>
> Anyway, what I did is more or less following the instructions.
> I compiled with: "..build-webkit --qt --3d-canvas --3d-rendering --release
> (or --debug)".
> I tried on Linux Ubuntu Karmic and Lucid. The first with an Nvidia GeForce
> 6something, the second with a Nvidia Quadro for laptop.
> Both using Nvidia closed-source drivers.
>
> Good news of today is: I played with the options in the "developer" menu of
> the test application and I figured out how to see the 3d Canvas: I have to
> do those steps
> - Load a page with a 3d-Canvas within
> - Enable WebGL
> - Enable QGraphicsView
> - Disable Composite
>
> And I have to do it again for every new page. I read "quickly" that there
> is something going on wrong with the composite-thing (I don't really know
> what "Composite" is, I must say) in QtWebKit, so I guess is being
> addressed/known.
>
> That's the story on Linux, more or less.
>
> On Mac OS X, instead, until yesterday morning I was unable to build with
> 3d-canvas enabled. I'll give it another go tonight: I saw that there are a
> lot of commits this morning.
>
> Hope it's detailed enough ;)
> If not, let me know and I'll elaborate more.
>
> *A question: are you aware if this could build within the Scratchbox-SDK
> of Fremantle? My final aim is to have a WebView that is WebGL enabled in
> Maemo 5 ;)*
>
>
> On 26 April 2010 11:06, <Jarkko.Sakkinen at tieto.com> wrote:
>
>> Hi,
>>
>> I just joined the mailing list (through my gmail address). Easiest way to
>> reach me is however through
>> in QtWebKit IRC channel. And note also that  I'm doing this when I have
>> free time. That's why progress
>> is not always  that rapid. Currently there isn't much new stuff. The major
>> thing is to get fast drawTexture
>> blitting of FBO when AC is enabled (35388). I'll also try to answer
>> upcoming questions as they help me
>> to improve the implementation.
>>
>> Some pending issues:
>> - https://bugs.webkit.org/show_bug.cgi?id=35388 (I have already updated
>> patch on my laptop
>> for this, submitting soon. Uses QGLContext::drawTexture with AC and
>> QGLWidget viewport to
>> get really smooth rendering (4.7 required))
>> - https://bugs.webkit.org/show_bug.cgi?id=37772 (I have already fixed
>> similar issue in other place
>> that relates to assumption coming from Apple WebKit that WebGL is
>> available only if AC is enabled).
>>
>> Ivan De Marino can you elaborate the steps that you did with QtLauncher
>> starting from when
>> you start the application.   What options you used to compile webkit (--qt
>> --3d-canvas?). What
>> graphics hardware you have?
>>
>> BR, Jarkko
>> ________________________________________
>> From: Benjamin Poulain [benjamin.poulain at nokia.com]
>> Sent: Friday, April 23, 2010 5:55 PM
>> To: ext Ivan De Marino; webkit-qt at lists.webkit.org; Sakkinen Jarkko
>> Subject: Re: [webkit-qt] QtWebKit, QtWebKit 2 and... WebGL
>>
>> ext Ivan De Marino wrote:
>> > Ok, I managed to build on linux desktop x86 Ubuntu Karmic.
>> >
>> > But when I go on a website that uses the 3D canvas (I'm using "WebGL
>> > lessons"), and enable the "toggle WebGL", I still don't see anything
>> > (white instead of the canvas) and the entire pc get's
>> > sluggish/unresponsive. Everything back to normal as soon as I click on
>> > "toggle WebGL" to disable it.
>> >
>> > Any clue?
>>
>> I don't think the developer of the feature is on the mailing list. I
>> have added him in CC.
>>
>> Jarkko, we have regularly questions about WebGL, could you join the
>> mailing list "webkit-qt"?
>>
>> cheers,
>> Benjamin
>>
>
>
>
> --
> Ivan De Marino | Software Engineer | France Telecom R&D UK - Orange Labs
> w. +44 20 8849 5806 | m. +44 7515 955 861 | m. +44 7974 156 216
> ivan[dot]demarino[at]orange-ftgroup.com |
> ivan[dot]de[dot]marino[at]gmail[dot]com
> www.detronizator.org | www.linkedin.com/in/ivandemarino
>



-- 
Ivan De Marino | Software Engineer | France Telecom R&D UK - Orange Labs
w. +44 20 8849 5806 | m. +44 7515 955 861 | m. +44 7974 156 216
ivan[dot]demarino[at]orange-ftgroup.com |
ivan[dot]de[dot]marino[at]gmail[dot]com
www.detronizator.org | www.linkedin.com/in/ivandemarino
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-qt/attachments/20100427/1c78aed3/attachment-0001.html>


More information about the webkit-qt mailing list