Node-sqlite3 build on windows

721 views
Skip to first unread message

Ян Жабин

unread,
May 2, 2013, 10:12:20 AM5/2/13
to node-...@googlegroups.com
Please help me, who can build sqlite3 for node-webkit 0.5.1. I succesfull build it under linux x64. but windows..I install all dependencies like python, .net sdk, set variable PATH and others. All my attempts was failed...
Now i use different version on different platforms. For windows i use this Work fine for 0.4.2  node-webkit version.
It would be nice if someone did something like for 0.5.1. Thanks
 

Mike Parsons

unread,
May 2, 2013, 10:57:34 AM5/2/13
to node-...@googlegroups.com
I did this using the instructions here ... https://github.com/rogerwang/node-webkit/wiki/Build-native-modules-with-nw-gyp

I basically cloned this repo https://github.com/developmentseed/node-sqlite3 on my windows box

Attached is the native module ... try it and see if it works for you ...

I've tried this successfully with a number of node-webkit builds but for some reason, I get a general fault in nw.exe for version 0.5.1

It would be nice if someone on the node-webkit team could troubleshoot this 

pretty please :-)
node_sqlite3.node

Ян Жабин

unread,
May 2, 2013, 11:22:20 AM5/2/13
to node-...@googlegroups.com
Thanks! It works!

четверг, 2 мая 2013 г., 17:57:34 UTC+3 пользователь Mike Parsons написал:

Alex Casanova

unread,
May 17, 2013, 8:24:08 PM5/17/13
to node-...@googlegroups.com
 Mike, Excuse my ignorance, could someone just update the node_sqlite3.node file or have to build just as you did. I tried to just update the file but didn't work. Did you build using sqlite3 v2.1.7?

Mike Parsons

unread,
May 21, 2013, 8:40:48 AM5/21/13
to node-...@googlegroups.com
Here you go ... built with the latest sqlite version (3.7.17)  from here ... http://sqlite.org/download.html


--
You received this message because you are subscribed to a topic in the Google Groups "node-webkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-webkit/FVhjdoGXpZM/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to node-webkit...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

node_sqlite3.node

atwi...@gmail.com

unread,
Aug 4, 2013, 11:41:46 PM8/4/13
to node-...@googlegroups.com
thank you, it's ok now.

在 2013年5月2日星期四UTC+8下午10时12分20秒,Ян Жабин写道:

eaose...@gmail.com

unread,
Feb 13, 2017, 4:16:53 AM2/13/17
to nw.js, node-...@googlegroups.com
Friends, it am quite new to nw.js.
We are facing problem with sqlite3 as described in this thread.
Could someone please simplify how to get require('sqlite3') working on Windows 10, 64bit machine.
How to make use of attached file node_sqlite3.node.

Please help us with steps. Thanks in advance.

eaose...@gmail.com

unread,
Feb 13, 2017, 4:35:37 AM2/13/17
to nw.js, node-...@googlegroups.com
Hi,

It seems you have already mastered the sqlite3 build for nw.js.
I am using:
nw.js v0.20.1
Node v7.5.0
Chromium 56.0.2924.87

I have done the following:
1. installed nw-gyp
2. Installed VC++ tool chain
3. Tried: npm install sqlite3 --build-from-source --runtime=node-webkit --target_arch=x64 --target=0.20.1
4. sqlite3 is installed under 'node_modules' folder
5. When I run my nwjs app, I get following error for  require('sqlite3').
==============
Error [Copied from Inspect DevTool]
Uncaught Error: Cannot find module 'c:\nw-sdk\apps\my-app\node_modules\sqlite3\lib\binding\node-webkit-v0.20.1-win32-x64\node_sqlite3.node'
    at Function.Module._resolveFilename (module.js:494:15)
    at Function.Module._load (module.js:437:25)
    at Module.require (module.js:522:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (c:\nw-sdk\apps\my-app\node_modules\sqlite3\lib\sqlite3.js:4:15)
    at Module._compile (module.js:595:32)
    at Object.Module._extensions..js (module.js:610:10)
    at Module.load (module.js:512:32)
    at tryModuleLoad (module.js:471:12)
    at Function.Module._load (module.js:463:3)

Any help would definitely will be really appreciated.
Thanks! 
- Bilal
Reply all
Reply to author
Forward
0 new messages