justadudewhohacks / opencv4nodejs

Nodejs bindings to OpenCV 3 and OpenCV 4
MIT License
4.95k stars 826 forks source link

install failed with "library dir does not exist" on OSX #507

Open KnightRadiantZ opened 5 years ago

KnightRadiantZ commented 5 years ago

info install library dir does not exist: /usr/local/lib/node_modules/opencv4nodejs/node_modules/opencv-build/opencv/build/lib info install running install script... ERR! Error: Command failed: cmake --version /bin/sh: cmake: command not found

npm i -g opencv4nodejs

opencv-build@0.0.17 install /usr/local/lib/node_modules/opencv4nodejs/node_modules/opencv-build node ./install.js

info install if you want to use an own OpenCV installation set OPENCV4NODEJS_DISABLE_AUTOBUILD info install library dir does not exist: /usr/local/lib/node_modules/opencv4nodejs/node_modules/opencv-build/opencv/build/lib info install running install script... ERR! Error: Command failed: cmake --version /bin/sh: cmake: command not found

Manual Build - Environment Information

OpenCV version (example 3.4.1): ?.?.?

With OpenCV-contrib? (extra modules): yes/no?

OS: Windows 7 / 8 / 10? / MacOSX? / Ubuntu? ...

FredaZhang338 commented 5 years ago

@KnightRadiantZ have you fixed the problem?