No input enabled while running QT app in docker container on Raspberry PI
-
wrote on 7 Jun 2018, 22:09 last edited by
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.
-
wrote on 13 Jun 2018, 21:32 last edited by
Just in case somebody is interested - solution is found here - https://stackoverflow.com/questions/50789172/libinput-in-a-docker-container
1/2