Qt4 Book Says “Make a Release,” Reality Disagrees

Depending on different sources, for a Qt4 application, you create release or debug versions using "make release" or "make debug". In real life, they make mistakes.

make: *** No rule to make target `debug'.  Stop

Only naked makeup works. I am not sure what it produces. Running strip reduces the size of executable files, but gdb cannot find characters in an unbuilt file. I am using qt4.6.2 on Arch Linux.

So, what is the right way to determine whether to release or debug?

+3
source share
1 answer

Add

CONFIG += debug_and_release

.pro , qmake. debug release ( ) .

+1

Source: https://habr.com/ru/post/1749776/


All Articles