[QBS] qbs install for project

Christian Kandeler christian.kandeler at theqtcompany.com
Mon Feb 2 11:06:40 CET 2015


On 02/01/2015 06:48 PM, McGillion, Brian wrote:
> Hi all,
>
> When using "qbs install", I have the following layout (simplified):
>
> ├── bin
> │   ├── test_app
> ├── lib
> │   ├── libCommonApi.so
>
>
> test_app is dynamically linked to libCommonApi.so.  However, ldd of
> test_app shows "libCommonApi.so => not found".  How can I make the
> install resolve the respective paths, similar to what "make install"
> does with an autotools based project.  Of course I am trying to avoid
> having to add .../lib to the LD_LIBRARY_PATH as that somewhat nulifies
> the benefit of having --install-root flag IMO.

qbs does not manipulate files during installation. If you want your 
application to find the library by itself and be relocatable, you should 
use a relative rpath (e.g. via ORIGIN on Linux).


Christian



More information about the Qbs mailing list