meta-udoo icon indicating copy to clipboard operation
meta-udoo copied to clipboard

qt5 can't display with distro fslc-x11

Open embeddedvn opened this issue 6 years ago • 7 comments

Hello,

with distro fslc-framebuffer, it can work well. but when I am trying to use distro fslc-x11 with udoo-image-qt5 , it can't display, I don't know exactly the reason why? root@udooneo:~# export DISPLAY=:0 root@udooneo:~# rxhost + xhost: unable to open display ":0" root@udooneo:~# Qt5_CinematicExperience
QXcbConnection: Could not connect to display :0
/usr/bin/Qt5_CinematicExperience: line 4: 488 Aborted

the same with x11vnc, it can't connect to display.

Thanks!

embeddedvn avatar Mar 19 '18 23:03 embeddedvn

Hi embeddedvn, i never use x11 with yocto, sorry ... Perhaps you can try with wayland and have a look on bootToQt layer for this !

modjo756 avatar Mar 20 '18 12:03 modjo756

@embeddedvn X11 was never a use-case why is x11 needed?

graugans avatar Mar 20 '18 13:03 graugans

Hi graugans, modjo,

I want to view Qt app by remote desktop like x11vnc and view on LCD hdmi also. Do you know any way to remote like that by using another distro? with framebuffer distro I can run Qt graphics on hdmi lcd but can't remote vnc. I tried to build framebuffer-vncserver recipe but I met some error when build it.

Thanks for your respond Dong

embeddedvn avatar Mar 20 '18 15:03 embeddedvn

A solution will be (depending your application complexity) to realize your app with qtwebengine (web server). Like this you can see your web site with web engine on the card and use a web browser on another PC to access your app ...

modjo756 avatar Mar 20 '18 16:03 modjo756

To demonstrate an example of my recent post see here. I have tested this image on phytec board and it works fine. The web page appears on the embedded screen. If i connect to the board (with web browser) with a pc i have the same HMI ! Otherwise i think you must have a look on weston (if you have a raspberry you can test boot to Qt to test it) http://doc.qt.io/QtForDeviceCreation/qtee-custom-embedded-linux-image.html

modjo756 avatar Mar 20 '18 18:03 modjo756

Thanks for your suggest, modjo. I will try that solution. But I really like to use x11vnc on udooneo like this way: https://www.udoo.org/docs-neo/Basic_Setup/Remote_Desktop_(VNC).html

embeddedvn avatar Mar 22 '18 02:03 embeddedvn

@embeddedvn you should definitly think about the approach from @modjo756 it is much more modern approach I guess the X11 server + VNC is not get the performance you might expect and you need a separate application to view it. Remember the Neo is single core CPU. And AFAIK the vivante driver has some restrictions in X11 mode

graugans avatar Mar 22 '18 16:03 graugans