OpenCV 2.4.4 on Crunchbang 11

I recently decided that crunchbang is the distro I want to use on my laptop (yeah I know I switch distros a lot) its pretty sweet. Anyways I finally got around to setting OpenCV on my laptop and I thought I would write a little bit about the process here.

It was actually pretty straight forward and I’m pretty sure that anyone who decides to use a slightly less mainstream distro like crunchbang would easily figure this out but hey everyone tries a hail mary Google of their exact task at hand now and then so lazy Googler this ones for you.

I followed the steps from OzBotz’s great guide: http://www.ozbotz.org/opencv-installation/ with a few simple modifications.

I had to add the debian multimedia repositories like so:

# add the following line to /etc/apt/sources.list
deb ftp://ftp.deb-multimedia.org wheezy main non-free

then run

sudo apt-get update

At this point I got an error about unauthenticated packages. The fix for this is to install the repo key ring:

sudo apt-get install deb-multimedia-keyring

Say yes to unauthenticated packages. Now this repository is authenticated and won’t give you any more lip.

From here the install was pretty much smooth sailing. My install is 64-bit so I made sure to use the extra configure command for 64-bit systems. Actually come to think of it I think I had to use theses extra commands the last time I built OpenCV on a 32-bit Ubuntu machine so you might want to just use those regardless. Also be careful with the using a too recent x264 stable because it might require yasm 1.2 which isn’t in the debian repositories yet. So unless you want to make more work for yourself needlessly (an older stable will work just fine) then stick to an older stable. I did use the latest ffmpeg though (1.2 magic) with no issues.

And that’s it! Sure felt nice to be writing a how to of sorts for Linux again!

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s