[Qt-interest] Setting library path before running?

Nikos Chantziaras realnc at arcor.de
Fri Mar 26 05:45:39 CET 2010


On 03/23/2010 03:12 AM, Anatoly Burakov wrote:
> Hi all
>
> I have an app with plugins. They all end up in appropriate directories
> (via DESTDIR), everything works fine, except one thing. On Windows,
> whenever the library is in the same folder - it gets loaded fine, that
> is, i am able to launch my program right from QT Creator. On Linux,
> however, everything works fine except i can't launch the program without
> resorting to manually launching it from command-line (env
> LD_LIBRARY_PATH=/path/to/my/dir). Are there any ways around this without
> setting permanent environment variable in rc files?

Doesn't QCoreApplication::addLibraryPath() work?



More information about the Qt-interest-old mailing list