{"action":"created","issue":{"url":"https://api.github.com/repos/dmlc/mxnet/issues/1378","labels_url":"https://api.github.com/repos/dmlc/mxnet/issues/1378/labels{/name}","comments_url":"https://api.github.com/repos/dmlc/mxnet/issues/1378/comments","events_url":"https://api.github.com/repos/dmlc/mxnet/issues/1378/events","html_url":"https://github.com/dmlc/mxnet/issues/1378","id":129630522,"number":1378,"title":"failed to compile on Mac OS X 10.11.3","user":{"login":"ascust","id":12552820,"avatar_url":"https://avatars.githubusercontent.com/u/12552820?v=3","gravatar_id":"","url":"https://api.github.com/users/ascust","html_url":"https://github.com/ascust","followers_url":"https://api.github.com/users/ascust/followers","following_url":"https://api.github.com/users/ascust/following{/other_user}","gists_url":"https://api.github.com/users/ascust/gists{/gist_id}","starred_url":"https://api.github.com/users/ascust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ascust/subscriptions","organizations_url":"https://api.github.com/users/ascust/orgs","repos_url":"https://api.github.com/users/ascust/repos","events_url":"https://api.github.com/users/ascust/events{/privacy}","received_events_url":"https://api.github.com/users/ascust/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-29T00:55:23Z","updated_at":"2016-01-29T03:58:38Z","closed_at":"2016-01-29T03:58:38Z","body":"hi guys, \r\nI failed to compile on my Macbook with Mac OS X 10.11.3. The output is:\r\n....\r\nmxnet::io::ImageRecordIOParser::ParseNext(std::__1::vector<mxnet::io::InstVector, std::__1::allocator<mxnet::io::InstVector> >*) in iter_image_recordio.o\r\n  \"cv::imdecode(cv::_InputArray const&, int)\", referenced from:\r\n      _main in im2rec-352b28.o\r\n      mxnet::io::ImageRecordIOParser::ParseNext(std::__1::vector<mxnet::io::InstVector, std::__1::allocator<mxnet::io::InstVector> >*) in iter_image_recordio.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      _main in im2rec-352b28.o\r\n  \"cv::Mat::copyTo(cv::_OutputArray const&) const\", referenced from:\r\n      _main in im2rec-352b28.o\r\n  \"vtable for cv::_InputArray\", referenced from:\r\n      _main in im2rec-352b28.o\r\n  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.\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: *** [bin/im2rec] Error 1\r\n\r\nI have referred to many similar issues before and followed the same instruction. However, the failure continues. I installed opencv from brew and tried both embedded BLAS and openblas. I also changed the gcc and g++ to clang and clang++. Now I am only trying to build CPU only version but without any success. Any advice guys? I would really appreciate it."},"comment":{"url":"https://api.github.com/repos/dmlc/mxnet/issues/comments/176561674","html_url":"https://github.com/dmlc/mxnet/issues/1378#issuecomment-176561674","issue_url":"https://api.github.com/repos/dmlc/mxnet/issues/1378","id":176561674,"user":{"login":"ascust","id":12552820,"avatar_url":"https://avatars.githubusercontent.com/u/12552820?v=3","gravatar_id":"","url":"https://api.github.com/users/ascust","html_url":"https://github.com/ascust","followers_url":"https://api.github.com/users/ascust/followers","following_url":"https://api.github.com/users/ascust/following{/other_user}","gists_url":"https://api.github.com/users/ascust/gists{/gist_id}","starred_url":"https://api.github.com/users/ascust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ascust/subscriptions","organizations_url":"https://api.github.com/users/ascust/orgs","repos_url":"https://api.github.com/users/ascust/repos","events_url":"https://api.github.com/users/ascust/events{/privacy}","received_events_url":"https://api.github.com/users/ascust/received_events","type":"User","site_admin":false},"created_at":"2016-01-29T03:58:38Z","updated_at":"2016-01-29T03:58:38Z","body":"I finally found the problem. The thing was I didn't install pkg-config, which is a dependency for building OpenCV. I think you should add this to the tutorial that \"be sure to install all the dependencies for Opencv when using homebrew\" since it does not do it automatically. Thanks, I am gonna close this."}}