opencv-build
Advanced tools
Comparing version 0.0.2 to 0.0.3
const path = require('path') | ||
const os = require('os'); | ||
const { isWin } = require('./install/utils') | ||
@@ -14,2 +16,4 @@ | ||
const numberOfCoresAvailable = os.cpus().length | ||
const opencvModules = [ | ||
@@ -46,3 +50,4 @@ 'core', | ||
opencvBinDir, | ||
opencvModules | ||
opencvModules, | ||
numberOfCoresAvailable | ||
} |
@@ -10,3 +10,4 @@ const { exec, spawn, isWin } = require('./utils') | ||
opencvBuild, | ||
opencvLocalLib | ||
opencvLocalLib, | ||
numberOfCoresAvailable | ||
} = require('../constants') | ||
@@ -41,5 +42,5 @@ | ||
} | ||
return () => spawn('make', ['install'], { cwd: opencvBuild }) | ||
return () => spawn('make', ['install', `-j${numberOfCoresAvailable}`], { cwd: opencvBuild }) | ||
// revert the strange archiving of libopencv.so going on with make install | ||
.then(() => spawn('make', ['all'], { cwd: opencvBuild })) | ||
.then(() => spawn('make', ['all', `-j${numberOfCoresAvailable}`], { cwd: opencvBuild })) | ||
} | ||
@@ -64,7 +65,8 @@ | ||
`-DCMAKE_INSTALL_PREFIX=${opencvBuild}`, | ||
'-DCMAKE_BUILD_TYPE=Release ', | ||
'-DCMAKE_BUILD_TYPE=Release', | ||
`-DOPENCV_EXTRA_MODULES_PATH=${opencvContribModules}`, | ||
'-DBUILD_EXAMPLES=OFF', | ||
'-DBUILD_TESTS=OFF', | ||
'-DBUILD_PERF_TESTS=OFF' | ||
'-DBUILD_PERF_TESTS=OFF', | ||
'-DBUILD_opencv_apps=OFF' | ||
] | ||
@@ -71,0 +73,0 @@ } |
{ | ||
"name": "opencv-build", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "A simple script to auto build recent OpenCV + contrib version via npm", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -0,1 +1,4 @@ | ||
[![Build Status](https://travis-ci.org/justadudewhohacks/npm-opencv-build.svg?branch=master)](http://travis-ci.org/justadudewhohacks/npm-opencv-build) | ||
[![Build status](https://ci.appveyor.com/api/projects/status/uv8n2sruno95rxtq/branch/master?svg=true)](https://ci.appveyor.com/project/justadudewhohacks/npm-opencv-build/branch/master) | ||
A simple script to auto build recent OpenCV + contrib version via npm. This script is used to auto build <a href="https://github.com/justadudewhohacks/opencv4nodejs"><b>opencv4nodejs</b></a>. | ||
@@ -2,0 +5,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25779
380
20