Red Hat Bugzilla – Bug 196513
qt4: include debug libraries
Last modified: 2007-11-30 17:11:35 EST
Description of problem:
qt4 packages are missing the debug versions of the librariesm e.g.:
Version-Release number of selected component (if applicable):
In the qt .pro file set
CONFIG += DEBUG
Steps to Reproduce:
1. Edit qt .pro file to have a debugging project by inserting: CONFIG += DEBUG
2. qmake the .pro file
can not link executable because of missing debug libraries
should find the debugging libraries to let developer debug QT programms easily
Working on it...
These will either be packaged separately into a qt4-debug rpm or be included in
qt4-devel, haven't made up my mind which yet. Opinions?
I think most other distros that I've looked at so far (Mandriva, SuSE) pkg these
(In reply to comment #1)
> Working on it...
> These will either be packaged separately into a qt4-debug rpm or be included in
> qt4-devel, haven't made up my mind which yet. Opinions?
> I think most other distros that I've looked at so far (Mandriva, SuSE) pkg these
I'm not so familiar with QT under Linux but as far as I see, the
CONFIG += debug
in the .pro file along with qmake triggers if I want to debug my _whole_
project, not just the qt libraries.
For my side developing software means alot debugging.
So I would expect to have the debug libraries in the devel part.
I think the case is rare where you just want to have the include files of qt to
develop something using qt but don't want to use qmake.
OK, I think I've got qt4-debug implemented, and qt4-devel will
so the default devel environment will include them.
build pushed to fc6/devel. I'll wait 1-2 days before following-up with
* Mon Jun 26 2006 Rex Dieter <rexdieter[AT]users.sf.net> 4.1.4-2
- -devel: include -debug libs (bug #196513)
- -devel: move libQtDesigner here
- -config: mash into main pkg, should be multilib friendly now
CONFIG += debug
get you anything more than simply building with compiler flag: -g
If it's only adding -g, then there's not much point, as the default CFLAGS
already include -g (as well as -O2 ...)
(In reply to comment #5)
> CONFIG += debug
> get you anything more than simply building with compiler flag: -g
Well... maybe have a look in (qt) assistant -> search -> search for : "debug
Your .pro files can create quite different Makefiles depending of if you use
debug or release.
Look at found entry: QT4.1: qmake Advanced Usage ....
Scopes can be nested to combine more than one condition. For instance, if you
want to include a particular file for a certain platform only if debugging is
enabled then you write the following:
HEADERS += debugging.h
* Mon Jun 26 2006 Rex Dieter <rexdieter[AT]users.sf.net> 4.1.4-3
- -debug: drop, adds nothing over -debuginfo, make lib..._debug
symlinks instead (bug #196513)
- assistant.desktop: fix tooltip (bug #197039)
OK, this should do the trick. If you have any problems using any of the DEBUG
features, please reopen and report back here.