[Qt-interest] Hi Trolls, I have a problem of cohabitation between Qt 4.3.4 and Qt 4.7

Kai Koehne kai.koehne at nokia.com
Wed Sep 29 12:04:03 CEST 2010


On 9/29/2010 10:55 AM, ext Fabio Giovagnini wrote:
> Hi All, I try to explain better.
>
> I distribute a tools in source version abd binary version together.
> the binary version has the following folders' structure:
> <install_DIR>\
> tool
> plugins
> qtlib
>
> and the nullsoft installer add to the system path<install_DIR>\qtlib
> to make the tool runnable

That seems to be a dump idea. What you can do putting the needed Qt 
.dlls and plugin directories in the same directory as your app.exe . 
This way you don't have to set any system path. E.g.

<install_DIR>\tool.exe
<install_DIR>\QtCore4.dll
<install_DIR>\imageformats\qjpeg4.dll

Check out e.g. how creator does this.

Regards

Kai

> Well, now I have a version based on qt-4.3.4 and another version of the same
> tool based on qt-4.7
>
> If I install before teh qt-4.3.4 based one, and later the qt-4.7 based one ;
> the last doesn't work telling me the application cannot find a function in
> QtCore4.dll
>
> This is right becouse I have first in the PATH the folder containing the
> qt-4.3.4 version of QtCore4.dll and after the qt-4.7 version of QtCore4.dll
> with the same name. So the dynamic linker loads teh first one ignoring the
> second one being the right one.
>
> How can I approach this problem.
>
> Where could I study deeper about qt version cohabitation?
>
> Thanks a lot
>


-- 
Kai Koehne
Software Engineer
Nokia, Qt Development Frameworks

Nokia gate5 GmbH
Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B
Umsatzsteueridentifikationsnummer: DE 812 845 193
Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori



More information about the Qt-interest-old mailing list