[Interest] question about relocating Qt library installation

Michael Jackson imikejackson at gmail.com
Tue Aug 5 15:08:30 CEST 2014


On Aug 5, 2014, at 8:39 AM, Yves Bailly <Yves.Bailly at verosoftware.com> wrote:

> On 05/08/2014 05:59, Thiago Macieira wrote:
>> On Monday 04 August 2014 09:47:55 Darren Dale wrote:
>>> I spent a good part of the weekend looking for information on the web. I'm
>>> not certain I understand the problem, but am certain there must be a
>>> solution, since the Qt installer for windows can install to an arbitrary
>>> location.
>> 
>> It does that by binary-patching QtCore and qmake.
>> 
>> Does your installation do that?
>> 
>>> I found a short discussion at http://stackoverflow.com/a/17640221
>>> , talking about how qmake, Qt5Core, and a few other files need to be
>>> patched, but did not understand exactly what needs to be patched, and how.
>>> (Please excuse me for not understanding the c++ code that was posted.) Is
>>> there any documentation on how to do this?
>> 
>> Looks like you didn't.
>> 
>> Run strings on those files and you'll see the build paths. You need to replace
>> those paths in the binaries and remove the qt.conf file.
> 
> Or you may use this, which is pretty handy and easy to use:
> http://tver-soft.org/programs/qtbinpatcher
> 
> Hope this helps.
> 
> -- 
>      /- Yves Bailly - Software developer   -\
>      \- Sescoi R&D  - http://www.sescoi.fr -/
> "The possible is done. The impossible is being done. For miracles,
> thanks to allow a little delay."
There is also the "Qt Installer Framework" which can patch the Qt Libraries for a given installation path. We have used this on the "DREAM3D" project for our SDK which includes Qt, though only on Windows. QtIFW supposedly also works on LINUX and OS X but we have not tried that functionality yet.

Mike Jackson





More information about the Interest mailing list