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: INSTALL.md
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,7 @@ and additionally to support more OpenCV modules:
24
24
`zypper install opencv-devel clang-devel gcc-c++`
25
25
26
26
#### Other Linux:
27
+
27
28
You have several options of getting the OpenCV library:
28
29
29
30
* install it from the repository, make sure to install `-dev` packages because they contain headers necessary
@@ -36,8 +37,9 @@ You have several options of getting the OpenCV library:
36
37
37
38
Additionally, please make sure to install `clang` package or its derivative that contains `libclang.so` and
38
39
`clang` binary.
39
-
* Gentoo, Fedora: `clang`
40
-
* Debian, Ubuntu: `clang` and `libclang-dev`
40
+
41
+
* Gentoo, Fedora: `clang`
42
+
* Debian, Ubuntu: `clang` and `libclang-dev`
41
43
42
44
### Windows package
43
45
@@ -78,7 +80,8 @@ Get OpenCV from homebrew:
78
80
brew install llvm
79
81
```
80
82
81
-
If you have already installed OpenCV via Homebrew, there is no need to configure any environment variables specifically for OpenCV on macOS. The OpenCV installation can be automatically detected if it was installed through Homebrew.
83
+
If you have already installed OpenCV via Homebrew, there is no need to configure any environment variables specifically for
84
+
OpenCV on macOS. The OpenCV installation can be automatically detected if it was installed through Homebrew.
82
85
83
86
To take advantage of this automatic detection, refrain from setting the following environment variables:
84
87
@@ -112,9 +115,9 @@ you can get some information on how to perform the build in CI scripts:
112
115
[install-ubuntu.sh](https://github.com/twistedfall/opencv-rust/blob/master/ci/install-ubuntu.sh) and
113
116
[script.sh](https://github.com/twistedfall/opencv-rust/blob/master/ci/script.sh), search for `"static"` string.
114
117
115
-
### Crosscompilation
118
+
### Cross-compilation
116
119
117
-
Cross-compilation is supported to at least some extent. The ability to crosscompile projects using `opencv` from x86-64
120
+
Cross-compilation is supported to at least some extent. The ability to cross-compile projects using `opencv` from x86-64
118
121
Linux host machine to Raspberry Pi is tested regularly. Cross-compilation is notoriously difficult to set up, so you can
119
122
use this example [rpi-xcompile.Dockerfile](https://github.com/twistedfall/opencv-rust/blob/master/tools/docker/rpi-xcompile.Dockerfile).
120
123
@@ -128,4 +131,4 @@ Building this image requries `qemu-arm` to be present on the host system and the
128
131
129
132
After the successful build you will have an image configured for cross-compilation to Raspberry Pi. It will contain the
130
133
sample build script `/usr/local/bin/cargo-xbuild` that you can check for the correct environment setup and the specific
131
-
command line arguments to use when crosscompiling the project inside the container created from that image.
134
+
command line arguments to use when cross-compiling the project inside the container created from that image.
curl -sSfL "https://github.com/opencv/opencv/archive/refs/tags/${OPENCV_VERSION}.tar.gz" | tar xz -C /root/dist && \
28
-
curl -sSfL "https://github.com/opencv/opencv_contrib/archive/refs/tags/${OPENCV_VERSION}.tar.gz" | tar xz -C /root/dist && \
29
-
sed -ri 's/Ptr<FarnebackOpticalFlow> cv::cuda::FarnebackOpticalFlow::create/Ptr<cv::cuda::FarnebackOpticalFlow> cv::cuda::FarnebackOpticalFlow::create/'"/root/dist/opencv_contrib-${OPENCV_VERSION}/modules/cudaoptflow/src/farneback.cpp" # patch for version 4.8.0
60
+
curl -sSfL "https://github.com/opencv/opencv_contrib/archive/refs/tags/${OPENCV_VERSION}.tar.gz" | tar xz -C /root/dist
0 commit comments