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 make error #1

Open
zdx3578 opened this issue Dec 27, 2015 · 4 comments
Open

caffe make error #1

zdx3578 opened this issue Dec 27, 2015 · 4 comments

Comments

@zdx3578
Copy link

zdx3578 commented Dec 27, 2015

when i make caffe in ubuntu 14.04; useopcv=0 USE_OPENCV := 0

error:

ubuntu@ip-172-30-0-107:/opt/practice/dqnnew/nips2015-action-conditional-video-prediction/caffe$ make
CXX/LD -o .build_release/tools/upgrade_net_proto_text.bin
.build_release/lib/libcaffe.so: undefined reference to cv::fastFree(void*)' .build_release/lib/libcaffe.so: undefined reference tocv::String::deallocate()'
.build_release/lib/libcaffe.so: undefined reference to cv::String::allocate(unsigned long)' .build_release/lib/libcaffe.so: undefined reference tocv::imread(cv::String const&, int)'
.build_release/lib/libcaffe.so: undefined reference to cv::Mat::copySize(cv::Mat const&)' .build_release/lib/libcaffe.so: undefined reference tocv::Mat::copyTo(cv::_OutputArray const&) const'
.build_release/lib/libcaffe.so: undefined reference to `cv::Mat::deallocate()'
collect2: error: ld returned 1 exit status
make: *** [.build_release/tools/upgrade_net_proto_text.bin] Error 1


@zdx3578
Copy link
Author

zdx3578 commented Dec 27, 2015

NVCC src/caffe/layers/conv_layer.cu
NVCC src/caffe/layers/mvn_layer.cu
NVCC src/caffe/layers/embed_layer.cu
AR -o .build_release/lib/libcaffe.a
LD -o .build_release/lib/libcaffe.so
CXX tools/upgrade_net_proto_text.cpp
CXX/LD -o .build_release/tools/upgrade_net_proto_text.bin
.build_release/lib/libcaffe.so: undefined reference to cv::fastFree(void*)' .build_release/lib/libcaffe.so: undefined reference tocv::imread(std::string const&, int)'
.build_release/lib/libcaffe.so: undefined reference to vtable for cv::_OutputArray' .build_release/lib/libcaffe.so: undefined reference tocv::Mat::copySize(cv::Mat const&)'
.build_release/lib/libcaffe.so: undefined reference to cv::Mat::copyTo(cv::_OutputArray const&) const' .build_release/lib/libcaffe.so: undefined reference tocv::Mat::deallocate()'
collect2: error: ld returned 1 exit status
make: *** [.build_release/tools/upgrade_net_proto_text.bin] Error 1
ubuntu@ip:/opt/practice/dqnnew/nips2015-action-conditional-video-prediction/caffe$

@zdx3578
Copy link
Author

zdx3578 commented Dec 29, 2015

Makefile:USE_OPENCV = 0
Makefile:ifeq ($(USE_OPENCV), 1)
Makefile: LIBRARIES += opencv_core opencv_highgui opencv_imgproc # opencv_imgcodecs
Makefile:LIBRARIES += opencv_core opencv_highgui opencv_imgproc

Makefile.config: USE_OPENCV := 0
USE_PKG_CONFIG := 1

@zdx3578
Copy link
Author

zdx3578 commented Dec 29, 2015

new version https://github.com/BVLC/caffe make is smoothly

@junhyukoh
Copy link
Owner

I think opencv 3.x requires opencv_imgcodecs while opencv 2.x does not.
Thank you for sharing this!

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