{"action":"created","issue":{"url":"https://api.github.com/repos/BVLC/caffe/issues/2288","labels_url":"https://api.github.com/repos/BVLC/caffe/issues/2288/labels{/name}","comments_url":"https://api.github.com/repos/BVLC/caffe/issues/2288/comments","events_url":"https://api.github.com/repos/BVLC/caffe/issues/2288/events","html_url":"https://github.com/BVLC/caffe/issues/2288","id":67259168,"number":2288,"title":"Build errors, undefined cv::imread() cv::imencode() ...","user":{"login":"sakrig","id":9726822,"avatar_url":"https://avatars.githubusercontent.com/u/9726822?v=3","gravatar_id":"","url":"https://api.github.com/users/sakrig","html_url":"https://github.com/sakrig","followers_url":"https://api.github.com/users/sakrig/followers","following_url":"https://api.github.com/users/sakrig/following{/other_user}","gists_url":"https://api.github.com/users/sakrig/gists{/gist_id}","starred_url":"https://api.github.com/users/sakrig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sakrig/subscriptions","organizations_url":"https://api.github.com/users/sakrig/orgs","repos_url":"https://api.github.com/users/sakrig/repos","events_url":"https://api.github.com/users/sakrig/events{/privacy}","received_events_url":"https://api.github.com/users/sakrig/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-09T01:43:04Z","updated_at":"2015-04-27T08:18:01Z","closed_at":"2015-04-27T08:18:01Z","body":"Any ideas?\r\n\r\n\r\nScotts-iMac:caffe-master scottkrig$ make all\r\nLD -o .build_release/lib/libcaffe.so\r\nclang: warning: argument unused during compilation: '-pthread'\r\nld: warning: directory not found for option '-L/opt/local/lib'\r\nUndefined symbols for architecture x86_64:\r\n  \"cv::imread(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int)\", referenced from:\r\n      caffe::WindowDataLayer<float>::InternalThreadEntry() in window_data_layer.o\r\n      caffe::WindowDataLayer<double>::InternalThreadEntry() in window_data_layer.o\r\n      caffe::ReadImageToCVMat(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, int, bool) in io.o\r\n  \"cv::imencode(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, cv::_InputArray const&, std::__1::vector<unsigned char, std::__1::allocator<unsigned char> >&, std::__1::vector<int, std::__1::allocator<int> > const&)\", referenced from:\r\n      caffe::ReadImageToDatum(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, int, int, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, caffe::Datum*) in io.o\r\nld: symbol(s) not found for architecture x86_64\r\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\r\nmake: *** [.build_release/lib/libcaffe.so] Error 1\r\nScotts-iMac:caffe-master scottkrig$ ls /opt/local/lib\r\nls: /opt/local/lib: No such file or directory\r\nScotts-iMac:caffe-master scottkrig$ ls /opt/local\r\nls: /opt/local: No such file or directory\r\nScotts-iMac:caffe-master scottkrig$ \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/BVLC/caffe/issues/comments/96551657","html_url":"https://github.com/BVLC/caffe/issues/2288#issuecomment-96551657","issue_url":"https://api.github.com/repos/BVLC/caffe/issues/2288","id":96551657,"user":{"login":"shelhamer","id":311113,"avatar_url":"https://avatars.githubusercontent.com/u/311113?v=3","gravatar_id":"","url":"https://api.github.com/users/shelhamer","html_url":"https://github.com/shelhamer","followers_url":"https://api.github.com/users/shelhamer/followers","following_url":"https://api.github.com/users/shelhamer/following{/other_user}","gists_url":"https://api.github.com/users/shelhamer/gists{/gist_id}","starred_url":"https://api.github.com/users/shelhamer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shelhamer/subscriptions","organizations_url":"https://api.github.com/users/shelhamer/orgs","repos_url":"https://api.github.com/users/shelhamer/repos","events_url":"https://api.github.com/users/shelhamer/events{/privacy}","received_events_url":"https://api.github.com/users/shelhamer/received_events","type":"User","site_admin":false},"created_at":"2015-04-27T08:18:01Z","updated_at":"2015-04-27T08:18:01Z","body":"Please ask on the [caffe-users](https://groups.google.com/forum/#!forum/caffe-users) group."}}