{"action":"created","issue":{"url":"https://api.github.com/repos/jxcore/jxcore/issues/359","labels_url":"https://api.github.com/repos/jxcore/jxcore/issues/359/labels{/name}","comments_url":"https://api.github.com/repos/jxcore/jxcore/issues/359/comments","events_url":"https://api.github.com/repos/jxcore/jxcore/issues/359/events","html_url":"https://github.com/jxcore/jxcore/issues/359","id":79786281,"number":359,"title":"Can't install ffi","user":{"login":"zamb3zi","id":11073466,"avatar_url":"https://avatars.githubusercontent.com/u/11073466?v=3","gravatar_id":"","url":"https://api.github.com/users/zamb3zi","html_url":"https://github.com/zamb3zi","followers_url":"https://api.github.com/users/zamb3zi/followers","following_url":"https://api.github.com/users/zamb3zi/following{/other_user}","gists_url":"https://api.github.com/users/zamb3zi/gists{/gist_id}","starred_url":"https://api.github.com/users/zamb3zi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zamb3zi/subscriptions","organizations_url":"https://api.github.com/users/zamb3zi/orgs","repos_url":"https://api.github.com/users/zamb3zi/repos","events_url":"https://api.github.com/users/zamb3zi/events{/privacy}","received_events_url":"https://api.github.com/users/zamb3zi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-23T08:55:58Z","updated_at":"2015-05-23T14:09:22Z","closed_at":null,"body":"Hi, I'm trying to install [ffi](https://www.npmjs.com/package/ffi) with the latest jxcore build and can't get it to work. After a fresh build, I perform a local install as follows:\r\n```\r\nC:\\>users\\zamb3zi\\Documents\\stats\\jxcore\\Release\\jx.exe install ffi\r\nPreparing NPM for JXcore (v Beta-0.3.0.1) for the first run\r\nDownloading NPM for JXcore\r\n..\r\nNPM for JX is ready.\r\nexecuting... please wait.\r\nnpm WARN invalid config local-address=undefined\r\nnpm http GET https://registry.npmjs.org/ffi\r\nnpm http 304 https://registry.npmjs.org/ffi\r\nnpm http GET https://registry.npmjs.org/bindings\r\nnpm http GET https://registry.npmjs.org/debug\r\nnpm http GET https://registry.npmjs.org/ref\r\nnpm http GET https://registry.npmjs.org/ref-struct\r\nnpm http GET https://registry.npmjs.org/nan\r\nnpm http 304 https://registry.npmjs.org/debug\r\nnpm http 304 https://registry.npmjs.org/nan\r\nnpm http 304 https://registry.npmjs.org/ref\r\nnpm http 304 https://registry.npmjs.org/bindings\r\nnpm http 304 https://registry.npmjs.org/ref-struct\r\nnpm http GET https://registry.npmjs.org/ms\r\n|\r\n\r\n\r\n> ref@1.0.2 install C:\\node_modules\\ffi\\node_modules\\ref\r\n> node-gyp rebuild\r\n\r\n-\r\nC:\\node_modules\\ffi\\node_modules\\ref>jx \"C:\\Users\\zamb3zi\\.jx\\npm\\bin\\node-gyp-bin\\\\..\\..\\node_modules\\node-gyp\\bin\\node-gy\r\np.js\" rebuild\r\ngyp http GET https://nodejx.s3.amazonaws.com/jxb300.tar.gz\r\ngyp http 200 https://nodejx.s3.amazonaws.com/jxb300.tar.gz\r\nBuilding the projects in this solution one at a time. To enable parallel build, please add the \"/m\" switch.\r\n  binding.cc\r\nC:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\VC\\include\\xlocale(337): warning C4530: C++ exception handler used,\r\n but unwind semantics are not enabled. Specify /EHsc [C:\\node_modules\\ffi\\node_modules\\ref\\build\\binding.vcxproj]\r\nc:\\users\\zamb3zi\\.node-gyp\\jxb300\\src\\jx\\btree.h(918): warning C4099: 'btree::btree_internal_locate_plain_compare' : type\r\nname first seen using 'struct' now seen using 'class' [C:\\node_modules\\ffi\\node_modules\\ref\\build\\binding.vcxproj]\r\n          c:\\users\\zamb3zi\\.node-gyp\\jxb300\\src\\jx\\btree.h(893) : see declaration of 'btree::btree_internal_locate_plain_c\r\n  ompare'\r\n          c:\\users\\zamb3zi\\.node-gyp\\jxb300\\src\\jx\\btree.h(1493) : see reference to class template instantiation 'btree::b\r\n  tree<Params>' being compiled\r\nc:\\users\\zamb3zi\\.node-gyp\\jxb300\\src\\jx\\btree.h(919): warning C4099: 'btree::btree_internal_locate_compare_to' : type nam\r\ne first seen using 'struct' now seen using 'class' [C:\\node_modules\\ffi\\node_modules\\ref\\build\\binding.vcxproj]\r\n          c:\\users\\zamb3zi\\.node-gyp\\jxb300\\src\\jx\\btree.h(901) : see declaration of 'btree::btree_internal_locate_compare\r\n  _to'\r\nc:\\users\\zamb3zi\\.node-gyp\\jxb300\\src\\v8.h(179): warning C4506: no definition for inline function 'v8::Persistent<v8::Obje\r\nct> v8::Persistent<v8::Object>::New(v8::Handle<v8::Object>)' [C:\\node_modules\\ffi\\node_modules\\ref\\build\\binding.vcxpro\r\nj]\r\nc:\\users\\zamb3zi\\.node-gyp\\jxb300\\src\\v8.h(179): warning C4506: no definition for inline function 'v8::Persistent<v8::Func\r\ntionTemplate> v8::Persistent<v8::FunctionTemplate>::New(v8::Handle<v8::FunctionTemplate>)' [C:\\node_modules\\ffi\\node_mo\r\ndules\\ref\\build\\binding.vcxproj]\r\n     Creating library C:\\node_modules\\ffi\\node_modules\\ref\\build\\Release\\binding.lib and object C:\\node_modules\\ffi\\nod\r\n  e_modules\\ref\\build\\Release\\binding.exp\r\n  Generating code\r\n  Finished generating code\r\n  binding.vcxproj -> C:\\node_modules\\ffi\\node_modules\\ref\\build\\Release\\\\binding.node\r\nnpm http 304 https://registry.npmjs.org/ms\r\n\r\n\r\n> ffi@1.3.1 install C:\\node_modules\\ffi\r\n> node-gyp rebuild\r\n\r\n|\r\nC:\\node_modules\\ffi>jx \"C:\\Users\\zamb3zi\\.jx\\npm\\bin\\node-gyp-bin\\\\..\\..\\node_modules\\node-gyp\\bin\\node-gyp.js\" rebuild\r\nBuilding the projects in this solution one at a time. To enable parallel build, please add the \"/m\" switch.\r\n  dlfcn.c\r\n  dlfcn.vcxproj -> C:\\node_modules\\ffi\\build\\Release\\\\dlfcn.lib\r\n  Building assembly file C:\\node_modules\\ffi\\deps\\libffi\\src\\x86\\win32.asm\r\n  prep_cif.c\r\n  types.c\r\n  raw_api.c\r\n  java_raw_api.c\r\n  closures.c\r\n  ffi.c\r\n  ffi.vcxproj -> C:\\node_modules\\ffi\\build\\Release\\\\libffi.lib\r\n  ffi.cc\r\n  callback_info.cc\r\n  threaded_callback_invokation.cc\r\nC:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\VC\\include\\xlocale(337): warning C4530: C++ exception handler used,\r\n but unwind semantics are not enabled. Specify /EHsc (..\\src\\ffi.cc) [C:\\node_modules\\ffi\\build\\ffi_bindings.vcxproj]\r\nC:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\VC\\include\\xlocale(337): warning C4530: C++ exception handler used,\r\n but unwind semantics are not enabled. Specify /EHsc (..\\src\\threaded_callback_invokation.cc) [C:\\node_modules\\ffi\\buil\r\nd\\ffi_bindings.vcxproj]\r\nC:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\VC\\include\\xlocale(337): warning C4530: C++ exception handler used,\r\n but unwind semantics are not enabled. Specify /EHsc (..\\src\\callback_info.cc) [C:\\node_modules\\ffi\\build\\ffi_bindings.\r\nvcxproj]\r\nc:\\users\\zamb3zi\\.node-gyp\\jxb300\\src\\jx\\btree.h(918): warning C4099: 'btree::btree_internal_locate_plain_compare' : type\r\nname first seen using 'struct' now seen using 'class' (..\\src\\ffi.cc) [C:\\node_modules\\ffi\\build\\ffi_bindings.vcxproj]\r\n          c:\\users\\zamb3zi\\.node-gyp\\jxb300\\src\\jx\\btree.h(893) : see declaration of 'btree::btree_internal_locate_plain_c\r\n  ompare'\r\n          c:\\users\\zamb3zi\\.node-gyp\\jxb300\\src\\jx\\btree.h(1493) : see reference to class template instantiation 'btree::b\r\n  tree<Params>' being compiled\r\nc:\\users\\zamb3zi\\.node-gyp\\jxb300\\src\\jx\\btree.h(919): warning C4099: 'btree::btree_internal_locate_compare_to' : type nam\r\ne first seen using 'struct' now seen using 'class' (..\\src\\ffi.cc) [C:\\node_modules\\ffi\\build\\ffi_bindings.vcxproj]\r\n          c:\\users\\zamb3zi\\.node-gyp\\jxb300\\src\\jx\\btree.h(901) : see declaration of 'btree::btree_internal_locate_compare\r\n  _to'\r\nc:\\users\\zamb3zi\\.node-gyp\\jxb300\\src\\jx\\btree.h(918): warning C4099: 'btree::btree_internal_locate_plain_compare' : type\r\nname first seen using 'struct' now seen using 'class' (..\\src\\threaded_callback_invokation.cc) [C:\\node_modules\\ffi\\bui\r\nld\\ffi_bindings.vcxproj]\r\n          c:\\users\\zamb3zi\\.node-gyp\\jxb300\\src\\jx\\btree.h(893) : see declaration of 'btree::btree_internal_locate_plain_c\r\n  ompare'\r\n          c:\\users\\zamb3zi\\.node-gyp\\jxb300\\src\\jx\\btree.h(1493) : see reference to class template instantiation 'btree::b\r\n  tree<Params>' being compiled\r\nc:\\users\\zamb3zi\\.node-gyp\\jxb300\\src\\jx\\btree.h(919): warning C4099: 'btree::btree_internal_locate_compare_to' : type nam\r\ne first seen using 'struct' now seen using 'class' (..\\src\\threaded_callback_invokation.cc) [C:\\node_modules\\ffi\\build\\\r\nffi_bindings.vcxproj]\r\n          c:\\users\\zamb3zi\\.node-gyp\\jxb300\\src\\jx\\btree.h(901) : see declaration of 'btree::btree_internal_locate_compare\r\n  _to'\r\nc:\\users\\zamb3zi\\.node-gyp\\jxb300\\src\\jx\\btree.h(918): warning C4099: 'btree::btree_internal_locate_plain_compare' : type\r\nname first seen using 'struct' now seen using 'class' (..\\src\\callback_info.cc) [C:\\node_modules\\ffi\\build\\ffi_bindings\r\n.vcxproj]\r\n          c:\\users\\zamb3zi\\.node-gyp\\jxb300\\src\\jx\\btree.h(893) : see declaration of 'btree::btree_internal_locate_plain_c\r\n  ompare'\r\n          c:\\users\\zamb3zi\\.node-gyp\\jxb300\\src\\jx\\btree.h(1493) : see reference to class template instantiation 'btree::b\r\n  tree<Params>' being compiled\r\nc:\\users\\zamb3zi\\.node-gyp\\jxb300\\src\\jx\\btree.h(919): warning C4099: 'btree::btree_internal_locate_compare_to' : type nam\r\ne first seen using 'struct' now seen using 'class' (..\\src\\callback_info.cc) [C:\\node_modules\\ffi\\build\\ffi_bindings.vc\r\nxproj]\r\n          c:\\users\\zamb3zi\\.node-gyp\\jxb300\\src\\jx\\btree.h(901) : see declaration of 'btree::btree_internal_locate_compare\r\n  _to'\r\nc:\\users\\zamb3zi\\.node-gyp\\jxb300\\src\\v8.h(179): warning C4506: no definition for inline function 'v8::Persistent<v8::Obje\r\nct> v8::Persistent<v8::Object>::New(v8::Handle<v8::Object>)' (..\\src\\threaded_callback_invokation.cc) [C:\\node_modules\\\r\nffi\\build\\ffi_bindings.vcxproj]\r\nc:\\users\\zamb3zi\\.node-gyp\\jxb300\\src\\v8.h(179): warning C4506: no definition for inline function 'v8::Persistent<v8::Func\r\ntionTemplate> v8::Persistent<v8::FunctionTemplate>::New(v8::Handle<v8::FunctionTemplate>)' (..\\src\\threaded_callback_in\r\nvokation.cc) [C:\\node_modules\\ffi\\build\\ffi_bindings.vcxproj]\r\nc:\\users\\zamb3zi\\.node-gyp\\jxb300\\src\\v8.h(179): warning C4506: no definition for inline function 'v8::Persistent<v8::Obje\r\nct> v8::Persistent<v8::Object>::New(v8::Handle<v8::Object>)' (..\\src\\ffi.cc) [C:\\node_modules\\ffi\\build\\ffi_bindings.vc\r\nxproj]\r\nc:\\users\\zamb3zi\\.node-gyp\\jxb300\\src\\v8.h(179): warning C4506: no definition for inline function 'v8::Persistent<v8::Func\r\ntionTemplate> v8::Persistent<v8::FunctionTemplate>::New(v8::Handle<v8::FunctionTemplate>)' (..\\src\\ffi.cc) [C:\\node_mod\r\nules\\ffi\\build\\ffi_bindings.vcxproj]\r\nc:\\users\\zamb3zi\\.node-gyp\\jxb300\\src\\v8.h(179): warning C4506: no definition for inline function 'v8::Persistent<v8::Obje\r\nct> v8::Persistent<v8::Object>::New(v8::Handle<v8::Object>)' (..\\src\\callback_info.cc) [C:\\node_modules\\ffi\\build\\ffi_b\r\nindings.vcxproj]\r\nc:\\users\\zamb3zi\\.node-gyp\\jxb300\\src\\v8.h(179): warning C4506: no definition for inline function 'v8::Persistent<v8::Func\r\ntionTemplate> v8::Persistent<v8::FunctionTemplate>::New(v8::Handle<v8::FunctionTemplate>)' (..\\src\\callback_info.cc) [C\r\n:\\node_modules\\ffi\\build\\ffi_bindings.vcxproj]\r\n     Creating library C:\\node_modules\\ffi\\build\\Release\\ffi_bindings.lib and object C:\\node_modules\\ffi\\build\\Release\\f\r\n  fi_bindings.exp\r\n  Generating code\r\n  Finished generating code\r\n  ffi_bindings.vcxproj -> C:\\node_modules\\ffi\\build\\Release\\\\ffi_bindings.node\r\nffi@1.3.1 node_modules\\ffi\r\n├── bindings@1.2.1\r\n├── ref-struct@1.0.1\r\n├── nan@1.8.4\r\n├─┬ debug@2.2.0\r\n│ └── ms@0.7.1\r\n└── ref@1.0.2\r\n\r\nC:\\>users\\zamb3zi\\Documents\\stats\\jxcore\\Release\\jx.exe\r\n> require('ffi')\r\nError: The specified module could not be found.\r\nc:\\node_modules\\ffi\\node_modules\\ref\\build\\release\\binding.node\r\n    at Object.process.dlopen [as .node] (node.js:692:25)\r\n    at Module.load (module.js:346:36)\r\n    at Function.Module._load (module.js:313:12)\r\n    at Module.require (module.js:378:17)\r\n    at require (module.js:396:17)\r\n    at bindings (C:\\node_modules\\ffi\\node_modules\\bindings\\bindings.js:76:44)\r\n    at Object.<anonymous> (C:\\node_modules\\ffi\\node_modules\\ref\\lib\\ref.js:5:47)\r\n    at Module._compile (module.js:519:26)\r\n    at Object.Module._extensions..js (module.js:549:10)\r\n    at Module.load (module.js:346:36)\r\n>\r\nC:\\>dir c:\\node_modules\\ffi\\node_modules\\ref\\build\\release\r\n Volume in drive C has no label.\r\n Volume Serial Number is 6AD0-CF80\r\n\r\n Directory of c:\\node_modules\\ffi\\node_modules\\ref\\build\\release\r\n\r\n23/05/2015  15:40    <DIR>          .\r\n23/05/2015  15:40    <DIR>          ..\r\n23/05/2015  15:40               679 binding.exp\r\n23/05/2015  15:40             1,698 binding.lib\r\n23/05/2015  15:40           113,664 binding.node\r\n23/05/2015  15:40         1,788,928 binding.pdb\r\n23/05/2015  15:40    <DIR>          obj\r\n               4 File(s)      1,904,969 bytes\r\n               3 Dir(s)  14,050,238,464 bytes free\r\n```\r\n\r\nFFI was working before. If I install instead with `npm install ffi` then the resulting package works with both node and the installed version of jxcore (v Beta-0.2.3.7). With the trunk build of jxcore, the program exits silently upon `require('ffi')`. Thanks for any help!"},"comment":{"url":"https://api.github.com/repos/jxcore/jxcore/issues/comments/104900832","html_url":"https://github.com/jxcore/jxcore/issues/359#issuecomment-104900832","issue_url":"https://api.github.com/repos/jxcore/jxcore/issues/359","id":104900832,"user":{"login":"obastemur","id":4390745,"avatar_url":"https://avatars.githubusercontent.com/u/4390745?v=3","gravatar_id":"","url":"https://api.github.com/users/obastemur","html_url":"https://github.com/obastemur","followers_url":"https://api.github.com/users/obastemur/followers","following_url":"https://api.github.com/users/obastemur/following{/other_user}","gists_url":"https://api.github.com/users/obastemur/gists{/gist_id}","starred_url":"https://api.github.com/users/obastemur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/obastemur/subscriptions","organizations_url":"https://api.github.com/users/obastemur/orgs","repos_url":"https://api.github.com/users/obastemur/repos","events_url":"https://api.github.com/users/obastemur/events{/privacy}","received_events_url":"https://api.github.com/users/obastemur/received_events","type":"User","site_admin":false},"created_at":"2015-05-23T14:09:22Z","updated_at":"2015-05-23T14:09:22Z","body":"I don't have that 'ref' folder. Could you please delete ffi folder entirely and try a clean install?"}}