[Qt-creator] Using qbs build system, docker plugin and Qt in QtCreator 17

Jochen Becher jochen_becher at gmx.de
Fri Sep 19 17:56:48 CEST 2025


In qpsprofilemanager.cpp Ifound the following code to set up a Qbs profile (line 166 in QbsProfileManager::addProfileFromKit):

    if (const QtSupport::QtVersion *const qt = QtSupport::QtKitAspect::qtVersion(k))
        data.insert("moduleProviders.Qt.qmakeFilePaths", qt->qmakeFilePath().toUrlishString());

Shouldn't that use the path() part of the qmakeFilePath() only? qmake will always be run from qbs which is running on the device. So scheme
and host are not relevant. And something like "docker://xyz:n/usr/bin/qmake" is surely not understood by Qbs, isn't it?

I tried it out and it works. But I am not sure if that is really the correct solution.

Regards, Jochen


Am Freitag, dem 19.09.2025 um 15:18 +0200 schrieb Jochen Becher via Qt-creator:
> 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