title: Error while loading shared libraries: No such file or directory even after using LD_LIBRARY_PATH and changing $PATH
body: <p>I'm new to Linux environment. I'm trying to run my C++ files on Codelite and its giving me error which just won't go.
  I have a DLL folder of my Dahua SDK. It contains shared .so libraries. I'm getting this error since last 2 days and can't run my project!</p>
  
  <blockquote>
    <p>./Dahuatest1: error while loading shared libraries: <strong>libdhnetsdk.so</strong>: cannot open shared object file: No such file or directory</p>
  </blockquote>
  
  <p>I already tried:</p>
  
  <blockquote>
    <p>LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/tarak/Documents/General_NetSDK_Eng_Linux64_IS_V3.48.1.R.170623/NetSDK_Eng_Bin/Demo_Src/DLL</p>
    
    <blockquote>
      <p>export LD_LIBRARY_PATH</p>
      
      <blockquote>
        <p>ldconfig</p>
      </blockquote>
    </blockquote>
  </blockquote>
  
  <p>which also includes my DLL folder. But still get the same error.</p>
  
  <p>I also tried to change my path to my folder in ~/.bashrc:</p>
  
  <blockquote>
    <p>export $PATH=$PATH:/home/tarak/Documents/General_NetSDK_Eng_Linux64_IS_V3.48.1.R.170623/NetSDK_Eng_Bin/Demo_Src/DLL</p>
  </blockquote>
  
  <p>this too failed!</p>
  
  <p>What should I do to get the output??</p>
  
  <p>In codelite I've set Linker search path as my DLL folder.
  And compiler 'Include Path' also as my DLL folder </p>
  
  <p>Here's a screenshot of my folder:
  <a href="https://i.stack.imgur.com/CmukP.png" rel="nofollow noreferrer">Project file</a></p>
  
  <p><a href="https://i.stack.imgur.com/TZjVx.png" rel="nofollow noreferrer">DLL folder</a></p>