Docker Ubuntu 15.10 Qt 5.9.1

  • Dear all,

    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
    # Install Qt
    RUN chmod +x
    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.


Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.