pkg-config and opencv4

Joël Brogniart Joel.Brogniart at
Tue Feb 9 12:44:44 UTC 2021

One should be able to obtain informations with pkg-config. ie. wiith cairo installed it works fine
pkg-config --cflags cairo
pkg-config --libs cairo
But not with opencv4.


> Le 9 févr. 2021 à 12:10, Marius Schamschula <lists at> a écrit :
> I haven’t had time to look into that. I’m not the maintain of opencv4. For the moment I downgraded opencv to version 3.4.13.
>> On Feb 9, 2021, at 2:28 AM, Joël Brogniart <Joel.Brogniart at> wrote:
>> I'm trying to adapt a portfile for a Linux application to depend on opencv4 instead of opencv. The building of the application use pkg-config to find directory, library et compiler settings for different tools (opencv, cairo…). This works correctly except for opencv.
>> On Macports, the opencv4 port doesn't populate pkg-config data with its own information. Is there an explanation for the missing data?
> Marius
> --
> Marius Schamschula

More information about the macports-dev mailing list