Ask Your Question

How to update & rebuild CV2 on Raspberry Pi

asked 2016-12-07 06:28:20 -0500

DontOpenMyCV gravatar image

Hi at all,

before explaining my problem, I feeling really stupid about asking such an "easy" question, but I searched the Internet for about three hours without any result.

I have a running version of OpenCV 3.1.0 installed on my Raspberry Pi (Linux Raspbian, Python 3) since September this year, used:

cv2.__version__ says 3.1.0

In 2015 there was a bug according to the fisheye-calibration and in April 2016 a fix was officially committed on GitHub:

Now, I want to re-download changed files and rebuild OpenCV to take advantage of the bug-fix (if this is the right way to handle an update). Another question is why I could download a bug-file after there was a fix half a year ago.

As I said, I was seeking for an answer for hours, but "update open cv linux" or "git update rebuild open cv" results in lots of crap.

Thank you all in advance!

edit retag flag offensive close merge delete


how did you get the src, originally ?

berak gravatar imageberak ( 2016-12-07 06:47:33 -0500 )edit

wget download zip-archive from GitHub, then unpack, then cmake to build

DontOpenMyCV gravatar imageDontOpenMyCV ( 2016-12-07 06:51:34 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2016-12-07 07:41:49 -0500

berak gravatar image

updated 2016-12-08 10:11:31 -0500

instead of wget /zip, try :

git clone

(this will create a new opencv folder, wherever you start this)

then cmake from there again, like you did before.

edit flag offensive delete link more



Worked for me, thank you!

DontOpenMyCV gravatar imageDontOpenMyCV ( 2016-12-08 10:08:09 -0500 )edit

Question Tools

1 follower


Asked: 2016-12-07 06:21:32 -0500

Seen: 3,813 times

Last updated: Dec 07 '16