Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt4 book says "make release", reality disagrees

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?

like image 239
DarenW Avatar asked Dec 07 '25 10:12

DarenW


1 Answers

Add

CONFIG += debug_and_release

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

like image 96
Mihai Limbășan Avatar answered Dec 10 '25 13:12

Mihai Limbășan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!