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. Qt6.5.5 in Ubuntu 24.04 Container
Forum Updated to NodeBB v4.3 + New Features

Qt6.5.5 in Ubuntu 24.04 Container

Scheduled Pinned Locked Moved Solved Installation and Deployment
5 Posts 3 Posters 2.6k Views 2 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
    DK999
    wrote on last edited by
    #1

    Hi guys!
    Trying to install Qt 6.5.5 in a docker container to make it easier for our devs to have a consistent work environment.
    But I'm encountering a weird error message I don't really understand, since installing it with the same command inside a running container works perfectly fine.

    26.52 [26257] perform qt.qt6.655.gcc_64 operation: ConsumeOutput
    26.52 [26257]   - arguments: qt.qt6.655.gcc_64_qmakeoutput, /home/ubuntu/qt6.5.5/6.5.5/gcc_64/bin/qmake, -query
    28.04 [27776] Warning: Cannot get any query output from executable "/home/ubuntu/qt6.5.5/6.5.5/gcc_64/bin/qmake"
    28.04 [27776] Done
    28.04 [27776] backup qt.qt6.655.gcc_64 operation: QtPatch
    28.04 [27776]   - arguments: linux, /home/ubuntu/qt6.5.5/6.5.5/gcc_64, qt5, QmakeOutputInstallerKey=qt.qt6.655.gcc_64_qmakeoutput
    28.04 [27776] Done
    28.04 [27776] perform qt.qt6.655.gcc_64 operation: QtPatch
    28.04 [27776]   - arguments: linux, /home/ubuntu/qt6.5.5/6.5.5/gcc_64, qt5, QmakeOutputInstallerKey=qt.qt6.655.gcc_64_qmakeoutput
    28.04 [27779] Done
    28.04 [27779] Operation \"QtPatch\" with arguments \"linux; /home/ubuntu/qt6.5.5/6.5.5/gcc_64; qt5; QmakeOutputInstallerKey=qt.qt6.655.gcc_64_qmakeoutput\" failed: Could not find the required QmakeOutputInstallerKey(qt.qt6.655.gcc_64_qmakeoutput) value on the installer object. The ConsumeOutput operation on the valid qmake needs to be called first.
    28.04 [27779] installationErrorWithCancel : Installer Error : Error during installation process (qt.qt6.655.gcc_64):
    28.04 Could not find the required QmakeOutputInstallerKey(qt.qt6.655.gcc_64_qmakeoutput) value on the installer object. The ConsumeOutput operation on the valid qmake needs to be called first. Retry|Ignore|Cancel
    28.04 [27779] Answer: "Cancel"
    28.04 [27779] undo qt.qt6.655.gcc_64 operation: QtPatch
    28.04 [27779]   - arguments: linux, /home/ubuntu/qt6.5.5/6.5.5/gcc_64, qt5, QmakeOutputInstallerKey=qt.qt6.655.gcc_64_qmakeoutput
    

    I'm installing it like this inside my dockerfile, which looks fine to me

    COPY qt-enterprise-linux-x64-6.5.5.run /home/ubuntu/qt-enterprise-linux-x64-6.5.5.run
    RUN install -d -m 0755 -o ubuntu -g ubuntu /home/ubuntu/.local/share/Qt
    RUN install -d -m 0755 -o ubuntu -g ubuntu /home/ubuntu/.local/share/icons
    COPY qtaccount.ini /home/ubuntu/.local/share/Qt/qtaccount.ini
    RUN chown ubuntu:ubuntu -R /home/ubuntu
    USER ubuntu
    RUN chmod +x /home/ubuntu/qt-enterprise-linux-x64-6.5.5.run
    
    RUN /home/ubuntu/qt-enterprise-linux-x64-6.5.5.run --root ~/qt6.5.5 --accept-licenses --default-answer --confirm-command install qt.qt6.655.gcc_64
    

    Version of Qt doesn't matter, have the exact same issue with current 6.7.1.
    Any ideas what I'm missing?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Not a direct answer but did you consider using the aqtinstall project to handle the installation part ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      D 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi and welcome to devnet,

        Not a direct answer but did you consider using the aqtinstall project to handle the installation part ?

        D Offline
        D Offline
        DK999
        wrote on last edited by DK999
        #3

        @SGaist said in Qt6.5.5 in Ubuntu 24.04 Container:

        Not a direct answer but did you consider using the aqtinstall project to handle the installation part ?

        Not yet, since I don't know if I can use it with our pro licenses or if it just installs the open source variants.
        Can someone tell me where the difference is between the two install types? Can I switch from Open Source to license that easily?

        EDIT:
        When I install qmake6-bin via apt-get install qmake6 it works just fine, why does the installer need a qmake version from my system instead of using the one it's installing?
        Do I need to add the path to the qmake to my $PATH upfront?

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DK999
          wrote on last edited by
          #4

          If anyone struggles with this - build from source....

          1 Reply Last reply
          0
          • D DK999 has marked this topic as solved on
          • J JeffK referenced this topic on
          • J Offline
            J Offline
            JeffK
            wrote on last edited by
            #5

            @DK999, I am having almost exactly the same problem that you describe here, and have created a new forum topic post for it at: https://forum.qt.io/topic/157337/error-installing-qt-6-5-5-into-ubuntu-22-04-docker-container. You said here that when you installed qmake6-bin via "apt-get install qmake6" that it solved the problem for you, but I tried adding that to my dockerfile and it had no affect. Do you have any other advice?

            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