Install error: 'opencv2/core/core.hpp' file not found #include <opencv2/core/core.hpp>

2,465 views
Skip to first unread message

Yue Xiang

unread,
Apr 14, 2016, 5:38:40 PM4/14/16
to Caffe Users
I am new to this group and new to the project, when I tried to compile caffe I encountered the following error: 

172-16-196-121:caffe-master starry1990$ make all

CXX src/caffe/data_transformer.cpp

src/caffe/data_transformer.cpp:2:10: fatal error: 'opencv2/core/core.hpp' file not found

#include <opencv2/core/core.hpp>

         ^

1 error generated.

make: *** [.build_release/src/caffe/data_transformer.o] Error 1

172-16-196-121:caffe-master starry1990$    ./bootstrap


Does it mean that I am not installing opencv in the right place ? 


Any help is appreciate !!!

Jan

unread,
Apr 18, 2016, 8:41:24 AM4/18/16
to Caffe Users
That means that the compiler did not find opencv. So either you did not install it at all or you installed somewhere your compiler was not looking. If you installed it into the standard paths you should not need to do any adjustments to the build variables.

Jan
Reply all
Reply to author
Forward
0 new messages