justadudewhohacks / justadudewhohacks/opencv4nodejs

Symbol Lookup Error

Open
#408 2 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

Getting undefined symbol error when trying to run prebuilt opencv built on amazonlinux (v1) docker image on a jenkins CI box.

Setup:
opencv4nodejs: 4.8.0
opencv: 3.3.1
Running in aws lambda
Pre-built opencv and installed opencv4nodejs in docker amazonlinux:1 (version 1)
Transplant nodemodules for opencv4nodejs and dynamically linked libs folder from opencv to CI box (ultimately aws lambda)
set LD_LIBRARY_PATH to point to these libs

CI box (redhat) reports:
`node_modules/opencv4nodejs/build/Release/opencv4nodejs.node: undefined symbol: _ZN2v87Isolate19CheckMemoryPressureEv`

Curious if this is something simple with my setup or simply an incompatibility between amazonlinux (v1) and redhat CI box, which should be pretty close.

CMAKE:
`cmake -D CMAKE_BUILD_TYPE=RELEASE -D BUILD_SHARED_LIBS=ON -D BUILD_EXAMPLES=OFF -D BUILD_TESTS=OFF -D BUILD_PERF_TESTS=OFF -D CMAKE_INSTALL_PREFIX=/tmp/opencv/opencv-3.3.1 /tmp/opencv/opencv-3.3.1-source`

NPM:
`OPENCV4NODEJS_DISABLE_AUTOBUILD=1 OPENCV_INCLUDE_DIR=/tmp/opencv/opencv-3.3.1/include/ OPENCV_LIB_DIR=/tmp/opencv/opencv-3.3.1/lib/ npm install opencv4nodejs --production`

Contributor guide

Open the contributing guide

Research direction

Start with the undefined symbol in node_modules/opencv4nodejs/build/Release/opencv4nodejs.node and compare the CMake, NPM, library paths, and runtime environments described for Amazon Linux, Red Hat, and AWS Lambda. Confirm whether the prebuilt native module and dynamically linked libraries are compatible across these environments; done means identifying the incompatibility or a reproducible compatible setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, cpp, docker, nodejs
Domain
build-system, ci-cd, cloud, computer-vision
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.