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
Add platform detection for linux arm and armhf (no binaries exist yet for these)
Add default install paths for Windows platforms. Semi-fixes#3
Update readme.
Copy file name to clipboardExpand all lines: README.md
+33-22Lines changed: 33 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,23 +12,25 @@ For now, this is just a CLI app with no GUI.
12
12
## Supported platforms
13
13
This currently supports
14
14
15
-
- Windows (32- and 64-bit)
15
+
- Windows (32- and 64-bit x86)
16
16
- Mac OS X 10.4 or higher
17
-
- Linux (32- and 64-bit)
18
-
19
-
ARM is not currently supported.
17
+
- Linux (32- and 64-bit x86, and ARM soft- and hard-float)
20
18
21
19
### Windows notes
22
20
23
-
This doesn't work on Windows. At all. JNI and native binaries need to be built and the install paths need to be figured out.
21
+
Artifacts are installed by default in `C:\Users\<user>\OpenCV\`. You will need to add the install locations to the `PATH` environment variable.
24
22
25
23
### Linux notes
26
24
27
25
JNI and native bindings will be installed in `/usr/local/lib` and the headers will be installed in `/usr/local/include`. If you don't have write access to these folders, you can run the installer with
28
26
29
27
`sudo java -Duser.home=$HOME -jar ...`
30
28
31
-
Make sure that `/usr/local/lib` is on `LD_LIBRARY_PATH` or the JNI bindings won't be loaded by the JVM.
29
+
Make sure that `/usr/local/lib` is on `LD_LIBRARY_PATH` or the JNI bindings won't be loaded by the JVM.
30
+
31
+
### OS X notes
32
+
33
+
Similar to Linux, but you probably won't need to use `sudo`.
32
34
33
35
34
36
## Command line arguments
@@ -37,26 +39,28 @@ Short name | Long name | Description | Argument
37
39
---|---|---|---
38
40
||`help`| Prints the help text |
39
41
`v` | `version` | Sets the OpenCV version | The version in the format `x.x.x` e.g. `3.1.0`
40
-
`j` | `java` | Flags the Java API for install. This does _not_ install JNI bindings
41
-
`jni` | `jni` | Flags the JNI bindings for install
42
-
`h` | `headers` | Flags the C++ headers for install
43
-
`n` | `natives` | Flags the C++ native libraries for install
42
+
`j` | `java` | Flags the Java API for install. This does _not_ install JNI bindings | Install location (optional)
43
+
`jni` | `jni` | Flags the JNI bindings for install | Install location (optional)
44
+
`h` | `headers` | Flags the C++ headers for install | Install location (optional)
45
+
`n` | `natives` | Flags the C++ native libraries for install | Install location (optional)
This will install OpenCV on the current system if the JNI bindings are available for it. If there aren't any JNI bindings, an `IOException` will be thrown by the call to `Installer.installJni()` (you may wrap this in a `try-catch` block if you want to do something with this exception, such as logging it)
134
+
This will install OpenCV on the current system if the JNI bindings are available for it. If there aren't any JNI bindings, an `IOException` will be thrown by the call to `Installer.installJni()`
0 commit comments