On Thu, 6 Nov 2025 04:19:52 +0100
Richard Bartczak via ffmpeg-user <[email protected]> wrote:
> Am 06.11.25 um 03:56 schrieb David Niklas via ffmpeg-user:
> > Hello,
> > I'm trying to compile ffmpeg 8.0 on Devuan Daedalus (Debian Bookworm
> > 12) Linux. I'm running into a second problem. ffmpeg will not compile
> > with opencv 4.6.0.
> >
> > At first, the header location was wrong. opencv2/core/core_c.h did not
> > exist, instead the path was opencv4/opencv2/core/core_c.h . One
> > softlink later I was trying to compile again, but ran into another
> > problem. OpenCV 4.x+ requires enabled C++11 support. I'm guessing
> > this is the gcc -std=c11 option.
> >
> > What version of opencv should I be using with ffmpeg? Is that a safe
> > option to use with ffmpeg? If yes, what do I edit to get that option
> > passed to gcc? I could use CXXFLAGS, but it might be overridden later
> > in the build process.
> >
> > Thanks!
> >
> > PS: Attached is the full build log for your viewing pleasure.
> >
> Hello,
> 
> nothing will be attached by ffmpeg-user.
>

Hello,

Then how do I post the build log? I know! I'll attach the >500KiB of text
below! (No, I'm not really going to make your mail client suffer with
that.)

> Did compile ffmpeg 8.0 two weeks ago, usefull hints found here :
> https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu .
> 
> And also here (to add vmaf) :
> https://github.com/yash1994/Build-FFmpeg-with-libvmaf?tab=readme-ov-file.

Thanks, but those aren't helpful with respect to opencv.

> If something will be missing during configuration : |./configure
> --enable-gpl...|
> 
> |Allways the respective dev-package must be installed.|
> 
> |I assume your ./configure you did without error indications.|
> 
<snip>

Actually, it's configure that's failing. Here are the relevant lines of
config.log -- which would have been attached, in full, in the previous
email...

gcc -D_ISOC11_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -O2 -mtune=native 
-march=native -std=c17 -fomit-frame-pointer -fPIC -pthread 
-I/usr/local/include/oapv -I/usr/include/lilv-0 -I/usr/include/serd-0 
-I/usr/include/sord-0 -I/usr/include/sratom-0 -I/usr/include/freetype2 
-I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/fribidi 
-I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/libpng16 
-I/usr/include/bs2b -I/usr/local/include -I/usr/include/libdrm 
-I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 
-I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 
-I/usr/include/libpng16 -I/usr/include/glib-2.0 
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DHWY_SHARED_DEFINE 
-I/usr/local/include -I/usr/include/mfx -c -o /tmp/ffconf.sXMftcA0/test.o 
/tmp/ffconf.sXMftcA0/test.c
gcc -Wl,--as-needed -Wl,-z,noexecstack -o /tmp/ffconf.sXMftcA0/test
/tmp/ffconf.sXMftcA0/test.o -lopencore-amrwb
check_headers opencv2/core/core_c.h
test_cpp
BEGIN /tmp/ffconf.sXMftcA0/test.c
    1   #include <opencv2/core/core_c.h>
    2   int x;
END /tmp/ffconf.sXMftcA0/test.c
gcc -D_ISOC11_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -O2 -mtune=native 
-march=native -std=c17 -fomit-frame-pointer -fPIC -pthread 
-I/usr/local/include/oapv -I/usr/include/lilv-0 -I/usr/include/serd-0 
-I/usr/include/sord-0 -I/usr/include/sratom-0 -I/usr/include/freetype2 
-I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/fribidi 
-I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/libpng16 
-I/usr/include/bs2b -I/usr/local/include -I/usr/include/libdrm 
-I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 
-I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 
-I/usr/include/libpng16 -I/usr/include/glib-2.0 
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DHWY_SHARED_DEFINE 
-I/usr/local/include -I/usr/include/mfx -E -o /tmp/ffconf.sXMftcA0/test.o 
/tmp/ffconf.sXMftcA0/test.c
In file included from /usr/include/opencv2/core/types_c.h:84,
                 from /usr/include/opencv2/core/core_c.h:48,
                 from /tmp/ffconf.sXMftcA0/test.c:1:
/usr/include/opencv2/core/cvdef.h:775:4: error: #error "OpenCV 4.x+
requires enabled C++11 support"
  775 | #  error "OpenCV 4.x+ requires enabled C++11 support"
      |    ^~~~~
/usr/include/opencv2/core/cvdef.h:781:10: fatal error: array: No such
file or directory
  781 | #include <array>
      |          ^~~~~~~
compilation terminated.
require_pkg_config libopencv opencv opencv/cxcore.h cvCreateImageHeader
check_pkg_config libopencv opencv opencv/cxcore.h cvCreateImageHeader
test_pkg_config libopencv opencv opencv/cxcore.h cvCreateImageHeader
pkg-config --exists --print-errors opencv
Package opencv was not found in the pkg-config search path.
Perhaps you should add the directory containing `opencv.pc'
to the PKG_CONFIG_PATH environment variable
Package 'opencv', required by 'virtual:world', not found
ERROR: opencv not found using pkg-config

_______________________________________________
ffmpeg-user mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to