After having a search around in the source files I found the following entry in CMakeList.text
# Generate opencv.pc for pkg-config command
include(cmake/OpenCVGenPkgconfig.cmake)
Looking in OpenCVGenPkgconfig.cmake
has the following comment
# The package name specified on the pkg-config command line is defined to
# be the name of the metadata file, minus the .pc extension.
After compiling OpenCV with Visual Studio 2012 by following the instructions found in Installation in Windows tutorial the opencv.pc
was found in the unix-install
which might explain why its not available for window. It looks like opencv.pc
contains the information returned by the pkg-config command line
# Package Information for pkg-config
prefix=C:/OpencCV/builds/install
exec_prefix=${prefix}
libdir=
includedir_old=${prefix}/include/opencv
includedir_new=${prefix}/include
Name: OpenCV
Description: Open Source Computer Vision Library
Version: 2.4.8
Libs: ${exec_prefix}/x86/vc11/lib/opencv_calib3d248.dll ...
Cflags: -I${includedir_old} -I${includedir_new}
After editing the Cflags
and Libs
properties to include the full file path I used that in my Open Source project.
INCS = -IC:/OpencCV/builds/install/include/opencv -IC:/OpencCV/builds/install/include
LIBS = C:/OpencCV/builds/install/x86/vc11/lib/opencv_calib3d248.dll ...
Now it compiles correctly.