Should I use `pkg-config --libs opencv4` or `pkg-config --libs opencv`?

asked 2019-12-17 06:49:27 -0600

AlexB gravatar image

Should I use

LDFLAGS+= `pkg-config --libs opencv4`
COMMON+= `pkg-config --cflags opencv4`

or

LDFLAGS+= `pkg-config --libs opencv`
COMMON+= `pkg-config --cflags opencv`

to compile my program with OpenCV?

edit retag flag offensive close merge delete

Comments

1

Related.

CMake is the way to go.

Eduardo gravatar imageEduardo ( 2019-12-17 15:08:33 -0600 )edit