Hello everyone,
I’m trying to run a Qt application and I was able to run the executable in Yocto based image successfully. But when I try to run it with docker container, I’m getting following error.
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
Segmentation fault
I was able to run Qt examples in Torizon core image and I’m trying to run this as following.
After start, I stop all docker containers with following command.
docker stop $(docker ps -a -q)
Then I start the Weston Container as mentioned in Qt Debian Container for Torizon
# docker run -e ACCEPT_FSL_EULA=1 -d --rm --name=weston --net=host --cap-add CAP_SYS_TTY_CONFIG \
-v /dev:/dev -v /tmp:/tmp -v /run/udev/:/run/udev/ \
--device-cgroup-rule='c 4:* rmw' --device-cgroup-rule='c 13:* rmw' \
--device-cgroup-rule='c 199:* rmw' --device-cgroup-rule='c 226:* rmw' \
torizon/weston-vivante:$CT_TAG_WESTON_VIVANTE --developer weston-launch \
--tty=/dev/tty7 --user=torizon
Then if I start a Qt Wayland Container example with the following commnd, I can run it successfully.
# docker run -e ACCEPT_FSL_EULA=1 --rm -it --name=qt5 \
-v /tmp:/tmp \
-v /dev/dri:/dev/dri -v /dev/galcore:/dev/galcore \
--device-cgroup-rule='c 199:* rmw' --device-cgroup-rule='c 226:* rmw' \
torizon/qt5-wayland-examples-vivante:$CT_TAG_QT5_WAYLAND_EXAMPLES_VIVANTE \
bash
I have a qt5-wayland-examples-vivante container:2 container with some other Qt modules installed to run my application. If i run that container with same command with the container name modified, I get the above mentioned error. Any support is really appreciated.
Hardware
Apalis iMX8QM 4GB WB IT v1.1 B
Ixora V1.1A
Thanks in advance.