Hi Juozapas:

Thank you for sharing your experience. I have been cross compiling widget 
based applications with LinuxFB for the BeagleBone and I would like to 
switch to Qt Quick2. I am guessing that since you got Qt Quick to run on 
the BBB you may also know how to compile Qt Quick.

So far, whenever I compile for eglfs I get an error message along the 
lines: "openGL is not configured or available for this platform". I have 
googled around and I have people reporting the same issue, though I have 
yet to find a solution for this.

Would it be possible for you to share how you got to compile Qt with Qt 
Quick and eglfs?

Regards,
JS


On Wednesday, October 14, 2015 at 1:45:41 PM UTC-5, Juozapas Adomaitis 
wrote:
>
> Hello,
>
> I have been researching the possibility to run Qt Quick 2
> applications directly on BeagleBoard Black rev. C with the
> display connected to HDMI. In the process I have put together
> instructions to get OpenGL ES acceleration working (which is a
> required by Qt Quick 2). I am posting them here in the hope that
> they can be useful to someone.
>
> Regarding my experiments, the HDMI port worked with 2 monitors
> out of 4 I have tried - disappointing. Qt Quick 2 was impossibly
> slow using software rendering under X in 24bpp mode. I couldn't
> get it to run in 16bpp mode; it displayed this error:
>    Cant find EGLConfig, returning null config
>    Unable to find an X11 visual which matches EGL config 0
>    Could not initialize OpenGL
> It worked ok in fullscreen mode (EGLFS) after installing the
> drivers.
>
> ==================================================
> 3 steps to get hardware OpenGL ES acceleration on BeagleBone
> Black running Debian (tested 2015-10 on wheezy, jessie and sid).
>
> Note that after following the steps you will be able to run a
> single fullscreen OpenGL ES application (e.g. Qt Quick 2 in EGLFS
> mode) and nothing else, meaning:
> * 3D acceleration in X server doesn't work on BBB and apparently
>   won't work anytime in the future
> * Wayland can run with accelerating compositing (window drawing
>   handled by the GPU chip), but starting OpenGL applications
>   won't work. For this to work the graphics driver must have
>   built-in Wayland support, exposing the EGL_EXT_platform_wayland
>   EGL extension. Robert Nelson mentioned on IRC that TI is
>   working on this and progress can be followed here:
>   
> http://git.ti.com/gitweb/?p=graphics/omap5-sgx-ddk-um-linux.git;a=summary
>
> 1. First pick a kernel version from this list of kernel modules
>    for the GPU (the packages are from the
>    http://repos.rcn-ee.com/debian/ repo):
>    $ apt-cache search ti-sgx-es8-modules
>    Then install the kernel together with the modules. For
>    example, if you picked ti-sgx-es8-modules-3.14.54-ti-r77, run:
>    $ apt-get install -y 
> {ti-sgx-es8-modules,linux-image,linux-firmware-image}-3.14.54-ti-r77
> 2. On an x86 Linux computer run this (an x86 host is needed
>    because an x86 binary installer from TI will be unpacked):
>    $ git clone https://github.com/RobertCNelson/ti-linux-kernel-dev.git
>    $ cd ti-linux-kernel-dev
>    $ ./sgx_create_package.sh
>    $ scp deploy/GFX_*_es8.x.tar.gz <address_to_your_bbb>:/tmp/
> 3. Now install the utilities on your BBB and reboot:
>    $ cd /
>    $ sudo tar zxf /tmp/GFX_*_es8.x.tar.gz
>    $ sudo /opt/gfxinstall/sgx-install.sh
>
> Qt Quick 2 fullscreen programs can be launched from the terminal
> or within Wayland by exporting these variables:
> $ export QT_QPA_PLATFORM=eglfs
> $ export QT_QPA_EVDEV_KEYBOARD_PARAMETERS="grab=1"
> $ export QT_QPA_EVDEV_MOUSE_PARAMETERS="grab=1"
>
> Wayland with accelerated compositing (but without the possibility
> to launch windowed OpenGL programs) can be run like this:
> $ weston-launch -- --backend=fbdev-backend.so --use-gl
>
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/dc720efc-7fb9-448c-8241-3ccf9b7ce730%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to