Library "not found" after building test with CMake on Ubuntu.

Run ‘sudo updatedb’ before calling ‘locate’.

How do you compile your library? With make or cmake?

Do you specify -Wl,rpath=/usr/local/lib ?

What is the output of:
ldd ./MyApplicaction

?

1 Like