[Qt-interest] Qt on Linux
Thiago Macieira
thiago.macieira at trolltech.com
Fri Jan 9 13:32:24 CET 2009
On Friday 09 January 2009 13:11:32 Oliver.Knoll at comit.ch wrote:
> manish.s.sharma at nokia.com wrote on Friday, January 09, 2009 10:42 AM:
> > Hi,
> >
> > I have a installed Qt in Linux. I have installed Kdevelop as well. I
> > started debugging my test application and somewhere it is causing a
> > segmentation fault. But I am not able to get in to the source file of
> > Qt during debugging. It seems my program is hitting the release
> > version. Following the call stack:
> >
> >
> > #0 ??
> > /usr/lib/libQtCore.so.4 #1 ??
> >...
>
> Your program is hitting the release libraries because you linked against
> them (libQtCore.so)! The DEBUG Qt libraries contain a 'd' in their name
> (libQtCored.so), so there is no way your application could "accidentally"
> mix them up at runtime (depending on the LD_LIBRARY_PATH for example, which
> defines where to look for libraries basically).
>
> So make sure that your application links against the 'd' Qt libraries - I
> don't know KDevelop very well, but e.g. in Visual Studio you have a debug
> and release configuration where you explicitly set the libraries to link
> against.
Hi Oliver
That's not entirely correct.
On Windows, it's true that we add a 'd' to the library names, but the main
reason for that is because the MSVC debug libraries are incompatible with the
release ones. So we need a full set of incompatible debug.
On Mac, the suffix is '_debug' and, unlike Windows, it's fully binary-
compatible. You can set an environment variable and, at run-time, the dynamic
linker will load the debug libraries.
On the other Unix, there is no suffix. The 'libQtCore.so.4' library could be
either debug or release. There's no telling from the file name alone.
> @nokia? Can't you just knock on the next office door and ask for help now?
> ;)
Just checked the internal phonebook... Manish is a few thousand kilometres
away.
--
Thiago Macieira - thiago.macieira (AT) nokia.com
Senior Software Engineer - Nokia, Qt Software
Qt Software is hiring - ask me
Sandakerveien 116, NO-0402 Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090109/cc142a25/attachment.bin
More information about the Qt-interest-old
mailing list