opencv-2.4.4a fails to build with custom ffmpeg install (Bug #2900)
Description
Trying to build opencv-2.4.4a with ffmpeg.
First question is what flag to pass cmake to just turn off building HIGHGUI.
Second question is how to have cmake correctly discover ffmpeg include files.
Looking at the attached log I see the correct ffmpeg library has been discovered.
And cmake is unable to find the libavformat.h file even though pkg-config --cflags
is returning the correct include file path.
There are numerous tickets about this, none of which correctly explain how to fix this.
Let me know the correct cmake incantation to locate the ffmpeg header files.
Thanks.
_
ffmpeg info...
net1# which ffmpeg
/runtime/bin/ffmpeg
net1# ffmpeg -version
ffmpeg version 1.2.0 (N-51197-g8251c05)
built on Mar 21 2013 09:42:14 with gcc 4.7 (Ubuntu/Linaro 4.7.2-2ubuntu1)
configuration: --prefix=/runtime --enable-pic --enable-gpl --disable-debug --extra-cflags=-I/runtime/include --extra-ldflags=-L/runtime/lib --enable-version3 --enable-shared --disable-static --disable-ffplay --disable-ffprobe --disable-ffserver --enable-runtime-cpudetect --enable-nonfree --enable-zlib --enable-bzlib --enable-openssl --enable-libmp3lame --enable-libfaac --enable-libvpx --enable-libtheora --enable-libvorbis --enable-libxvid --enable-libopenjpeg --enable-libfreetype --enable-libx264 --enable-postproc --enable-frei0r --enable-libdc1394 --enable-libopencore-amrnb --enable-libgsm --enable-libmodplug --enable-libass --enable-libv4l2
libavutil 52. 22.100 / 52. 22.100
libavcodec 55. 1.100 / 55. 1.100
libavformat 55. 0.100 / 55. 0.100
libavdevice 55. 0.100 / 55. 0.100
libavfilter 3. 48.100 / 3. 48.100
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
History
Updated by David Favor almost 12 years ago
Cmake files are greek to me and it appear via cmake --trace that the
libavformat.h checks may only be for Gentoo Linux.
If this is the case, probably best to change the output text for the test
and failure to specifically say these are only for Gentoo.
And I could be wrong about this.
Updated by David Favor almost 12 years ago
Does look like this check is only for Gentoo Linux.
Please update message to clarify the check is only for Gentoo.
If this assumption is incorrect, then please update this ticket with the correct
way to discover (-D... definition) where these files live.
Thanks.
Updated by David Favor almost 12 years ago
Maybe I'm posting to the wrong place for a response.
If there's a better place to get this question answered, please update this ticket.
Thanks.
Updated by Andrey Kamaev almost 12 years ago
Probably you'll find scripts attached to issue #1580 useful.
But we are not providing user support so this ticket is closed. You can ask your questions on http://www.answers.opencv.org
- Target version set to 2.4.5
- Status changed from Open to Cancelled