-
Notifications
You must be signed in to change notification settings - Fork 18.7k
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
Can not compile with opencv3 on Mac at the latest version #3876
Comments
Have you installed opencv3 with |
Hi, yes, I install opencv3 by the command you mentioned, did you have the same problem? |
No problem here. Can you post your Makefile.config? |
I cloned the latest caffe, and now it works |
I solved this problem by add opencv path to INCLUDE_DIRS in Makefile.config. Whatever else you find you need goes here.INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/local/Cellar/opencv3/3.1.0_3/include |
On OS X with brew, you really should use : INCLUDE_DIRS += $(shell brew --prefix)/include |
Like the comment said by @AsiamCn, base on this config, you also need add library direction to LIBRARY_DIR, the full config should be: INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include |
For me for some reason it only worked if I added opencv4 at the end of INCLUDE_DIRS INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/local/Cellar/opencv/4.1.2/include/opencv4 |
In makefile.config, I enabled opencv3
# Uncomment if you're using OpenCV 3 OPENCV_VERSION := 3
The text was updated successfully, but these errors were encountered: