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

'caffe/common.hpp' file not found #6725

Closed
ByuWang opened this issue Mar 17, 2019 · 1 comment
Closed

'caffe/common.hpp' file not found #6725

ByuWang opened this issue Mar 17, 2019 · 1 comment

Comments

@ByuWang
Copy link

ByuWang commented Mar 17, 2019

MacOS10.14, when I entered the command "make all", such issue emerged :
'caffe/common.hpp' file not found.

The detailed error information just like this :

CXX src/caffe/common.cpp
src/caffe/common.cpp:7:10: fatal error: 'caffe/common.hpp' file not found
#include "caffe/common.hpp"
^~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [.build_release/src/caffe/common.o] Error 1

has anyone run into it?

@ByuWang
Copy link
Author

ByuWang commented Mar 17, 2019

The problem means it can not find the headfile "caffe/command.hpp",so I have solved it by this way :

step1.
In current dir, I put in command "find -name common.hpp" so that I found it's path is "./include/caffe/common.hpp " , look ,it is in dir of "include"
step2.
Put in command "pwd" to get it's absolute path
step3.
Add those lines to Makefile:
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include
/usr/local/Cellar/opencv3/3.1.0_3/include
/usr/local/Cellar/caffe/include
LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /usr/local/Cellar/opencv3/3.1.0_3/lib

So ,whatever can't be found in build process ,find it's path , and add the path to INCLUDE_DIRS or LIBRARY_DIRS in Makefile.

@ByuWang ByuWang closed this as completed Mar 17, 2019
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

1 participant