{"action":"created","issue":{"url":"https://api.github.com/repos/BVLC/caffe/issues/3941","repository_url":"https://api.github.com/repos/BVLC/caffe","labels_url":"https://api.github.com/repos/BVLC/caffe/issues/3941/labels{/name}","comments_url":"https://api.github.com/repos/BVLC/caffe/issues/3941/comments","events_url":"https://api.github.com/repos/BVLC/caffe/issues/3941/events","html_url":"https://github.com/BVLC/caffe/issues/3941","id":145731917,"number":3941,"title":"matcaffe installation error","user":{"login":"balakg","id":8753801,"avatar_url":"https://avatars.githubusercontent.com/u/8753801?v=3","gravatar_id":"","url":"https://api.github.com/users/balakg","html_url":"https://github.com/balakg","followers_url":"https://api.github.com/users/balakg/followers","following_url":"https://api.github.com/users/balakg/following{/other_user}","gists_url":"https://api.github.com/users/balakg/gists{/gist_id}","starred_url":"https://api.github.com/users/balakg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balakg/subscriptions","organizations_url":"https://api.github.com/users/balakg/orgs","repos_url":"https://api.github.com/users/balakg/repos","events_url":"https://api.github.com/users/balakg/events{/privacy}","received_events_url":"https://api.github.com/users/balakg/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-04-04T16:16:05Z","updated_at":"2016-07-05T19:06:50Z","closed_at":"2016-04-04T18:31:21Z","body":"I am getting linking errors when I run 'make matcaffe':\r\n\r\nUndefined symbols for architecture x86_64:\r\n  \"_mxArrayToString\", referenced from:\r\n      get_solver(int, mxArray_tag**, int, mxArray_tag const**) in caffe_.o\r\n      ...\r\n  \"_mxCreateCellMatrix_700\", referenced from:\r\n      str_vec_to_mx_strcell(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) in caffe_.o\r\n  \r\nI saw other posts on this issue before, and I made the appropriate adjustment to this line in Makefile.config:\r\n\r\nLIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /Applications/MATLAB_R2016a.app/bin/maci64 /usr/lib\r\n\r\nbut I still get these compile warnings. I am using Matlab 2016a, and am on OS X 10.11. Any help would be appreciated.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/BVLC/caffe/issues/comments/230572480","html_url":"https://github.com/BVLC/caffe/issues/3941#issuecomment-230572480","issue_url":"https://api.github.com/repos/BVLC/caffe/issues/3941","id":230572480,"user":{"login":"albanie","id":4395064,"avatar_url":"https://avatars.githubusercontent.com/u/4395064?v=3","gravatar_id":"","url":"https://api.github.com/users/albanie","html_url":"https://github.com/albanie","followers_url":"https://api.github.com/users/albanie/followers","following_url":"https://api.github.com/users/albanie/following{/other_user}","gists_url":"https://api.github.com/users/albanie/gists{/gist_id}","starred_url":"https://api.github.com/users/albanie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albanie/subscriptions","organizations_url":"https://api.github.com/users/albanie/orgs","repos_url":"https://api.github.com/users/albanie/repos","events_url":"https://api.github.com/users/albanie/events{/privacy}","received_events_url":"https://api.github.com/users/albanie/received_events","type":"User","site_admin":false},"created_at":"2016-07-05T19:06:50Z","updated_at":"2016-07-05T19:06:50Z","body":"Just in case this proves useful to someone else, the issue was resolved for me by changing the `LIBRARY_DIRS` order to:\r\n\r\n    LIBRARY_DIRS := /usr/local/lib $(MATLAB_DIR)/bin/maci64 $(PYTHON_LIB) /usr/lib \r\n\r\n**Explanation**\r\nThe problem was that I had defined\r\n\r\n    PYTHON_LIB := /usr/lib\r\n\r\npreviously 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."}}
{"actor":{"display_login":"albanie"}}