Advertisement
vicendominguez

Compiling cpp source with opencv libs in MacOSX/Ubuntu 13.04

Oct 9th, 2013
352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.41 KB | None | 0 0
  1. # MacOS X 10.7.x
  2. # You need opencv is installed (macports)
  3.  
  4. g++ -ggdb `pkg-config --cflags opencv` `pkg-config --libs opencv` header.cpp header2.cpp program.cpp -o program
  5.  
  6. # Ubuntu 13.04 / Mint 15
  7. # opencv from source because package version doesn't have nonfree modules separated (SURF/SIFT)
  8. # and you can have problems (install pkg-config too)
  9.  
  10. g++ -o program program.cpp `pkg-config opencv --cflags --libs`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement