using -l in g++ command line
Is it correct to assume that for every opencv header included into the cpp file
#include <opencv2/xxx.hpp>
-lopencv_xxx needs to be added to g++ command line?
Is it correct to assume that for every opencv header included into the cpp file
#include <opencv2/xxx.hpp>
-lopencv_xxx needs to be added to g++ command line?
Add this `pkg-config --libs --cflags opencv`
(OpenCV 2.x and 3.x) or `pkg-config --libs --cflags opencv4`
-std=c++11 (OpenCV 4.x) to your compilation line and you will have everything you need to compile.
Asked: 2020-03-22 10:06:16 -0600
Seen: 482 times
Last updated: Mar 23 '20