{"action":"created","issue":{"url":"https://api.github.com/repos/introlab/rtabmap/issues/145","repository_url":"https://api.github.com/repos/introlab/rtabmap","labels_url":"https://api.github.com/repos/introlab/rtabmap/issues/145/labels{/name}","comments_url":"https://api.github.com/repos/introlab/rtabmap/issues/145/comments","events_url":"https://api.github.com/repos/introlab/rtabmap/issues/145/events","html_url":"https://github.com/introlab/rtabmap/issues/145","id":189328555,"number":145,"title":"rtabmap make error","user":{"login":"jje8910","id":20980001,"avatar_url":"https://avatars.githubusercontent.com/u/20980001?v=3","gravatar_id":"","url":"https://api.github.com/users/jje8910","html_url":"https://github.com/jje8910","followers_url":"https://api.github.com/users/jje8910/followers","following_url":"https://api.github.com/users/jje8910/following{/other_user}","gists_url":"https://api.github.com/users/jje8910/gists{/gist_id}","starred_url":"https://api.github.com/users/jje8910/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jje8910/subscriptions","organizations_url":"https://api.github.com/users/jje8910/orgs","repos_url":"https://api.github.com/users/jje8910/repos","events_url":"https://api.github.com/users/jje8910/events{/privacy}","received_events_url":"https://api.github.com/users/jje8910/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-15T08:28:13Z","updated_at":"2016-11-16T00:53:18Z","closed_at":null,"body":"Hi, I want to run rtabmap in my Ubuntu.\r\nI follow the guid,\r\ncmake .. succeed, but when I try \"make -j4\" it throw an error like below.\r\n/path/rtabmap/utilite/src/ULogger.cpp: In static member function ‘static void ULogger::unregisterCurrentThread()’:\r\n/path/rtabmap/utilite/src/ULogger.cpp:235:9: error: no match for ‘operator=’ (operand types are ‘std::map<std::basic_string<char>, long unsigned int>::iterator {aka std::_Rb_tree_iterator<std::pair<const std::basic_string<char>, long unsigned int> >}’ and ‘void’)\r\n    iter = registeredThreads_.erase(iter);\r\n         ^\r\n/path/rtabmap/utilite/src/ULogger.cpp:235:9: note: candidate is:\r\nIn file included from /usr/include/c++/4.8/map:60:0,\r\n                 from /path/rtabmap/utilite/src/../include/rtabmap/utilite/ULogger.h:34,\r\n                 from /path/rtabmap/utilite/src/ULogger.cpp:20:\r\n/usr/include/c++/4.8/bits/stl_tree.h:157:12: note: std::_Rb_tree_iterator<std::pair<const std::basic_string<char>, long unsigned int> >& std::_Rb_tree_iterator<std::pair<const std::basic_string<char>, long unsigned int> >::operator=(const std::_Rb_tree_iterator<std::pair<const std::basic_string<char>, long unsigned int> >&)\r\n     struct _Rb_tree_iterator\r\n            ^\r\n/usr/include/c++/4.8/bits/stl_tree.h:157:12: note:   no known conversion for argument 1 from ‘void’ to ‘const std::_Rb_tree_iterator<std::pair<const std::basic_string<char>, long unsigned int> >&’\r\n\r\nCould you give me a guide?"},"comment":{"url":"https://api.github.com/repos/introlab/rtabmap/issues/comments/260819592","html_url":"https://github.com/introlab/rtabmap/issues/145#issuecomment-260819592","issue_url":"https://api.github.com/repos/introlab/rtabmap/issues/145","id":260819592,"user":{"login":"jje8910","id":20980001,"avatar_url":"https://avatars.githubusercontent.com/u/20980001?v=3","gravatar_id":"","url":"https://api.github.com/users/jje8910","html_url":"https://github.com/jje8910","followers_url":"https://api.github.com/users/jje8910/followers","following_url":"https://api.github.com/users/jje8910/following{/other_user}","gists_url":"https://api.github.com/users/jje8910/gists{/gist_id}","starred_url":"https://api.github.com/users/jje8910/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jje8910/subscriptions","organizations_url":"https://api.github.com/users/jje8910/orgs","repos_url":"https://api.github.com/users/jje8910/repos","events_url":"https://api.github.com/users/jje8910/events{/privacy}","received_events_url":"https://api.github.com/users/jje8910/received_events","type":"User","site_admin":false},"created_at":"2016-11-16T00:53:18Z","updated_at":"2016-11-16T00:53:18Z","body":"I pull the master git and I check the above issue is solved. But when I try \"make -j4\", the below error occurs.\r\n\r\nLinking CXX shared library ../../../bin/librtabmap_core.so\r\n/usr/bin/ld: /usr/local/lib/libz.a(compress.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC\r\n/usr/local/lib/libz.a: error adding symbols: Bad value\r\ncollect2: error: ld returned 1 exit status\r\nmake[2]: *** [../bin/librtabmap_core.so.0.11.11] error 1\r\nmake[1]: *** [corelib/src/CMakeFiles/rtabmap_core.dir/all] error 2"}}
{"actor":{"display_login":"jje8910"}}