Cerbero and prefix

Arun Raghavan arun at arunraghavan.net
Mon May 16 04:45:20 UTC 2016


On Sat, 14 May 2016, at 07:53 PM, Marcin Lewandowski wrote:
> Hello,
> 
> I am building a package using Cerbero.
> 
> I have set install_dir in the package to /opt/myapp and it correctly
> places all files under /opt/myapp/bin, /opt/myapp/lib etc. while building
> for linux.
> 
> The issue is that besides binaries, my app builds one library that is
> located in /opt/myapp/lib/something.so. When I try to run the binaries
> that use the library it throws
> 
> error while loading shared libraries: libmyapp.so.0: cannot open shared
> object file: No such file or directory
> 
> Obviously I can set LD_LIBRARY_PATH but this is not a proper solution.

Since you're using a non-system-default library path (which comes from
/etc/ld.so.conf), using LD_LIBRARY_PATH isn't exactly incorrect.

That said, you might be able to use -rpath while linking your app to
point to have it search in the appropriate directory.

-- Arun


More information about the gstreamer-devel mailing list