Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. No input enabled while running QT app in docker container on Raspberry PI
Forum Updated to NodeBB v4.3 + New Features

No input enabled while running QT app in docker container on Raspberry PI

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 1 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dklem
    wrote on last edited by
    #1

    I have QTQt GUI c++C++/qmlQML app that I am trying to run in a docker container on Raspberry pi 3. I’ve built QT using these instructions https://wiki.qt.io/RaspberryPi2EGLFS with the following configure

    ./configure -release -opengl es2 -device linux-rasp-pi3-g++ -device-option CROSS_COMPILE= pathToQtBuildRelease/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- -sysroot pathToQtBuildRelease/sysroot -opensource -confirm-license -make libs -prefix /usr/local/qt5pi -extprefix pathToQtBuildRelease/qt5pi -hostprefix pathToQtBuildRelease/qt5 -v -no-use-gold-linker -accessibility

    Everything works fine when I run my app on Raspberry pi itself (OS is Ubuntu Mate). Now, when I build a docker image with exactly (so I think) same bits and run it as

    sudo docker run -i -t --net=host -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY --privileged=true --device=/dev/vchiq --device=/dev/input/* myDockerImage

    I see UI, however, no input is enabled (neither keyboard, nor mouse, nor touch). Interesting is that when I run bash in this container and install chromium-browser – I can run it perfectly (all inputs are there). I guess the problem has something to do with EGL, but I am running out of imagination on how to debug this issue :). Any help is highly appreciated.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dklem
      wrote on last edited by
      #2

      Just in case somebody is interested - solution is found here - https://stackoverflow.com/questions/50789172/libinput-in-a-docker-container

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved