[Qbs] Cpp application with external build command but working code model

Richard Weickelt richard at weickelt.de
Thu Nov 27 10:21:07 CET 2025


On 11/27/25 09:32, Christian Kandeler via Qbs wrote:
> Why can't you use a different product type?

Because I also want to debug the executable in QtCreator and that requires 
the product to be of type application.

I am working around the problem by doing what you suggest and adding a 
second non-cpp product of type application which copies the .elf files from 
the ESP build folder into Qbs' build folder. It also seems like 
"application" must be the output of a rule and cannot be attached to source 
artifacts via Group.

Another use-case would be post processing of ELF files produced by the 
linker. In that case we don't want to use the linker output directly, but 
still need the product type to be application. The limitation of the 
2-product work-around is that one cannot easily re-use it as a single item 
"Esp32Application".



More information about the Qbs mailing list