OpenCV 2.4.10 fails to build on Debian Jessie
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?
Start by changing git
checkout 2.4.10
togit 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.Pulled new changes, switched to 2.4. Get the same error, but a lot earlier in the build process. cmake.log, make1.log.
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