How to Compile Opencv Program

How to Compile Opencv Program
Linux:
g++ hello-world.cpp -o hello-world \
-I /usr/local/include/opencv -L /usr/local/lib \
-lm -lcv -lhighgui -lcvaux

Windows:
In the project preferences set the path to the OpenCV header files and
the path to the OpenCV library files.

No comments:

Post a Comment

comment on this post

Note: Only a member of this blog may post a comment.