Compiling 2.4 on Windows - help needed

Questions or HOWTOs about the above? Post 'em here...
Post Reply
nostromo
Private First Class
Private First Class
Posts: 24
Joined: Mon Apr 27, 2009 8:56 pm

Compiling 2.4 on Windows - help needed

Post 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.
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Re: Compiling 2.4 on Windows - help needed

Post by JeffM »

what solution file are you building?
ImageJeffM
nostromo
Private First Class
Private First Class
Posts: 24
Joined: Mon Apr 27, 2009 8:56 pm

Re: Compiling 2.4 on Windows - help needed

Post 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,
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Re: Compiling 2.4 on Windows - help needed

Post 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.
ImageJeffM
nostromo
Private First Class
Private First Class
Posts: 24
Joined: Mon Apr 27, 2009 8:56 pm

Re: Compiling 2.4 on Windows - help needed

Post by nostromo »

Thanks a lot, JeffM

I was able to build it with this source (lot of warnings, but no failures and successful clientbuilding).
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Re: Compiling 2.4 on Windows - help needed

Post 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.
ImageJeffM
Post Reply