-
Notifications
You must be signed in to change notification settings - Fork 815
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 when rebuilding - fatal error: 'opencv2/core.hpp' file not found #645
Comments
I am having this identical issue on Mac OS 10.15.1. Autobuild runs fine, but Electron rebuild fails with same error. |
Got same error on windows. |
The same problem here. Seems that |
With Ubuntu 18.04 OpenCV 4.1.0. |
@justadudewhohacks would adding |
Edit: My last suggestion was using the install from opencv's site, not chocolatey. I actually don't think that was the cause, instead I had to use As to why windows freaks out with |
Thanks, this approach solved the issue for me on macOS Catalina and openCV installed via homebrew: |
Having this issue when creating a symlink
I'm using mac osx 10.14.6 |
Have you solved that problem ? |
I have done some more testing on mac and windows, but, spoiler alert, I am stuck with the same issues as everyone else.
DetailsMy setup
My tests
error I had added the include directory path in the
I have used the
After having fixed the include issue
This is where I am stuck now. I am not sure how to solve this error. |
Facing the same issue as @fakob |
Hi @cyrildiagne, unfortunately I do not know any other than reverting to 5.2.0. |
Really helpful! Thanks~ |
I tried to do this approach on macOS Catalina 10.15.6 and it didn't work |
I am getting the same issue in electron on Windows, check below, with the following setup |
@fakob Hi, I got the same issue as yours. Did you figure out the workaround? 🙇
|
No sorry @zcmgyu, still the same as before. |
Thanks 🙇 I gave it up. I'm trying using OpenCV.js instead. https://docs.opencv.org/4.5.4/dc/de6/tutorial_js_nodejs.html |
Facing the same issue on MacOS Monterey, while running |
maybe you should try @u4/opencv4nodejs |
Today I was upgrading from opencv4nodejs
4.9.1
to5.3.0
when I ran into this error.I am using opencv4nodejs in an electron environment and there the below listed error message is triggered when using electron-rebuild, which I guess is similar to this command as it produces more or less the same error.
The building of both opencv4nodejs and opencv-build seems to work fine. The build output has lots of warnings, but ends successfully (see attached file). After that the error is thrown when rebuilding gets triggered.
I have looked at these issues but their solutions do not work for me
#591 - I do not have tesseract installed
#618 - disabling autobuild is currently not an option for me
Anyone an idea? In the build files I saw that opencv
3.4.6
gets installed by default. Might it make a difference if one builds opencv 4.x withautoBuildOpencvVersion
?Error Message
Auto Build -
Full Error Logauto build seems to be successfull
yarn --verbose build output.txt
The text was updated successfully, but these errors were encountered: