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

Loaden loaden at gmail.com
Thu Jun 21 18:12:43 CEST 2012


No luck! It's not work for me.

[General]
> toolchain=mingw64
> architecture=x86_64
> endianness=little-endian
> targetOS=windows
>
> [cpp]
> toolchainPrefix=x86_64-w64-mingw32-
> toolchainInstallPath=/usr/bin
>
ERROR:

> ERROR: /home/loaden/qpSOFT/Projects/Qbs/tests/manual/hello/hello.qbp:17
> Binding 'cpp.defines' failed, no property 'cpp' in the scope of Group
>
 Any comments?

2012/5/11 Joerg Bornemann <joerg.bornemann at nokia.com>

> 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
>



-- 
Please don't ask where I come from, It's a shame!
Best Regards
Yuchen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20120622/3421195f/attachment.html>


More information about the Qbs mailing list