Question

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?

Was it helpful?

Solution

Add

CONFIG += debug_and_release

to your .pro file, then re-run qmake. You will then have the debug and release (capitalization!) targets available.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top