Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Docker Ubuntu 15.10 Qt 5.9.1
Forum Updated to NodeBB v4.3 + New Features

Docker Ubuntu 15.10 Qt 5.9.1

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 2.9k Views 1 Watching
  • 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
    Dino
    wrote on last edited by
    #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 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.

    Dino

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Hi!
      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.

      1 Reply Last reply
      2

      • Login

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