Qt-interest Archive, August 2007
Building debug libraries for Qt in Windows
Message 1 in thread
I've installed Qt 4.2.2 on my machine using the 50 meg binary trolltech
supplies. After installing I don't seem to have any debug libraries in my
qt4.2.2\lib folder. Meaning, I don't have qtmaind.lib or QtCore4d.lib, etc.
I'm getting linker errors when building my VC++ projects because of that.
I can rebuild the dlls by selecting "rebuild debug libraries" in the Qt
section of the Program Files, but I'm not sure how to build the lib files.
Have I missed a step?
--
[ signature omitted ]
Message 2 in thread
> After installing I don't seem to have any debug
> libraries in my qt4.2.2\lib folder. Meaning, I don't have
> qtmaind.lib or QtCore4d.lib, etc.
That's normal. the binary distribution contains only release libs.
> I can rebuild the dlls by selecting "rebuild debug libraries"
> in the Qt section of the Program Files, but I'm not sure how
> to build the lib files.
No idea what you're referring to here. However, normally you don't need
the debug libs, unless you want to be able to step *into* the innards of
Qt while debugging. You should be able to make a debug build that links
to the release libs of Qt. Just change the linker input to use the
release libs.
If you really want to debug Qt itself, you'll have to make your own
build. (configure -debug-and-release and make. see also
http://doc.trolltech.com/4.3/install-win.html)
Cheers,
Peter
--
[ signature omitted ]
Message 3 in thread
Peter Prade wrote:
>> After installing I don't seem to have any debug
>> libraries in my qt4.2.2\lib folder. Meaning, I don't have
>> qtmaind.lib or QtCore4d.lib, etc.
>
> That's normal. the binary distribution contains only release libs.
>
>> I can rebuild the dlls by selecting "rebuild debug libraries"
>> in the Qt section of the Program Files, but I'm not sure how
>> to build the lib files.
>
> No idea what you're referring to here. However, normally you don't need
> the debug libs, unless you want to be able to step *into* the innards of
> Qt while debugging. You should be able to make a debug build that links
> to the release libs of Qt. Just change the linker input to use the
> release libs.
>
> If you really want to debug Qt itself, you'll have to make your own
> build. (configure -debug-and-release and make. see also
> http://doc.trolltech.com/4.3/install-win.html)
You don't specify which operating system you installed Qt in, but if it
is Windows, you should be able to click on Start -> All Programs ->
Qt(version) -> Qt (build debug libraries).
>
> Cheers,
> Peter
>
> --
> 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/
--
[ signature omitted ]
Message 4 in thread
Hi,
Thanks for the reply.
>>That's normal. the binary distribution contains only release libs.<<<
I hear you. What's strange is I can't find the release libs. Are you
referring to the dlls? I have those in the qt\4.2.2\lib folder (I'm using
Windows). But there are no lib files anywhere in my Qt folder structure.
I guess what I need to know is, how do I rebuild the lib files? As John
mentioned in his post below, in Windows you can choose the "rebuild debug
libraries" option in Start-->Program Files-->Qt. I did that but the only
things rebuilt were the dlls. The lib files are not showing up, and I'm not
sure why?
--
[ signature omitted ]