Hi!

Well, good news and bad news.

The good news is that the whole Cap'n Proto core library has worked on
Windows for a few years now.

The bad news is that I don't think anyone has tried making node-capnp work
on Windows.

In theory, porting the serialization code should be pretty easy. The RPC
layer, though, depends on some integration with libuv that likely needs
significant modification to work on WIndows. If you only need
serialization, you could perhaps #ifdef that all out, though.

-Kenton

On Thu, Jan 9, 2020 at 10:30 AM <[email protected]> wrote:

> Hi,
> is there any news about using capnp with nodejs on windows?
>
> On Tuesday, February 3, 2015 at 12:34:20 AM UTC+1, Kenton Varda wrote:
>>
>> Hi Diggory,
>>
>> I'm afraid you're probably right.
>>
>> Even if node-gyp supported it, a node module compiled with MinGW would be
>> unlikely to work with a node compiled with MSVC, due to C++ ABI
>> incompatibilities. And unfortunately, node-capnp depends on *all* of Cap'n
>> Proto's code, including the schema parser and RPC systems, so it likely
>> won't compile on MSVC for some time.
>>
>> Of course, the pure-Javascript implementations of Cap'n Proto should work
>> on Node on Windows, if you don't need RPC.
>>
>> -Kenton
>>
>> On Sun, Feb 1, 2015 at 7:51 PM, Diggory Blake <[email protected]>
>> wrote:
>>
>>> After several attempts, I've come to the conclusion that it's impossible
>>> to use the nodejs bindings for capnp on windows:
>>> - node-gyp does not support building modules with mingw
>>> - capnp only supports lite mode when building with msvc
>>> - nodejs bindings require dynamic, which is not supported in lite mode
>>>
>>> Is there something I haven't thought of? If not, what exactly is
>>> necessary to get this to work?
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Cap'n Proto" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> Visit this group at http://groups.google.com/group/capnproto.
>>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Cap'n Proto" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/capnproto/b81ad830-337b-49cc-86c0-9bafdf26b7a4%40googlegroups.com
> <https://groups.google.com/d/msgid/capnproto/b81ad830-337b-49cc-86c0-9bafdf26b7a4%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Cap'n Proto" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/capnproto/CAJouXQnzmoKybyBz1yayCOrNXVUyrXyLjTa6LmAEyJ_LMiwctA%40mail.gmail.com.

Reply via email to