[Development] Non-movable Qt build

Oswald Buddenhagen oswald.buddenhagen at digia.com
Mon Jan 7 13:04:50 CET 2013


On Fri, Jan 04, 2013 at 09:23:21AM -0200, Thiago Macieira wrote:
> On sexta-feira, 4 de janeiro de 2013 09.38.31, Peter Kümmel wrote:
> > > I know how to make a relocatable shared library on Linux (find the calling
> > > function's address in /proc/self/maps) and I know it's possible with some
> > > Win32 API, but I have no clue how to do it elsewhere. Therefore, I won't
> > > do
> > > it.
> > 
> > Isn't the discussion here only about paths, different to how memory mapping
> > is handled?
> 
> Yes, the discussion here is about paths. There's nothing about memory mapping.
> 
> The "/proc/self/maps" above is a red herring.
> 
why?
you can use the above to determine the path to the current dll (QtCore). if
QLibraryInfo now only stores relative paths, this is all that's needed
to make the qt installations fully relocatable (as long as the internal
layout says intact).
i'd go as far as making this linux & windows only - systems which don't
support it can continue with the current absolute path stuff.



More information about the Development mailing list