[Qt-creator] Using qbs build system, docker plugin and Qt in QtCreator 17
Jochen Becher
jochen_becher at gmx.de
Fri Sep 19 15:18:53 CEST 2025
Hi,
I try do use qbs, docker and Qt in QtCreator 17. I setup a docker device with my docker image. When I enter a shell in the docker, go to
into my project (a simple widget based hello world with Qt 6.8.3 like it is created from the wizard) and enter 'qbs' it builds the
executable with default profile. I can start the executable from install-root/usr/local/bin and it opens its window. My docker uses nvidia
runtime.
When I load the same qbs project into QtC 17 and choose the automatically generated kits for the docker device, I get the following errors:
/home/becherj/projects/my/hello-world-qt/hello-world-qt.qbs:3: warning: Error while handling product 'hello-world-
qt':/home/builduser/Qbs/2.1.2/share/qbs/imports/qbs/base/QtApplication.qbs:32: warning: Dependency 'Qt.core' not found for product 'hello-
world-qt'.
/home/becherj/projects/my/hello-world-qt/hello-world-qt.qbs:4: warning: Dependency 'Qt.widgets' not found for product 'hello-world-qt'.
[qbs] Setting up Qt at 'docker://artifactory.osep.stryker.com%2fdocker-dev%2fquantum%2fdesktop%2fdevenv.ubuntu22.04-gcc11.4.0-qt6.8.3-
qbs2.1.2-cuda12.4.1-1.0/home/builduser/Qt/Online/6.8.3/gcc_64/bin/qmake'...
[qbs] Error setting up Qt for 'docker://artifactory.osep.stryker.com%2fdocker-dev%2fquantum%2fdesktop%2fdevenv.ubuntu22.04-gcc11.4.0-
qt6.8.3-qbs2.1.2-cuda12.4.1-1.0/home/builduser/Qt/Online/6.8.3/gcc_64/bin/qmake': Error: The specified qmake file path
'docker://artifactory.osep.stryker.com%2fdocker-dev%2fquantum%2fdesktop%2fdevenv.ubuntu22.04-gcc11.4.0-qt6.8.3-qbs2.1.2-cuda12.4.1-
1.0/home/builduser/Qt/Online/6.8.3/gcc_64/bin/qmake' does not exist.
[qbs] Could not detect target platform ('linux' given)
Seems like qbs plugin does not handle the docker path correctly, doesn't it?
Regards, Jochen
More information about the Qt-creator
mailing list