{"action":"created","issue":{"url":"https://api.github.com/repos/octalmage/robotjs/issues/118","labels_url":"https://api.github.com/repos/octalmage/robotjs/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/octalmage/robotjs/issues/118/comments","events_url":"https://api.github.com/repos/octalmage/robotjs/issues/118/events","html_url":"https://github.com/octalmage/robotjs/issues/118","id":113718099,"number":118,"title":"Build fails on OS X El Captain.","user":{"login":"octalmage","id":142006,"avatar_url":"https://avatars.githubusercontent.com/u/142006?v=3","gravatar_id":"","url":"https://api.github.com/users/octalmage","html_url":"https://github.com/octalmage","followers_url":"https://api.github.com/users/octalmage/followers","following_url":"https://api.github.com/users/octalmage/following{/other_user}","gists_url":"https://api.github.com/users/octalmage/gists{/gist_id}","starred_url":"https://api.github.com/users/octalmage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octalmage/subscriptions","organizations_url":"https://api.github.com/users/octalmage/orgs","repos_url":"https://api.github.com/users/octalmage/repos","events_url":"https://api.github.com/users/octalmage/events{/privacy}","received_events_url":"https://api.github.com/users/octalmage/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/octalmage/robotjs/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/octalmage/robotjs/labels/mac","name":"mac","color":"000000"}],"state":"closed","locked":false,"assignee":{"login":"octalmage","id":142006,"avatar_url":"https://avatars.githubusercontent.com/u/142006?v=3","gravatar_id":"","url":"https://api.github.com/users/octalmage","html_url":"https://github.com/octalmage","followers_url":"https://api.github.com/users/octalmage/followers","following_url":"https://api.github.com/users/octalmage/following{/other_user}","gists_url":"https://api.github.com/users/octalmage/gists{/gist_id}","starred_url":"https://api.github.com/users/octalmage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octalmage/subscriptions","organizations_url":"https://api.github.com/users/octalmage/orgs","repos_url":"https://api.github.com/users/octalmage/repos","events_url":"https://api.github.com/users/octalmage/events{/privacy}","received_events_url":"https://api.github.com/users/octalmage/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/octalmage/robotjs/milestones/1","html_url":"https://github.com/octalmage/robotjs/milestones/First%20Stable%20Release.","labels_url":"https://api.github.com/repos/octalmage/robotjs/milestones/1/labels","id":956303,"number":1,"title":"First Stable Release.","description":"Basic functionality needed for a first stable release. ","creator":{"login":"octalmage","id":142006,"avatar_url":"https://avatars.githubusercontent.com/u/142006?v=3","gravatar_id":"","url":"https://api.github.com/users/octalmage","html_url":"https://github.com/octalmage","followers_url":"https://api.github.com/users/octalmage/followers","following_url":"https://api.github.com/users/octalmage/following{/other_user}","gists_url":"https://api.github.com/users/octalmage/gists{/gist_id}","starred_url":"https://api.github.com/users/octalmage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octalmage/subscriptions","organizations_url":"https://api.github.com/users/octalmage/orgs","repos_url":"https://api.github.com/users/octalmage/repos","events_url":"https://api.github.com/users/octalmage/events{/privacy}","received_events_url":"https://api.github.com/users/octalmage/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":12,"state":"open","created_at":"2015-01-29T06:30:53Z","updated_at":"2015-11-02T15:53:18Z","due_on":null,"closed_at":null},"comments":10,"created_at":"2015-10-28T00:34:48Z","updated_at":"2015-11-02T18:17:17Z","closed_at":"2015-11-02T15:53:18Z","body":"Multiple users are reporting that RobotJS is failing to build on OS X El Captain. \r\n\r\nHere's an example error: \r\n\r\n```\r\n$ npm i https://github.com/octalmage/robotjs.git\\#dynamic-nan-include\r\n\r\n> robotjs@0.3.1 install /src/snip/node_modules/robotjs\r\n> node-gyp rebuild\r\n\r\n  CXX(target) Release/obj.target/robotjs/src/robotjs.o\r\n../src/robotjs.cc:76:16: error: cannot initialize a variable of type 'MMMouseButton' (aka 'CGMouseButton') with an rvalue of type '_MMMouseButton'\r\n        MMMouseButton button = LEFT_BUTTON;\r\n                      ^        ~~~~~~~~~~~\r\n../src/robotjs.cc:129:16: error: cannot initialize a variable of type 'MMMouseButton' (aka 'CGMouseButton') with an rvalue of type '_MMMouseButton'\r\n        MMMouseButton button = LEFT_BUTTON;\r\n                      ^        ~~~~~~~~~~~\r\n../src/robotjs.cc:397:13: error: assigning to 'MMKeyFlags' (aka 'CGEventFlags') from incompatible type '_MMKeyFlags'\r\n        *flags = MOD_ALT;\r\n               ^ ~~~~~~~\r\n../src/robotjs.cc:401:13: error: assigning to 'MMKeyFlags' (aka 'CGEventFlags') from incompatible type '_MMKeyFlags'\r\n        *flags = MOD_META;\r\n               ^ ~~~~~~~~\r\n../src/robotjs.cc:405:13: error: assigning to 'MMKeyFlags' (aka 'CGEventFlags') from incompatible type '_MMKeyFlags'\r\n        *flags = MOD_CONTROL;\r\n               ^ ~~~~~~~~~~~\r\n../src/robotjs.cc:409:13: error: assigning to 'MMKeyFlags' (aka 'CGEventFlags') from incompatible type '_MMKeyFlags'\r\n        *flags = MOD_SHIFT;\r\n               ^ ~~~~~~~~~\r\n../src/robotjs.cc:413:13: error: assigning to 'MMKeyFlags' (aka 'CGEventFlags') from incompatible type '_MMKeyFlags'\r\n        *flags = MOD_NONE;\r\n               ^ ~~~~~~~~\r\n../src/robotjs.cc:425:13: error: cannot initialize a variable of type 'MMKeyFlags' (aka 'CGEventFlags') with an rvalue of type '_MMKeyFlags'\r\n        MMKeyFlags flags = MOD_NONE;\r\n                   ^       ~~~~~~~~\r\n../src/robotjs.cc:479:13: error: cannot initialize a variable of type 'MMKeyFlags' (aka 'CGEventFlags') with an rvalue of type '_MMKeyFlags'\r\n        MMKeyFlags flags = MOD_NONE;\r\n                   ^       ~~~~~~~~\r\n9 errors generated.\r\nmake: *** [Release/obj.target/robotjs/src/robotjs.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:270:23)\r\ngyp ERR! stack     at emitTwo (events.js:87:13)\r\ngyp ERR! stack     at ChildProcess.emit (events.js:172:7)\r\ngyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)\r\ngyp ERR! System Darwin 15.0.0\r\ngyp ERR! command \"/usr/local/bin/node\" \"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"\r\ngyp ERR! cwd /src/snip/node_modules/robotjs\r\ngyp ERR! node -v v4.1.1\r\ngyp ERR! node-gyp -v v3.0.3\r\ngyp ERR! not ok\r\nnpm ERR! Darwin 15.0.0\r\nnpm ERR! argv \"/usr/local/bin/node\" \"/usr/local/bin/npm\" \"i\" \"https://github.com/octalmage/robotjs.git#dynamic-nan-include\"\r\nnpm ERR! node v4.1.1\r\nnpm ERR! npm  v3.3.6\r\nnpm ERR! code ELIFECYCLE\r\n\r\nnpm ERR! robotjs@0.3.1 install: `node-gyp rebuild`\r\nnpm ERR! Exit status 1\r\nnpm ERR!\r\nnpm ERR! Failed at the robotjs@0.3.1 install script 'node-gyp rebuild'.\r\nnpm ERR! This is most likely a problem with the robotjs 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 robotjs\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!     /src/snip/npm-debug.log\r\n```\r\n\r\nSee #116 for more details. \r\n"},"comment":{"url":"https://api.github.com/repos/octalmage/robotjs/issues/comments/153111487","html_url":"https://github.com/octalmage/robotjs/issues/118#issuecomment-153111487","issue_url":"https://api.github.com/repos/octalmage/robotjs/issues/118","id":153111487,"user":{"login":"Qix-","id":885648,"avatar_url":"https://avatars.githubusercontent.com/u/885648?v=3","gravatar_id":"","url":"https://api.github.com/users/Qix-","html_url":"https://github.com/Qix-","followers_url":"https://api.github.com/users/Qix-/followers","following_url":"https://api.github.com/users/Qix-/following{/other_user}","gists_url":"https://api.github.com/users/Qix-/gists{/gist_id}","starred_url":"https://api.github.com/users/Qix-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Qix-/subscriptions","organizations_url":"https://api.github.com/users/Qix-/orgs","repos_url":"https://api.github.com/users/Qix-/repos","events_url":"https://api.github.com/users/Qix-/events{/privacy}","received_events_url":"https://api.github.com/users/Qix-/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T18:17:17Z","updated_at":"2015-11-02T18:17:17Z","body":"Thank you :dancer: "}}