
Sudo apt-get install build-essential checkinstall git cmake libfaac-dev libjack-jackd2-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libsdl1.2-dev libtheora-dev libva-dev libvdpau-dev libvorbis-dev libx11-dev libxfixes-dev libxvidcore-dev texi2html yasm zlib1g-dev Download dependencies for ffmpeg, libx264 and opencv.After saving /etc/environment file, run the below command to reload the path.JRE_HOME="/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java" JAVA_HOME="/usr/lib/jvm/java-7-openjdk-amd64/bin/java" Open your /etc/environment fileĪnd add the following lines to end of the file.

We should Setup Environment Variables for java because all of java based application’s use environment variables to work.The Oracle jdk doesn’t support some of the useful headers needed for the compilation of opencv. Install openjdk7 as the default java development kit.Sudo apt-get remove ffmpeg x264 libx264-dev Remove any installed versions of ffmpeg and libx264.So we have to download and manually install the source code.

The version of opencv found in the ubuntu repository is bit old. This cross platform library mainly focuses on real-time image processing. OpenCV ( Open Source Computer Vision) is a library of programming functions mainly aimed at real-time computer vision.
