justadudewhohacks / npm-opencv-build

A simple script to auto build recent OpenCV + contrib version via npm
43 stars 57 forks source link

Build error on ubuntu 22.04 #52

Open mwmw7 opened 2 years ago

mwmw7 commented 2 years ago

npm install opencv-build

[ 30%] Built target libwebp
[ 30%] Linking CXX static library ../lib/liblibprotobuf.a
[ 30%] Built target libprotobuf
make: *** [Makefile:166: all] Error 2
ERR! child process exited with code 2 (for more info, set '--loglevel silly') 
npm WARN @apollographql/apollo-tools@0.5.4 requires a peer of graphql@^14.2.1 || ^15.0.0 || ^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN apollo-graphql@0.9.7 requires a peer of graphql@^14.2.1 || ^15.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/watchpack-chokidar2/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! opencv-build@0.1.9 install: `node ./install.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the opencv-build@0.1.9 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/hosup/.npm/_logs/2022-09-21T06_23_20_638Z-debug.log

cat ~/.npm/_logs/2022-09-21T06_23_20_638Z-debug.log

662 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
663 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS:    darwin
663 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch:  any
663 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS:   linux
663 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
664 verbose stack Error: opencv-build@0.1.9 install: `node ./install.js`
664 verbose stack Exit status 1
664 verbose stack     at EventEmitter.<anonymous> (/home/hosup/.nvm/versions/node/v14.16.0/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
664 verbose stack     at EventEmitter.emit (events.js:315:20)
664 verbose stack     at ChildProcess.<anonymous> (/home/hosup/.nvm/versions/node/v14.16.0/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
664 verbose stack     at ChildProcess.emit (events.js:315:20)
664 verbose stack     at maybeClose (internal/child_process.js:1048:16)
664 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
665 verbose pkgid opencv-build@0.1.9
666 verbose cwd /home/hosup/WebstormProjects/tooning-repo/packages/tooning-graphql-server
667 verbose Linux 5.15.0-47-generic
668 verbose argv "/home/hosup/.nvm/versions/node/v14.16.0/bin/node" "/home/hosup/.nvm/versions/node/v14.16.0/bin/npm" "install" "opencv-build"
669 verbose node v14.16.0
670 verbose npm  v6.14.11
671 error code ELIFECYCLE
672 error errno 1
673 error opencv-build@0.1.9 install: `node ./install.js`
673 error Exit status 1
674 error Failed at the opencv-build@0.1.9 install script.
674 error This is probably not a problem with npm. There is likely additional logging output above.
675 verbose exit [ 1, true ]

lsb_release -a

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.1 LTS
Release:    22.04
Codename:   jammy

npm doctor

npm WARN verifyCachedFiles Content garbage-collected: 6245 (1637875768 bytes)
npm WARN verifyCachedFiles Cache issues have been fixed
Check                               Value                        Recommendation
npm ping                            ok
npm -v                              v6.14.11                     Use npm v8.19.2
node -v                             v14.16.0                     Use node v16.17.0
npm config get registry             https://registry.npmjs.org/
which git                           /usr/bin/git
Perms check on cached files         ok
Perms check on global node_modules  ok
Perms check on local node_modules   ok
Verify cache contents               verified 11563 tarballs