{"action":"closed","issue":{"url":"https://api.github.com/repos/slightech/MYNT-EYE-S-SDK/issues/22","repository_url":"https://api.github.com/repos/slightech/MYNT-EYE-S-SDK","labels_url":"https://api.github.com/repos/slightech/MYNT-EYE-S-SDK/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/slightech/MYNT-EYE-S-SDK/issues/22/comments","events_url":"https://api.github.com/repos/slightech/MYNT-EYE-S-SDK/issues/22/events","html_url":"https://github.com/slightech/MYNT-EYE-S-SDK/issues/22","id":382572222,"node_id":"MDU6SXNzdWUzODI1NzIyMjI=","number":22,"title":"compilation error","user":{"login":"mpkuse","id":10494231,"node_id":"MDQ6VXNlcjEwNDk0MjMx","avatar_url":"https://avatars3.githubusercontent.com/u/10494231?v=4","gravatar_id":"","url":"https://api.github.com/users/mpkuse","html_url":"https://github.com/mpkuse","followers_url":"https://api.github.com/users/mpkuse/followers","following_url":"https://api.github.com/users/mpkuse/following{/other_user}","gists_url":"https://api.github.com/users/mpkuse/gists{/gist_id}","starred_url":"https://api.github.com/users/mpkuse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpkuse/subscriptions","organizations_url":"https://api.github.com/users/mpkuse/orgs","repos_url":"https://api.github.com/users/mpkuse/repos","events_url":"https://api.github.com/users/mpkuse/events{/privacy}","received_events_url":"https://api.github.com/users/mpkuse/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-20T09:29:51Z","updated_at":"2018-12-27T07:40:10Z","closed_at":"2018-12-27T07:40:10Z","author_association":"NONE","body":"Hi,\r\nI have Ubuntu 18.04 and I get a compilation error:\r\n\r\nI came across : https://stackoverflow.com/questions/39571199/compilation-error-function-in-namespace-std-does-not-name-a-template-type \r\n\r\nWhich basically says std::function to work I need to add c++11 flag to gcc. My gcc version is 7.3. \r\n```\r\n- Build files have been written to: /home/mpkuse/Downloads/MYNT-EYE-S-SDK/_build\r\nmake[1]: Entering directory '/home/mpkuse/Downloads/MYNT-EYE-S-SDK/_build'\r\nmake[2]: Entering directory '/home/mpkuse/Downloads/MYNT-EYE-S-SDK/_build'\r\nmake[3]: Entering directory '/home/mpkuse/Downloads/MYNT-EYE-S-SDK/_build'\r\nmake[3]: Leaving directory '/home/mpkuse/Downloads/MYNT-EYE-S-SDK/_build'\r\nmake[3]: Entering directory '/home/mpkuse/Downloads/MYNT-EYE-S-SDK/_build'\r\n[  4%] Building CXX object CMakeFiles/mynteye.dir/src/mynteye/api/api.cc.o\r\nIn file included from /home/mpkuse/Downloads/MYNT-EYE-S-SDK/src/mynteye/api/api.cc:14:0:\r\n/home/mpkuse/Downloads/MYNT-EYE-S-SDK/include/mynteye/api/api.h:89:34: error: ‘function’ in namespace ‘std’ does not name a template type\r\n   using stream_callback_t = std::function<void(const api::StreamData &data)>;\r\n                                  ^~~~~~~~\r\n/home/mpkuse/Downloads/MYNT-EYE-S-SDK/include/mynteye/api/api.h:91:34: error: ‘function’ in namespace ‘std’ does not name a template type\r\n   using motion_callback_t = std::function<void(const api::MotionData &data)>;\r\n                                  ^~~~~~~~\r\n/home/mpkuse/Downloads/MYNT-EYE-S-SDK/include/mynteye/api/api.h:209:48: error: ‘stream_callback_t’ has not been declared\r\n   void SetStreamCallback(const Stream &stream, stream_callback_t callback);\r\n                                                ^~~~~~~~~~~~~~~~~\r\n/home/mpkuse/Downloads/MYNT-EYE-S-SDK/include/mynteye/api/api.h:213:26: error: ‘motion_callback_t’ has not been declared\r\n   void SetMotionCallback(motion_callback_t callback);\r\n                          ^~~~~~~~~~~~~~~~~\r\nIn file included from /home/mpkuse/Downloads/MYNT-EYE-S-SDK/src/mynteye/api/api.cc:27:0:\r\n/home/mpkuse/Downloads/MYNT-EYE-S-SDK/src/mynteye/api/synthetic.h:35:34: error: ‘stream_callback_t’ in ‘class mynteye::API’ does not name a type\r\n   using stream_callback_t = API::stream_callback_t;\r\n                                  ^~~~~~~~~~~~~~~~~\r\n/home/mpkuse/Downloads/MYNT-EYE-S-SDK/src/mynteye/api/synthetic.h:53:48: error: ‘stream_callback_t’ has not been declared\r\n   void SetStreamCallback(const Stream &stream, stream_callback_t callback);\r\n                                                ^~~~~~~~~~~~~~~~~\r\n/home/mpkuse/Downloads/MYNT-EYE-S-SDK/src/mynteye/api/synthetic.h:108:20: error: ‘stream_callback_t’ was not declared in this scope\r\n   std::map<Stream, stream_callback_t> stream_callbacks_;\r\n                    ^~~~~~~~~~~~~~~~~\r\n/home/mpkuse/Downloads/MYNT-EYE-S-SDK/src/mynteye/api/synthetic.h:108:20: note: suggested alternative: ‘HasStreamCallback’\r\n   std::map<Stream, stream_callback_t> stream_callbacks_;\r\n                    ^~~~~~~~~~~~~~~~~\r\n                    HasStreamCallback\r\n/home/mpkuse/Downloads/MYNT-EYE-S-SDK/src/mynteye/api/synthetic.h:108:37: error: template argument 2 is invalid\r\n   std::map<Stream, stream_callback_t> stream_callbacks_;\r\n                                     ^\r\n/home/mpkuse/Downloads/MYNT-EYE-S-SDK/src/mynteye/api/synthetic.h:108:37: error: template argument 4 is invalid\r\n/home/mpkuse/Downloads/MYNT-EYE-S-SDK/src/mynteye/api/api.cc:336:51: error: ‘stream_callback_t’ has not been declared\r\n void API::SetStreamCallback(const Stream &stream, stream_callback_t callback) {\r\n                                                   ^~~~~~~~~~~~~~~~~\r\n/home/mpkuse/Downloads/MYNT-EYE-S-SDK/src/mynteye/api/api.cc:340:29: error: variable or field ‘SetMotionCallback’ declared void\r\n void API::SetMotionCallback(motion_callback_t callback) {\r\n                             ^~~~~~~~~~~~~~~~~\r\n/home/mpkuse/Downloads/MYNT-EYE-S-SDK/src/mynteye/api/api.cc:340:29: error: ‘motion_callback_t’ was not declared in this scope\r\nCMakeFiles/mynteye.dir/build.make:374: recipe for target 'CMakeFiles/mynteye.dir/src/mynteye/api/api.cc.o' failed\r\nmake[3]: *** [CMakeFiles/mynteye.dir/src/mynteye/api/api.cc.o] Error 1\r\nmake[3]: Leaving directory '/home/mpkuse/Downloads/MYNT-EYE-S-SDK/_build'\r\nCMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/mynteye.dir/all' failed\r\nmake[2]: *** [CMakeFiles/mynteye.dir/all] Error 2\r\nmake[2]: Leaving directory '/home/mpkuse/Downloads/MYNT-EYE-S-SDK/_build'\r\nMakefile:129: recipe for target 'all' failed\r\nmake[1]: *** [all] Error 2\r\nmake[1]: Leaving directory '/home/mpkuse/Downloads/MYNT-EYE-S-SDK/_build'\r\nMakefile:90: recipe for target 'build' failed\r\nmake: *** [build] Error 2\r\n\r\n```"}}
{"actor":{"display_login":"KalmanXiong"}}