Closed DuBistKomisch closed 7 years ago
I can also confirm this.
--target
is required since there is no way to detect which nw version you are building for.
That wasn't the behaviour prior to the version 3 merge, so I assume it was a change upstream, and there's no hope of it being reinstated. Should update the README, since it still uses just nw-gyp build
.
We used to be able to follow the instructions in the NW.js documentation to compile native modules on Windows. Now, they do not work. Something must have changed.
It works for me. See my comments in #107
This is very strange since I'm sure it was working a few weeks ago...
I'm using Windows 8.1 + VS 2015 + node 4.2.6 32-bit + nw-gyp 3.4.0 + nwjs 0.12.2 (same issue occurs with e.g. 0.16.0 though).
I looked into the code and it seems like it expects
gyp.opts.target
to be set, but it isn't. The generatedbuild/config.gypi
hasvariables.target
set properly though, so not really sure what's going wrong. If I runnw-gyp build --target=0.12.2
it works since it also seems to checkargv
.