Skip to content

Instantly share code, notes, and snippets.

@rgbkrk
Created May 2, 2015 05:46
Show Gist options
  • Save rgbkrk/0846565dcb87beab1f03 to your computer and use it in GitHub Desktop.
Save rgbkrk/0846565dcb87beab1f03 to your computer and use it in GitHub Desktop.
No idea how to build zmq with Electron headers
00:37:32 {master *%>} kyle6475@puter ~/code/jupyter-sidecar/node_modules/zmq$ HOME=~/code/electron/ node-gyp rebuild --target=0.25.0 --arch=x64 --dist-url=https://atom.io/download/atom-shell
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info spawn python
gyp info spawn args [ '/usr/local/lib/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/Users/kyle6475/code/jupyter-sidecar/node_modules/zmq/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/lib/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/kyle6475/code/electron/.node-gyp/0.25.0/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/Users/kyle6475/code/electron/.node-gyp/0.25.0',
gyp info spawn args '-Dmodule_root_dir=/Users/kyle6475/code/jupyter-sidecar/node_modules/zmq',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
CXX(target) Release/obj.target/zmq/binding.o
In file included from ../binding.cc:37:
In file included from ../node_modules/nan/nan.h:74:
In file included from ../node_modules/nan/nan_new.h:181:
../node_modules/nan/nan_implementation_12_inl.h:172:66: error: too many arguments to function call, expected at most 2, have 4
return v8::Signature::New(v8::Isolate::GetCurrent(), receiver, argc, argv);
~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
/Users/kyle6475/code/electron/.node-gyp/0.25.0/deps/v8/include/v8.h:4170:3: note: 'New' declared here
static Local<Signature> New(
^
1 error generated.
make: *** [Release/obj.target/zmq/binding.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack at ChildProcess.emit (events.js:100:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1040:12)
gyp ERR! System Darwin 13.4.0
gyp ERR! command "node" "/usr/local/bin/node-gyp" "rebuild" "--target=0.25.0" "--arch=x64" "--dist-url=https://atom.io/download/atom-shell"
gyp ERR! cwd /Users/kyle6475/code/jupyter-sidecar/node_modules/zmq
gyp ERR! node -v v1.1.0
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
@rgbkrk
Copy link
Author

rgbkrk commented May 2, 2015

Upgrading nan totally fixed this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment