[Qt-interest] How to use a shared library with QMake/QtCreator under Linux?

Oliver.Knoll at comit.ch Oliver.Knoll at comit.ch
Mon Mar 16 11:07:03 CET 2009


Abdelrazak Younes wrote on Wednesday, March 11, 2009 3:45 PM:

>> ...
>> My goal would be to let QtCreator launch
>> LD_LIBRARY_PATH=../my_lib_path/:$LD_LIBRARY_PATH ./my_app

You might also want to consider the -rpath option of your linker. You can set the path to include '.', so *.so in the executable directory are also automatically linked (which is NOT done by default).

Cheers, Oliver

-- 
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22



More information about the Qt-interest-old mailing list