Hi,
I’m trying to run a qt quick application using the torizon/qt5-wayland-imx8:stable-rc and torizon/weston-imx8:stable-rc containers.
The application crash on start with the following:
QT_QPA_PLATFORM= "wayland"
Failed to create wl_display (Connection refused)
Could not load the Qt platform plugin "wayland" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
tdxinfo is:
Software summary
------------------------------------------------------------
Bootloader: U-Boot
Kernel version: 5.15.148-6.7.0+git.bfdbfb2c85fb #1-TorizonCore SMP PREEMPT Thu Jun 20 15:59:41 UTC 2024
Kernel command line: root=LABEL=otaroot rootfstype=ext4 quiet logo.nologo vt.global_cursor_default=0 plymouth.ignore-serial-consoles splash fbcon=map:3 ostree=/ostree/boot.1/torizon/e81878773da7cb84df22dfc3108fa98703a54183a50b88c0eeb46705d5d934b7/0
Distro name: NAME="TorizonCore"
Distro version: VERSION_ID=6.7.0-build.18
Distro variant: VARIANT="Docker"
Hostname: verdin-imx8mp-15364500
------------------------------------------------------------
Hardware info
------------------------------------------------------------
HW model: Toradex Verdin iMX8M Plus on Mallow Board
Toradex version: 0063 V1.1B
Serial number: 15364500
Processor arch: aarch64
------------------------------------------------------------
and my docker compose is:
volumes:
permanent_storage:
services:
mk3-debug:
build:
context: .
dockerfile: Dockerfile.debug
image: ${LOCAL_REGISTRY}:5002/mk3-debug:${TAG}
ports:
- ${DEBUG_SSH_PORT}:${DEBUG_SSH_PORT}
profiles:
- debug
volumes:
- type: bind
source: /tmp
target: /tmp
- type: bind
source: /dev
target: /dev
- type: bind
source: /var
target: /var
- type: volume
source: permanent_storage
target: /home/root/app/permanent_data
depends_on: [
weston
]
privileged: true
weston:
image: torizon/weston-imx8:stable-rc
environment:
- ACCEPT_FSL_EULA=1
# Required to get udev events from host udevd via netlink
network_mode: host
volumes:
- type: bind
source: /tmp
target: /tmp
- type: bind
source: /dev
target: /dev
- type: bind
source: /run/udev
target: /run/udev
cap_add:
- CAP_SYS_TTY_CONFIG
# Add device access rights through cgroup...
device_cgroup_rules:
# ... for tty0
- "c 4:0 rmw"
# ... for tty1
- "c 4:1 rmw"
# ... for tty7
- "c 4:7 rmw"
# ... for /dev/input devices
- "c 13:* rmw"
- "c 199:* rmw"
# ... for /dev/dri devices
- "c 226:* rmw"