[Qt-creator] Some issues concerning dlls in the qt sdk

Yue Wang yuleopen at gmail.com
Tue Mar 24 15:21:09 CET 2009


Hi,

On Tue, Mar 24, 2009 at 9:17 PM, Adam Higerd <ahigerd at timeips.com> wrote:

Thanks for the reply!

> Yue Wang wrote:
> Actually, that's not true at all. The debug symbols are very useful even
> for normal non-Nokia developers. I know I've traced through Qt code
> before in the process of debugging my own applications. Sometimes it's
> vital to understand the control flow that invokes your functions. By all
> means the SDK should absolutely ship with debug builds.

OK, then we just need to ship one copy, not two.

> The first load of the application is definitely going to take a while
> because it has to load all of the debugging symbols. There's a "Fast
> Debugger Start" option in the Debug menu you can use to help with that,
> and I hear that Creator 1.1 will be including an option to restart an
> already-loaded instance in the debugger rather than requiring it to be
> reloaded with every run.

But I just need a option to link debug apps to release libs.
(and many other people need this too)
I have no problem doing this on my FreeBSD and Linux systems.
But I am not able to do this in windows.
(The only way I can do is to remove Qtxxd.dll, and copy Qtxx.dll to Qtxxd.dll)

> This is a very, very common misconception about Windows libraries. The
> .a (or .lib if you're using MSVC) files bundled with the .dll files are
> not static libraries; they're stubs that contain the information the
> linker needs to load the dynamic part of the library. (On UNIX, these
> aren't necessary because the compiler is able to generate this data on
> demand.)

sorry, I am wrong... Things on windows seems complex...

>
> As far as compiling Qt applications statically, that requires REAL
> static libraries; Creator can do this if you point it to a
> statically-compiled installation of Qt.
>

Can we ship static libraries? So users don't need to compile them.
Compile QT takes a lot of time (especially using mingw. I am wondering
whether I can compile it using llvm-clang).

Yue Wang



More information about the Qt-creator-old mailing list