Add all opencv libraries to C++ example (#58)

This commit is contained in:
Peter Johnson 2019-01-11 13:16:27 -08:00 committed by GitHub
parent e17886dafc
commit 47c38400d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,30 @@ clean:
rm ${EXE} *.o
${EXE}: main.o
${CXX} -pthread -o $@ $< -L/usr/local/frc/lib -lwpilibc -lwpiHal -lcameraserver -lcscore -lntcore -lwpiutil
${CXX} -pthread -o $@ $< \
-L/usr/local/frc/lib \
-lwpilibc \
-lwpiHal \
-lcameraserver \
-lcscore \
-lntcore \
-lwpiutil \
-lopencv_ml \
-lopencv_objdetect \
-lopencv_shape \
-lopencv_stitching \
-lopencv_superres \
-lopencv_videostab \
-lopencv_calib3d \
-lopencv_features2d \
-lopencv_highgui \
-lopencv_videoio \
-lopencv_imgcodecs \
-lopencv_video \
-lopencv_photo \
-lopencv_imgproc \
-lopencv_flann \
-lopencv_core
.cpp.o:
${CXX} -pthread -O -c -o $@ -I/usr/local/frc/include $<