{"action":"created","issue":{"url":"https://api.github.com/repos/rksltnl/Deep-Metric-Learning-CVPR16/issues/19","repository_url":"https://api.github.com/repos/rksltnl/Deep-Metric-Learning-CVPR16","labels_url":"https://api.github.com/repos/rksltnl/Deep-Metric-Learning-CVPR16/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/rksltnl/Deep-Metric-Learning-CVPR16/issues/19/comments","events_url":"https://api.github.com/repos/rksltnl/Deep-Metric-Learning-CVPR16/issues/19/events","html_url":"https://github.com/rksltnl/Deep-Metric-Learning-CVPR16/issues/19","id":243905221,"number":19,"title":"mex compilation fails","user":{"login":"gavinmh","id":1227260,"avatar_url":"https://avatars1.githubusercontent.com/u/1227260?v=4","gravatar_id":"","url":"https://api.github.com/users/gavinmh","html_url":"https://github.com/gavinmh","followers_url":"https://api.github.com/users/gavinmh/followers","following_url":"https://api.github.com/users/gavinmh/following{/other_user}","gists_url":"https://api.github.com/users/gavinmh/gists{/gist_id}","starred_url":"https://api.github.com/users/gavinmh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gavinmh/subscriptions","organizations_url":"https://api.github.com/users/gavinmh/orgs","repos_url":"https://api.github.com/users/gavinmh/repos","events_url":"https://api.github.com/users/gavinmh/events{/privacy}","received_events_url":"https://api.github.com/users/gavinmh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-19T02:30:33Z","updated_at":"2017-07-26T18:23:07Z","closed_at":"2017-07-21T01:43:51Z","body":"I am using Ubuntu 16.04. I configured Matlab 2016a to use g++ 4.7 after compiling the Caffe submodule successfully with g++ 5.4. I install `libprotobuf-dev` with apt.\r\n\r\n```\r\ngavin@workstation:~/Deep-Metric-Learning-CVPR16/code$ mex imageset_to_leveldb.cpp -lcaffe -lglog -lgflags -lprotobuf -lleveldb -llmdb -L/home/gavin/Deep-Metric-Learning-CVPR16/Caffe-Deep-Metric-Learning-CVPR16/build/lib -I/home/gavin/Deep-Metric-Learning-CVPR16/Caffe-Deep-Metric-Learning-CVPR16/build/src/caffe/proto\r\nBuilding with 'g++'.\r\n/tmp/mex_41527687748514_5830/imageset_to_leveldb.o: In function `process(unsigned char*, int, int, int, char const*)':\r\nimageset_to_leveldb.cpp:(.text+0x5b8): undefined reference to `google::protobuf::internal::kEmptyString'\r\nimageset_to_leveldb.cpp:(.text+0x616): undefined reference to `google::protobuf::MessageLite::SerializeToString(std::string*) const'\r\n/tmp/mex_41527687748514_5830/imageset_to_leveldb.o: In function `std::string* google::MakeCheckOpString<int, int>(int const&, int const&, char const*)':\r\nimageset_to_leveldb.cpp:(.text._ZN6google17MakeCheckOpStringIiiEEPSsRKT_RKT0_PKc[_ZN6google17MakeCheckOpStringIiiEEPSsRKT_RKT0_PKc]+0x42): undefined reference to `google::base::CheckOpMessageBuilder::NewString()'\r\ncollect2: error: ld returned 1 exit status\r\n```"},"comment":{"url":"https://api.github.com/repos/rksltnl/Deep-Metric-Learning-CVPR16/issues/comments/318140156","html_url":"https://github.com/rksltnl/Deep-Metric-Learning-CVPR16/issues/19#issuecomment-318140156","issue_url":"https://api.github.com/repos/rksltnl/Deep-Metric-Learning-CVPR16/issues/19","id":318140156,"user":{"login":"rksltnl","id":929040,"avatar_url":"https://avatars2.githubusercontent.com/u/929040?v=4","gravatar_id":"","url":"https://api.github.com/users/rksltnl","html_url":"https://github.com/rksltnl","followers_url":"https://api.github.com/users/rksltnl/followers","following_url":"https://api.github.com/users/rksltnl/following{/other_user}","gists_url":"https://api.github.com/users/rksltnl/gists{/gist_id}","starred_url":"https://api.github.com/users/rksltnl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rksltnl/subscriptions","organizations_url":"https://api.github.com/users/rksltnl/orgs","repos_url":"https://api.github.com/users/rksltnl/repos","events_url":"https://api.github.com/users/rksltnl/events{/privacy}","received_events_url":"https://api.github.com/users/rksltnl/received_events","type":"User","site_admin":false},"created_at":"2017-07-26T18:23:07Z","updated_at":"2017-07-26T18:23:07Z","body":"@gavinmh What was the issue?"}}
{"actor":{"display_login":"rksltnl"}}