
Libxext-dev libxfixes-dev pkg-config texi2html zlib1g-devĮcho "downloading yasm (assembler used by x264 and FFmpeg)"Įcho 'READ NOTE BELOW which was extracted from 'Įcho 'New version of x264 contains by default support of OpenCL. Libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libx11-dev \ Sudo apt-get install autoconf automake make g++ curl cmake bzip2 python unzip \īuild-essential checkinstall git git-core libass-dev libgpac-dev \ Sudo apt-get remove ffmpeg x264 libx264-dev libvpx-dev librtmp0 librtmp-dev libopencv-dev # Open terminal and navigate to location used aboveĮcho "Removing any pre-installed ffmpeg, x264, and other dependencies (not all the previously installed dependecies)" # Check corresponding url used in the script for latest versions of the package and replace as required # Copy the following script to gedit and save as install.sh to current dir, this should be /prepare # create a foler under current dir (following previous step, this should be ), called prepare # download the latest stable opencv such as 2.4.6.1 () to current directory (such as home or ~/Document) NOTE: ensure you uninstall any previous installation of OpenCV, FFMpeg and other dependencies previously installed. I would like to share some ideas (a compilation of noteworthy information gathered from several sources including SO,, and many other and of course by trying several procedures)

I had previously used OpenCV 2.4.5 with some certain configs and packages on Ubuntu 12.04.1 but had issues upgrading to OpenCV 2.4.6.1 on Ubuntu 12.04.2
