First one short question: are you excuting your program from a terminal or trying to execute from KDE gui (e.g. by double-click)?
On many linux OS, now LD_LIBRARY_PATH is deprecated. LD finds the dependencies thanks to what is listed in /etc/ld.so.conf
and /etc/ld.so.conf.d
. You may have to add a script somewhere there to include your libraries. In fact you just have to add the path to your libraries in those scripts.
example from /etc/ld.so.conf/libc.conf
:
# libc default configuration
/usr/local/lib
This may work for you.
edit:
you shoud also run ldconfig
to update the LD database and/or use ldconfig -v
, which does the same but with extended output
edit2: ldconfig
may require root privileges to be understood by the GUI