Hello,
we are trying to bring up QT application on our custom board with i.MX8MP. Our distro is fsl-imx-wayland. We are getting the following logs when we try to run the application.
weston@imx8mp-lpddr4-evk:~$ ls -la
total 824
drwxr-xr-x 2 root root 4096 Mar 9 2018 .
drwxr-xr-x 4 root root 4096 Mar 9 2018 ..
-rwxr-xr-x 1 weston weston 829808 Mar 9 2018 DASHBOARD_V2
-rwxr-xr-x 1 weston root 150 Mar 9 2018 cluster.sh
weston@imx8mp-lpddr4-evk:~$ ./cluster.sh
QML debugging is enabled. Only use this in a safe environment.
QStandardPaths: runtime directory '/run/user/0' is not owned by UID 1000, but a directory permissions 0700 owned by UID 0 GID 0
drmModeGetResources failed (Operation not supported)
Cannot create window: no screens [ 115.077539] audit: type=1701 audit(1651168711.744:4): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=1026 comm="DASHBOARD_V2" exe="/home/weston/DASHBOARD_V2" sig=6 res=1
available
Aborted
weston@imx8mp-lpddr4-evk:~$ export XDG_RUNTIME_DIR=/tmp/weston
weston@imx8mp-lpddr4-evk:~$ mkdir -p $XDG_RUNTIME_DIR
weston@imx8mp-lpddr4-evk:~$ chmod 0700 $XDG_RUNTIME_DIR
weston@imx8mp-lpddr4-evk:~$ ./cluster.sh
QML debugging is enabled. Only use this in a safe environment.
drmModeGetResources failed (Operation not supported)
Cannot create window: no screens [ 149.156514] audit: type=1701 audit(1651168745.820:5): auid=4294967295 uid=1000 gid=1000 ses=4294967295 pid=1180 comm="DASHBOARD_V2" exe="/home/weston/DASHBOARD_V2" sig=6 res=1
available
Aborted
weston@imx8mp-lpddr4-evk:~$ cat cluster.sh
#!/bin/sh
export DISPLAY=:0
export QT_QPA_PLATFORM=eglfs
export QT_QPA_EGLFS_INTEGRATION=eglfs_kms
cd /home/weston/
exec /home/weston/DASHBOARD_V2
Is there any user manual on bringing up QT applications on i.MX boards. What is the issue on our case?
Thanks!
Best Regards.
Hi @Wobaffet
Can you share kms.json ?
Maybe you are using wrong dri node, need to use card1 device.
{
"device": "/dev/dri/card1",
"hwcursor": false,
"outputs": [
{
"name": "HDMI1",
"mode": "1920x1080"
}
]
}
Best Regards
Zhiming