thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lars Benner <LBen...@tomtec.de>
Subject RE: Compiling 0.9.1 under Windows
Date Mon, 17 Mar 2014 08:47:28 GMT
Hi ┼Żygimantas,

>From what I can tell, the mingw part is missing a reference to the Thrift libs. 

Is the Visual Studio variant compiling, with TARGET_WIN_XP not commented out?

- Lars


-----Original Message-----
From: ┼Żygimantas Butkus [mailto:zygjys@gmail.com] 
Sent: Sunday, March 16, 2014 7:21 PM
To: user@thrift.apache.org
Subject: Compiling 0.9.1 under Windows

Hello,
I'm trying to build a Thrift library on Windows for past two days... My project works great
on Linux platform and now I want to port cpp client side to Windows. I'm using QT.
At the moment QT with mingw compiler gives me following error in gen-cpp/serv.cpp file(thrift
source  files included as path):

19:52:33: Running steps for project GUI...

19:52:33: Configuration unchanged, skipping qmake step.

19:52:33: Starting: "E:\Qt\Tools\mingw48_32\bin\mingw32-make.exe"

E:/Qt/Tools/mingw48_32/bin/mingw32-make -f Makefile.Release

mingw32-make[1]: Entering directory
'C:/Users/buzzy/Desktop/television-4e17a407ed01/build-GUI-Desktop_Qt_5_2_1_MinGW_32bit-Release'

g++ -Wl,-s -Wl,-subsystem,windows -mthreads -o release\GUI.exe
object_scriptGUI.Release -lglu32 -lopengl32 -lgdi32 -luser32 -lmingw32 -lqtmain -LC:/Users/buzzy/Desktop/boost_1_55_0/stage/lib/
-llibboost_filesystem-vc110-mt-1_55 -llibboost_system-vc110-mt-1_55
-llibboost_thread-vc110-mt-1_55 -LE:\Qt\5.2.1\mingw48_32\lib -lQt5Widgets -lQt5Network -lQt5Gui
-lQt5Core

./release\serv.o:serv.cpp:(.text+0x74b): undefined reference to
`apache::thrift::TApplicationException::write(apache::thrift::protocol::TProtocol*)
const'

./release\serv.o:serv.cpp:(.text+0x1356): undefined reference to
`apache::thrift::TApplicationException::write(apache::thrift::protocol::TProtocol*)
const'

./release\serv.o:serv.cpp:(.text+0x4281): undefined reference to
`apache::thrift::TApplicationException::write(apache::thrift::protocol::TProtocol*)
const'

Makefile.Release:178: recipe for target 'release\GUI.exe' failed

./release\serv.o:serv.cpp:(.text+0x4e75): undefined reference to
`apache::thrift::TApplicationException::write(apache::thrift::protocol::TProtocol*)
const'

...


What can be wrong here?
Also I'm trying to build MV2010 project included in 0.9.1 ver. And if I comment out the "#
 define TARGET_WIN_XP 1" part, I'm getting these errors(boost source included in path):

1>  TWinsockSingleton.cpp
1>c:\users\buzzy\desktop\thrift2\thrift-0.9.1\lib\cpp\src\thrift\windows\winfcntl.h(45):
error C2065: 'thrift_pollfd' : undeclared identifier
1>c:\users\buzzy\desktop\thrift2\thrift-0.9.1\lib\cpp\src\thrift\windows\winfcntl.h(45):
error C2065: 'fdArray' : undeclared identifier
1>c:\users\buzzy\desktop\thrift2\thrift-0.9.1\lib\cpp\src\thrift\windows\winfcntl.h(45):
error C2275: 'ULONG' : illegal use of this type as an expression
1>          c:\program files (x86)\microsoft
sdks\windows\v7.0a\include\windef.h(48) : see declaration of 'ULONG'
1>c:\users\buzzy\desktop\thrift2\thrift-0.9.1\lib\cpp\src\thrift\windows\winfcntl.h(45):
error C2146: syntax error : missing ')' before identifier 'nfds'
1>c:\users\buzzy\desktop\thrift2\thrift-0.9.1\lib\cpp\src\thrift\windows\winfcntl.h(45):
error C2078: too many initializers
1>c:\users\buzzy\desktop\thrift2\thrift-0.9.1\lib\cpp\src\thrift\windows\winfcntl.h(45):
error C2275: 'ULONG' : illegal use of this type as an expression
1>          c:\program files (x86)\microsoft
sdks\windows\v7.0a\include\windef.h(48) : see declaration of 'ULONG'
1>c:\users\buzzy\desktop\thrift2\thrift-0.9.1\lib\cpp\src\thrift\windows\winfcntl.h(45):
error C2059: syntax error : ')'
1>  SocketPair.cpp
....

Could someone help me here, I'm completely lost. Thank you.

Mime
View raw message