Hi all,
I'm working on the packaging of fw4spl, the build goes well, but when I try to run the launcher (an executable used to launch the apps from a xml configuration file, but it's not the point).
The point is that after have ran debuild -us -uc, when I launch the executable from /usr/bin/launcher, it works, but if I launch it from my_dev_dir/fw4spl-0.9.2/debian/fw4spl/usr/bin/launcher, I get this error :
./debian/fw4spl/usr/bin/launcher: error while loading shared libraries: libfwCore.so.0: cannot open shared object file: No such file or directory
For information:
$ ldd my_dev_dir/fw4spl-0.9.2/debian/fw4spl/usr/bin/launcher
libfwCore.so.0 => not found
libfwRuntime.so.0 => not found
...
$ ldd /usr/bin/launcher
libfwCore.so.0 => /usr/lib/fw4spl/libfwCore.so.0 (0x00007fd2e15b9000)
libfwRuntime.so.0 => /usr/lib/fw4spl/libfwRuntime.so.0 (0x00007fd2e1329000)
...
And finally, when I install the generated package (apt-get install fw4spl), I get this error one more time :
/usr/bin/launcher: error while loading shared libraries: libfwCore.so.0: cannot open shared object file: No such file or directory
I tried to export the LD_LIBRARY_PATH in d/rules, and to add this line in d/rules too :
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--no-as-needed -Wl,-rpath=/usr/lib/fw4spl -ldl
But it doesn't work.
Does anyone have an idea?
Thank you.
Best regards,