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

Error: dlopen node_modules/@u4/opencv4nodejs/build/Release/opencv4nodejs.node, 0x0001): symbol not found in flat namespace '__ZNK2cv12MatAllocator23getBufferPoolControllerEPKc' #131

Open
eliya-mazoz opened this issue Apr 11, 2024 · 5 comments

Comments

@eliya-mazoz
Copy link

eliya-mazoz commented Apr 11, 2024

Error: dlopen node_modules/@u4/opencv4nodejs/build/Release/opencv4nodejs.node, 0x0001): symbol not found in flat namespace '__ZNK2cv12MatAllocator23getBufferPoolControllerEPKc'
mac m1
node :v18.16.1
npm : 9.8.1

@eliya-mazoz eliya-mazoz changed the title Error: Cannot find module node_modules/opencv4nodejs/build/Release/opencv4nodejs Error: dlopen node_modules/@u4/opencv4nodejs/build/Release/opencv4nodejs.node, 0x0001): symbol not found in flat namespace '__ZNK2cv12MatAllocator23getBufferPoolControllerEPKc' Apr 11, 2024
@UrielCh
Copy link
Owner

UrielCh commented Apr 12, 2024

define a OPENCV_BUILD_ROOT to provide a build directory.
or install openCV using brew

@eliya-mazoz
Copy link
Author

define a OPENCV_BUILD_ROOT to provide a build directory.

or install openCV using brew

I did all this actions and it gives me the same error

@UrielCh
Copy link
Owner

UrielCh commented Apr 12, 2024

do you want to build openCV or use a prebuilt one ?
and what OS are you using ?

@eliya-mazoz
Copy link
Author

do you want to build openCV or use a prebuilt one ? and what OS are you using ?

I am trying to use this library on my local Mac to running the scripts with using this library and when I am trying to run my script for example : npx ts-node testFile.ts
testFile.ts ->
import * as cv from '@u4/opencv4nodejs'; const image_b = cv.imread('./someImage.png');
raise the error
Error: dlopen(/node_modules/@u4/opencv4nodejs/build/Release/opencv4nodejs.node, 0x0001): symbol not found in flat namespace '__ZNK2cv12MatAllocator23getBufferPoolControllerEPKc'

mac os version : 14.4.1

@UrielCh
Copy link
Owner

UrielCh commented May 2, 2024

a new Major version is available.

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