ffmpeg with opencv -- or opencv with ffmpeg??

Hello everyone.

I'm trying to build a git version of ffmpeg and have encountered this diliemma. My ports-base multimedia/ffmpeg26 uses this flag --enable-libopencv, but when I'm trying to compile the git source with this flag, it says "OpenCV not found via pkg-config".
Now I've noticed that the one installed is actually graphics/opencv-core. OK, I tried to build graphics/opencv, but to be build with ffmpeg support it wants... ffmpeg installed!

Now can anybody, please, explain what the deal is? How can that be that if I enable OpenCv support in ffmpeg, it needs libopencv (logically), but then opencv needs in turn ffmpeg to build?

Where's the mistake?
 
Back
Top