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 installation error #3941

Closed
balakg opened this issue Apr 4, 2016 · 2 comments
Closed

matcaffe installation error #3941

balakg opened this issue Apr 4, 2016 · 2 comments

Comments

@balakg
Copy link

balakg commented Apr 4, 2016

I am getting linking errors when I run 'make matcaffe':

Undefined symbols for architecture x86_64:
"mxArrayToString", referenced from:
get_solver(int, mxArray_tag**, int, mxArray_tag const**) in caffe
.o
...
"_mxCreateCellMatrix_700", referenced from:
str_vec_to_mx_strcell(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits, std::_1::allocator > > > const&) in caffe.o

I saw other posts on this issue before, and I made the appropriate adjustment to this line in Makefile.config:

LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /Applications/MATLAB_R2016a.app/bin/maci64 /usr/lib

but I still get these compile warnings. I am using Matlab 2016a, and am on OS X 10.11. Any help would be appreciated.

@balakg balakg closed this as completed Apr 4, 2016
@albanie
Copy link

albanie commented Jul 5, 2016

Just in case this proves useful to someone else, the issue was resolved for me by changing the LIBRARY_DIRS order to:

LIBRARY_DIRS := /usr/local/lib $(MATLAB_DIR)/bin/maci64 $(PYTHON_LIB) /usr/lib 

Explanation
The problem was that I had defined

PYTHON_LIB := /usr/lib

previously in the Makefile, which consequently appeared before the maci64 directory in the path. Depending on your libpythonX.X.so location, the /usr/lib part of LIBRARY_DIRS may then become redundant.

@anastasiadk
Copy link

Thanks for posting the solution!

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

3 participants