[Development] Non-movable Qt build

Thiago Macieira thiago.macieira at intel.com
Fri Jan 4 13:00:52 CET 2013


On sexta-feira, 4 de janeiro de 2013 12.45.12, Peter Kümmel wrote:
> >> Then
> >> qt.conf in the same dir as QtCore/qmake should be enough on Windows, or
> >> missed I something?
> > 
> > You missed something. The question is: when running app.exe from a given
> > directory, how do you tell Windows to load Qt5Core.dll or QtCore4.dll from
> > a different directory?
> > 
> > The only answer is what you gave above: change PATH. Because qt.conf isn't
> > used at this point.
> 
> Still don't get it: when PATH is the only way to tell the app
> which Qt dlls to load, why do we need to patch the dlls?
> Or is PATH changed by app.exe before it loads the Qt dlls and has the
> paths compiled in?

Uh... sorry, my mistake.

Yes, qt.conf *is* enough for the purposes at hand: the loading of plugins and 
other resources besides linked DLLs. That is, everything we load, as opposed 
to the Windows loader.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130104/4e3fd8c2/attachment.sig>


More information about the Development mailing list