Skip to contents

This function returns the configuration options for compiling C/C++-based packages against OpenCV installed by ROpenCVLite.

Usage

opencvConfig(output = "libs", arch = NULL)

Arguments

output

Either 'libs' for library configuration options or 'cflags' for C/C++ configuration flags.

arch

architecture relevant for Windows. If NULL, then R.version$arch will be used.

Value

A concatenated character string (with cat) of the configuration options.

Author

Simon Garnier, garnier@njit.edu

Examples

if (isOpenCVInstalled()) {
  opencvConfig()
  opencvConfig(output = "cflags")
  opencvConfig(arch = R.version$arch)
}