opencv-config(1)
NAME
- opencv-config - script to get information about the in
- stalled version of OpenCV
SYNOPSIS
opencv-config [ --prefix= DIR] [ --version ] [ --libs
[<extensions>]] [ --cflags | --cxxflags ]
DESCRIPTION
- opencv-config is a tool that is used to configure and de
- termine the compiler and linker flags that should be used to com
- pile and link progams, libraries, and plugins that use OpenCV.
OPTIONS
- --cflags
- Print the C compiler flags that are necessary to
- compile a program or library that uses OpenCV.
- --cxxflags
- Print the C++ compiler flags that are necessary to
- compile a program or library that uses OpenCV.
- --libs [<extensions>]
- Print the linker flags that are necessary to link a
- program that uses libcv. Optionally, add linker flags for the
- libhighgui, libcvcam and/or libcvaux OpenCV extensions by append
- ing highgui, cvcam and/or cvaux.
- --prefix=DIR
- If specified, use PREFIX instead of the installa
- tion prefix that libcv was built with when computing the output
- for the --cflags, --cxxflags and --libs options. This option must
- be specified before any of the --cflags, --cxxflags and --libs
- options.
- --version
- Prints the currently installed version of libcv on
- standard output.
EXAMPLES
- gcc -o main.o $(opencv-config --cflags) -c main.c
- is how you might use opencv-config to compile a C
- source file for an executable program.
- gcc -o my_app $(opencv-config --libs) main.o util.o
- is how you might use opencv-config to link compiled
- objects into an executable program.
AUTHOR
- This manual page was written for sdl-config by Branden
- Robinson, originally for Progeny Linux Systems, Inc., and the De
- bian Project. It was adapted to libcv by Sam Hocevar.
- OpenCV 2004-04-22