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

Qt-interest Archive, December 2006
debug versions of plugins


Message 1 in thread

Greetings,
        For some time now it seems that you are not able to load debug versions of
plugins into a Qt application.  This is annoying because it is hard to use
release versions of applications in gdb.  Has trolltech taken any steps
towards making it possible to use plugins when your application is compiled
in debug mode?

thx
        -ian reinhart geiser

--
 [ signature omitted ] 

Message 2 in thread

On Tuesday 05 December 2006 22:40, Ian Reinhart Geiser wrote:
> Greetings,
>         For some time now it seems that you are not able to load debug
> versions of plugins into a Qt application.  This is annoying because it is
> hard to use release versions of applications in gdb.  Has trolltech taken
> any steps towards making it possible to use plugins when your application
> is compiled in debug mode?

Yes, from http://www.trolltech.com/developer/notes/changes/changes-4.2.2/:

****************************************************************************
*                      Platform Specific Changes                           *
****************************************************************************

X11
---
...
  * Fixed loading plugins build in debug mode and linked against the
    default (release) build.


-- 
 [ signature omitted ] 

Message 3 in thread

On Tuesday 05 December 2006 22:40, Ian Reinhart Geiser wrote:
> Greetings,
>         For some time now it seems that you are not able to load debug
> versions of plugins into a Qt application.  This is annoying because it is
> hard to use release versions of applications in gdb.  Has trolltech taken
> any steps towards making it possible to use plugins when your application
> is compiled in debug mode?
>
> thx
>         -ian reinhart geiser
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body. List archive and information:
> http://lists.trolltech.com/qt-interest/

Hi. This should be fixed in 4.2.2 (They promised :) ) but the fix is very 
simple..

In src/corelib/plugin/qlibrary.cpp, after this part: (around line 46 or so...)
Add the following lines... 

#if defined(Q_OS_UNIX) && !defined(Q_OS_MAC)
#define QT_NO_DEBUG_PLUGIN_CHECK
#endif


Its bit of a hack (Load them, regardless of the version) but it works for me.. 
Maybe for you too.

Kind regards

-- 
 [ signature omitted ]