thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James E. King III" <jk...@apache.org>
Subject Re: Buildling Thrift with VS2017
Date Fri, 12 Oct 2018 12:16:16 GMT
Thrift builds in Appveyor CI successfully.  If you take a look at the build
job and scripts
in build/appveyor, or have a look at build/wincpp (which is a bit out of
date, but should
get you most of the way there), it will show you how to use cmake to build
thrift on
Windows successfully.  (The wincpp batch scripts were a precursor to the
appveyor ones)

- Jim

On Thu, Oct 11, 2018 at 11:09 AM Alex Tu <
alexander.tu@karlsruhe-it-solutions.com> wrote:

> Hey everyone,
> I'm trying to build a C++ client application with thrift and
> I've been trying for hours to build the thrift library from source with
> Visual Studio 2017.
> I just can't manage to succeed.
>
> - I downloaded the Thrift sources (Version 0.11.0 from the website)
> - Installed Boost (1.68.0)
> - Compiled the libevent source
> - Installed OpenSSL
>
> I followed this instruction here
>
> http://olivierhelin.com/blog/c-utils/using-apache-thrift-to-provide-cross-languages-communication
>
> But I'm receiving the following errors:
>
> ...\src\thrift\transport\tbuffertransports.h(452): warning C4003: not
> enough actual parameters for macro 'max'
> ...\src\thrift\transport\tbuffertransports.h(452): error C2589: '(':
> illegal token on right side of '::'
> ...\src\thrift\transport\tbuffertransports.h(452): error C2062: type
> 'unknown-type' unexpected
> ...\src\thrift\transport\tbuffertransports.h(452): error C2059: syntax
> error: ')'
> (about 7 times)
>
> ...\src\libevent-master\include\event.h(44): fatal error C1083: Cannot
> open include file: 'event2/event-config.h': No such file or directory
> (twice, checked the event2 folder, and there is no event-config.h)
>
> ...\src\thrift\transport\thttpserver.cpp(24): fatal error C1083: Cannot
> open include file: 'thrift/config.h': No such file or directory
> (once)
>
> Is there another way to get the thrift libraries? It has to be done for
> C++...
>
> Thanks in advance!
>
> Alex
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message