{"action":"created","issue":{"url":"https://api.github.com/repos/cmusphinx/node-pocketsphinx/issues/11","labels_url":"https://api.github.com/repos/cmusphinx/node-pocketsphinx/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/cmusphinx/node-pocketsphinx/issues/11/comments","events_url":"https://api.github.com/repos/cmusphinx/node-pocketsphinx/issues/11/events","html_url":"https://github.com/cmusphinx/node-pocketsphinx/issues/11","id":92058348,"number":11,"title":"Problem compiling in OS X","user":{"login":"mmende","id":3763862,"avatar_url":"https://avatars.githubusercontent.com/u/3763862?v=3","gravatar_id":"","url":"https://api.github.com/users/mmende","html_url":"https://github.com/mmende","followers_url":"https://api.github.com/users/mmende/followers","following_url":"https://api.github.com/users/mmende/following{/other_user}","gists_url":"https://api.github.com/users/mmende/gists{/gist_id}","starred_url":"https://api.github.com/users/mmende/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmende/subscriptions","organizations_url":"https://api.github.com/users/mmende/orgs","repos_url":"https://api.github.com/users/mmende/repos","events_url":"https://api.github.com/users/mmende/events{/privacy}","received_events_url":"https://api.github.com/users/mmende/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-06-30T10:46:24Z","updated_at":"2015-07-09T17:37:03Z","closed_at":null,"body":"Hi,\r\nI've installed sphinxbase (5prealpha) and pocketsphinx (5prealpha) from git, set the PKG_CONFIG_PATH environment var to /usr/local/lib/pkgconfig and get the following errors when trying to compile node-pocketsphinx:\r\n\r\n```\r\n$ npm install\r\nnpm WARN package.json pocketsphinx@1.0.1 license should be a valid SPDX license expression\r\n \r\n> ws@0.5.0 install /Users/mm/Documents/development/node-pocketsphinx/node_modules/socket.io/node_modules/engine.io/node_modules/ws\r\n> (node-gyp rebuild 2> builderror.log) || (exit 0)\r\n\r\n  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o\r\n  SOLINK_MODULE(target) Release/bufferutil.node\r\n  CXX(target) Release/obj.target/validation/src/validation.o\r\n  SOLINK_MODULE(target) Release/validation.node\r\n \r\n> ws@0.4.31 install /Users/mm/Documents/development/node-pocketsphinx/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws\r\n> (node-gyp rebuild 2> builderror.log) || (exit 0)\r\n\r\n  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o\r\n\r\n> pocketsphinx@1.0.1 install /Users/mm/Documents/development/node-pocketsphinx\r\n> node-gyp rebuild\r\n\r\n  CXX(target) Release/obj.target/PocketSphinx/src/Factory.o\r\nIn file included from ../src/Factory.cpp:2:\r\n../src/Recognizer.h:11:33: error: expected class name\r\nclass Recognizer : public node::ObjectWrap\r\n                                ^\r\n../src/Recognizer.h:20:41: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?\r\n        static v8::Handle<v8::Value> New(const v8::Arguments& args);\r\n                                               ^~~~~~~~~~~~~\r\n                                               v8::internal::Arguments\r\n/Users/mm/.node-gyp/0.12.2/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here\r\nclass Arguments;\r\n      ^\r\nIn file included from ../src/Factory.cpp:2:\r\n../src/Recognizer.h:22:43: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?\r\n        static v8::Handle<v8::Value> Start(const v8::Arguments& args);\r\n                                                 ^~~~~~~~~~~~~\r\n                                                 v8::internal::Arguments\r\n/Users/mm/.node-gyp/0.12.2/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here\r\nclass Arguments;\r\n      ^\r\nIn file included from ../src/Factory.cpp:2:\r\n../src/Recognizer.h:23:42: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?\r\n        static v8::Handle<v8::Value> Stop(const v8::Arguments& args);\r\n                                                ^~~~~~~~~~~~~\r\n                                                v8::internal::Arguments\r\n/Users/mm/.node-gyp/0.12.2/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here\r\nclass Arguments;\r\n      ^\r\nIn file included from ../src/Factory.cpp:2:\r\n../src/Recognizer.h:24:45: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?\r\n        static v8::Handle<v8::Value> Restart(const v8::Arguments& args);\r\n                                                   ^~~~~~~~~~~~~\r\n                                                   v8::internal::Arguments\r\n/Users/mm/.node-gyp/0.12.2/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here\r\nclass Arguments;\r\n      ^\r\nIn file included from ../src/Factory.cpp:2:\r\n../src/Recognizer.h:26:43: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?\r\n        static v8::Handle<v8::Value> Write(const v8::Arguments& args);\r\n                                                 ^~~~~~~~~~~~~\r\n                                                 v8::internal::Arguments\r\n/Users/mm/.node-gyp/0.12.2/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here\r\nclass Arguments;\r\n      ^\r\nIn file included from ../src/Factory.cpp:2:\r\n../src/Recognizer.h:27:47: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?\r\n        static v8::Handle<v8::Value> WriteSync(const v8::Arguments& args);\r\n                                                     ^~~~~~~~~~~~~\r\n                                                     v8::internal::Arguments\r\n/Users/mm/.node-gyp/0.12.2/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here\r\nclass Arguments;\r\n      ^\r\nIn file included from ../src/Factory.cpp:2:\r\n../src/Recognizer.h:29:56: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?\r\n        static v8::Handle<v8::Value> AddKeyphraseSearch(const v8::Arguments& args);\r\n                                                              ^~~~~~~~~~~~~\r\n                                                              v8::internal::Arguments\r\n/Users/mm/.node-gyp/0.12.2/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here\r\nclass Arguments;\r\n      ^\r\nIn file included from ../src/Factory.cpp:2:\r\n../src/Recognizer.h:30:55: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?\r\n        static v8::Handle<v8::Value> AddKeywordsSearch(const v8::Arguments& args);\r\n                                                             ^~~~~~~~~~~~~\r\n                                                             v8::internal::Arguments\r\n/Users/mm/.node-gyp/0.12.2/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here\r\nclass Arguments;\r\n      ^\r\nIn file included from ../src/Factory.cpp:2:\r\n../src/Recognizer.h:31:54: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?\r\n        static v8::Handle<v8::Value> AddGrammarSearch(const v8::Arguments& args);\r\n                                                            ^~~~~~~~~~~~~\r\n                                                            v8::internal::Arguments\r\n/Users/mm/.node-gyp/0.12.2/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here\r\nclass Arguments;\r\n      ^\r\nIn file included from ../src/Factory.cpp:2:\r\n../src/Recognizer.h:32:52: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?\r\n        static v8::Handle<v8::Value> AddNgramSearch(const v8::Arguments& args);\r\n                                                          ^~~~~~~~~~~~~\r\n                                                          v8::internal::Arguments\r\n/Users/mm/.node-gyp/0.12.2/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here\r\nclass Arguments;\r\n      ^\r\nIn file included from ../src/Factory.cpp:2:\r\n../src/Recognizer.h:34:89: error: no type named 'AccessorInfo' in namespace 'v8'\r\n        static v8::Handle<v8::Value> GetSearch(const v8::Local<v8::String> property, const v8::AccessorInfo& info);\r\n                                                                                           ~~~~^\r\n../src/Recognizer.h:35:94: error: no type named 'AccessorInfo' in namespace 'v8'\r\n        static void SetSearch(v8::Local<v8::String> property, v8::Local<v8::Value> value, const v8::AccessorInfo& info);\r\n                                                                                                ~~~~^\r\n../src/Recognizer.h:37:47: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?\r\n        static v8::Handle<v8::Value> FromFloat(const v8::Arguments& args);\r\n                                                     ^~~~~~~~~~~~~\r\n                                                     v8::internal::Arguments\r\n/Users/mm/.node-gyp/0.12.2/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here\r\nclass Arguments;\r\n      ^\r\nIn file included from ../src/Factory.cpp:2:\r\n../src/Recognizer.h:40:26: error: unknown type name 'uv_work_t'\r\n        static void AsyncWorker(uv_work_t* request);\r\n                                ^\r\n../src/Recognizer.h:41:25: error: unknown type name 'uv_work_t'\r\n        static void AsyncAfter(uv_work_t* request);\r\n                               ^\r\n16 errors generated.\r\nmake: *** [Release/obj.target/PocketSphinx/src/Factory.o] Error 1\r\ngyp ERR! build error \r\ngyp ERR! stack Error: `make` failed with exit code: 2\r\ngyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)\r\ngyp ERR! stack     at ChildProcess.emit (events.js:110:17)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)\r\ngyp ERR! System Darwin 15.0.0\r\ngyp ERR! command \"node\" \"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"\r\ngyp ERR! cwd /Users/mm/Documents/development/node-pocketsphinx\r\ngyp ERR! node -v v0.12.2\r\ngyp ERR! node-gyp -v v2.0.1\r\ngyp ERR! not ok \r\n\r\nnpm ERR! Darwin 15.0.0\r\nnpm ERR! argv \"node\" \"/usr/local/bin/npm\" \"install\"\r\nnpm ERR! node v0.12.2\r\nnpm ERR! npm  v2.11.3\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! pocketsphinx@1.0.1 install: `node-gyp rebuild`\r\nnpm ERR! Exit status 1\r\nnpm ERR! \r\nnpm ERR! Failed at the pocketsphinx@1.0.1 install script 'node-gyp rebuild'.\r\nnpm ERR! This is most likely a problem with the pocketsphinx package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     node-gyp rebuild\r\nnpm ERR! You can get their info via:\r\nnpm ERR!     npm owner ls pocketsphinx\r\nnpm ERR! There is likely additional logging output above.\r\n\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR!     /Users/mm/Documents/development/node-pocketsphinx/npm-debug.log\r\n```"},"comment":{"url":"https://api.github.com/repos/cmusphinx/node-pocketsphinx/issues/comments/120081805","html_url":"https://github.com/cmusphinx/node-pocketsphinx/issues/11#issuecomment-120081805","issue_url":"https://api.github.com/repos/cmusphinx/node-pocketsphinx/issues/11","id":120081805,"user":{"login":"mmende","id":3763862,"avatar_url":"https://avatars.githubusercontent.com/u/3763862?v=3","gravatar_id":"","url":"https://api.github.com/users/mmende","html_url":"https://github.com/mmende","followers_url":"https://api.github.com/users/mmende/followers","following_url":"https://api.github.com/users/mmende/following{/other_user}","gists_url":"https://api.github.com/users/mmende/gists{/gist_id}","starred_url":"https://api.github.com/users/mmende/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmende/subscriptions","organizations_url":"https://api.github.com/users/mmende/orgs","repos_url":"https://api.github.com/users/mmende/repos","events_url":"https://api.github.com/users/mmende/events{/privacy}","received_events_url":"https://api.github.com/users/mmende/received_events","type":"User","site_admin":false},"created_at":"2015-07-09T17:37:03Z","updated_at":"2015-07-09T17:37:03Z","body":"Did you install it from the [pocketsphinx repository](https://github.com/cmusphinx/pocketsphinx)?"}}