Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symbol Lookup Error #408

Open
LeeGDavis opened this issue Sep 14, 2018 · 2 comments
Open

Symbol Lookup Error #408

LeeGDavis opened this issue Sep 14, 2018 · 2 comments

Comments

@LeeGDavis
Copy link

LeeGDavis commented Sep 14, 2018

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

@justadudewhohacks
Copy link
Owner

_ZN2v87Isolate19CheckMemoryPressureEv, I doubt that this symbol comes from OpenCV, Isolate, CheckMemoryPressure looks like v8 stuff if you ask me.

@LeeGDavis
Copy link
Author

Interesting okay, I look at that angle. Thanks @justadudewhohacks .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants