title: Unable to load shared library while running the program
body: <p>I am facing strange issue while loading shared library in a cpp program. When the make file is executed then it works fine - </p>
  
  <pre><code>LIB_RELEASE = $(LIB)-lopencv_highgui -lopencv_core -lopencv_imgcodecs -lopencv_imgproc -lmmcheng_github -lgomp
  </code></pre>
  
  <p>But when I run this using the output file which is generated as a result of this make file, it gives me error as - </p>
  
  <pre><code>./bin/mmcheng_densecut: error while loading shared libraries: libmmcheng_github.so: cannot open shared object file: No such file or directory
  </code></pre>
  
  <p><strong>PS</strong> I have placed the libmmcheng_github.so in the folder /usr/local/lib</p>
  
  <p>Error Screenshot - <a href="https://i.stack.imgur.com/UgHHA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UgHHA.png" alt="See during makefile all works fine however later it fails"></a></p>
  
  <p>Thanks</p>