A simple script to auto build recent OpenCV + contrib version via npm. This script is used to auto build opencv4nodejs.
npm install opencv-build
- cmake
- windows build tools or Visual Studio
npm install --global windows-build-tools
It's possible to specify custom flags to build process inserting on the package.json
where the dependency is declared an object like:
{
...
"opencv4nodejs": {
"autoBuildFlags": "-DOPENCV_GENERATE_PKGCONFIG=ON -DOPENCV_PC_FILE_NAME=opencv.pc"
}
}
these flags will be used during building in the same way as described here.