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
While `nut.js` comes with a pre-built version of OpenCV for your respective target platform, it currently still requires some 3rd-party dependencies to generate `node` bindings.
62
+
This setup will be enhanced in the future so no additional packages have to be installed on a target system.
63
+
64
+
Until then, the following tools / libraries need to be installed in order to use `nut.js`:
65
+
66
+
## Prerequisites
67
+
68
+
The installation process comes with a pre-built version of OpenCV for the respective target platform.
69
+
It's not required to manually build or install OpenCV, but the installation process has some 3rd-party dependencies.
70
+
71
+
#### Windows
72
+
73
+
In order to install `nut.js` on Windows, [Windows Build Tools](https://www.microsoft.com/en-us/download/details.aspx?id=48159) and [Python 2](https://www.python.org/downloads/windows/) are required.
74
+
You can either set them up manually, or install them via npm:
62
75
63
76
```bash
64
-
npm i @nut-tree/nut-js
77
+
npm install --global windows-build-tools
65
78
```
66
79
67
80
or
68
81
69
82
```bash
70
-
yarn add @nut-tree/nut-js
83
+
yarn global add windows-build-tools
71
84
```
72
85
73
-
will install nut.js and its required dependencies.
86
+
#### macOS
74
87
75
-
The installation process comes with a pre-built version of OpenCV for the respective target platform (via [opencv4nodejs](https://github.com/justadudewhohacks/opencv4nodejs)).
76
-
It's not required to manually build OpenCV, but the installation process has some 3rd-party dependencies.
88
+
On macOS, Xcode command line tools are required.
89
+
You can install them by running
90
+
```bash
91
+
xcode-select --install
92
+
```
93
+
94
+
#### Linux
95
+
96
+
Depending on your distribution, Linux setups may differ.
0 commit comments