According to various soures, for a Qt4 app you build the release or debug versions with "make release" or "make debug". In real life, these give errors.
make: *** No rule to make target `debug'. Stop
Only bare naked "make" works. I'm not sure what it produces. Running "strip" does reduce the executables' size, but gdb isn't finding symbols in the unstripped file. I'm using, qt4.6.2 on Arch Linux.
So what is the proper way to determine whether to make release or debug?
Add
CONFIG += debug_and_release
to your .pro file, then re-run qmake. You will then have the debug and release (capitalization!) targets available.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With