Re: [nodejs] Re: Building node-sqlite for Windows

2012-03-04 Thread Lam
I just didn't know what I am doing here... LOL. I notice that node/your binding module is searching for the following directory when I first put the node_sqlite3.node file into the same directory of lib. So Release is one of the folder to it. I guess that I will use the proper folder under b

Re: [nodejs] Re: Building node-sqlite for Windows

2012-03-04 Thread Nathan Rajlich
> node_sqlite3.node    C:\Internet_Download\TooTallNate_SQLite3\build\Release >  node_sqlite3\Release Why did you copy into Release and not build/Release? It worked in this case because of legacy purposes that node-bindings handles for you, but the "official" place for the modules to build into is

Re: [nodejs] Re: Building node-sqlite for Windows

2012-03-04 Thread Lam
Nathan, Yes, reading that section makes more sense now and I should have read that first. So the explanation on the package.json makes sense and once you know the entry point, the rest is easy to follow. I've got this to work now! I probably make this too complicate to begin with by putting

Re: [nodejs] Re: Building node-sqlite for Windows

2012-03-04 Thread Nathan Rajlich
Lam, definitely read up on how modules work, but the questions you were asking are more related to how "packages" work (as in, a collection of modules in a directory tree). The heart of how packages work is the package.json file, which describes, among other things, the entry point of the package a

Re: [nodejs] Re: Building node-sqlite for Windows

2012-03-04 Thread Lam
Well, I am reading the modules section on nodejs.org now Hope this will help me understand this build process. Thanks. On Sunday, March 4, 2012 2:31:09 PM UTC-5, Lam wrote: > > Nathan, > > Just log a new issue per your request in github titled "Trouble using > node-gyp to build node-sqlite

Re: [nodejs] Re: Building node-sqlite for Windows

2012-03-04 Thread Lam
Nathan, Just log a new issue per your request in github titled "Trouble using node-gyp to build node-sqlite3 in Windows XP". Hope this makes sense to you. Thanks and I will give your suggestion a try now with the node_sqlite3.node file. What puzzles me though is that in installing other mo

[nodejs] Re: Building node-sqlite for Windows

2012-03-03 Thread mscdex
On Mar 3, 4:54 pm, Nathan Rajlich wrote: > mscdex, if you haven't already, I recommend checking out node-gyp. It makes > all the steps in your node-win-dev example a lot simpler. Maybe, depending on the type and size of the project. The couple of bindings I've needed so far on Windows (node-sqlit

Re: [nodejs] Re: Building node-sqlite for Windows

2012-03-03 Thread Nathan Rajlich
Hey Jude, please open an Issue on the node-gyp issue tracker about the trouble you are having while building. I haven't seen that one yet. Include the Windows version you are using. Also, once you have the compiled bindings (which you have, in build/Release/node_sqlite3.node), just try firing up n

Re: [nodejs] Re: Building node-sqlite for Windows

2012-03-03 Thread C. Mundi
I may have misspoken from memory. As I sit here I do not recall the command to build with gyp...too much going on...I apologize if I confused things. TooTallNate got it working in the first place. If you're still having trouble when I get back on Friday drip me a note and I will get out my notes

[nodejs] Re: Building node-sqlite for Windows

2012-03-03 Thread mscdex
On Mar 3, 2:38 pm, Jude Lam wrote: > Thanks for the pointer on the vcbuild.bat.  Since i use the Windows msi > install file directly, it doesn't have all the source codes for node. This should be all you need: http://mscdex.net/upload/node-win-dev.zip Extract that, set NODE_ROOT to that path (not

Re: [nodejs] Re: Building node-sqlite for Windows

2012-03-03 Thread Jude Lam
mscdex, Thanks for the pointer on the vcbuild.bat. Since i use the Windows msi install file directly, it doesn't have all the source codes for node. Per my last email, I use the msbuild command and it appears that it generates the node_sqlite3.lib and node_sqlite3.node files. I can see these fi

[nodejs] Re: Building node-sqlite for Windows

2012-03-03 Thread mscdex
FWIW here's a vcbuild.bat that I use for building the node-sqlite3 on Windows (for use with node v0.6): https://gist.github.com/d831529c9c08c754ee47 Just make sure the the deps/ folder contains sqlite3.c and sqlite3.h and that you have NODE_ROOT set to the root (of the node source) where it can fi

Re: [nodejs] Re: Building node-sqlite for Windows

2012-03-01 Thread C. Mundi
Hi. Node-sqlite3 is indeed a native (i.e. not pure JavaScript) module which must be built for your target OS and node API version. On Windows, this means you will need to download the free Visual Studio Express 2010 (the current release). The good news is, you don't need to know anything about V

[nodejs] Re: Building node-sqlite for Windows

2012-03-01 Thread Lam
C. Mundi, I am very new to node.js and github for that matter. I am trying to install the node-sqlite3 module in my Windows XP Pro environment (yup, it's still stable for now...). Well, first I try npm install sqlite3 and I receive all kinds of errors that I have listed below. As you can see