[vtkusers] Fwd: Why do Qt examples ignore statically linked Qt*.lib(s) and instead depend on Qt*.dll(s)?

John Drescher drescherjm at gmail.com
Mon May 10 13:09:31 EDT 2010


---------- Forwarded message ----------
From: Constantine Zakkaroff <mnkz at leeds.ac.uk>
Date: Mon, May 10, 2010 at 6:36 AM
Subject: Re: [vtkusers] Why do Qt examples ignore statically linked
Qt*.lib(s) and instead depend on Qt*.dll(s)?
To: John Drescher <drescherjm at gmail.com>



On 10/05/2010 00:49, John Drescher wrote:
>
> On Sun, May 9, 2010 at 4:49 PM, Constantine Z<mnkz at leeds.ac.uk>  wrote:
>>
>> Hello ALL.
>>
>> I've built VTK (with examples) 5.6.0 n VS 2008 with static linking. Latest
>> CMake, latest Qt. Linker properties page lists Qt*.lib(s) for static
>> linking.
>>
>> However, dependency tracker shows the executables depend on Qt*.dll(s). When
>> I run the executables (naturally) they attempt to load Qt*.dll(s). It works
>> fine when Qt*.dll(s) directory is in system path.
>>
>> Can someone please clarify why do we need Qt*.dll(s) when an executable is
>> built with static Qt*.lib(s)?
>>
>
> Do you have the commercial/paid version of Qt? The free version does
> not support static linking.

Ah! Thank you. An RTFM situation again... I have the free version.

So in this case how does the .exe know which Qt*.dll(s) to look for?
... because the static Qt*.lib(s) are obviously ignored.

Regards,
Constantine



-- 
John M. Drescher



More information about the vtkusers mailing list