You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-15Lines changed: 15 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -45,10 +45,9 @@ The following variables must be set when building without `pkg_config`, `cmake`
45
45
on any platform, the specified values will override those automatically discovered.
46
46
47
47
*`OPENCV_LINK_LIBS`
48
-
Comma separated list of library names to link to. `.lib`, `.so` or `.dylib` extension is optional. If you
49
-
specify the ".framework" extension then build script will link a macOS framework instead of plain shared
50
-
library.
51
-
E.g. "opencv_world411".
48
+
Comma separated list of library names to link to. `.lib`, `.so` or `.dylib` extension is optional. For every
49
+
library you can specify optional "dylib=", "static=" or "framework=" prefix to indicate the specific type.
50
+
E.g. "opencv_world411", "framework=OpenCL".
52
51
53
52
If this list starts with '+' (plus sign) then the specified items will be appended to whatever the system
54
53
probe returned. E.g. a value of "+dc1394" will do a system discovery of the OpenCV library and its linked
@@ -76,9 +75,9 @@ The following variables are rarely used, but you might need them under some circ
76
75
extension in the package directory. Cmake will look for that file with `.cmake` extension. And vcpkg will use
77
76
that name to try to find package in `packages` directory under `VCPKG_ROOT`. You can also use separate
78
77
environment variables to set different package names for different package systems:
79
-
*`OPENCV_PKGCONFIG_NAME`
80
-
*`OPENCV_CMAKE_NAME`
81
-
*`OPENCV_VCPKG_NAME`
78
+
* `OPENCV_PKGCONFIG_NAME`
79
+
* `OPENCV_CMAKE_NAME`
80
+
* `OPENCV_VCPKG_NAME`
82
81
83
82
*`OPENCV_CMAKE_BIN`
84
83
Path to cmake binary (used in OpenCV discovery process using cmake). If not set then just "cmake" will be
@@ -87,13 +86,13 @@ The following variables are rarely used, but you might need them under some circ
87
86
*`OPENCV_DISABLE_PROBES`
88
87
Comma separated list of OpenCV package auto-discovery systems to exclude from running. Might be useful if
89
88
one of the higher priority systems is producing incorrect results. Can contain the following values:
90
-
* environment - reads data only from the `OPENCV_LINK_LIBS`, `OPENCV_LINK_PATHS` and `OPENCV_INCLUDE_PATHS`
91
-
environment variables
92
-
* pkg_config
93
-
* cmake
94
-
* vcpkg_cmake - like vcpkg, but only uses vcpkg for path discovery, the actual OpenCV probe is done using
95
-
cmake (cmake related environment variables are applicable with this probe)
96
-
* vcpkg
89
+
* environment - reads data only from the `OPENCV_LINK_LIBS`, `OPENCV_LINK_PATHS` and `OPENCV_INCLUDE_PATHS`
90
+
environment variables
91
+
* pkg_config
92
+
* cmake
93
+
* vcpkg_cmake - like vcpkg, but only uses vcpkg for path discovery, the actual OpenCV probe is done using
94
+
cmake (cmake related environment variables are applicable with this probe)
95
+
* vcpkg
97
96
98
97
*`OPENCV_MSVC_CRT`
99
98
Allows selecting the CRT library when building with MSVC for Windows. Allowed values are `"static"` for `/MT`
@@ -129,7 +128,8 @@ The following variables affect the building the of the `opencv` crate, but belon
129
128
in `PATH` might be interpreted as the entry separator. Summary [here](https://stackoverflow.com/a/6546427).
130
129
131
130
*`OPENCV_CLANG_ARGS`
132
-
Allow custom arguments for generating and parsing code with clang, see the [documentation for clang arguments](https://docs.rs/clang/latest/clang/struct.Parser.html#method.arguments).
131
+
Allow custom arguments for generating and parsing code with clang, see
132
+
the [documentation for clang arguments](https://docs.rs/clang/latest/clang/struct.Parser.html#method.arguments).
133
133
134
134
* clang crate environment variables
135
135
See crate's [README](https://github.com/KyleMayes/clang-sys/blob/master/README.md#environment-variables)
0 commit comments