2 years ago
#32477
unequal5
Permantly provide path to the headers and linker flags in OpenCV Linux
I have OpenCV 4.5.1 installed in Linux. But each time I restart I have to separely provide path to the headers and linker flags. and then compile ? export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/home/parallels/opencv4.5-custom/lib/pkgconfig pkg-config --cflags --libs opencv4
and then g++ -Wall -std=c++11 -o main main.cpp $(pkg-config --cflags --libs opencv4)
I just want to run the g++ comand each time
c++
linux
opencv
pkg-config
0 Answers
Your Answer