[Qt-interest] Setting library path before running?
Brad Howes
howes at ll.mit.edu
Tue Mar 23 16:00:14 CET 2010
On Mar 23, 2010, at 7:53 AM, Oliver.Knoll at comit.ch wrote:
> william.crocker at analog.com wrote on Tuesday, March 23, 2010 11:37 AM:
>
>> ...
>> We run our apps through a wrapper script which sets LD_LIBRARY_PATH
>> first.
>
> You can also include the '.' (current directory) to the "build-in" library paths of the executable. Read about the -rpath linker option (and you can set this via qmake/*.pro files, too).
Note that some platforms, notably Solaris IIRC, do not follow relative links due to potential security issues. To be safe, use $PWD or $(pwd) to insert the current directory. Not sure of the qmake syntax, but I'm sure there is an appropriate variable to use to fetch it.
Brad
--
Brad Howes
Group 42
MIT Lincoln Laboratory • 244 Wood St. • Lexington, MA 02173
Phone: 781.981.5292 • Fax: 781.981.3495 • Secretary: 781.981.7420
More information about the Qt-interest-old
mailing list