[QBS] Newbie to QBS

olivier musse olivier.musse at sfr.fr
Tue May 13 10:37:11 CEST 2014

Hi everybody,

If somebody have time to help hereafter is a list of questions :
- When compiling a project with QBS it always start a command windows. 
How to remove this behavior?
- How can I perform a post link process as it can be done with 
- what is the simplest way to install the list of Qt libraries (only 
needed ones) beside the executable ?
- is there any way to override the install root from the qbs file ?

Many thanks for help


> Hi Jake,
> Many thanks for this really quick and detailed answer.
> Yes I was meaning /MT instead of /MD, sorry for the mistake.
> I will try all that as soon as possible and will certainly asked many
> other questions since I would like to try to migrate big qmake projects
> to QBS.
> Many thanks again.
> Regards
> Olivier
>> Hi Olivier,
>> This mailing list and #qt-qbs on Freenode (IRC) are indeed the right places to ask for information on qbs. I've answered your questions inline.
>> On 2014-05-12, at 05:56 PM, olivier musse <olivier.musse at sfr.fr> wrote:
>>> Hi everybody,
>>> First sorry if this is not the right place for getting informations but
>>> after many hours looking on Internet I did not found what I need.
>>> Working with qmake for many years, i just tried QBS last month and found
>>> it really efficient on many points compared to qmake (dependency between
>>> library).
>>> However, QBS is missing documentation on specific points I need.
>>> So may I asked for help on this list.
>>> If yes as a first start two questions :
>>> - how to add a .def file to a dynamiclibrary under windows (visual
>>> compiler)as done with DEF_FILE directive in qmake
>> After briefly reviewing the documentation, it looks like you should be able to simply specify cpp.linkerFlags: ["/DEF:" + defFilename] in your product. We may add a property to make this easier (https://bugreports.qt-project.org/browse/QBS-571).
>>> - how to build a project using /MD directive (visual compiler). I tryed
>>> to add cxxFlag to cpp module but got a warning saying that /MT is
>>> overiding /MD
>> You don't need to add the /MD switch as it's already added automatically by qbs. I'm not sure if you meant to say that you wanted to use /MT, but if that's the case it's currently not possible to specify the static runtime library (though if /MT overrides /MD, you can exploit that in the meantime). I've added an issue to our bug tracker for us to fix this (https://bugreports.qt-project.org/browse/QBS-570).
>>> Many thanks in advance for help.
>>> Regards
>>> Olivier
>>> _______________________________________________
>>> QBS mailing list
>>> QBS at qt-project.org
>>> http://lists.qt-project.org/mailman/listinfo/qbs
> _______________________________________________
> QBS mailing list
> QBS at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qbs

More information about the Qbs mailing list