[Qt-interest] Qmake: console += debug fails to create debug build
Thiago Macieira
thiago at kde.org
Thu Jun 10 13:13:21 CEST 2010
Em Quinta-feira 10 Junho 2010, às 12:50:50, Stephen Collyer escreveu:
> I'm trying to build and run the QtMmlWidget example with Qt 4.6.1
> under Opensuse 11.1 and I'm getting a segfault. I'm trying to
> build a debug version to get a backtrace, which I've done by
> adding debug to the top level .pro file. This, however, is failing
> to build in debug mode:
>
> TEMPLATE=subdirs
> CONFIG += ordered debug
> include(common.pri)
> qtmmlwidget-uselib:SUBDIRS=buildlib
> SUBDIRS+=example
>
> I only use qmake very occasionally (I do everything with cmake) so
> I'm not sure if I missing some qmake subtlety here.
>
> Can anyone suggest what I'm doing wrong ?
A "subdirs" target doesn't build code, so debug and release are meaningless.
You need to add the "debug" config option to the actual code-building target
you want to be in debug mode.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100610/29a8581e/attachment.bin
More information about the Qt-interest-old
mailing list