-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.txt
22 lines (16 loc) · 1008 Bytes
/
script.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
compile command for:
main.cpp:
g++ main.cpp -I/usr/local/include/opencv4 -o main -lopencv_core -std=c++11 -Wl,-rpath,/usr/local/lib
image.cpp:
g++ image.cpp -I/usr/local/include/opencv4 -o main -lopencv_core -lopencv_imgcodecs -lopencv_highgui -std=c++11 -Wl,-rpath,/usr/local/lib
video.cpp:
g++ video.cpp -I/usr/local/include/opencv4 -o main -lopencv_core -lopencv_highgui -lopencv_videoio -std=c++11 -Wl,-rpath,/usr/local/lib
face.cpp:
g++ face.cpp -I/usr/local/include/opencv4 -o main -lopencv_core -lopencv_highgui -lopencv_videoio -lopencv_objdetect -lopencv_imgproc -lopencv_imgcodecs -std=c++11 -Wl,-rpath,/usr/local/lib
test:
success:
g++ face.cpp -o main `pkg-config --cflags --libs opencv4` -std=c++11 -Wl,-rpath,/usr/local/lib
failed:
g++ face.cpp -o main `pkg-config --cflags --libs opencv4` -std=c++11
camera.cpp:
g++ camera.cpp -I/usr/local/include/opencv4 -o main -lopencv_core -lopencv_highgui -lopencv_videoio -lopencv_imgcodecs -std=c++11 -Wl,-rpath,/usr/local/lib