I took a look at your latest cmake configuration log. that issue seems to be it.
it says “Specify ‘pkgcfg_lib_FFMPEG_something’ manually”. if it says that, I believe doing that would solve that issue. I can’t predict if another layer of errors will show up after that.
perhaps reconsider wanting to get a static build. that is simply not a normal use-case for OpenCV.
the problem is always whether those libraries will allow themselves to be linked statically as well, even if you can get OpenCV linked statically. it’s a legal question unfortunately.
dynamic linking isn’t such a problem. you just have to package/ship all the dependencies (except those you can fully expect to be on another system, such as libc), and then make sure your program can find them.
OK @crackwitz, I will test a last time a static compilation with gstreamer instead of FFMPEG and keep you informed.
If it doesn’t work, I will come back to a more standard compilation (which works on PiZero) with shared libraries.
Just a message to conlude.
I did not succeed in running my code without errors even if the static compilation has worked without errors.
So I compiled opencv in the standard way for PiZero (dynamic linking) and I’ve moved all needed libs to others PiZero for deploying my program.
Thanks again to all for all your answers.