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

mac m1 use electron build Ubuntu exe.. hit opencv4nodejs.node: invalid ELF header #48

Open
rr13k opened this issue Nov 11, 2022 · 1 comment

Comments

@rr13k
Copy link

rr13k commented Nov 11, 2022

hi, I use @u4/opencv4nodejs in the electron. The Mac package runs normally, but when I package Ubuntu, I cannot run the prompt opencv4nodejs node: invalid ELF header.

I guess it's because of the packaging environment, but because of the network problem, I can't get through Ubuntu

@U4/opencv build for automatic compilation,

I try to compile opencv manually and configure it with the following command

export OPENCV4NODEJS_ DISABLE_ AUTOBUILD=1

export OPENCV_ INCLUDE_ DIR="/usr/local/opencv_4.1.2/include"

export OPENCV_ LIB_ DIR="/usr/local/opencv_4.1.2/lib"

export OPENCV_ BIN_ DIR="/usr/local/opencv_4.1.2/bin"

After configuration, I can successfully install opencv4nodejs

However, it cannot be used in the electricity process because it is required in the normal electricity process

build-opencv --electron --version 4.5.4 build

Therefore, I need to know that if you use the local opencv to do -- electric build

Thanks for any guidance.

Because of the project problem, we can't provide an example. I'm sorry.

@UrielCh
Copy link
Owner

UrielCh commented Nov 15, 2022

Still not using electron, can not helps.

I have an electron sample here
it may be outdated...

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