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

NWJS build not working #654

Closed
Hectorhammett opened this issue May 30, 2016 · 11 comments
Closed

NWJS build not working #654

Hectorhammett opened this issue May 30, 2016 · 11 comments

Comments

@Hectorhammett
Copy link

Hi guys! I'm having issues running Sqlite3 on NWJS. I was using knex with sqlite3, but it crashes my app, but if i try to use sqlite3 directly, it says that it's not found.

So i tried everything to rebuild and it's giving me a huge stack or errors. I can post the stack if you guys need it.

Currently using NWJS 0.15.0 and WIndows 10 machine.

@mangaga
Copy link

mangaga commented May 30, 2016

did you build the sqlite3 like this ?

In windows you’ll need to replace the file
%APPDATA%\npm\node_modules\node-gyp\src\win_delay_load_hook.c with the one at https://github.com/nwjs/nw.js/blob/nw13/tools/win_delay_load_hook.c

from nwjs document:
http://nwjs.readthedocs.io/en/nw14/For%20Users/Advanced/Use%20Native%20Node%20Modules/

@Hectorhammett
Copy link
Author

I already tried it and still giving me the error. Any ideas?

@Hectorhammett
Copy link
Author

Also trying to rebuild with the nw-gwp and gives me an error:
"Undefined Variable modle_name" in binding.gyp.

@mangaga
Copy link

mangaga commented May 31, 2016

The sqlite3 module works with Node.js v0.10.x, v0.12.x, v4.x, and v5.x.
nwjs 0.15.x works with Node.js v6.x。

@Hectorhammett
Copy link
Author

@mangaga I'm trying to build it for 0.13.0 and still no succes, same Stack Error.

@Hectorhammett
Copy link
Author

Here's the stack:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using [email protected]
node-pre-gyp info using [email protected] | win32 | x64
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp info spawn C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe
gyp info spawn args 'build/binding.sln',
gyp info spawn args '/clp:Verbosity=minimal',
gyp info spawn args '/nologo',
gyp info spawn args '/p:Configuration=Release;Platform=x64' DeprecationWarning: child_process: options.customFds option is deprecated. Use options.stdio instead.
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
unpack_sqlite_dep
sqlite3.c
sqlite3.vcxproj -> C:\Users\Hecto\Documents\vicerrectoria\node_modules\sqlite3\build\Release\sqlite3.lib
database.cc
node_sqlite3.cc
statement.cc
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(343): error C2988: unrecognizable template declaration/definition (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrector
ia\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(343): error C2059: syntax error : 'using' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_modules\sqlite3
build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(476): error C2988: unrecognizable template declaration/definition (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrector
ia\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(476): error C2059: syntax error : 'using' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_modules\sqlite3
build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(587): error C2061: syntax error : identifier 'WeakCallbackType' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria
\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(660) : see reference to class template instantiation 'v8::PersistentBase' being compiled
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(655): error C2253: 'PersistentBase' : pure specifier or abstract override specifier only allowed on virtual function (..\s
rc\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(862): error C2253: 'Global' : pure specifier or abstract override specifier only allowed on virtual function (..\src\state
ment.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(865) : see reference to class template instantiation 'v8::Global' being compiled
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(870): error C2988: unrecognizable template declaration/definition (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrector
ia\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(870): error C2059: syntax error : 'using' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_modules\sqlite3
build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(933): error C2989: 'v8::HandleScope' : class template has already been declared as a non-class template (..\src\statement.cc)
[C:\Users\Hecto\Documents\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(326) : see declaration of 'v8::HandleScope'
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(967): error C2989: 'v8::EscapableHandleScope' : class template has already been declared as a non-class template (..\src\stat
ement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(137) : see declaration of 'v8::EscapableHandleScope'
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(997): error C2989: 'v8::Data' : class template has already been declared as a non-class template (..\src\statement.cc) [C:\Us
ers\Hecto\Documents\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(74) : see declaration of 'v8::Data'
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(1131): error C2989: 'v8::Script' : class template has already been declared as a non-class template (..\src\statement.cc) [C:
\Users\Hecto\Documents\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(97) : see declaration of 'v8::Script'
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(1570): error C2989: 'v8::StackTrace' : class template has already been declared as a non-class template (..\src\statement.cc)
[C:\Users\Hecto\Documents\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(102) : see declaration of 'v8::StackTrace'
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(1633): error C2989: 'v8::StackFrame' : class template has already been declared as a non-class template (..\src\statement.cc)
[C:\Users\Hecto\Documents\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(101) : see declaration of 'v8::StackFrame'
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(2048): error C2989: 'v8::Value' : class template has already been declared as a non-class template (..\src\statement.cc) [C:
Users\Hecto\Documents\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(110) : see declaration of 'v8::Value'
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(2054): error C2989: 'v8::Primitive' : class template has already been declared as a non-class template (..\src\statement.cc)
[C:\Users\Hecto\Documents\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(93) : see declaration of 'v8::Primitive'
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(2069): error C2989: 'v8::Boolean' : class template has already been declared as a non-class template (..\src\statement.cc) [C
:\Users\Hecto\Documents\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(70) : see declaration of 'v8::Boolean'
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(2089): error C2989: 'v8::Name' : class template has already been declared as a non-class template (..\src\statement.cc) [C:\U
sers\Hecto\Documents\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(86) : see declaration of 'v8::Name'
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(2457): error C2989: 'v8::String' : class template has already been declared as a non-class template (..\src\statement.cc) [C:
\Users\Hecto\Documents\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(103) : see declaration of 'v8::String'
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(2496): error C2989: 'v8::Symbol' : class template has already been declared as a non-class template (..\src\statement.cc) [C:
\Users\Hecto\Documents\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(105) : see declaration of 'v8::Symbol'
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(2524): error C2989: 'v8::Private' : class template has already been declared as a non-class template (..\src\statement.cc) [C
:\Users\Hecto\Documents\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(107) : see declaration of 'v8::Private'
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(2538): error C2989: 'v8::Number' : class template has already been declared as a non-class template (..\src\statement.cc) [C:
\Users\Hecto\Documents\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(87) : see declaration of 'v8::Number'
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(2553): error C2989: 'v8::Integer' : class template has already been declared as a non-class template (..\src\statement.cc) [C
:\Users\Hecto\Documents\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(82) : see declaration of 'v8::Integer'
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(2567): error C2989: 'v8::Int32' : class template has already been declared as a non-class template (..\src\statement.cc) [C:
Users\Hecto\Documents\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(81) : see declaration of 'v8::Int32'
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(2581): error C2989: 'v8::Uint32' : class template has already been declared as a non-class template (..\src\statement.cc) [C:
\Users\Hecto\Documents\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(108) : see declaration of 'v8::Uint32'
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(2994): error C2989: 'v8::Object' : class template has already been declared as a non-class template (..\src\statement.cc) [C:
\Users\Hecto\Documents\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(89) : see declaration of 'v8::Object'
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3024): error C2989: 'v8::Array' : class template has already been declared as a non-class template (..\src\statement.cc) [C:
Users\Hecto\Documents\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(69) : see declaration of 'v8::Array'
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3219): error C2504: 'v8::Object' : base class undefined (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_mo
dules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3226): error C2061: syntax error : identifier 'FunctionCallback' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectori
a\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3232): error C2061: syntax error : identifier 'FunctionCallback' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectori
a\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3242): error C2059: syntax error : 'return' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_modules\sqlite
3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3242): error C2238: unexpected token(s) preceding ';' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_modu
les\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3247): error C2146: syntax error : missing ';' before identifier 'Call' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicer
rectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3253): error C2270: 'GetName' : modifiers not allowed on nonmember functions (..\src\statement.cc) [C:\Users\Hecto\Documents
vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3261): error C2270: 'GetInferredName' : modifiers not allowed on nonmember functions (..\src\statement.cc) [C:\Users\Hecto\Do
cuments\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3267): error C2270: 'GetDebugName' : modifiers not allowed on nonmember functions (..\src\statement.cc) [C:\Users\Hecto\Docum
ents\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3273): error C2270: 'GetDisplayName' : modifiers not allowed on nonmember functions (..\src\statement.cc) [C:\Users\Hecto\Doc
uments\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3279): error C2270: 'GetScriptLineNumber' : modifiers not allowed on nonmember functions (..\src\statement.cc) [C:\Users\Hect
o\Documents\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3284): error C2270: 'GetScriptColumnNumber' : modifiers not allowed on nonmember functions (..\src\statement.cc) [C:\Users\He
cto\Documents\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3289): error C2270: 'IsBuiltin' : modifiers not allowed on nonmember functions (..\src\statement.cc) [C:\Users\Hecto\Document
s\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3294): error C2270: 'ScriptId' : modifiers not allowed on nonmember functions (..\src\statement.cc) [C:\Users\Hecto\Documents
\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3300): error C2270: 'GetBoundFunction' : modifiers not allowed on nonmember functions (..\src\statement.cc) [C:\Users\Hecto\D
ocuments\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3302): error C2270: 'GetScriptOrigin' : modifiers not allowed on nonmember functions (..\src\statement.cc) [C:\Users\Hecto\Do
cuments\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3306): error C2059: syntax error : 'private' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_modules\sqlit
e3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3307): error C2059: syntax error : ')' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_modules\sqlite3\bui
ld\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3316): error C2504: 'Object' : base class undefined (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_module
s\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3318): error C2504: 'Object' : base class undefined (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_module
s\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3324): error C2143: syntax error : missing ';' before '<' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_
modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3324): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (..\src\statement.cc) [C:\Us
ers\Hecto\Documents\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3324): error C2238: unexpected token(s) preceding ';' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_modu
les\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3325): error C2143: syntax error : missing ';' before '<' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_
modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3325): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (..\src\statement.cc) [C:\Us
ers\Hecto\Documents\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3326): error C2238: unexpected token(s) preceding ';' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_modu
les\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3331): error C2143: syntax error : missing ';' before '<' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_
modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3331): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (..\src\statement.cc) [C:\Us
ers\Hecto\Documents\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3331): error C2238: unexpected token(s) preceding ';' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_modu
les\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3337): error C2061: syntax error : identifier 'Local' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_modu
les\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3339): error C2143: syntax error : missing ';' before '<' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_
modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3339): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (..\src\statement.cc) [C:\Us
ers\Hecto\Documents\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3339): error C2238: unexpected token(s) preceding ';' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_modu
les\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3341): error C2061: syntax error : identifier 'Local' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_modu
les\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3343): error C2143: syntax error : missing ';' before '<' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_
modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3343): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (..\src\statement.cc) [C:\Us
ers\Hecto\Documents\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3343): error C2238: unexpected token(s) preceding ';' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_modu
les\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3345): error C2061: syntax error : identifier 'Value' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_modu
les\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3349): error C2061: syntax error : identifier 'Value' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_modu
les\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3359): error C2143: syntax error : missing ';' before '<' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_
modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3359): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (..\src\statement.cc) [C:\Us
ers\Hecto\Documents\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3359): error C2238: unexpected token(s) preceding ';' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_modu
les\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3362): error C2143: syntax error : missing ';' before '<' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_
modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3362): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (..\src\statement.cc) [C:\Us
ers\Hecto\Documents\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3362): error C2238: unexpected token(s) preceding ';' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_modu
les\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3365): error C2143: syntax error : missing ';' before '<' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_
modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3365): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (..\src\statement.cc) [C:\Us
ers\Hecto\Documents\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3365): error C2238: unexpected token(s) preceding ';' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_modu
les\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3366): error C2143: syntax error : missing ';' before '<' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_
modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3366): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (..\src\statement.cc) [C:\Us
ers\Hecto\Documents\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3367): error C2238: unexpected token(s) preceding ';' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_modu
les\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3370): error C2143: syntax error : missing ';' before '<' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_
modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3370): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (..\src\statement.cc) [C:\Us
ers\Hecto\Documents\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3370): error C2238: unexpected token(s) preceding ';' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_modu
les\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3371): error C2143: syntax error : missing ';' before '<' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_
modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3371): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (..\src\statement.cc) [C:\Us
ers\Hecto\Documents\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3372): error C2238: unexpected token(s) preceding ';' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_modu
les\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3380): error C2061: syntax error : identifier 'Value' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_modu
les\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3384): error C2061: syntax error : identifier 'Value' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_modu
les\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3392): error C2504: 'Object' : base class undefined (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_module
s\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3394): error C2143: syntax error : missing ';' before '<' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_
modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3394): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (..\src\statement.cc) [C:\Us
ers\Hecto\Documents\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3394): error C2238: unexpected token(s) preceding ';' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_modu
les\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3395): error C2143: syntax error : missing ';' before '<' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_
modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3395): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (..\src\statement.cc) [C:\Us
ers\Hecto\Documents\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3395): error C2238: unexpected token(s) preceding ';' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_modu
les\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3402): error C2143: syntax error : missing ';' before '<' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_
modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto\Documents\vicerrectoria\node_modules\nan\nan.h(72): fatal error C1060: compiler is out of heap space (..\src\node_sqlite3.cc) [C:\Users\Hecto\Documents\vicerrect
oria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3402): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (..\src\statement.cc) [C:\Us
ers\Hecto\Documents\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto\Documents\vicerrectoria\node_modules\nan\nan.h(72): fatal error C1060: compiler is out of heap space (..\src\database.cc) [C:\Users\Hecto\Documents\vicerrectoria
\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3404): error C2238: unexpected token(s) preceding ';' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_modu
les\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3406): error C2061: syntax error : identifier 'Value' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_modu
les\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3410): error C2061: syntax error : identifier 'Value' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_modu
les\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3427): error C2504: 'Object' : base class undefined (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_module
s\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3444): error C2628: 'ArrayBuffer::Allocator' followed by 'void' is illegal (did you forget a ';'?) (..\src\statement.cc) [C:
Users\Hecto\Documents\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3470): error C3861: 'data_': identifier not found (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_modules
sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3470): error C2461: 'Contents' : constructor syntax missing formal parameters (..\src\statement.cc) [C:\Users\Hecto\Documents
\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3470): error C2059: syntax error : 'constant' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_modules\sqli
te3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3470): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (..\src\statement.cc) [C:\Us
ers\Hecto\Documents\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3470): error C2143: syntax error : missing ';' before '{' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_
modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3470): error C2334: unexpected token(s) preceding '{'; skipping apparent function body (..\src\statement.cc) [C:\Users\Hecto
Documents\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3472): error C2059: syntax error : 'return' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_modules\sqlite
3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3472): error C2238: unexpected token(s) preceding ';' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_modu
les\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3473): error C2146: syntax error : missing ';' before identifier 'ByteLength' (..\src\statement.cc) [C:\Users\Hecto\Documents
\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3473): error C2270: 'ByteLength' : modifiers not allowed on nonmember functions (..\src\statement.cc) [C:\Users\Hecto\Documen
ts\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3473): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int (..\src\statement.cc) [C:\Us
ers\Hecto\Documents\vicerrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3473): error C2065: 'byte_length_' : undeclared identifier (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node
modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3475): error C2059: syntax error : 'private' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_modules\sqlit
e3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3479): error C2255: 'friend' : not allowed outside of a class definition (..\src\statement.cc) [C:\Users\Hecto\Documents\vice
rrectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3480): error C2059: syntax error : '}' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node_modules\sqlite3\bui
ld\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3480): error C2143: syntax error : missing ';' before '}' (..\src\statement.cc) [C:\Users\Hecto\Documents\vicerrectoria\node

modules\sqlite3\build\node_sqlite3.vcxproj]
C:\Users\Hecto.nw-gyp\0.13.0\deps\v8\include\v8.h(3480): fatal error C1003: error count exceeds 100; stopping compilation (..\src\statement.cc) [C:\Users\Hecto\Documents\vicer
rectoria\node_modules\sqlite3\build\node_sqlite3.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\Hecto\AppData\Roaming\npm\node_modules\nw-gyp\lib\build.js:286:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Windows_NT 10.0.10586
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Hecto\AppData\Roaming\npm\node_modules\nw-gyp\bin\nw-gyp.js" "build" "--runtime=node-webkit" "--target=0.13.0" "--target_arch=x64" "--module=C:\Users\Hecto\Documents\vicerrectoria\node_modules\sqlite3\lib\binding\node-webkit-v0.13.0-win32-x64\node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=C:\Users\Hecto\Documents\vicerrectoria\node_modules\sqlite3\lib\binding\node-webkit-v0.13.0-win32-x64"
gyp ERR! cwd C:\Users\Hecto\Documents\vicerrectoria\node_modules\sqlite3
gyp ERR! node -v v6.2.0
gyp ERR! nw-gyp -v v0.13.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'nw-gyp.cmd build --runtime=node-webkit --target=0.13.0 --target_arch=x64 --module=C:\Users\Hecto\Documents\vicerrectoria\node_modules\sqlite3\lib\binding\node-webkit-v0.13.0-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\Hecto\Documents\vicerrectoria\node_modules\sqlite3\lib\binding\node-webkit-v0.13.0-win32-x64' (1)
node-pre-gyp ERR! stack at ChildProcess. (C:\Users\Hecto\AppData\Roaming\npm\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:191:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:850:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
node-pre-gyp ERR! System Windows_NT 10.0.10586
node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Hecto\AppData\Roaming\npm\node_modules\node-pre-gyp\bin\node-pre-gyp" "build" "--runtime=node-webkit" "--target=0.13.0" "--target_arch=x64"
node-pre-gyp ERR! cwd C:\Users\Hecto\Documents\vicerrectoria\node_modules\sqlite3
node-pre-gyp ERR! node -v v6.2.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.28
node-pre-gyp ERR! not ok
Failed to execute 'nw-gyp.cmd build --runtime=node-webkit --target=0.13.0 --target_arch=x64 --module=C:\Users\Hecto\Documents\vicerrectoria\node_modules\sqlite3\lib\binding\node-webkit-v0.13.0-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\Hecto\Documents\vicerrectoria\node_modules\sqlite3\lib\binding\node-webkit-v0.13.0-win32-x64' (1)

@mangaga
Copy link

mangaga commented May 31, 2016

ok,I’ll descript my building step:

my computer configuration:
python v2.7
visual studio 2010
node.js v5.11.1
nwjs version 0.13.0~0.14.5 all ok

1、install node module node-gyp :
npm install node-gype
2、 you need replace the file of node module of node-gyp:
%APPDATA%\npm\node_modules\node-gyp\src\win_delay_load_hook.c with the one at https://github.com/nwjs/nw.js/blob/nw13/tools/win_delay_load_hook.c
3、building from source with node-gyp not nw-gyp or node-pre-gyp:
npm install sqlite3 --build-from-source --target_arch=x64

if success, then you can use sqlite3 on nwjs or node.js
sqlite3 = require('sqlite3').verbose();

ok, good luck!

@Hectorhammett
Copy link
Author

I finally made the build. I reinstalled Visual Studio 2015 and added some lines of code to the MSVSVersion.py like here:
nwjs/nw.js#4033

For MSVS 2015.

Thanks for your help!

@tmcw
Copy link
Contributor

tmcw commented Jul 19, 2016

nwjs is not yet supported, main ticket is #497

@tmcw tmcw closed this as completed Jul 19, 2016
@Hectorhammett
Copy link
Author

Is there any plans to support NWJS? @tmcw

@tmcw
Copy link
Contributor

tmcw commented Jul 19, 2016

#387 and #409 hold the next steps for node-webkit. It's something we want, but there is no current PR implementing it, and the maintainers of this project are very busy with other tasks. If you absolutely need this feature, the fastest way to get it will be to implement it.

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