Skip to content

Instantly share code, notes, and snippets.

@cybertramp
Created September 25, 2019 15:31
Show Gist options
  • Select an option

  • Save cybertramp/54d11e42d2a186af4dd3d5c6f5a2a560 to your computer and use it in GitHub Desktop.

Select an option

Save cybertramp/54d11e42d2a186af4dd3d5c6f5a2a560 to your computer and use it in GitHub Desktop.
Compile command when using opencv.
# Compile
g++ -I/usr/local/include/opencv4 -O0 -g3 -Wall -c -fmessage-length=0 -no-pie -v -MMD -MP -MF"main.d" -MT"main.o" -o "main.o" "../main.cpp"
# Linking
g++ -L/usr/local/lib -o "opencv_homework1" ./main.o -lopencv_core -lopencv_imgproc -lopencv_imgcodecs -lopencv_highgui -lopencv_ml -lopencv_videoio -lopencv_video -lopencv_features2d -lopencv_calib3d -lopencv_objdetect -lopencv_flann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment