Skip to content

Instantly share code, notes, and snippets.

@miskolc
Created June 21, 2014 19:31
Show Gist options
  • Save miskolc/b21f784740b414d975f3 to your computer and use it in GitHub Desktop.
Save miskolc/b21f784740b414d975f3 to your computer and use it in GitHub Desktop.
Compilation commands
LIBS="-lopencv_imgproc -lopencv_highgui -lopencv_core -lopencv_objdetect"
g++ -I/usr/local/include/opencv -I/usr/local/include/opencv2 -L/usr/lib -L/usr/local/lib -fpic -Wall -c "faces.cpp" $LIBS
//create shared library
g++ -shared -I/usr/local/include/opencv -I/usr/local/include/opencv2 -o libfaces.so faces.o -L/usr/local/lib $LIBS
//create executable (in case you want to play with it directly)
g++ -I/usr/local/include/opencv -I/usr/local/include/opencv2 -o faces faces.o -L/usr/local/lib $LIBS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment