 <p>You haven't put the shared library in a location where the loader can find it. look inside the <code>/usr/local/opencv</code> and <code>/usr/local/opencv2</code> folders and see if either of them contains any shared libraries (files beginning in <code>lib</code> and usually ending in <code>.so</code>). when you find them, create a file called <code>/etc/ld.so.conf.d/opencv.conf</code> and write to it the paths to the folders where the libraries are stored, one per line. Then run </p> <pre><code>sudo ldconfig -v </code></pre> <p>for example, if the libraries were stored under <code>/usr/local/opencv/libopencv_core.so.2.4</code> then I would write this to my <code>opencv.conf</code> file:</p> <pre><code>/usr/local/opencv/ </code></pre> <p>If you can't find the libraries, try running</p> <pre><code>sudo updatedb &amp;&amp; locate libopencv_core.so.2.4 </code></pre> <p>in a shell. You don't need to run <code>updatedb</code> if you've rebooted since compiling OpenCV.</p> <p>References:</p> <p>About shared libraries on Linux: <a href="http://www.eyrie.org/~eagle/notes/rpath.html">http://www.eyrie.org/~eagle/notes/rpath.html</a></p> <p>About adding the OpenCV shared libraries: <a href="http://opencv.willowgarage.com/wiki/InstallGuide_Linux">http://opencv.willowgarage.com/wiki/InstallGuide_Linux</a></p>