Menu Content/Inhalt
Home

Articles

Poker Tips

Login






Lost Password?
No account yet? Register

PokerTH - Forum

homepost replythreaded viewruleshelp
 
<< Start < Prev 1 2 Next > End >>
ChrisC
User

Fresh Boarder
Posts: 1
graphgraph
Karma: 0  
Could not compile svn on Win32 - 2007/06/06 02:35 Hi I downloaded a copy of the svn sources yesterday.

Then I installed all the stuff needed:
Qt Open Source Edition with mingw
and the libraries SDL and boost

now when I tried to make after some compiling time I get the following:

srcnetwin32socket_helper.cpp:31: error: expected `,' or `...' before '*' toke
n
srcnetwin32socket_helper.cpp:31: error: ISO C++ forbids declaration of `ADDRI
NFOW' with no type
srcnetwin32socket_helper.cpp:32: warning: `__stdcall__' attribute only applie
s to function types
srcnetwin32socket_helper.cpp:32: error: typedef `freeaddrinfow_ptr_t' is init
ialized (use __typeof__ instead)
srcnetwin32socket_helper.cpp:32: error: `PADDRINFOW' was not declared in this
scope
srcnetwin32socket_helper.cpp: In function `std::wstring utf8ToWchar(const cha
r*)':
srcnetwin32socket_helper.cpp:50: warning: comparison between signed and unsig
ned integer expressions
srcnetwin32socket_helper.cpp: In function `bool socket_resolve(const char*, c
onst char*, int, int, int, sockaddr*, int)':
srcnetwin32socket_helper.cpp:100: error: `ADDRINFOW' undeclared (first use th
is function)
srcnetwin32socket_helper.cpp:100: error: (Each undeclared identifier is repor
ted only once for each function it appears in.)
srcnetwin32socket_helper.cpp:100: error: expected `;' before "aiHints"
srcnetwin32socket_helper.cpp:101: error: `aiList' undeclared (first use this
function)
srcnetwin32socket_helper.cpp:103: error: `aiHints' undeclared (first use this
function)
srcnetwin32socket_helper.cpp:118: error: `freeaddrinfow_ptr' cannot be used a
s a function
mingw32-make[1]: *** [objsocket_helper.o] Error 1
mingw32-make[1]: Leaving directory `P:/Pokerth'
mingw32-make: *** [release] Error 2


perhaps you have an idea what went wrong ?
  The administrator has disabled public write access.
lotodore
Admin

Admin
Posts: 182
graphgraph
Karma: 10  
Re:Could not compile svn on Win32 - 2007/06/06 04:30 I use MSVC 2005 to compile PokerTH on Windows. All that is needed for this is freely available (MSVC 2005 Express Edition, Platform SDK, QT with MSVC Patch, etc.)

The error you encounter is that the Platform SDK Headers which come with mingw do not contain the definitions for the function GetAddrInfoW

http://msdn2.microsoft.com/en-us/library/ms738519.aspx

This function is new with Win XP SP 2 and is used dynamically (i.e. if available) at this point. However, the struct definitions at compile time are required.

You could try to grab a new version of the mingw Win32 Headers and see if this helps.
--
Use IPv6. http://www.sixxs.net/
  The administrator has disabled public write access.
lotodore
Admin

Admin
Posts: 182
graphgraph
Karma: 10  
Re:Could not compile svn on Win32 - 2007/06/06 21:23 EDIT: Platform SDK was missing.
EDIT: Added link QT + VC (thanks to skub)

These are the instructions to compile PokerTH on Windows using MSVC Express Edition.

1. Get and install MSVC 2005 Express Edition (English version is strongly recommended).

2. Get and install Service Pack 1 for MSVC 2005 Express Edition

3. Get and install a QT related Hotfix for MSVC 2005 SP1:
http://hotfix.xable.net/download
English - Visual Studio 2005 - VS80sp1-KB930859-X86-ENU.exe

More information on this:
http://support.microsoft.com/kb/930198

4. Get and install a new Microsoft Platform SDK

This step can be left out if you use MSVC 2005 Professional instead of the Express Edition.

For example this version:
[about 1 GB download, sorry I cannot tell you which packages are required]
http://www.microsoft.com/downloads/details.aspx?FamilyID=c2b1e300-f358-4523-b479-f53d234cdccf&DisplayLang=en
Update (not required):
http://www.microsoft.com/downloads/details.aspx?familyid=FF6467E6-5BBA-4BF5-B562-9199BE864D29&displaylang=en

5. Get open source QT 4.2.3 from Trolltech and the MSVC patch from the Sourceforge page:

http://sourceforge.net/projects/qtwin

6. Apply the patch and compile QT, make sure you set the proper environment variables.
These pages might help:
http://qtnode.net/wiki/Qt4_with_Visual_Studio
http://321soft.de/321soft/iframe.php?inhalt=qttut [German only]

7. Get boost and bjam and compile boost

Now the worst part:
8. Get and compile(!) (do not use precompiled version) SDL and SDL_mixer (this is a bit tricky, contact me for binaries if you wish)

9. Run
qmake -tp vc
in the pokerth directory

10. Open the vcproj file, and Build all.
--
Use IPv6. http://www.sixxs.net/
  The administrator has disabled public write access.
skub
User

Junior Boarder
Posts: 9
graphgraph
Karma: 0  
Re:Could not compile svn on Win32 - 2007/06/06 21:44 lotodore wrote:
5. Get open source QT from Trolltech and the MSVC patch from the Sourceforge page:

http://sourceforge.net/projects/qtwin

6. Apply the patch and compile QT
This page might help:
http://321soft.de/321soft/iframe.php?inhalt=qttut [sorry it is German only]


Here: http://qtnode.net/wiki/Qt4_with_Visual_Studio is a good english one.
Dont use the Trolltech-Qt-4.3.0 as the "acs-patch" (the patch to get Qt work with MSVC) doesnt work with this one.
4.2.3 works fine.
  The administrator has disabled public write access.
lotodore
Admin

Admin
Posts: 182
graphgraph
Karma: 10  
Re:Could not compile svn on Win32 - 2007/06/06 21:50 Thanks for the hints - I have updated the instructions accordingly. --
Use IPv6. http://www.sixxs.net/
  The administrator has disabled public write access.
pcmattman
User

Junior Boarder
Posts: 7
graphgraph
Karma: 0  
Re:Could not compile svn on Win32 - 2007/06/07 09:53 I can't get Qt to build in MSVC 2005 Express.

MSVC spews errors about 'qhash.h' and 'qmap.h'. Reading further, I found that this is a problem with SP1 with MSVC. So I looked at what they said to do.

When I put in the changes it said to make I got even more errors than before!

Any ideas?

Edit: never mind, I read the patch wrong...
  The administrator has disabled public write access.
<< Start < Prev 1 2 Next > End >>
designed by www.madeyourweb.com