justadudewhohacks / justadudewhohacks/opencv4nodejs

Installing on RPI

Open
#727 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
5.1k
Forks
826
PR merge metrics
No merged PRs in 30d

Description

Starting with a clean image of Raspbian, I installed node and electron:


pi@vgpi2:~/test1 $ node -v
v12.17.0
pi@vgpi2:~/test1 $ npm -v
6.14.4

An electron application was created:

npx create-electron-app test1

Then opencv4nodejs was installed using the auto script:

npm install --save opencv4nodejs

This completed successfully, but when running the electron rebuild script I got errors with missing headers.

Inside the binding.gyp file in the opencv4nodejs module folder, I added the following absolute paths:

"targets": [{
"target_name": "opencv4nodejs",
"defines": [
"

Contributor guide

Open the contributing guide

Research direction

Reproduce the Raspberry Pi installation and Electron rebuild using the commands in the report. Inspect the module's binding.gyp, install/parseEnv.js, generated build files, and the opencv4nodejs.node loading error; done means the Electron application can require opencv4nodejs without missing-header or undefined-symbol errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, electron, nodejs, raspberry-pi
Domain
build-system, computer-vision, embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.