cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
lucien-wang
Observer
Observer
372 Views
Registered: ‎02-22-2021

Qt window can not be displayed

Petalinux version is 2019.1

In the petalinux-config -c rootfs ,enable below:

packagegroup-petalinux-qt,

populate_sdk_qt5,

packagegroup-petalinux-qt-extended,

packagegroup-petalinux-matchbox,

packagegroup-petalinux-x11

 

But there are some error about xserver when kernel booting. below is booting log:

 

Starting system message bus: dbus.
Starting Xserver
Starting Dropbear SSH server:
Generating 2048 bit rsa key, this may take a while...

X.Org X Server 1.20.1
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.10.0-327.el7.x86_64 x86_64
Current Operating System: Linux plnx-psbase 4.19.0-xilinx-v2019.1 #1 SMP PREEMPT Sat Jun 26 01:42:30 UTC 2021 armv7l
Kernel command line: console=ttyPS0,115200 earlyprintk
Build Date: 23 May 2019 12:30:01AM

Current version of pixman: 0.34.0
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Mon Jun 28 07:31:37 2021
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE)
Fatal server error:
(EE) AddScreen/ScreenInit failed for driver 0
(EE)
(EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
Public key portion is:
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDEPfaGKIKQDSqCrG79phZBLQmb8/8e7w7NUGxycDKn5rEBNHIlk1JJyJd0P0cBixNXn4ymKcI4qLAVm/SNJuiYA/cgvZ2o9DCsVYIBAroTX/wsbEbCHJwxgCdOpsYp19q8H8LFY42HqYBJzKT5y31C6XbKHGj56r7HwjkpARUruDRlY1f91xknuPpzHhf1M/1cSQJcf3Z8douQQ7Ytt8GzSTPIVnpqJ8JisfEjVd7wKvoycgJFLgO3Av0XbWNvM47fwV6mbVrFysqJ/xLY7PU3k0aWFgKbSY7iMrP3AadCcHev4Fvd0qFfh3cPQcuBWYT/6xTnRzybpqEotFISGji5 root@plnx-psbase
Fingerprint: sha1!! 48:fe:6f:e7:0d:f5:39:05:95:31:95:aa:07:09:54:76:11:f6:ce:8d
dropbear.
hwclock: can't open '/dev/misc/rtc': No such file or directory
Starting internet superserver: inetd.
Starting syslogd/klogd: done
Starting tcf-agent: OK

PetaLinux 2019.1 plnx-psbase /dev/ttyPS0

plnx-psbase login: macb e000b000.ethernet eth0: link up (100/Full)
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error


Attached file is Xorg.0.log, and when i rum my qt test app "7z035test", "could not connect to any X display" appear:

 

root@plnx-psbase:/run/media/mmcblk0p2# ./7z035test
qt.qpa.screen: QXcbConnection: Could not connect to display :0.0
Could not connect to any X display.


Final,i find a similar question and solution: Solved: Qt window can not be displayed. Could not connect ... - Community Forums (xilinx.com)

but petalinux do not have "libmali-*"

 

lucienwang_0-1624874180767.png

 

anyone can help! Please!

 

0 Kudos
5 Replies
rambati
Xilinx Employee
Xilinx Employee
362 Views
Registered: ‎06-10-2021

Hi @lucien-wang 

Enable libmali library in rootfs from below path

petalinux-config -c rootfs ---> Filesystem Packages ---> libs ---> libmali-xlnx ---> [*] libmali-xlnx,

Enable Multimedia package from packagegroup-petalinux-multimedia

Then recompile again :petalinux-build

Hope this should be helpful

Thanks and Regards

Raviteja

---------------------------------------------------------------------------

Don't forget to Reply, Give Kudos and accept as solution

---------------------------------------------------------------------------

rambati
Xilinx Employee
Xilinx Employee
291 Views
Registered: ‎06-10-2021

HI @lucien-wang 

Is your problem was solved ?

 

lucien-wang
Observer
Observer
268 Views
Registered: ‎02-22-2021

it is not!

In petalinux-config -c rootfs ---> Filesystem Packages ---> libs , no libmali

lucien-wang_0-1624949495497.png

 

0 Kudos
rambati
Xilinx Employee
Xilinx Employee
241 Views
Registered: ‎06-10-2021

Hi @lucien-wang 

Please enable here

In petalinux-config -c rootfs:Filesystempackages->libs->libmali-xlnx

 

libmali.PNG
0 Kudos
lucien-wang
Observer
Observer
182 Views
Registered: ‎02-22-2021

In zynq, the "libmali-xlnx" is not found, only ultrascale+ serials have this option.

0 Kudos