Open varadgunjal opened 9 years ago
i met this problem too, have you solved it?
I did get it to build completely by making changes in the makefile to build Caffe with CPU instead of the default GPU - however it still gave a runtime error. Finally, the only way I got it to run without issue was running it on a GPU : ensure you have the appropriate paths set in the makefile. If you face issues running it on a GPU, I could help you. Good luck.
i modified the makefile.config, and then i got another issues.
.build_release/lib/libcaffe.a(mcwindow_data_layer.o): In function caffe::MCWindowDataLayer<double>::InternalThreadEntry()': mcwindow_data_layer.cpp:(.text._ZN5caffe17MCWindowDataLayerIdE19InternalThreadEntryEv[_ZN5caffe17MCWindowDataLayerIdE19InternalThreadEntryEv]+0x33b): undefined reference to
cv::imread(cv::String const&, int)'
mcwindow_data_layer.cpp:(.text._ZN5caffe17MCWindowDataLayerIdE19InternalThreadEntryEv[_ZN5caffe17MCWindowDataLayerIdE19InternalThreadEntryEv]+0x4e4): undefined reference to cv::imread(cv::String const&, int)' .build_release/lib/libcaffe.a(mcwindow_data_layer.o): In function
caffe::MCWindowDataLayercv::imread(cv::String const&, int)' mcwindow_data_layer.cpp:(.text._ZN5caffe17MCWindowDataLayerIfE19InternalThreadEntryEv[_ZN5caffe17MCWindowDataLayerIfE19InternalThreadEntryEv]+0x4d4): undefined reference to
cv::imread(cv::String const&, int)'
do i need to modify the makefile? thank you!
Based on the error you are getting
undefined reference tocv::imread(cv::String const&, int)
it looks like you don't have OpenCV installed correctly on your machine. Try getting it with sudo apt-get install python-opencv
and then re-compiling. I would just like to repeat, you have a better chance of getting this to run with a GPU - if you don't have access to one, by all means continue trying on a CPU.
thank you very much, i have solved the issue by adding the opencv_imgcodecs to LIBRARIES in the Makefile
Got this error running on a CPU machine (which had Caffe installed earlier), after following all the steps listed -
Any ideas what might be going wrong?