[QBS] Does qbs plan to support cross-compiling?

Joerg Bornemann joerg.bornemann at nokia.com
Fri May 11 15:33:27 CEST 2012


On 11/05/2012 14:45, ext Loaden wrote:

> As we know there not have a good way to support cross-compiling, e.g. In
> Ubuntu, If we want use MinGW to build qt apps for Windows?
> So, Does qbs plan to support cross-compiling?

Qbs already supports cross-compiling. Set up the platform you want to 
build for and build your project with
    qbs platform:myPlatform

For example, my platform config for 32 bit MinGW on Linux looks like this:

----
[General]
toolchain=mingw
architecture=x86
endianness=little-endian
targetOS=windows

[cpp]
toolchainPrefix=x86_64-w64-mingw32-
toolchainInstallPath=/usr/bin
----


BR,

Jörg



More information about the Qbs mailing list