开发者

Thrift / Google Protocol Buffers on Windows

开发者 https://www.devze.com 2022-12-23 02:47 出处:网络
Looking at Thrift and Google Protocol Buffers to implement some qui开发者_如何学Cck RPC code. Thrift would be perfect if the generated C++ code compiled on windows (which is what I need). And of cours

Looking at Thrift and Google Protocol Buffers to implement some qui开发者_如何学Cck RPC code. Thrift would be perfect if the generated C++ code compiled on windows (which is what I need). And of course, GPB creates RPC stubs, but no implementation.

Is there a way to get Thrift Windows friendly? Or, even better, are there any RPC implementations available freely for generated C++ protobuf stubs (a Java counterpart would be nice too, but is not necessary).

Thanks


Try Zeroc ICE


Is there a way to get Thrift Windows friendly?

According to this page on the Thrift wiki, it is not possible.

The following instructions are for making the thrift compiler only. The Thrift C++ runtime library does not currently work on Windows. This means that you'll be able to compile ThriftIDL files to C++/Java/Python/etc., but you won't be able to compile and run the generated C++ code under Windows.


You can installing thrift following this "guide". Look also at my solution at the bottom, to let it works on windows.

0

精彩评论

暂无评论...
验证码 换一张
取 消