keyurthumar
Posts: 18
Joined: Fri Oct 04, 2019 8:49 am

Re: Anyone cross compiled QT for the Pi 4 yet.

Tue Nov 05, 2019 1:13 pm

topguy wrote:
Mon Jul 08, 2019 12:08 am
Do you really need newer Qt5 thant 5.11 that is in Buster ? shouldnt QML run quite well with opengl as backend and not necessarily need eglfs ?

(I havent got a Pi4 yet so havent had time to experiment myself )
Yes Qt5 is already there in buster, but I want to do cross compilation on my ubuntu and then deploy my app on PI. How would i achieve that ??

Thanks in advance

keyurthumar
Posts: 18
Joined: Fri Oct 04, 2019 8:49 am

Re: Anyone cross compiled QT for the Pi 4 yet.

Tue Nov 05, 2019 4:24 pm

keyurthumar wrote:
Tue Nov 05, 2019 1:13 pm
topguy wrote:
Mon Jul 08, 2019 12:08 am
Do you really need newer Qt5 thant 5.11 that is in Buster ? shouldnt QML run quite well with opengl as backend and not necessarily need eglfs ?

(I havent got a Pi4 yet so havent had time to experiment myself )
Yes Qt5 is already there in buster, but I want to do cross compilation on my ubuntu and then deploy my app on PI. How would i achieve that ??

Thanks in advance
Thank you @topguy

How can i compile qt5 project on Ubuntu for raspberry Pi 4. Specifically rpi 4

maxwell130631
Posts: 6
Joined: Wed Nov 13, 2019 8:39 pm

Re: Anyone cross compiled QT for the Pi 4 yet.

Wed Nov 13, 2019 8:48 pm

Hi,

I followed the instructions and cross compilation of QT and compilation of my app worked. (I used Qt 5.13 and the linux-rasp-pi3-vc4-g++ option). I want to run my app in the Pixel (I guess thats the name?) destkop (which is the xcb platform plugin, right?), so I did not follow the eglfs. json part of the instructions, as I guess they are only relevant if one tries to run it from the command line, right?

My application starts, and is running (as I can see form log messages) but the rendering to the screen does not work. The window border is drawn but no content is rendered into the window (in fact the wall paper shines through). As detailed in this post in the QT forum https://forum.qt.io/topic/108730/runnin ... o-screen/3, I get the following error message:

QEGLPlatformContext: eglMakeCurrent failed: 3009

Did someone succeed in running an application under the pixel desktop?

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

Re: Anyone cross compiled QT for the Pi 4 yet.

Thu Nov 14, 2019 11:23 am

The name "Pixel" is not used anymore, but that is beside the point.

What HW are your running your program on ? The Pi3 or the Pi4 ( or a PC ) ??

maxwell130631
Posts: 6
Joined: Wed Nov 13, 2019 8:39 pm

Re: Anyone cross compiled QT for the Pi 4 yet.

Thu Nov 14, 2019 2:36 pm

I tried both Pi3 and Pi4, and see the same result

dqin
Posts: 1
Joined: Fri Jan 24, 2020 7:32 pm

Re: Anyone cross compiled QT for the Pi 4 yet.

Fri Jan 24, 2020 7:37 pm

I did not try the cross compile, but I got successful at the native build by following this one:
https://github.com/MarkusIppy/QT5.12.4- ... ster-EGLFS
Hope it could help

jayant_T
Posts: 3
Joined: Sat May 02, 2020 7:25 am

Re: Anyone cross compiled QT for the Pi 4 yet.

Sun May 03, 2020 11:44 am

matzrm wrote:
Mon Sep 16, 2019 1:53 pm
Hi all,

I'm trying to crosscompile qt 5.12.5 on raspberry pi 4. I have installed all this packages:

Code: Select all

sudo apt-get update
sudo apt-get build-dep qt4-x11
sudo apt-get build-dep qtbase-opensource-src
sudo apt-get install libegl1-mesa libegl1-mesa-dev libgles2-mesa libgles2-mesa-dev libgbm-dev 
I'm using also linux-rasp-pi3-vc4-g++ as a mkspecs, but at the end of configure step I have only EGLFS on X11, without GBM:

Code: Select all

QPA backends:
  DirectFB ............................... no
  EGLFS .................................. yes
  EGLFS details:
    EGLFS OpenWFD ........................ no
    EGLFS i.Mx6 .......................... no
    EGLFS i.Mx6 Wayland .................. no
    EGLFS RCAR ........................... no
    EGLFS EGLDevice ...................... no
    EGLFS GBM ............................ no
    EGLFS VSP2 ........................... no
    EGLFS Mali ........................... no
    EGLFS Raspberry Pi ................... no
    EGLFS X11 ............................ yes
in config.log I have this:

Code: Select all

looking for library gbm
Trying source 0 (type pkgConfig) of library gbm ...
test config.qtbase_gui.libraries.gbm FAILED
Anyone can help me?
I have met the same problem. Did you solve it?

Return to “Advanced users”