[Qt-interest] [Qt-Interest]Windows DLL question regarding different versions

Ganshorn Thomas mailings at novaimages.de
Wed Jun 29 17:32:18 CEST 2011


Hi

i have currently the problem that i need to compile my software with 
multiple different qt versions/compilations and i just need some 
clarification.
My software (flowline) is a plugin to 3dstudio max, maya and exists in a 
standalone version.

Because of different supported versions
(3dsmax 2008 to 2011, maya 2009 to 2011, 32 and 64 bit and standalone)
i currently have to compile the plugin once with
visual studio 2005 and qt4.7.3 in 32 and 64 bit    (max 2009)
visual studio 2008 and qt47.7.3 in 32 and 64 bit  (max 2011)
visual studio 2005 and qt4.5.1 in 32 and 64 bit (maya2011)
i basically also want to use the mingw version (for standalone flowline 
that would be great in some user scenarios)

My specific problem is maya here. I don't know why but i know they have 
their own qt version and it is necessary to use exactly there version or 
plugins will crash.
On the other side, plugins compiled with the maya qt version will crash 
in max.

I know i have to compile for 64 bit on my own (and i really hate it to 
tell the truth because it is never "just working", some errors returned 
by qmake (error 3 ??), some project settings and so on)

But in the end how should i organise my dlls ?
I have currently 6 different qt4 dlls and as far as i see they are all 
incompatible (as far as i think vc2005 and vc2008 compiled dlls are also 
incompatiblem not really tested it to tell the truth,
but i know maya and standard qt is incompatible because of crashes)

Currently i try to do the following, instead of having a qt4.dll i have a
qt4_vc2008_32.dll, qt4_vc2008_64.dll and so on, only for maya i use the 
standard dll names (because maya also uses qt internally).

But is this REALLY the way to go ? I can't imagine that i have to endure 
so much pain :-)
Just copying the dlls to the bin directory works "partially" but leads 
to many errors in every day work, because it is not clear wich qt 
version is wich
(and because i am a plugin they have to be in the path, i cannot write 
them into application dir my customers do not allow it).


Greetings
Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110629/ff64eb38/attachment.html 


More information about the Qt-interest-old mailing list