10robinho
Posts: 44
Joined: Thu Feb 28, 2013 7:42 pm

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Thu May 15, 2014 5:57 pm

I'm trying QtWebkit on image generated from this buildroot repo.
Do you guys have decent performances with it? I get very bad performances and it is freezing after I try to do something. By very bad I mean completely unusable.

I remember having quite decent performances with some browser on RPI, but in X. I think that was default browser that comes with Raspbian.
Now, maybe there are some patches or something that makes qtwebkit to behave at least usable?

Cheers

vitorcarvalhoml
Posts: 13
Joined: Thu Apr 11, 2013 3:03 am

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Thu May 15, 2014 7:36 pm

10robinho what do you trying to run?

How to activate swap partition?

Code: Select all

# swapon /dev/mmcblk0p3 
swapon: /dev/mmcblk0p3: Function not implemented

10robinho
Posts: 44
Joined: Thu Feb 28, 2013 7:42 pm

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Fri May 16, 2014 8:55 am

vitorcarvalhoml wrote:10robinho what do you trying to run?
I just run

Code: Select all

qtbrowser
and typed something into Google. After I pressed Enter key everything freezes and I have to kill qtbrowser process.

beney
Posts: 2
Joined: Sat May 17, 2014 3:13 pm

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Sat May 17, 2014 3:16 pm

I've tride this out too and had quite the same problem, meanwhile this is not really "freezing" it seems to be, but actually this is only the mouse that does not answers after any request on google, however you can still use the keybaord arrows/tab key to move into pages.

10robinho
Posts: 44
Joined: Thu Feb 28, 2013 7:42 pm

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Mon May 19, 2014 3:27 pm

beney wrote:I've tride this out too and had quite the same problem, meanwhile this is not really "freezing" it seems to be, but actually this is only the mouse that does not answers after any request on google, however you can still use the keybaord arrows/tab key to move into pages.
So, the main question is: Can we hw accelerate mouse?

Randa
Posts: 2
Joined: Fri Jan 11, 2013 8:35 am

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Wed May 21, 2014 9:03 am

Hello everyone,
thank you for this topic and for share this "repository".
I tried it and it work great.
I found the same mouse problem, but not in all pages, I think it's page related, maybe it depends on page complexity/memory usage.
Also I've noticed that in all pages with video tag tested qtbrowser consume over 90% of CPU, also when video is not playing, maybe it's related to this.
Is it normal?
Thank you.

wodBOT
Posts: 1
Joined: Wed May 21, 2014 5:26 pm

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Wed May 21, 2014 5:35 pm

I can't visit any websites but google.

If I type in qtwebkit http://www.youtube.com it just shows the google mainpage, if I try the ip of my local webserver it shows the same thing. What am I doing wrong?

nemilos
Posts: 27
Joined: Sat Jan 05, 2013 4:16 am

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Tue Jun 03, 2014 3:03 pm

Hello,

Woaw, we get realy nice result with this !

I tested with your last qt5.3, and i can use qtbrowser --url=http://.....

But now ( with qt 5.3 ) if i play local file .. qtbrowser --url=file:///var/www/index.html, it show the html code and not rendering it ...
( the same index.html on http:// server work ... )
The same work fine with qt 5.2 ...

thx for help

beney
Posts: 2
Joined: Sat May 17, 2014 3:13 pm

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Mon Jun 09, 2014 3:34 pm

Hey there !

The work you've done is really awesome, and I'm hopefully going to use it for a school project.
I only have one question as i'm not that much friendly with busybox and all this minimalist environnement. I wonder if this is possible to make the pi accessible via ftp, if yes, then how ? (I've googled a lot, tried things with dropbear but without success).

I'm not sure this is the best place to post this but this would be really helpfull if someone could give me a hint with this.
(If this could help the build i've mounted on the sd is the one that topguy shared on Thu May 08, 2014 12:38 pm)

Edit : Or at least make the pi visible on a local network.

User avatar
topguy
Posts: 5613
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Wed Jun 11, 2014 12:35 am

beney wrote: Edit : Or at least make the pi visible on a local network.
I haven't tested the latest image I posted here alot, but I'm pretty sure SSH has been enabled by default on all previous versions.
Is it file-access you want over the network ? WinSCP should handle that for windows.

_Mark_
Posts: 99
Joined: Sun Jun 02, 2013 8:04 am

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Wed Jun 18, 2014 6:54 am

Hello!
Does it work in RAM disk?
I enabled the following options in nconfig, as usual:

- cpio the root filesystem (for use as an initial RAM filesystem)
- initial RAM filesystem linked into linux kernel

With other buildroot configurations I was always able to boot successufully.
This time the RPi hangs on the rainbow image at power up.

Of course I copied the zImage and the rpi-firmware files into the boot partition.
Any idea?

_Mark_
Posts: 99
Joined: Sun Jun 02, 2013 8:04 am

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Wed Jun 18, 2014 7:28 am

In fact, I have the same problem with standard filesystem (not in RAM).
It seems it cannot start kernel. I only added the USB serial driver, nothing else.

How could I investigate further to fix the problem?

_Mark_
Posts: 99
Joined: Sun Jun 02, 2013 8:04 am

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Thu Jun 19, 2014 7:13 am

I see you selected gstreamer 1.0 but it seems it's incompatible with QtMultimedia :shock:
How would you play any audio/video file within Qt5?

is it possible to replace gstreamer 1.0 with 0.1 in order to easily manage media files?

stuartclark
Posts: 42
Joined: Wed Nov 07, 2012 12:41 pm

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Thu Jul 03, 2014 5:26 pm

Has anyone got this working recently?

I'm trying to compile, but qt5webkit always fails for me:

Code: Select all

perl /space/Home/buildroot/output/build/qt5webkit-f61743a656d85658941ef84f2cc20a0bbed99274/Source/JavaScriptCore/create_hash_table /space/Home/buildroot/output/build/qt5webkit-f61743a656d85658941ef84f2cc20a0bbed99274/Source/JavaScriptCore/runtime/RegExpPrototype.cpp -i > generated/RegExpPrototype.lut.h
Creating hashtable for /space/Home/buildroot/output/build/qt5webkit-f61743a656d85658941ef84f2cc20a0bbed99274/Source/JavaScriptCore/runtime/RegExpObject.cpp
Creating hashtable for /space/Home/buildroot/output/build/qt5webkit-f61743a656d85658941ef84f2cc20a0bbed99274/Source/JavaScriptCore/runtime/RegExpPrototype.cpp
perl /space/Home/buildroot/output/build/qt5webkit-f61743a656d85658941ef84f2cc20a0bbed99274/Source/JavaScriptCore/create_hash_table /space/Home/buildroot/output/build/qt5webkit-f61743a656d85658941ef84f2cc20a0bbed99274/Source/JavaScriptCore/runtime/StringConstructor.cpp -i > generated/StringConstructor.lut.h
perl /space/Home/buildroot/output/build/qt5webkit-f61743a656d85658941ef84f2cc20a0bbed99274/Source/JavaScriptCore/create_hash_table /space/Home/buildroot/output/build/qt5webkit-f61743a656d85658941ef84f2cc20a0bbed99274/Source/JavaScriptCore/parser/Keywords.table -i > generated/Lexer.lut.h
Creating hashtable for /space/Home/buildroot/output/build/qt5webkit-f61743a656d85658941ef84f2cc20a0bbed99274/Source/JavaScriptCore/parser/Keywords.table
perl -i /space/Home/buildroot/output/build/qt5webkit-f61743a656d85658941ef84f2cc20a0bbed99274/Source/JavaScriptCore/create_jit_stubs --prefix RVCT /space/Home/buildroot/output/build/qt5webkit-f61743a656d85658941ef84f2cc20a0bbed99274/Source/JavaScriptCore/jit/JITStubs.cpp > generated/GeneratedJITStubs_RVCT.h
Creating hashtable for /space/Home/buildroot/output/build/qt5webkit-f61743a656d85658941ef84f2cc20a0bbed99274/Source/JavaScriptCore/runtime/StringConstructor.cpp
Creating JIT stubs for /space/Home/buildroot/output/build/qt5webkit-f61743a656d85658941ef84f2cc20a0bbed99274/Source/JavaScriptCore/jit/JITStubs.cpp 
python /space/Home/buildroot/output/build/qt5webkit-f61743a656d85658941ef84f2cc20a0bbed99274/Source/JavaScriptCore/create_regex_tables > generated/RegExpJitTables.h
python /space/Home/buildroot/output/build/qt5webkit-f61743a656d85658941ef84f2cc20a0bbed99274/Source/JavaScriptCore/KeywordLookupGenerator.py /space/Home/buildroot/output/build/qt5webkit-f61743a656d85658941ef84f2cc20a0bbed99274/Source/JavaScriptCore/parser/Keywords.table > generated/KeywordLookup.h
ruby /space/Home/buildroot/output/build/qt5webkit-f61743a656d85658941ef84f2cc20a0bbed99274/Source/JavaScriptCore/offlineasm/asm.rb /space/Home/buildroot/output/build/qt5webkit-f61743a656d85658941ef84f2cc20a0bbed99274/Source/JavaScriptCore/llint/LowLevelInterpreter.asm LLIntOffsetsExtractor generated/LLIntAssembly.h
make[3]: *** No rule to make target `generated/generated/GeneratedJITStubs_MSVC.asm', needed by `.obj/space/Home/buildroot/output/build/qt5webkit-f61743a656d85658941ef84f2cc20a0bbed99274/release/Source/JavaScriptCore/generated/generated/GeneratedJITStubs_MSVC.lo'. Stop.
make[3]: *** Waiting for unfinished jobs....
offlineasm: Parsing /space/Home/buildroot/output/build/qt5webkit-f61743a656d85658941ef84f2cc20a0bbed99274/Source/JavaScriptCore/llint/LowLevelInterpreter.asm and LLIntOffsetsExtractor and creating assembly file generated/LLIntAssembly.h.
offlineasm: Including file /space/Home/buildroot/output/build/qt5webkit-f61743a656d85658941ef84f2cc20a0bbed99274/Source/JavaScriptCore/llint/LowLevelInterpreter64.asm
offlineasm: Including file /space/Home/buildroot/output/build/qt5webkit-f61743a656d85658941ef84f2cc20a0bbed99274/Source/JavaScriptCore/llint/LowLevelInterpreter32_64.asm
offlineasm: Assembly file generated/LLIntAssembly.h successfully generated.
make[3]: Leaving directory `/space/Home/buildroot/output/build/qt5webkit-f61743a656d85658941ef84f2cc20a0bbed99274/release/Source/JavaScriptCore'
make[2]: *** [sub-DerivedSources-pri-make_first-ordered] Error 2
make[2]: Leaving directory `/space/Home/buildroot/output/build/qt5webkit-f61743a656d85658941ef84f2cc20a0bbed99274/release/Source/JavaScriptCore'
make[1]: *** [sub-Source-JavaScriptCore-JavaScriptCore-pro-make_first-ordered] Error 2
make[1]: Leaving directory `/space/Home/buildroot/output/build/qt5webkit-f61743a656d85658941ef84f2cc20a0bbed99274/release'
make: *** [/home/sclark/Home/buildroot/output/build/qt5webkit-f61743a656d85658941ef84f2cc20a0bbed99274/.stamp_built] Error 2
I'm guessing it is a build environment issue, but does anyone have any ideas?

Thanks

stuartclark
Posts: 42
Joined: Wed Nov 07, 2012 12:41 pm

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Wed Jul 09, 2014 6:57 pm

A few git pulls and it now all compiles.

My next issue is that I'm not getting sound when playing HTML5 videos - I've also added alsa-utils and that is playing things, so I know it should be working.

Any ideas?

Thanks

stuartclark
Posts: 42
Joined: Wed Nov 07, 2012 12:41 pm

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Wed Jul 09, 2014 7:14 pm

Also, is there a way of telling if a HTML5 is using the GPU decoding? I've played a few H.264 videos which should play fine, but the stutter a bit. Will it also use hardware decoding for other MPEG2 & VC1 if they have been unlocked?

User avatar
topguy
Posts: 5613
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Thu Jul 10, 2014 9:22 am

I think the GPU is always used for video decoding if possible, if it wasn't enabled the video wouldnt stutter "a bit", it would stutter a "whole lot".

What was the resolution of the video you tried ? Was it stored locally or fetched over network ?

stuartclark
Posts: 42
Joined: Wed Nov 07, 2012 12:41 pm

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Thu Jul 10, 2014 11:09 am

It was 720p over a network.

I've worked out (I think) why there is no sound - I stupidly forgot to enable the gstreamer audio decoder plugins :-( I'm just rebuilding now...

iJean
Posts: 4
Joined: Sat Jan 10, 2015 1:54 am

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Sat Jan 10, 2015 1:58 am

topguy wrote:https://www.dropbox.com/s/c88sq5om2a8hn ... 052014.tgz

This is a freshly built system, but its not a sd-card image. You have to create the partitions and copy the files yourself.
It doesnt contain "mlbrowser" either but the replacement "qtbrowser", and it uses the Qt5.3 beta branch.

I had someone mail me about a similar "slideshow" problem with my "raspbian+mlbrowser" solution, in the end he fixed it by:
"I fixed my issue by updating the stack and inserting pictures in a canvas instead of loading them as standard img tags."
Hello,

do you have by any chance a fresh build ?

Thanks,

Jean

User avatar
topguy
Posts: 5613
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Sun Jan 11, 2015 12:12 pm

iJean wrote: Hello,
do you have by any chance a fresh build ?
Thanks,

Jean
You are in luck, I was planning to make one this weekend.

https://www.dropbox.com/s/xssmji70klf7w ... 5.tgz?dl=0

iJean
Posts: 4
Joined: Sat Jan 10, 2015 1:54 am

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Fri Jan 16, 2015 7:21 am

topguy wrote:
You are in luck, I was planning to make one this weekend.

https://www.dropbox.com/s/xssmji70klf7w ... 5.tgz?dl=0
Thanks,

I've tried to run some Phaser.js examples on your build and almost always I get an error about "Composition not supported" and the browser crashes. Any idea what could be the problem ?

I'm also curious what is the difference between various configurations for RPI from https://github.com/Metrological/buildro ... er/configs

albertd
Posts: 51
Joined: Thu Aug 30, 2012 8:10 pm

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Fri Feb 06, 2015 10:54 pm

rpi_qt5webkit_defconfig is the current public defconfig to use, we're working on a pure webkit wayland port that hopefully will be available shortly.

BTW we now also have rpi2_qt5webkit_defconfig for the Raspberry PI 2

Kind regards,
Albert

yv73
Posts: 1
Joined: Tue Mar 03, 2015 2:08 am

Re: Qt5WebKit + Gstreamer + WebGL + Canvas (RPI + RPI2)

Tue Mar 03, 2015 2:14 am

Could you shortly describe rpi2 defconfigs in the buildroot/configs?

theknud
Posts: 5
Joined: Mon Jan 05, 2015 7:28 pm

Re: Qt5WebKit + Gstreamer + WebGL + Canvas (RPI + RPI2)

Sun Mar 15, 2015 12:10 pm

Hi,

I'm using the buildroot to test qtbrowser.

When running: qtbrowser --url=https://rawgit.com/sunknudsen/mlbrowser ... index.html

I get the following error: QOpenGLFramebufferObject: Framebuffer incomplete attachment.

Any ideas on how to fix this?

Thanks and have a great day!

User avatar
topguy
Posts: 5613
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Qt5WebKit + Gstreamer + WebGL + Canvas (RPI + RPI2)

Mon Mar 16, 2015 11:24 am

This only happened after a while when I tested it, like 3-5 minutes and after a number of fade-in/outs of the pictures.
When this happened the screen just faded to black and then stayed black.

Return to “Official Foundation Display”