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

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Mon Apr 07, 2014 7:24 pm

Hi!
I'm using modelB with 512MB. I will change the level of arm_freq in /boot/config.txt to 700 and make some tests.

My errors with EGLFS are:

Code: Select all

EGLFS: Unable to query physical screen size, defaulting to 100 dpi.
EGLFS: To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).
EGLFS: Unable to query screen depth, defaulting to 32.
EGLFS: To override, set QT_QPA_EGLFS_DEPTH
I tried to export QT_QPA_EGLFS_PHYSICAL_WIDTH/HEIGHT but nothing.

Sometimes I got this error to: "glGetError 0x502"

Thanks! ;)
All the best!

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

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Mon Apr 07, 2014 9:42 pm

These are normal warnings from eglfs, the glerrors could be unsupported gl calls to the userland.

Cheers,
Albert

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

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Tue Apr 08, 2014 12:39 pm

Thanks Albertd!

I'm modifing the impress.js system to my needs!
Did you tried to run html5 videos?

All the best! ;)

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

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Tue Apr 08, 2014 12:53 pm

Yes they run okay, still some issues that sometime cause a segfault, we're looking into this.

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

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Thu Apr 10, 2014 3:54 pm

albertd wrote:Yes they run okay, still some issues that sometime cause a segfault, we're looking into this.
In my tests they are run very nice!

About rendering fonts. Looks smoothly in your tests?

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

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Thu Apr 10, 2014 4:07 pm

vitorcarvalhoml wrote:About rendering fonts. Looks smoothly in your tests?
In Qt5.3 they seem to be a lot sharper, you can follow our progress at:
https://github.com/metrological/buildro ... qt5.3-beta

Cheers,
Albert

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

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Mon Apr 14, 2014 9:02 pm

How do I know that I'm using Qt 5.3? I made a "git pull" and a new make menuconfig && make..but I guess that it was not updated.

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

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Wed Apr 16, 2014 3:53 pm

You need to make sure you checkout branch "qt5.3-beta".

Cheers,
Albert

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

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Wed Apr 16, 2014 6:57 pm

Sorry! My fault! ;)

It's possible to open a local file?

Code: Select all

qtbrowser url=file:///opt/file.html

SvenM
Posts: 1
Joined: Tue Mar 11, 2014 12:39 pm

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Mon Apr 28, 2014 7:13 pm

Dear all,

I very much like the Buildroot environment presented in the repository. I am really impressed by the bootup time my raspberry now achieves.

I am trying to get the audio playback of QMultiMedia up and running. Did any of you manage to use the media player (e.g. from examples/multimediawidgets/player). The only thing I get, is

defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"

when starting the application.

Kind regards
Sven

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

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Mon Apr 28, 2014 7:57 pm

SvenM wrote:Dear all,

I very much like the Buildroot environment presented in the repository. I am really impressed by the bootup time my raspberry now achieves.

I am trying to get the audio playback of QMultiMedia up and running. Did any of you manage to use the media player (e.g. from examples/multimediawidgets/player). The only thing I get, is

defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"

when starting the application.

Kind regards
Sven
Hi Sven,

We didn't do any work on the QtMultimedia with the Raspberry PI, we only integrated the video / audio player in the QtWebKit.

Cheers,
Albert

darkladen
Posts: 22
Joined: Mon Oct 01, 2012 7:54 pm

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Wed Apr 30, 2014 8:25 pm

Hi guys, I want to make my own media player but how I can start this task ??
I have written some scripts in another SO QT5 and want to migrate them to the project RPI Buildroot.
How I will can compile this script and run this in RPI ??
How I make my own system cross-compile ??
Is posible prepare the buildroot project with a cross-compile system ??

I hope you can help me guys.

Thanks.

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

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Wed Apr 30, 2014 9:26 pm

First: Buildroot is a cross-compiling environment to create a (configurable) bootable filesystem from scratch.
Second: What do you mean when you say "script", are you talking about the QML language ?
(QML don't need to be compiled it can be ran directly with the program "qmlscene" )

darkladen
Posts: 22
Joined: Mon Oct 01, 2012 7:54 pm

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Wed Apr 30, 2014 9:55 pm

sorry, I have not explained well. I've done some testing with QT5 qml and c + +. I would like to create some applications QT5 but I want to compile with buildroot, still do not quite understand how this cross-compile environment so I do not know how to compile my examples in this environment. If you could help me I would be very grateful.

Thank you.

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

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Fri May 02, 2014 5:24 pm

Hi Albertd,

How can I debug glGetError messages? I'm running a web page full of html videos (about 20 in slide mode) and I always get glGetError 0x505 or 0x501.

The videos are in mp4 (codec x264) format.

darkladen
Posts: 22
Joined: Mon Oct 01, 2012 7:54 pm

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Thu May 08, 2014 1:37 am

Hi Guys, sorry I write again about my idea, but, someone can tell me how I can compile my qt5(c++) in buildroot environment ?? Someone can tell me how I can configure qt creator by buildroot environment ??

I need to write a media player in qt5 but i dont still understand how use buildroot environment to create my own applications and help improve it.

I hope someone can help me.
Thank all.

jonty-comp
Posts: 2
Joined: Thu May 08, 2014 9:53 am

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Thu May 08, 2014 9:58 am

Hi,
Thanks for all your work on this, it's a truly impressive project that I hope to make great use of.

Unfortunately I can't get the most recent buildroot to compile on an Ubuntu 14.04 VM, having tried the full procedure twice and getting different errors each time. Since it takes a good 3-4 hours to compile on my not-exactly-brand-new computer, does anyone have a pre-built image they wouldn't mind providing for download somewhere? It should only be ~60MB I believe. I'd be eternally grateful.

I'm hoping that using this solution will solve the issue i'm having with my current Raspbian+mlbrowser experiments, whereby attempting to create a slideshow of 1080p JPEG images (for a portrait screen) results in the Pi running out of memory at seemingly random points. Heck, the CSS opacity transitions between the images might even work!

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

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Thu May 08, 2014 12:38 pm

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."

jonty-comp
Posts: 2
Joined: Thu May 08, 2014 9:53 am

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Thu May 08, 2014 3:00 pm

Awesome, I'll get that onto my SD card right away, thanks!

I've not played with canvas much before, but I assumed the process was being killed because of memory issues- i'm guessing if you load 15 1080p JPEG images into <img> tags then webkit stores them all uncompressed in memory somewhere. It was just odd watching the memory usage float up and down seemingly randomly in htop while the page cycled.

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

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Thu May 08, 2014 3:09 pm

Hi! I too have problem with load 15 or 20 full hd images into canvas.

I'm using impress.js framework to do the slideshow and I tried to use js to load images when slides enter: https://gist.github.com/vitorcarvalhoml ... 6898e369bc

But seems that not work very well..

darkladen
Posts: 22
Joined: Mon Oct 01, 2012 7:54 pm

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Thu May 08, 2014 3:18 pm

PLEASE !!!
someone can tell me how I can compile my qt5(c++) in buildroot environment ??
How i can make my own developments and use this in buildroot ???

Thanks.

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

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Thu May 08, 2014 4:04 pm

This is untested darkladen...

If you look at the build directory for a Qt-based package aldready in the buildroot. (for example "/output/build/qtbrowser-1.0.4")
You will find a qtbrowser.pro file which is the input file for qmake.

So in theory if you use the correct "qmake" program from the buildroot it should be able to create a Makefile with all the correct paths to includefiles and libraries.

My guess is that the correct qmake is "output/host/usr/bin/qmake". (The header of "Makefile" in "/output/build/qtbrowser-1.0.4" verifies this and even shows the parameters to use for qmake )

darkladen
Posts: 22
Joined: Mon Oct 01, 2012 7:54 pm

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Thu May 08, 2014 4:49 pm

Oh, yes, you're right. I was reviewing this route but never tried using qmake in the buildroot environment. With these paths I begin to do some testing and hopefully get lucky. Anything that achieves will write over here.

Thank you very much.

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

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Fri May 09, 2014 12:35 pm

How can I change the default ntp server?


-- edit
Sorry, i guess rdate don't use ntp servers..

darkladen
Posts: 22
Joined: Mon Oct 01, 2012 7:54 pm

Re: Qt5WebKit + Gstreamer + WebGL + Canvas

Mon May 12, 2014 10:29 pm

Hi Guys, I can try to make mini video player. I have not good results. My script qml use a simple WebView but i cant play html5 videos.

What is the correct method to play video ??
Can play videos directly QT5 + gstreamer? (playbin) ??

Anyone have a simple code showing play video ??

Thanks.

Return to “Official Foundation Display”