Description
I am trying to use Paho MQTT client for a project. I was able to successfully download and build the library. Using sudo make install command, I have installed the libraries to /usr/local/lib and have validated the installation as well. I have also updated the /etc/ld.so.conf for the dynamic linking and ran sudo ldconfig to update the cache. Post this, I have added the library paths to my project makefile to be able to link the library and I am successfully able to compile the project as well. But when I am flashing the project, I am stuck with the error:
error while loading shared libraries: libpaho-mqtt3c.so.1: cannot open shared object file: No such file or directory
I have been trying to resolve the error with multiple solutions however nothing seems to be working. Please guide me with the solution