{"action":"created","issue":{"url":"https://api.github.com/repos/ptitSeb/glshim/issues/9","repository_url":"https://api.github.com/repos/ptitSeb/glshim","labels_url":"https://api.github.com/repos/ptitSeb/glshim/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/ptitSeb/glshim/issues/9/comments","events_url":"https://api.github.com/repos/ptitSeb/glshim/issues/9/events","html_url":"https://github.com/ptitSeb/glshim/issues/9","id":184377285,"number":9,"title":"Problems while compiling for Android","user":{"login":"raduprv","id":1095519,"avatar_url":"https://avatars.githubusercontent.com/u/1095519?v=3","gravatar_id":"","url":"https://api.github.com/users/raduprv","html_url":"https://github.com/raduprv","followers_url":"https://api.github.com/users/raduprv/followers","following_url":"https://api.github.com/users/raduprv/following{/other_user}","gists_url":"https://api.github.com/users/raduprv/gists{/gist_id}","starred_url":"https://api.github.com/users/raduprv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raduprv/subscriptions","organizations_url":"https://api.github.com/users/raduprv/orgs","repos_url":"https://api.github.com/users/raduprv/repos","events_url":"https://api.github.com/users/raduprv/events{/privacy}","received_events_url":"https://api.github.com/users/raduprv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-21T01:09:09Z","updated_at":"2016-10-21T09:18:36Z","closed_at":null,"body":"Hi\r\n\r\nI am having some trouble compiling it on Android.\r\nI am getting a few warnings, such as:\r\nIn file included from jni/glshim/src/gl/wrap/../gl.h:358:\r\njni/glshim/src/gl/stack.h:140:3: warning: redefinition of typedef 'glstack_t' is\r\n\r\n      a C11 feature [-Wtypedef-redefinition]\r\n} glstack_t;\r\n  ^\r\njni/glshim/src/gl/state.h:11:27: note: previous definition is here\r\ntypedef struct _glstack_t glstack_t;\r\n                          ^\r\nIn file included from jni/glshim/src/gl/array.c:1:\r\nIn file included from jni/glshim/src/gl/array.h:1:\r\nIn file included from jni/glshim/src/gl/wrap/../gl.h:358:\r\njni/glshim/src/gl/stack.h:165:3: warning: redefinition of typedef\r\n      'glclientstack_t' is a C11 feature [-Wtypedef-redefinition]\r\n} glclientstack_t;\r\n  ^\r\njni/glshim/src/gl/state.h:12:33: note: previous definition is here\r\ntypedef struct _glclientstack_t glclientstack_t;\r\n\r\nI am also getting an error:\r\n                                ^\r\njni/glshim/src/gl/array.c:211:9: error: invalid suffix 'd' on floating constant\r\n        GL_TYPE_SWITCH_MAX(out, dst, to,\r\n        ^\r\njni/glshim/src/gl/wrap/../gl.h:180:64: note: expanded from macro\r\n      'GL_TYPE_SWITCH_MAX'\r\n  ...GL_TYPE_CASE_MAX(name, var, GL_DOUBLE, GLdouble, code, 1.0d)         \\\r\n                                                               ^\r\n2 warnings and 1 error generated.\r\nmake: *** [obj/local/armeabi/objs/glshim/src/gl/array.o] Error 1\r\n\r\n\r\nAny ideas?"},"comment":{"url":"https://api.github.com/repos/ptitSeb/glshim/issues/comments/255334122","html_url":"https://github.com/ptitSeb/glshim/issues/9#issuecomment-255334122","issue_url":"https://api.github.com/repos/ptitSeb/glshim/issues/9","id":255334122,"user":{"login":"raduprv","id":1095519,"avatar_url":"https://avatars.githubusercontent.com/u/1095519?v=3","gravatar_id":"","url":"https://api.github.com/users/raduprv","html_url":"https://github.com/raduprv","followers_url":"https://api.github.com/users/raduprv/followers","following_url":"https://api.github.com/users/raduprv/following{/other_user}","gists_url":"https://api.github.com/users/raduprv/gists{/gist_id}","starred_url":"https://api.github.com/users/raduprv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raduprv/subscriptions","organizations_url":"https://api.github.com/users/raduprv/orgs","repos_url":"https://api.github.com/users/raduprv/repos","events_url":"https://api.github.com/users/raduprv/events{/privacy}","received_events_url":"https://api.github.com/users/raduprv/received_events","type":"User","site_admin":false},"created_at":"2016-10-21T09:18:36Z","updated_at":"2016-10-21T09:18:36Z","body":"Thanks, that fixed the problem, but now I have a different, unrelated error (and some new warnings). And yes, I am using CLANG, the latest versions of the NDK use CLANG now.\r\n\r\njni/glshim/src/glx/glx.c:119:31: error: unknown type name 'Display'\r\nstatic int get_config_default(Display *display, int attribute, int *value) {\r\n                              ^\r\njni/glshim/src/glx/glx.c:162:22: warning: implicit declaration of function\r\n      'glXChooseVisual' is invalid in C99 [-Wimplicit-function-declaration]\r\n            *value = glXChooseVisual(display, 0, NULL)->visualid;\r\n                     ^\r\njni/glshim/src/glx/glx.c:308:31: warning: implicit declaration of function\r\n      'backtrace' is invalid in C99 [-Wimplicit-function-declaration]\r\n                size_t size = backtrace(array, 10);\r\n                              ^\r\njni/glshim/src/glx/glx.c:313:21: warning: implicit declaration of function\r\n      'backtrace_symbols_fd' is invalid in C99 [-Wimplicit-function-declaration]\r\n"}}
{"actor":{"display_login":"raduprv"}}