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 during load (symbol not found) Mac M1 - Electron #40

Open
fendiflexin opened this issue Jul 5, 2022 · 4 comments
Open

Error during load (symbol not found) Mac M1 - Electron #40

fendiflexin opened this issue Jul 5, 2022 · 4 comments
Labels
Electron Electron stuff

Comments

@fendiflexin
Copy link

Installed opencv@4 via brew on mac m1, built via build-opencv --electron opencv build

<--

Auto Build -Error: dlopen(/Users/riley/Desktop/SquadsElectronClient/SquadsElectronClient/node_modules/@u4/opencv4nodejs/build/Release/opencv4nodejs.node, 1): Symbol not found: __ZNK2cv12MatAllocator23getBufferPoolControllerEPKc

Referenced from: /Users/riley/Desktop/SquadsElectronClient/SquadsElectronClient/node_modules/@u4/opencv4nodejs/build/Release/opencv4nodejs.node
Expected in: flat namespace
in /Users/riley/Desktop/SquadsElectronClient/SquadsElectronClient/node_modules/@u4/opencv4nodejs/build/Release/opencv4nodejs.node
at process.func [as dlopen] (node:electron/js2c/asar_bundle:5:1800)
at Object.Module._extensions..node (node:internal/modules/cjs/loader:1199:18)
at Object.func [as .node] (node:electron/js2c/asar_bundle:5:1800)
at Module.load (node:internal/modules/cjs/loader:988:32)
at Module._load (node:internal/modules/cjs/loader:829:12)
at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
at Module.require (node:internal/modules/cjs/loader:1012:19)
at require (node:internal/modules/cjs/helpers:94:18)
at getOpenCV (/Users/riley/Desktop/SquadsElectronClient/SquadsElectronClient/node_modules/@u4/opencv4nodejs/lib/cvloader.js:55:23)
at loadOpenCV (/Users/riley/Desktop/SquadsElectronClient/SquadsElectronClient/node_modules/@u4/opencv4nodejs/lib/opencv4nodejs.js:9:43)
^C/Users/riley/Desktop/SquadsElectronClient/SquadsElectronClient/node_modules/electron/dist/Electron.app/Contents/MacOS/Electron exited with signal SIGINT -->

OpenCV version - 4.5.5

With OpenCV-contrib? (extra modules): yes/no? no

OS: - mac m1 big sur 11.6.2

@fendiflexin fendiflexin changed the title Symbol not found: __ZNK2cv12MatAllocator23getBufferPoolControllerEPKc Error during load after installing. Mac M1 - Electron Jul 5, 2022
@fendiflexin fendiflexin changed the title Error during load after installing. Mac M1 - Electron Error during load (symbol not found) Mac M1 - Electron Jul 5, 2022
@UrielCh
Copy link
Owner

UrielCh commented Jul 5, 2022

can you provide a sample project?

I have some mac M1 to test, but I do not use electron.

is opencv-electron working ?

@fendiflexin
Copy link
Author

Yes the opencv-electron is working on my windows x64. However, I successfully built in Mac but it crashes on load. Can you provide a discord? I can share my project.

@piercus
Copy link
Collaborator

piercus commented Jul 9, 2022

@fendiflexin this is open-source project, if you want free help you need to open the sources of your problem or find a way to reproduce it on open sources !

@UrielCh UrielCh added the Electron Electron stuff label Sep 4, 2022
@xiatian12345
Copy link

same error,but intel

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

No branches or pull requests

4 participants