[Qt-interest] Setting library path before running?

william.crocker at analog.com william.crocker at analog.com
Tue Mar 23 18:39:34 CET 2010


>>
>> Check out 'man ld.so'.  Basically, you can either set
>> LD_LIBRARY_PATH, or...
> 
> If you must, put it in a shell script wrapper. And even then, any sub-processes
> that you start will probably be lumbered with your LD_LIBRARY_PATH.

Yes. There was lumbering.

So, when we fork a sub-process we restore the
LD_LIBRARY_PATH to its original value as recorded
in the wrapper before the change.

I did not learn about the rpath/$ORIGIN trick
until later (though I have not actually tried it.)

... but we digress ...

Bill




More information about the Qt-interest-old mailing list