Using Apache Thrift on Windows

I am interested in compiling the generated Thrift code and binding to the economical C ++ library in a Windows environment. After doing some research, I found some recent links:

1) Thrift Win32 Installation using Cygwin / MinGW

2) THRIFT-1031 and corrections THRIFT-1123 for compilation in MS Visual C ++

Using # 1, I was able to compile the linux library using MinGW called libthrift.a. But what I REALLY want to do is generate Thrift code and compile it in WINDOWS using dll or lib Thrift.

In other words, I see how I can use MinGW to compile the Thrift code that WINS on Windows. But I want to have the DEVELOP AND COMPILE code that Thrift uses on Windows. Is it possible?

If not, I believe No. 2 is my only option, but it seems to be still under development.

Any ideas?

+6
source share
3 answers

A patch is available that allows you to compile a lean runtime with C ++ Visual Studio. It would be great if thift developers put this patch in the main code.

https://issues.apache.org/jira/browse/THRIFT-591

+3
source

Thrift 0.8 has Visual Studio 2010 projects for the Thrift compiler and library. A number of contributors have contributed a lot to support the development of Windows VS. Dev release 0.8 can be downloaded as a snapshot or via SVN http://thrift.apache.org/download/

I created projects using Thrift in VS and it works great.

+4
source

Thrift 0.10.0 has much better support for building on Windows.

  • Visual Studio projects in the source, which is the recommended approach on the official website.
  • Visual Studio C ++ projects created by CMake, which are not documented on the official website, but are more convenient.

For detailed instructions, see Apache Thrift on Windows .

0
source

Source: https://habr.com/ru/post/887014/


All Articles