[Qbs] Linux 32 bits build on x86_64 host
Ely
elyzabethvonreuenthal at iserlohn-fortress.net
Sat Sep 9 12:42:42 CEST 2017
The -m64 flag seems to be set from /usr/share/qbs/modules/cpp/gcc.js because
you have a 64-bit host and no specified target architecture.
> import qbs
>
> StaticLibrary {
> name: "Alarms"
> Depends { name: "cpp" }
> cpp.includePaths: [ ...]
> cpp.libraryPaths: [ ... ]
> cpp.defines: [ ...]
> Depends { ... }
> files: [ ...]
> }
Try settings cpp.architecture: "x86"[0], or if building from the command line,
use: [1]
> qbs -f /path/to/project.qbs --products productname qbs.architecture:x86_64
[0]: https://doc.qt.io/qbs/cpp-module.html#general-properties
[1]: https://wiki.qt.io/Qbs_Quick_Reference#Command-line_examples
Hope this helps.
- ely
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20170909/81631a26/attachment.sig>
More information about the Qbs
mailing list