HyeonwooNoh / caffe

modified version of caffe which support DeconvNet and DecoupledNet
Other
102 stars 69 forks source link

Ubuntu14.04 server x64, OpenCV3, CuDNNv3, make errors. #3

Open CSGrandeur opened 8 years ago

CSGrandeur commented 8 years ago

Errors like "./include/caffe/util/cudnn.hpp:73:29: error: ‘cudnnTensor4dDescriptor_t’ was not declared in this scope" appears. After I comment 'USE CuDNN' in Makefile.config, I meet these:

" 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 make: * Waiting for unfinished jobs.... " and some other warnings about opencv.

I've already deployed the newest version of caffe, so I think my opencv and cudnn are all right.

Thanks.

korabelnikov commented 8 years ago

It caused by inconsistent caffe and openCV. I have met such error. Just remove line with redefinion