Your LIBS
seems wrong, it should probably be
LIBS += -L../../TDS-Converter/Converter/Converter -lConverter
...and double-check the file really is this, and fix if not:
../../TDS-Converter/Converter/Converter/libConverter.so
If you're talking about runtime, then read on:
The other library is not "inluded" in your library, it is used by your library. So it needs to be available at runtime. A quick fix, set LD_LIBRARY_PATH
environment variable to the ../../TDS-Converter/Converter/Converter
directory, when running an application which uses your library.
Alternatives to LD_LIBRARY_PATH
environment variable are
- use rpath, which puts the preferred library search path into the executable. Downside is, this needs to be decided at compile time.
- Copy libConverter.so to some current system include directory, and run
ldconfig
to refresh library cache. Downside is, you need root and clutter system library directories.
- Add the directory where libConvereter.so is to
/etc/ld.so.conf
(or preferably to a new file under /etc/ld.so.conf.d
), and run ldconfig
to refresh library cache. Downside is, you need root, and clutter system configuration.