* Alejandro Colomar (man-pages) <alx.manpa...@gmail.com> [2021-06-21 17:35]:
Maybe Debian could write separate pkg-config files, and maybe offer them to upstream OpenCV (I offer myself to help write them if you decide it's a good idea).
It's easier if you talk to upstream about this directly. Adding them to Debian only would be incompatible with other distros and be of limited use.
Yes, for linking against the shared libraries, that's all you need: link against the module you want. BUT, if you want to try to link against the static library (and now I'm talking from memory (it's been a year since I tried to do that, and I don't remember the result, I only remember a bunch of errors)), you'll need to know which libraries you need, which is the magic of pkg-config.
Static linking should work fine without pkg-config as well, except that you would have to list all dependencies, but looking at the opencv4.pc I guess they are incomplete anyhow ;).
Cheers Jochen
signature.asc
Description: PGP signature