-
-
Notifications
You must be signed in to change notification settings - Fork 145
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
failing to compile opencv even after setting up proper env #493
Comments
Can you please show the contents of the |
I see, please try specifying the following string as a value of |
you mean in the .zshrc? |
one other thing i noted is when i do and here is my ~/.zshrc Here is the output after update the OPENCV_INCLUDE_PATHS: /opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4
|
Here i recorded it what it was before and what it is after: I am pretty sure but i am doing something stupid somewhere tbh. |
Can you please post a new output of |
sure. this is with - OPENCV_INCLUDE_PATHS: /opt/homebrew/Cellar/opencv/4.8.0_4/include/opencv4
|
Hmm, can you please issue a |
It didn't fit on my terminal. I saved it to a file - does this work? Full Output > output.txtEverything After compiling opencv starts
|
In this case you're using BTW, why are you not relying on automatic detection of the OpenCV installation? As far as I know it should work on macOS with OpenCV installed from brew. To use the automatic detection, just don't set those environment variables: OPENCV_LINK_LIBS, OPENCV_LINK_PATHS, OPENCV_INCLUDE_PATHS. |
okay, let me try this. I am going to take out the variables OPENCV_LINK_LIBS, OPENCV_LINK_PATHS, OPENCV_INCLUDE_PATHS and not set them essentially. |
It worked. It took these variables out of my zshrc and it worked.
Here is the final zshrc
i guess we just need to add these and rest macos takes care of own its own?
Thank you very much! |
Closing |
Here is a gist about how to set it up properly on macOS step by step https://gist.github.com/aaqidmasoodi/da698ab103e4fbb180ed965988bea734 |
The text was updated successfully, but these errors were encountered: