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 » Sat Aug 06, 2011 3:42 pm

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: 5149
Joined: Fri Dec 13, 2002 4:11 am
Location: [Redacted]
Contact:

Re: Compiling 2.4 on Windows - help needed

Post by JeffM » Sat Aug 06, 2011 5:04 pm

what solution file are you building?

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 » Sat Aug 06, 2011 5:44 pm

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: 5149
Joined: Fri Dec 13, 2002 4:11 am
Location: [Redacted]
Contact:

Re: Compiling 2.4 on Windows - help needed

Post by JeffM » Sat Aug 06, 2011 6:41 pm

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.

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 » Sat Aug 06, 2011 10:10 pm

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: 5149
Joined: Fri Dec 13, 2002 4:11 am
Location: [Redacted]
Contact:

Re: Compiling 2.4 on Windows - help needed

Post by JeffM » Sat Aug 06, 2011 11:19 pm

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests