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

Matcaffe compile issue #19

Closed
BAILOOL opened this issue Jan 10, 2017 · 1 comment
Closed

Matcaffe compile issue #19

BAILOOL opened this issue Jan 10, 2017 · 1 comment

Comments

@BAILOOL
Copy link

BAILOOL commented Jan 10, 2017

Getting the following error when make matcaffe

ukrdailo@rcv:~/Desktop/PSPNet/PSPNet$ make matcaffe -j8
make: /usr/local/bin/mexext: Command not found
MEX matlab/+caffe/private/caffe_.cpp
Building with 'g++'.
Warning: You are using gcc version '4.8.4'. The version of gcc is not supported. The version currently supported with MEX is '4.7.x'. For a list of currently supported compilers see: http://www.mathworks.com/support/compilers/current_release.
.build_release/lib/libcaffe.a(window_data_layer.o): In function `caffe::WindowDataLayer<float>::load_batch(caffe::Batch<float>*)':
window_data_layer.cpp:(.text._ZN5caffe15WindowDataLayerIfE10load_batchEPNS_5BatchIfEE[_ZN5caffe15WindowDataLayerIfE10load_batchEPNS_5BatchIfEE]+0xb81): undefined reference to `cv::imread(cv::String const&, int)'
.build_release/lib/libcaffe.a(window_data_layer.o): In function `caffe::WindowDataLayer<double>::load_batch(caffe::Batch<double>*)':
window_data_layer.cpp:(.text._ZN5caffe15WindowDataLayerIdE10load_batchEPNS_5BatchIdEE[_ZN5caffe15WindowDataLayerIdE10load_batchEPNS_5BatchIdEE]+0xbb1): undefined reference to `cv::imread(cv::String const&, int)'
.build_release/lib/libcaffe.a(io.o): In function `caffe::ReadImageToCVMat(std::string const&, int, int, bool, int*, int*)':
io.cpp:(.text+0x597): undefined reference to `cv::imread(cv::String const&, int)'
.build_release/lib/libcaffe.a(io.o): In function `caffe::DecodeDatumToCVMatNative(caffe::Datum const&)':
io.cpp:(.text+0x1294): undefined reference to `cv::imdecode(cv::_InputArray const&, int)'
.build_release/lib/libcaffe.a(io.o): In function `caffe::DecodeDatumToCVMat(caffe::Datum const&, bool)':
io.cpp:(.text+0x1688): undefined reference to `cv::imdecode(cv::_InputArray const&, int)'
.build_release/lib/libcaffe.a(io.o): In function `caffe::ReadImageToDatum(std::string const&, int, int, int, bool, std::string const&, caffe::Datum*)':
io.cpp:(.text+0x1e02): undefined reference to `cv::imencode(cv::String const&, cv::_InputArray const&, std::vector<unsigned char, std::allocator<unsigned char> >&, std::vector<int, std::allocator<int> > const&)'
collect2: error: ld returned 1 exit status

make: *** [matlab/+caffe/private/caffe_.] Error 255

I am guessing the problem is with OpenCV version? Are you using OpenCV2 or OpenCV3?
Thanks in andvance!

@gopi77
Copy link

gopi77 commented Jul 5, 2017

Hi

I am also facing the problem while executing the command make -j8 && make matcaffe
Anyone solved it?

make: /usr/local/bin/mexext: Command not found
MEX matlab/+caffe/private/caffe_.cpp
/bin/sh: 1: /usr/local/bin/mex: not found
Makefile:511: recipe for target 'matlab/+caffe/private/caffe_.' failed
make: *** [matlab/+caffe/private/caffe_.] Error 127

This was referenced Oct 25, 2017
@BAILOOL BAILOOL closed this as completed Aug 11, 2021
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