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

error with src/caffe/layers/window_data_layer.cpp when building. #17

Open
dxiaosa opened this issue Jan 3, 2017 · 1 comment
Open

Comments

@dxiaosa
Copy link

dxiaosa commented Jan 3, 2017

My environment: Ubuntu 14.04, Opencv3.0, cuda8, cudnn5. When make all in directory /DeepLab-Context/, error occures:
src/caffe/layers/window_data_layer.cpp:26:11: error: ‘const int CV_LOAD_IMAGE_COLOR’ redeclared as different kind of symbol
const int CV_LOAD_IMAGE_COLOR = cv::IMREAD_COLOR;

In file included from /usr/local/include/opencv2/highgui/highgui_c.h:47:0,
from /usr/local/include/opencv2/highgui.hpp:701,
from /usr/local/include/opencv2/highgui/highgui.hpp:48,
from src/caffe/layers/window_data_layer.cpp:10:
/usr/local/include/opencv2/imgcodecs/imgcodecs_c.h:62:5: error: previous declaration of ‘ CV_LOAD_IMAGE_COLOR’
CV_LOAD_IMAGE_COLOR =1,
^
make: *** [.build_release/src/caffe/layers/window_data_layer.o] error 1

So, what should i do? thanks for help!

@xtudbxk
Copy link

xtudbxk commented Apr 22, 2017

I just follow the way in HyeonwooNoh/caffe#3, and remove the 26th line in the window_data_layer.cpp. It seems to work! May it help you.

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

2 participants