Learn R Programming

ROpenCVLite (version 4.30.2)

opencvConfig: C/C++ configuration options

Description

Determines 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.

Examples

Run this code
# NOT RUN {
if (isOpenCVInstalled()) {
  opencvConfig()
  opencvConfig(output = "cflags")
  opencvConfig(arch = R.version$arch)
}

# }

Run the code above in your browser using DataLab