OpenCV 2.4.10 fails to build on Debian Jessie

asked 2014-10-15 21:11:00 -0500

Apollo Juice gravatar image

updated 2014-10-15 22:32:43 -0500

Here is what I do:

$ git clone https://github.com/Itseez/opencv
$ cd opencv
$ git checkout 2.4.10
$ mkdir build && cd build
$ cmake -D CMAKE_BUILD_TYPE=RELEASE -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_OPENGL=ON .. > cmake.log 2>&1
$ make -j9 > make1.log 2>&1                                                                                                                                                                                                                    
$ make > make2.log 2>&1
$ grep CODEC_ID_H264 -r -s /usr/include/
/usr/include/libavcodec/avcodec.h:    AV_CODEC_ID_H264,
/usr/include/libavcodec/avcodec.h: * codec = avcodec_find_decoder(AV_CODEC_ID_H264);
$ pkg-config --modversion libavcodec
56.1.0

Here is what I get:

What do I do to make OpenCV build?

edit retag flag offensive close merge delete

Comments

Start by changing git checkout 2.4.10 to git checkout 2.4. I noticed a bug report quite recently discussing this issue and I tought it was fixed. 2.4 is always the latest most stable branch possible.

StevenPuttemans gravatar imageStevenPuttemans ( 2014-10-16 03:38:26 -0500 )edit

Pulled new changes, switched to 2.4. Get the same error, but a lot earlier in the build process. cmake.log, make1.log.

Apollo Juice gravatar imageApollo Juice ( 2014-10-16 12:45:36 -0500 )edit

Did you end up fixing the problem? I am also having similar issue. Based on my experience OpenCV installs smoothly on Wheezy but fails on Jessie. There is nothing that I can do to fix it. Any help would be appreciated

hamidsani gravatar imagehamidsani ( 2014-12-05 04:05:27 -0500 )edit