Qt6.5.5 in Ubuntu 24.04 Container
-
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? -
Hi and welcome to devnet,
Not a direct answer but did you consider using the aqtinstall project to handle the installation part ?
-
@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 viaapt-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? -
-
-
@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?