Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 4

Qt-interest Archive, November 2006
How to build debug version with qmake on Debian


Message 1 in thread

I am trying to build a debug version of my program using Qt 4.2.1 and qmake.
However I get a linker error. This is because Debian installs the debug
version as follows:

        /usr/lib/libQtCore.so.4.2.1.debug
        ...

But qmake tries to link with "-lQtCore_debug", which fails. How do I tell
qmake to do it differently? I don't care for debug symbols in Qt, symbols
in my app would be sufficient.

Arne

-- 
 [ signature omitted ] 

Message 2 in thread

On 10.11.06 18:15:26, Arne Schmitz wrote:
> I am trying to build a debug version of my program using Qt 4.2.1 and qmake.
> However I get a linker error. This is because Debian installs the debug
> version as follows:
> 
>         /usr/lib/libQtCore.so.4.2.1.debug
>         ...
> 
> But qmake tries to link with "-lQtCore_debug", which fails. How do I tell
> qmake to do it differently? I don't care for debug symbols in Qt, symbols
> in my app would be sufficient.

And you're really using qmake from Debian? Did you do a qmake run after
Qt4.2.x got installed? Because in Qt4.1 it actually was -lQtCore_debug,
TT changed that for Qt4.2, so you need to re-run qmake in all dirs of
your project to re-generate the makefiles.

Andreas

-- 
 [ signature omitted ] 

Message 3 in thread

Hi,

> I am trying to build a debug version of my program using Qt 4.2.1 and qmake.
> However I get a linker error. This is because Debian installs the debug
> version as follows:
> 
>         /usr/lib/libQtCore.so.4.2.1.debug
>         ...
> 
> But qmake tries to link with "-lQtCore_debug", which fails. How do I tell
> qmake to do it differently? I don't care for debug symbols in Qt, symbols
> in my app would be sufficient.

Which version of qmake is this? If it is the one distributed with 
Debian's Qt, it is supposed to do the right thing.

--
 [ signature omitted ] 

Message 4 in thread

Dimitri wrote:

>> I am trying to build a debug version of my program using Qt 4.2.1 and
>> qmake. However I get a linker error. This is because Debian installs the
>> debug version as follows:
>> 
>> /usr/lib/libQtCore.so.4.2.1.debug
>> ...
>> 
>> But qmake tries to link with "-lQtCore_debug", which fails. How do I tell
>> qmake to do it differently? I don't care for debug symbols in Qt, symbols
>> in my app would be sufficient.
> 
> Which version of qmake is this? If it is the one distributed with
> Debian's Qt, it is supposed to do the right thing.

$ qmake-qt4 --version
QMake version 2.01a
Using Qt version 4.2.1 in /usr/lib

It came with the debian packages.

Arne

-- 
 [ signature omitted ]