Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Docker Ubuntu 15.10 Qt 5.9.1
Dino last edited by
I have built an app Qt and Qt Creator in a Ubuntu 15.10 machine. The app was built using Qt creator but it can run using only the command line if parameters are supplied. I am trying to distribute my app using Docker so that users can run the command line version. This is where problems arise. In the docker file I run the following lines:
# Download and install Qt dependencies RUN apt-get -y update RUN apt-get -y install build-essential libgl1-mesa-dev libassimp-dev libfontconfig1 libdbus-1-3 wget # Download/Install Qt RUN wget http://download.qt.io/official_releases/qt/5.9/5.9.1/qt-opensource-linux-x64-5.9.1.run # Install Qt RUN chmod +x qt-opensource-linux-x64-5.9.1.run RUN ./qt-opensource-linux-x64-5.9.1.run
The last line that installs Qt fails with the following error message:
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
QXcbConnection: Could not connect to display
I believe it is because the docker container does not have a graphical display and the installation program is trying to access the screen to show interactive installation.
Is there a way to install Qt from the command line?
Thank you for your help.
A Former User last edited by
Google gave me this https://bugreports.qt.io/browse/QTIFW-166 and this http://blog.qt.io/blog/2015/04/07/qt-installer-framework-2-0-released/#comment-1195532 for headless install.