It says that I can download the latest source code and just run the included vcbuild.bat to make a windows build. This also works fine as far as I can see but I'm not able to create my c++ module under visual studio because I can not link it to the node.lib file, which should have been created with vcbuild.
Any idea why the file is missing? I tried different versions of the source code. Some create a Release folder, some create a Debug folder, where the node.lib should be located in, but it's not (there a lot of other different files though)!
Hope anyone has an idea, help would be much appreciated! Thanks
> It says that I can download the latest source code and just run the
> included vcbuild.bat to make a windows build. This also works fine as far
> as I can see
> but I'm not able to create my c++ module under visual studio because I can
> not link it to the node.lib file, which should have been created with
> vcbuild.
> Any idea why the file is missing? I tried different versions of the source
> code. Some create a Release folder, some create a Debug folder, where the
> node.lib
> should be located in, but it's not (there a lot of other different files
> though)!
> Hope anyone has an idea, help would be much appreciated!
> Thanks
You don't need to build your own copy of node to build native addons.
Just use node-gyp instead, and it takes care of all the dirty work for
you (like linking to the node.lib file).
On Fri, Oct 26, 2012 at 4:38 AM, José F. Romaniello
<jfromanie...@gmail.com> wrote:
> Hello Erik, have you tried running ```vcbuild.bat --debug``` from the
> command line? I dont remember if it is --debug or just debug in windows.
> Sorry I didnt reply the private mail about this, just saw the two
>> Just for evaluation, I wanted to try to write a C++ module for Node.js
>> under Windows and found this useful blogpost, which I wanted to reproduce.
>> It says that I can download the latest source code and just run the
>> included vcbuild.bat to make a windows build. This also works fine as far as
>> I can see
>> but I'm not able to create my c++ module under visual studio because I can
>> not link it to the node.lib file, which should have been created with
>> vcbuild.
>> Any idea why the file is missing? I tried different versions of the source
>> code. Some create a Release folder, some create a Debug folder, where the
>> node.lib
>> should be located in, but it's not (there a lot of other different files
>> though)!
>> Hope anyone has an idea, help would be much appreciated!
>> Thanks
After you get node.sln after vcbuild.bat, build it in debug and release uisng Visual Studio. Then the lib should be in Debug directory or Release directory.
> It says that I can download the latest source code and just run the > included vcbuild.bat to make a windows build. This also works fine as far > as I can see > but I'm not able to create my c++ module under visual studio because I can > not link it to the node.lib file, which should have been created with > vcbuild.
> Any idea why the file is missing? I tried different versions of the source > code. Some create a Release folder, some create a Debug folder, where the > node.lib > should be located in, but it's not (there a lot of other different files > though)!
> Hope anyone has an idea, help would be much appreciated! > Thanks