Compile guide for MSVC 2005

Discuss the future of Warzone 2100 with us.
Post Reply
briantan1979
New user
Posts: 3
Joined: 05 Nov 2007, 05:18

Compile guide for MSVC 2005

Post by briantan1979 » 05 Nov 2007, 12:36

Hi all,

Can anyone here provide with a compile guide for MSVC 2005.

I have downloaded the source from http://download.gna.org/warzone/release ... c1.tar.bz2 and the MSVC developer's package from http://download.gna.org/warzone/develop ... -latest.7z

How do I continue from here? I have loaded the Warzone2100.sln solution from Win32 and tried compiling but I got an error "bison.exe is not recognized as an internal or external command" ...

Could someone make a sticky for compile instructions for MSVC and other tools ? Or direct me to one if there's any.

Wondering what are the tools needed and the versions of these tools that have been tested to work with the source.

Please help. I want to modify Warzone 2100 to demonstrate my research concept into AI and scheduling.

Thanks.

User avatar
Watermelon
Code contributor
Code contributor
Posts: 551
Joined: 08 Oct 2006, 09:37

Re: Compile guide for MSVC 2005

Post by Watermelon » 05 Nov 2007, 19:58

briantan1979 wrote: Hi all,

Can anyone here provide with a compile guide for MSVC 2005.

I have downloaded the source from http://download.gna.org/warzone/release ... c1.tar.bz2 and the MSVC developer's package from http://download.gna.org/warzone/develop ... -latest.7z

How do I continue from here? I have loaded the Warzone2100.sln solution from Win32 and tried compiling but I got an error "bison.exe is not recognized as an internal or external command" ...

Could someone make a sticky for compile instructions for MSVC and other tools ? Or direct me to one if there's any.

Wondering what are the tools needed and the versions of these tools that have been tested to work with the source.

Please help. I want to modify Warzone 2100 to demonstrate my research concept into AI and scheduling.

Thanks.
you better try compiling the svn source since the 2.0.8 source is very dated and doesnt 'sync' with development anymore,soon svn will become the release I guess.

the bison problem is caused by MSVC unable to find bison.exe/flex.exe in its 'bin' path,you should install bison/flex first then add the path where bison/flex is installed to the 'bin' path list in MSVC project and directories properties.

there is supposed to be a MSVC compile guide on wiki,but I don't know where the old wiki is located now after the doku-to-media wiki migration.

edit:found the old wiki
ttp://bwiki.wz2100.net/
// DevU: Fix link
Last edited by DevUrandom on 05 Nov 2007, 20:57, edited 1 time in total.
tasks postponed until the trunk is relatively stable again.

User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: Compile guide for MSVC 2005

Post by DevUrandom » 05 Nov 2007, 20:58

The MSVC compile guide is part of the Windows compile guide.
If someone has time, you are encouraged to transfer any information from the old wiki to the new one.

briantan1979
New user
Posts: 3
Joined: 05 Nov 2007, 05:18

Re: Compile guide for MSVC 2005

Post by briantan1979 » 06 Nov 2007, 05:50

Thanks for the info.

Unfortunately, still having some compilation problems.

fatal error C1083: Cannot open include file: 'autorevision.h': No such file or directory

fatal error C1083: Cannot open include file: 'GL/glc.h': No such file or directory

How should I resolve these problems ?

Dun want to be such a pain, but really not sure on how to resolve this  :-[

User avatar
kage
Regular
Regular
Posts: 751
Joined: 05 Dec 2006, 21:45

Re: Compile guide for MSVC 2005

Post by kage » 06 Nov 2007, 06:19

it would help the developers if you indicate which version of the source (svn revision, or release version) that you're trying to compile.

briantan1979
New user
Posts: 3
Joined: 05 Nov 2007, 05:18

Re: Compile guide for MSVC 2005

Post by briantan1979 » 06 Nov 2007, 07:19

kage wrote: it would help the developers if you indicate which version of the source (svn revision, or release version) that you're trying to compile.
Sorry about this. I have just recently checked out the project from svn://svn.gna.org/svn/warzone/trunk as advised (svn revision 2741)

Anyway, I managed to find the GL/glc.h file for the OpenGL Character Renderer but how do I get or make the autorevision.h file to get the SVN revision data?

User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: Compile guide for MSVC 2005

Post by Buginator » 06 Nov 2007, 07:59

briantan1979 wrote: Thanks for the info.

Unfortunately, still having some compilation problems.

fatal error C1083: Cannot open include file: 'autorevision.h': No such file or directory

fatal error C1083: Cannot open include file: 'GL/glc.h': No such file or directory

How should I resolve these problems ?

Dun want to be such a pain, but really not sure on how to resolve this  :-[
MSVC compile is broken right now.  I am in process of fixing this.

I think  you didn't download the 3rd party lib quesoGLC, so get that, both the dev & .exe.  You need both.
and it ends here.

User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: Compile guide for MSVC 2005

Post by Buginator » 06 Nov 2007, 20:14

It is now fixed.
Patch # 832 on GNA, or wait until they push it on svn.

You need tortoiseSVN installed, and it must be in your Path statements!

Do not forget to get all the other 3rd party libs & dev files.
and it ends here.

Giel
Regular
Regular
Posts: 725
Joined: 26 Dec 2006, 19:18
Contact:

Re: Compile guide for MSVC 2005

Post by Giel » 08 Nov 2007, 13:11

Buginator wrote: It is now fixed.
Patch # 832 on GNA, or wait until they push it on svn.

You need tortoiseSVN installed, and it must be in your Path statements!

Do not forget to get all the other 3rd party libs & dev files.
Patch is applied in r2752. So compiling should be possible from that revision onwards.
"First make sure it works good, only then make it look good." -- Giel
Want to tip/donate? bitcoin:1EaqP4ZPMvUffazTxm7stoduhprzeabeFh

User avatar
Buginator
Professional
Professional
Posts: 3285
Joined: 04 Nov 2007, 02:20

Re: Compile guide for MSVC 2005

Post by Buginator » 12 Nov 2007, 06:05

Did you get it to compile?

Also note, that the latest version in svn needs this:
http://gnuwin32.sourceforge.net/packages/popt.htm
also get the dependencies:
http://gnuwin32.sourceforge.net/packages/libintl.htm
You need: LibIntl-2 is 0.11.5-2  (2003-04-04 14:00)  NOT the current release.  If you want to compile those packages yourself, then you could use the current release, but I haven't tested that.
http://gnuwin32.sourceforge.net/packages/libiconv.htm
and it ends here.

UrbanVoyeur
Trained
Trained
Posts: 50
Joined: 10 Mar 2007, 05:03
Location: NYC

Re: Compile guide for MSVC 2005

Post by UrbanVoyeur » 25 Dec 2007, 05:35

Buginator wrote: Did you get it to compile?
Yes. (though I'm not the original poster) I included all the packages you mentioned and the versions, and rev 3173 does compile in MSVC 2005.

However I get an unhandled exception in clparse.c  when it makes a call to one of the popt functions. 
/* loop through command line */
while ((iOption = poptGetNextOpt(poptCon)) > 0)
{

Before i report this as a bug, I am wondering if it is due to an improperly configured popt library.  Any ideas? I have popt 1.8 with libintl-2 .11.5-2 and libconv-2 1.9.2

User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: Compile guide for MSVC 2005

Post by DevUrandom » 25 Dec 2007, 15:40

My crosscompile package uses these versions currently:
SDL-1.2.12
SDL_net-1.2.7
libogg-1.1.3
libvorbis-1.2.0
libpng-1.2.23
zlib-1.2.3
physfs-1.0.1
libiconv-1.11
gettext-0.17
popt-1.10.7
expat-2.0.1
freetype-2.3.5
fontconfig-2.5.0
quesoglc-svn

OpenAL installer 2.0.3
OpenAL linker archive created from Creative OpenAL 1.1 SDK 3.03
libintl is a part of gettext.

UrbanVoyeur
Trained
Trained
Posts: 50
Joined: 10 Mar 2007, 05:03
Location: NYC

Re: Compile guide for MSVC 2005

Post by UrbanVoyeur » 25 Dec 2007, 16:35

DevUrandom wrote: My crosscompile package uses these versions currently:libintl is a part of gettext.
Thanks. My packages from GnuWin32 are way out of date. I will get/build more up to date versions.

Post Reply