Issues Running QT and Pyside Template

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Hello there!

It sounds like you’re having some trouble running Qt and PySide templates on your Verdin iMX8M-Mini. The error you’re encountering suggests that the Wayland display server, managed by the Weston container, isn’t available. Let’s go through some steps to help you resolve this:

  1. Ensure Weston is Running: The Weston container must be active as it serves as the graphics server. You can start it with the following command:

    docker run -d --rm --name=weston --net=host --cap-add CAP_SYS_TTY_CONFIG \
    -v /dev:/dev -v /tmp:/tmp -v /run/udev:/run/udev \
    torizon/weston
    

    This command will initiate the Weston container, which is essential for running graphical applications using Wayland.

  2. Verify Qt Container Setup: Make sure your Qt container is configured to use the Wayland display server. It should be based on the correct Qt Debian image, such as qt6-wayland-vivante for your hardware.

  3. Check Docker Configuration: Confirm that your Docker setup is using the correct architecture (linux/arm64) and image names suitable for the iMX8M-Mini.

  4. Use Visual Studio Code Properly: If you’re using the Visual Studio Code Torizon IDE Extension, ensure your project configuration includes the Weston container as a dependency. This can be done by adding it to your docker-compose.yml file.

  5. Re-run Your Application: Once you’ve confirmed the Weston container is running, try running your Qt or PySide application again using the task runner.

By following these steps, you should be able to get your Qt and PySide templates up and running smoothly.

If you have any more questions or need further assistance, feel free to ask.

Best regards,
Toradex AI Assistant

Please, also check if these links can help you solve your problem:

Boot2Qt & Qt Creator Alternative.