{"action":"created","issue":{"url":"https://api.github.com/repos/mikeseven/node-webcl/issues/3","labels_url":"https://api.github.com/repos/mikeseven/node-webcl/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/mikeseven/node-webcl/issues/3/comments","events_url":"https://api.github.com/repos/mikeseven/node-webcl/issues/3/events","html_url":"https://github.com/mikeseven/node-webcl/issues/3","id":56212769,"number":3,"title":"NPM cannot install node-webcl sucessfully","user":{"login":"mfwei","id":7342494,"avatar_url":"https://avatars.githubusercontent.com/u/7342494?v=3","gravatar_id":"","url":"https://api.github.com/users/mfwei","html_url":"https://github.com/mfwei","followers_url":"https://api.github.com/users/mfwei/followers","following_url":"https://api.github.com/users/mfwei/following{/other_user}","gists_url":"https://api.github.com/users/mfwei/gists{/gist_id}","starred_url":"https://api.github.com/users/mfwei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfwei/subscriptions","organizations_url":"https://api.github.com/users/mfwei/orgs","repos_url":"https://api.github.com/users/mfwei/repos","events_url":"https://api.github.com/users/mfwei/events{/privacy}","received_events_url":"https://api.github.com/users/mfwei/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-02T09:22:47Z","updated_at":"2015-02-03T23:59:14Z","closed_at":null,"body":"Hello, \r\n\r\nI encounter some compiling errors when installing node-webcl via NPM (1.4.28).\r\nOperating system on my computer is Ubuntu 14.04 with Kernel 3.13.0-32-generic.\r\nCloud anyone help me? Thank you very much.\r\n\r\nError message is as following:\r\n\r\n../src/common.h:153:3: error: expected identifier before numeric constant\r\n   None=0,\r\n   ^\r\n../src/common.h:153:3: error: expected ‘}’ before numeric constant\r\n../src/common.h:153:3: error: expected unqualified-id before numeric constant\r\nIn file included from ../src/webcl.h:30:0,\r\n                 from ../src/bindings.cc:27:\r\n../src/common.h:184:36: error: ‘CLObjType’ has not been declared\r\n WebCLObject* findCLObj(void* clid, CLObjType::CLObjType type);\r\n                                    ^\r\n../src/common.h:184:57: error: expected ‘,’ or ‘...’ before ‘type’\r\n WebCLObject* findCLObj(void* clid, CLObjType::CLObjType type);\r\n                                                         ^\r\n../src/common.h:189:10: error: ‘CLObjType’ does not name a type\r\n   inline CLObjType::CLObjType getType() const { return _type; }\r\n          ^\r\n../src/common.h:217:3: error: ‘CLObjType’ does not name a type\r\n   CLObjType::CLObjType _type;\r\n   ^\r\n../src/common.h: In member function ‘const char* WebCLObject::getCLObjName() const’:\r\n../src/common.h:192:12: error: ‘_type’ was not declared in this scope\r\n     return _type<CLObjType::MAX_WEBCL_TYPES ? CLObjType::CLObjName[_type] : \"\\0\";\r\n            ^\r\n../src/common.h:192:18: error: ‘CLObjType’ has not been declared\r\n     return _type<CLObjType::MAX_WEBCL_TYPES ? CLObjType::CLObjName[_type] : \"\\0\";\r\n                  ^\r\n../src/common.h:192:47: error: ‘CLObjType’ has not been declared\r\n     return _type<CLObjType::MAX_WEBCL_TYPES ? CLObjType::CLObjName[_type] : \"\\0\";\r\n                                               ^\r\n../src/common.h: In constructor ‘WebCLObject::WebCLObject()’:\r\n../src/common.h:196:19: error: class ‘WebCLObject’ does not have any field named ‘_type’\r\n   WebCLObject() : _type(CLObjType::None)\r\n                   ^\r\n../src/common.h:196:25: error: ‘CLObjType’ has not been declared\r\n   WebCLObject() : _type(CLObjType::None)\r\n                         ^\r\nIn file included from /usr/include/X11/Xlib.h:44:0,\r\n                 from /usr/include/GL/glx.h:30,\r\n                 from ../src/common.h:74,\r\n                 from ../src/webcl.h:30,\r\n                 from ../src/bindings.cc:27:\r\n../src/common.h:196:36: error: expected unqualified-id before numeric constant\r\n   WebCLObject() : _type(CLObjType::None)\r\n                                    ^\r\nIn file included from ../src/webcl.h:30:0,\r\n                 from ../src/bindings.cc:27:\r\n../src/common.h: At global scope:\r\n../src/common.h:223:1: error: expected declaration before ‘}’ token\r\n } // namespace webcl\r\n ^\r\n../src/common.h:166:20: warning: ‘webcl::CLObjName’ defined but not used [-Wunused-variable]\r\n static const char* CLObjName[] = {\r\n                    ^\r\nmake: *** [Release/obj.target/webcl/src/bindings.o] Error 1\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mikeseven/node-webcl/issues/comments/72763300","html_url":"https://github.com/mikeseven/node-webcl/issues/3#issuecomment-72763300","issue_url":"https://api.github.com/repos/mikeseven/node-webcl/issues/3","id":72763300,"user":{"login":"thibaudh","id":9831546,"avatar_url":"https://avatars.githubusercontent.com/u/9831546?v=3","gravatar_id":"","url":"https://api.github.com/users/thibaudh","html_url":"https://github.com/thibaudh","followers_url":"https://api.github.com/users/thibaudh/followers","following_url":"https://api.github.com/users/thibaudh/following{/other_user}","gists_url":"https://api.github.com/users/thibaudh/gists{/gist_id}","starred_url":"https://api.github.com/users/thibaudh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thibaudh/subscriptions","organizations_url":"https://api.github.com/users/thibaudh/orgs","repos_url":"https://api.github.com/users/thibaudh/repos","events_url":"https://api.github.com/users/thibaudh/events{/privacy}","received_events_url":"https://api.github.com/users/thibaudh/received_events","type":"User","site_admin":false},"created_at":"2015-02-03T23:59:14Z","updated_at":"2015-02-03T23:59:14Z","body":"I hit the same error, but I filed the bug under node-webgl by mistake. Details are here:\r\nhttps://github.com/mikeseven/node-webgl/issues/32\r\n\r\n(I was using gcc 4.8)"}}