Skip to content

nodegit no longer builds in nwjs #360

@johnhaley81

Description

@johnhaley81

Building nodegit for nwjs now yields the following:

  CXX(target) Release/obj.target/nodegit/src/nodegit.o
In file included from ../src/nodegit.cc:6:
In file included from ../src/../include/wrapper.h:11:
../node_modules/nan/nan.h:1467:5: error: no matching function for call to 'uv_async_init'
    uv_async_init(
    ^~~~~~~~~~~~~
/Users/johnh/.nw-gyp/0.11.2/src/../deps/uv/include/uv.h:1360:15: note: candidate function not viable: no known conversion from 'void (uv_async_t *)' to 'uv_async_cb'
      (aka 'void (*)(uv_async_t *, int)') for 3rd argument
UV_EXTERN int uv_async_init(uv_loop_t*,
              ^
1 error generated.
make: *** [Release/obj.target/nodegit/src/nodegit.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/nw-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Darwin 14.0.0
gyp ERR! command "node" "/usr/local/bin/nw-gyp" "build"
gyp ERR! cwd /Users/johnh/Development/GitKraken/node_modules/nodegit
gyp ERR! node -v v0.10.33
gyp ERR! nw-gyp -v v0.12.4
gyp ERR! not ok

This seems to be an ongoing issue with nw-gyp via #46 and #57 with seemingly no available solution. I think this stems from updating to the latest nan release in order to support io.js.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions