peterbraden / node-opencv

OpenCV Bindings for node.js
MIT License
4.37k stars 858 forks source link

[BUG] build error (on npm install) Windows 10 #673

Open Novivy opened 4 years ago

Novivy commented 4 years ago

Describe the bug Can't install opencv on windows 10, followed the readme instructions. Also searched for past issues but they are all closed without answers/solutions..

Tried with OpenCV 4.3.0 & 2.4.13.6 (btw the 2.4 doesn't contain a folder vc12, there is only vc14 & vc15

To Reproduce

Download and install OpenCV (Be sure to use a 2.4 version) @ http://opencv.org/releases.html For these instructions we will assume OpenCV is put at C:\OpenCV, but you can adjust accordingly.

If you haven't already, create a system variable called OPENCV_DIR and set it to C:\OpenCV\build\x64\vc12

Make sure the "x64" part matches the version of NodeJS you are using.

Also add the following to your system PATH ;%OPENCV_DIR%\bin

Install Visual Studio 2013. Make sure to get the C++ components. You can use a different edition, > just make sure OpenCV supports it, and you set the "vcxx" part of the variables above to match.

Download peterbraden/node-opencv fork git clone https://github.com/peterbraden/node-opencv

run npm install

Expected behavior Successfull npm install opencv

OS / Libraries

Additional context 2020-05-14T14_28_46_490Z-debug.log

DarkRoku12 commented 4 years ago

i also have this issue.

cabiamdos commented 1 year ago

I also have this issue, I can't use opencv in windows 10