build opencv project from source

asked 2013-05-03 22:11:00 -0500

mat_pier gravatar image

I forked the OpenCV project from git://github.com/Itseez/opencv.git yesterday and wanted to make some changes to the source. Before making any changes, I wanted to test it by building the project.

I tried to build it from the source using:

$mkdir build
$cd build
$cmake .. 
$make

All the above commands run fine. But when I run

$sudo make install

I get an error saying cv.py file is missing and the build fails. I was wondering if anyone else have this issue.

edit retag flag offensive close merge delete

Comments

Did you try to build sources from 2.4 branch?

Daniil Osokin gravatar imageDaniil Osokin ( 2013-05-04 04:18:25 -0500 )edit

I have not. The main purpose for my fork was to make changes, request a pull from my changes to source code. I'm not very good at git. I don't know if it is appropriate to make a fork of older version, make changes and request them to pull my changes (made on older one). Let me if I'm missing something.

mat_pier gravatar imagemat_pier ( 2013-05-04 07:29:41 -0500 )edit

When I run a $sudo make install I get the following error CMake Error at modules/python/cmake_install.cmake:56 (FILE): file INSTALL cannot find "path_to_project/opencv/modules/python/src2/cv.py". Call Stack (most recent call first): modules/cmake_install.cmake:77 (INCLUDE) cmake_install.cmake:57 (INCLUDE)

make: * [install] Error 1

mat_pier gravatar imagemat_pier ( 2013-05-04 14:53:28 -0500 )edit

Try: "git checkout -b 2.4 origin/2.4" and build it. OpenCV's branches mission you can find at contributions page: http://code.opencv.org/projects/opencv/wiki/How_to_contribute.

Daniil Osokin gravatar imageDaniil Osokin ( 2013-05-05 04:09:47 -0500 )edit