Page 1 of 1

Compiling 2.4 on Windows - help needed

Posted: Sat Aug 06, 2011 3:42 pm
by nostromo
I tried to compile 2.4 with VC2008++ , but I have some problems here. Maybe one can point me in the right direction;
I was able to compile 2.0. based on this guide http://my.bzflag.org/bb/viewtopic.php?f ... 75&start=0, so I thought I give 2.4 a try, using the same environment.

But the first problem I stumbled about is:

fatal error C1083: Datei (Include) kann nicht geöffnet werden: "sys/socket.h": No such file or directory c:\bzflag\2.4\source.2.4\bzflag-2.4.0\src\other\ares\ares_build.h

I know this means sys/socket.h is missing, but thats a linux library/header.

Re: Compiling 2.4 on Windows - help needed

Posted: Sat Aug 06, 2011 5:04 pm
by JeffM
what solution file are you building?

Re: Compiling 2.4 on Windows - help needed

Posted: Sat Aug 06, 2011 5:44 pm
by nostromo
I´m building the .../MSVC/build/bzflag.sln as Win32 Release

Beside that, another problems seems to be the .../MSVC/build/libcurl.vcpoj is missing,

Re: Compiling 2.4 on Windows - help needed

Posted: Sat Aug 06, 2011 6:41 pm
by JeffM
It seems the source distribution that is built by Linux users doesn't get all the files it should.
Please use this source file that I've made from a SVN export. It will have all you need.

http://sourceforge.net/projects/bzflag/ ... p/download

You should not have to do any of that curl or ares stuff that the old 2.0.x builds had to do. The 2.4 builds are rather self contained.

Re: Compiling 2.4 on Windows - help needed

Posted: Sat Aug 06, 2011 10:10 pm
by nostromo
Thanks a lot, JeffM

I was able to build it with this source (lot of warnings, but no failures and successful clientbuilding).

Re: Compiling 2.4 on Windows - help needed

Posted: Sat Aug 06, 2011 11:19 pm
by JeffM
Yes due to the gcc build ( linux and mac ) not being set up to be strict about type checking, there are lots of warnings, many of them in third party libs that we can not fix.