Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error building for node-webkit 0.11.0 on Windows #365

Closed
bwin opened this issue Nov 18, 2014 · 8 comments
Closed

Error building for node-webkit 0.11.0 on Windows #365

bwin opened this issue Nov 18, 2014 · 8 comments

Comments

@bwin
Copy link
Contributor

bwin commented Nov 18, 2014

node-sqlite3 3.0.4
node-webkit 0.11.0
on Windows 7 64bit
with MS Visual Studio 2012 Express (for Windows Desktop)
trying to build for 32bit-Arch
edit: node 0.10.32, npm 1.4.28, node-pre-gyp 0.6.1, nw-gyp 0.12.4

Can anyone help?

This is the output I get:

C:\sqlite3-nw0110> npm install sqlite3 --build-from-source --runtime=node-webkit
 --target_arch=ia32 --target=0.11.0
-
> sqlite3@3.0.4 install C:\sqlite3-nw0110\node_modules\sqlite3
> node-pre-gyp install --fallback-to-build

Die Projekte in dieser Projektmappe werden nacheinander erstellt. Um eine parall
ele Erstellung zu ermöglichen, müssen Sie den Schalter "/m" hinzufügen.
  unpack_sqlite_dep
  sqlite3.c
  sqlite3.vcxproj -> C:\sqlite3-nw0110\node_modules\sqlite3\build\Release\\sqli
  te3.lib
  database.cc
  node_sqlite3.cc
..\src\node_sqlite3.cc(23): error C2661: 'v8::Object::Set': Keine überladene Fu
nktion akzeptiert 3 Argumente [C:\sqlite3-nw0110\node_modules\sqlite3\build\nod
e_sqlite3.vcxproj]
..\src\node_sqlite3.cc(24): error C2661: 'v8::Object::Set': Keine überladene Fu
nktion akzeptiert 3 Argumente [C:\sqlite3-nw0110\node_modules\sqlite3\build\nod
e_sqlite3.vcxproj]
..\src\node_sqlite3.cc(25): error C2661: 'v8::Object::Set': Keine überladene Fu
nktion akzeptiert 3 Argumente [C:\sqlite3-nw0110\node_modules\sqlite3\build\nod
e_sqlite3.vcxproj]
..\src\node_sqlite3.cc(26): error C2661: 'v8::Object::Set': Keine überladene Fu
nktion akzeptiert 3 Argumente [C:\sqlite3-nw0110\node_modules\sqlite3\build\nod
e_sqlite3.vcxproj]
..\src\node_sqlite3.cc(28): error C2661: 'v8::Object::Set': Keine überladene Fu
nktion akzeptiert 3 Argumente [C:\sqlite3-nw0110\node_modules\sqlite3\build\nod
e_sqlite3.vcxproj]
..\src\node_sqlite3.cc(30): error C2661: 'v8::Object::Set': Keine überladene Fu
nktion akzeptiert 3 Argumente [C:\sqlite3-nw0110\node_modules\sqlite3\build\nod
e_sqlite3.vcxproj]
..\src\node_sqlite3.cc(32): error C2661: 'v8::Object::Set': Keine überladene Fu
nktion akzeptiert 3 Argumente [C:\sqlite3-nw0110\node_modules\sqlite3\build\nod
e_sqlite3.vcxproj]
..\src\node_sqlite3.cc(33): error C2661: 'v8::Object::Set': Keine überladene Fu
nktion akzeptiert 3 Argumente [C:\sqlite3-nw0110\node_modules\sqlite3\build\nod
e_sqlite3.vcxproj]
..\src\node_sqlite3.cc(34): error C2661: 'v8::Object::Set': Keine überladene Fu
nktion akzeptiert 3 Argumente [C:\sqlite3-nw0110\node_modules\sqlite3\build\nod
e_sqlite3.vcxproj]
..\src\node_sqlite3.cc(35): error C2661: 'v8::Object::Set': Keine überladene Fu
nktion akzeptiert 3 Argumente [C:\sqlite3-nw0110\node_modules\sqlite3\build\nod
e_sqlite3.vcxproj]
..\src\node_sqlite3.cc(36): error C2661: 'v8::Object::Set': Keine überladene Fu
nktion akzeptiert 3 Argumente [C:\sqlite3-nw0110\node_modules\sqlite3\build\nod
e_sqlite3.vcxproj]
..\src\node_sqlite3.cc(37): error C2661: 'v8::Object::Set': Keine überladene Fu
nktion akzeptiert 3 Argumente [C:\sqlite3-nw0110\node_modules\sqlite3\build\nod
e_sqlite3.vcxproj]
..\src\node_sqlite3.cc(38): error C2661: 'v8::Object::Set': Keine überladene Fu
nktion akzeptiert 3 Argumente [C:\sqlite3-nw0110\node_modules\sqlite3\build\nod
e_sqlite3.vcxproj]
..\src\node_sqlite3.cc(39): error C2661: 'v8::Object::Set': Keine überladene Fu
nktion akzeptiert 3 Argumente [C:\sqlite3-nw0110\node_modules\sqlite3\build\nod
e_sqlite3.vcxproj]
..\src\node_sqlite3.cc(40): error C2661: 'v8::Object::Set': Keine überladene Fu
nktion akzeptiert 3 Argumente [C:\sqlite3-nw0110\node_modules\sqlite3\build\nod
e_sqlite3.vcxproj]
..\src\node_sqlite3.cc(41): error C2661: 'v8::Object::Set': Keine überladene Fu
nktion akzeptiert 3 Argumente [C:\sqlite3-nw0110\node_modules\sqlite3\build\nod
e_sqlite3.vcxproj]
..\src\node_sqlite3.cc(42): error C2661: 'v8::Object::Set': Keine überladene Fu
nktion akzeptiert 3 Argumente [C:\sqlite3-nw0110\node_modules\sqlite3\build\nod
e_sqlite3.vcxproj]
..\src\node_sqlite3.cc(43): error C2661: 'v8::Object::Set': Keine überladene Fu
nktion akzeptiert 3 Argumente [C:\sqlite3-nw0110\node_modules\sqlite3\build\nod
e_sqlite3.vcxproj]
..\src\node_sqlite3.cc(44): error C2661: 'v8::Object::Set': Keine überladene Fu
nktion akzeptiert 3 Argumente [C:\sqlite3-nw0110\node_modules\sqlite3\build\nod
e_sqlite3.vcxproj]
..\src\database.cc(134): error C2661: 'v8::Object::Set': Keine überladene Funkt
ion akzeptiert 3 Argumente [C:\sqlite3-nw0110\node_modules\sqlite3\build\node_s
qlite3.vcxproj]
..\src\node_sqlite3.cc(45): error C2661: 'v8::Object::Set': Keine überladene Fu
nktion akzeptiert 3 Argumente [C:\sqlite3-nw0110\node_modules\sqlite3\build\nod
e_sqlite3.vcxproj]
..\src\database.cc(135): error C2661: 'v8::Object::Set': Keine überladene Funkt
ion akzeptiert 3 Argumente [C:\sqlite3-nw0110\node_modules\sqlite3\build\node_s
qlite3.vcxproj]
..\src\node_sqlite3.cc(46): error C2661: 'v8::Object::Set': Keine überladene Fu
nktion akzeptiert 3 Argumente [C:\sqlite3-nw0110\node_modules\sqlite3\build\nod
e_sqlite3.vcxproj]
..\src\node_sqlite3.cc(47): error C2661: 'v8::Object::Set': Keine überladene Fu
nktion akzeptiert 3 Argumente [C:\sqlite3-nw0110\node_modules\sqlite3\build\nod
e_sqlite3.vcxproj]
..\src\node_sqlite3.cc(48): error C2661: 'v8::Object::Set': Keine überladene Fu
nktion akzeptiert 3 Argumente [C:\sqlite3-nw0110\node_modules\sqlite3\build\nod
e_sqlite3.vcxproj]
..\src\node_sqlite3.cc(49): error C2661: 'v8::Object::Set': Keine überladene Fu
nktion akzeptiert 3 Argumente [C:\sqlite3-nw0110\node_modules\sqlite3\build\nod
e_sqlite3.vcxproj]
..\src\node_sqlite3.cc(50): error C2661: 'v8::Object::Set': Keine überladene Fu
nktion akzeptiert 3 Argumente [C:\sqlite3-nw0110\node_modules\sqlite3\build\nod
e_sqlite3.vcxproj]
..\src\node_sqlite3.cc(51): error C2661: 'v8::Object::Set': Keine überladene Fu
nktion akzeptiert 3 Argumente [C:\sqlite3-nw0110\node_modules\sqlite3\build\nod
e_sqlite3.vcxproj]
..\src\node_sqlite3.cc(52): error C2661: 'v8::Object::Set': Keine überladene Fu
nktion akzeptiert 3 Argumente [C:\sqlite3-nw0110\node_modules\sqlite3\build\nod
e_sqlite3.vcxproj]
..\src\node_sqlite3.cc(53): error C2661: 'v8::Object::Set': Keine überladene Fu
nktion akzeptiert 3 Argumente [C:\sqlite3-nw0110\node_modules\sqlite3\build\nod
e_sqlite3.vcxproj]
..\src\node_sqlite3.cc(54): error C2661: 'v8::Object::Set': Keine überladene Fu
nktion akzeptiert 3 Argumente [C:\sqlite3-nw0110\node_modules\sqlite3\build\nod
e_sqlite3.vcxproj]
..\src\node_sqlite3.cc(55): error C2661: 'v8::Object::Set': Keine überladene Fu
nktion akzeptiert 3 Argumente [C:\sqlite3-nw0110\node_modules\sqlite3\build\nod
e_sqlite3.vcxproj]
..\src\node_sqlite3.cc(56): error C2661: 'v8::Object::Set': Keine überladene Fu
nktion akzeptiert 3 Argumente [C:\sqlite3-nw0110\node_modules\sqlite3\build\nod
e_sqlite3.vcxproj]
..\src\node_sqlite3.cc(57): error C2661: 'v8::Object::Set': Keine überladene Fu
nktion akzeptiert 3 Argumente [C:\sqlite3-nw0110\node_modules\sqlite3\build\nod
e_sqlite3.vcxproj]
..\src\node_sqlite3.cc(58): error C2661: 'v8::Object::Set': Keine überladene Fu
nktion akzeptiert 3 Argumente [C:\sqlite3-nw0110\node_modules\sqlite3\build\nod
e_sqlite3.vcxproj]
  statement.cc
..\src\statement.cc(105): error C2661: 'v8::Object::Set': Keine überladene Funk
tion akzeptiert 3 Argumente [C:\sqlite3-nw0110\node_modules\sqlite3\build\node_
sqlite3.vcxproj]
..\src\statement.cc(278): warning C4244: 'Argument': Konvertierung von 'int64_t
' in 'int', möglicher Datenverlust [C:\sqlite3-nw0110\node_modules\sqlite3\buil
d\node_sqlite3.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `msbuild` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\vbox\AppData\Roaming\npm\nod
e_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 Windows_NT 6.1.7600
gyp ERR! command "node" "C:\\Users\\vbox\\AppData\\Roaming\\npm\\node_modules\\n
w-gyp\\bin\\nw-gyp.js" "rebuild" "--name=sqlite3" "--configuration=Release" "--m
odule_name=node_sqlite3" "--version=3.0.4" "--major=3" "--patch=4" "--runtime=no
de-webkit" "--node_abi=node-webkit-v0.11.0" "--target=0.11.0" "--platform=win32"
 "--target_platform=win32" "--arch=ia32" "--target_arch=ia32" "--module_main=./l
ib/sqlite3" "--host=https://mapbox-node-binary.s3.amazonaws.com/" "--module_path
=C:\\sqlite3-nw0110\\node_modules\\sqlite3\\lib\\binding\\node-webkit-v0.11.0-wi
n32-ia32" "--module=C:\\sqlite3-nw0110\\node_modules\\sqlite3\\lib\\binding\\nod
e-webkit-v0.11.0-win32-ia32\\node_sqlite3.node" "--remote_path=./sqlite3/v3.0.4/
" "--package_name=node-webkit-v0.11.0-win32-ia32.tar.gz" "--staged_tarball=build
\\stage\\sqlite3\\v3.0.4\\node-webkit-v0.11.0-win32-ia32.tar.gz" "--hosted_path=
https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.0.4/" "--hosted_tarball=h
ttps://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.0.4/node-webkit-v0.11.0-wi
n32-ia32.tar.gz"
gyp ERR! cwd C:\sqlite3-nw0110\node_modules\sqlite3
gyp ERR! node -v v0.10.32
gyp ERR! nw-gyp -v v0.12.4
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'nw-gyp.cmd rebuild --name=sqli
te3 --configuration=Release --module_name=node_sqlite3 --version=3.0.4 --major=3
 --patch=4 --runtime=node-webkit --node_abi=node-webkit-v0.11.0 --target=0.11.0
--platform=win32 --target_platform=win32 --arch=ia32 --target_arch=ia32 --module
_main=./lib/sqlite3 --host=https://mapbox-node-binary.s3.amazonaws.com/ --module
_path=C:\sqlite3-nw0110\node_modules\sqlite3\lib\binding\node-webkit-v0.11.0-win
32-ia32 --module=C:\sqlite3-nw0110\node_modules\sqlite3\lib\binding\node-webkit-
v0.11.0-win32-ia32\node_sqlite3.node --remote_path=./sqlite3/v3.0.4/ --package_n
ame=node-webkit-v0.11.0-win32-ia32.tar.gz --staged_tarball=build\stage\sqlite3\v
3.0.4\node-webkit-v0.11.0-win32-ia32.tar.gz --hosted_path=https://mapbox-node-bi
nary.s3.amazonaws.com/sqlite3/v3.0.4/ --hosted_tarball=https://mapbox-node-binar
y.s3.amazonaws.com/sqlite3/v3.0.4/node-webkit-v0.11.0-win32-ia32.tar.gz' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (C:\sqlite3-nw0110\node_
modules\sqlite3\node_modules\node-pre-gyp\lib\util\compile.js:76:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
node-pre-gyp ERR! stack     at maybeClose (child_process.js:756:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_proces
s.js:823:5)
node-pre-gyp ERR! System Windows_NT 6.1.7600
node-pre-gyp ERR! command "node" "C:\\sqlite3-nw0110\\node_modules\\sqlite3\\nod
e_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\sqlite3-nw0110\node_modules\sqlite3
node-pre-gyp ERR! node -v v0.10.32
node-pre-gyp ERR! node-pre-gyp -v v0.6.1
node-pre-gyp ERR! not ok
Failed to execute 'nw-gyp.cmd rebuild --name=sqlite3 --configuration=Release --m
odule_name=node_sqlite3 --version=3.0.4 --major=3 --patch=4 --runtime=node-webki
t --node_abi=node-webkit-v0.11.0 --target=0.11.0 --platform=win32 --target_platf
orm=win32 --arch=ia32 --target_arch=ia32 --module_main=./lib/sqlite3 --host=http
s://mapbox-node-binary.s3.amazonaws.com/ --module_path=C:\sqlite3-nw0110\node_mo
dules\sqlite3\lib\binding\node-webkit-v0.11.0-win32-ia32 --module=C:\sqlite3-nw0
110\node_modules\sqlite3\lib\binding\node-webkit-v0.11.0-win32-ia32\node_sqlite3
.node --remote_path=./sqlite3/v3.0.4/ --package_name=node-webkit-v0.11.0-win32-i
a32.tar.gz --staged_tarball=build\stage\sqlite3\v3.0.4\node-webkit-v0.11.0-win32
-ia32.tar.gz --hosted_path=https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v
3.0.4/ --hosted_tarball=https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.0
.4/node-webkit-v0.11.0-win32-ia32.tar.gz' (1)

npm ERR! sqlite3@3.0.4 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sqlite3@3.0.4 install script.
npm ERR! This is most likely a problem with the sqlite3 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build
npm ERR! You can get their info via:
npm ERR!     npm owner ls sqlite3
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7600
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "sqlite3" "--build-from-sourc
e" "--runtime=node-webkit" "--target_arch=ia32" "--target=0.11.0"
npm ERR! cwd C:\sqlite3-nw0110
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0
@bwin
Copy link
Contributor Author

bwin commented Nov 18, 2014

In the meantime, could anyone give me a compiled sqlite3 for node-webkit 0.11.0 on 32bit windows? This would help me a lot.

@bwin
Copy link
Contributor Author

bwin commented Nov 18, 2014

Maybe this doesn't belong here, but I also get the error C2661: 'v8::Object::Set' when I try to build for AtomShell > 0.17.2 (0.16.0 - 0.17.2 works, 0.18.0 - 0.19.2 I get these error C2661's)

@bwin
Copy link
Contributor Author

bwin commented Nov 18, 2014

If I build for node-webkit 0.10.5 it works fine.

@bwin
Copy link
Contributor Author

bwin commented Nov 20, 2014

springmeyer wrote on #366

We don't support NW 0.11.x yet, stick with 0.10 for now.

@springmeyer or was that just mac-related?

@springmeyer
Copy link
Contributor

we don't suppot nw 0.11.x at all at this point, nothing specific to mac. Although @Mithgol is the expert here.

@Mithgol
Copy link
Contributor

Mithgol commented Nov 24, 2014

Yep, our lack of support for the newest node-webkit does not vary with the operating system. It's just that the new node-webkit's inner Node.js engine's version (v0.11.13) is already too old for a newer nan that we use. And we have to use a newer nan to maintain the newest Node.js (v0.11.14) as a target.

It's quite possible to do something about it, and I've had a pretty idea (or two) in #362, but I haven't had enough time to try them yet. Maybe later, but also definitely not today or toworrow. (←Moscow Time)

@bwin
Copy link
Contributor Author

bwin commented Nov 24, 2014

Mithgol, thanks for explaining why.

@bwin
Copy link
Contributor Author

bwin commented Nov 25, 2014

Maybe it's not nan's fault.
Tried to compile sqlite3@3.0.4 for node-webkit@0.11.0 with manually downgraded nan@1.3.0, but got the same errors.
Also tried older sqlite3 releases (3.0.2, 3.0.0, 2.2.6) without success.

The same problem also exists with atom-shell>=0.18.0
BTW atom-shell uses node@0.11.14 since 0.17.0 (And I can compile sqlite3@3.0.4 for atom-shell@0.16.2 [based on node@0.11.13] and for atom-shell@0.17.2)

Both projects mention an update to chromium 38 in their changelogs at the exact version which I can't compile for (node-webkit>=0.11.0 and atom-shell>=0.18.0).

The error comes from the macros DEFINE_CONSTANT_INTEGER, DEFINE_CONSTANT_STRING and NODE_SET_PROTOTYPE_METHOD. They generate code that raises this error C2661 'v8::Object::Set': Keine überladene Funktion akzeptiert 3 Argumente (german for 'No overloaded function takes 3 arguments).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants