The simple one like this:
g++ pkg-config --libs opencv
your_code.cpp
or the complicated one like this:
g++ -ggdb pkg-config --cflags --libs opencv
-stdlib=libstdc++ your_code.cpp -o your_code
The simple one like this:
g++ pkg-config --libs opencv
your_code.cpp
or the complicated one like this:
g++ -ggdb pkg-config --cflags --libs opencv
-stdlib=libstdc++ your_code.cpp -o your_code
本文标题:How to compile OpenCV sample cod
本文链接:https://www.haomeiwen.com/subject/wfhntqtx.html
网友评论