[Qt-interest] How Can I set a directory to search libraries in runtime ?
Andreas Pakulat
apaku at gmx.de
Mon Nov 9 00:22:35 CET 2009
On 08.11.09 19:14:37, Mhayk Whandson wrote:
> How can I specify in project.pro to search in runtime a libraries into
> a specific directory ? The option -L don't work because it just used
> to search in compile time. Could help me ?
For gcc you can use the rpath option, simply add it to qmake's link-flags
(see the qmake manual for the exact variable name). I'm not sure about the
exact syntax for rpath, but that should be documented in the gcc/ld info
pages.
That'll work on linux, on windows you'll simply have to make sure that your
libraries are in a directory thats in PATH and I have no idea about MacOSX.
Andreas
--
You too can wear a nose mitten.
More information about the Qt-interest-old
mailing list