Can not compile under Windows Visual Sutdios

Discuss the future of Warzone 2100 with us.
Katzmann
New user
Posts: 1
Joined: 13 Aug 2009, 11:20

Can not compile under Windows Visual Sutdios

Post by Katzmann »

Hello everyone,

I want to compile Warzone 2100 in MS Visual Studio 2008. I followed the Windows Compile Guide, but got stuck at the point 4: Under Properties –> Debugging –> Set your additional command line arguments. At a minimum you should specify the data directory using the --datadir commandline option

I set --datadir "C:\warzone-svn\data" in the command line arguments , but I still get the error message:

Fehler 1 error PRJ0019: Ein Tool hat einen Fehlercode aus folgender Quelle zurückgegeben: "Generating parser based on grammar..." framework framework

I would ver much appreciate any help.
Thanks,
Jens
Tribaldome
Greenhorn
Posts: 11
Joined: 28 Sep 2009, 17:16

Re: Can not compile under Windows Visual Sutdios

Post by Tribaldome »

Hi Katzmann,

i followed the description of this site, end up with the same error and could not find any solution here. Therfor i tried around a bit and the following steps let me now compile the source without having an interuption thru an error:

I use VC 9.0 (2008) C++ Express under Windows Vista x64 SP2 (Both German version).

German:
Erstellen > Batch erstellen... > Alle Auswählen > Erstellen

English:
Build > Generate Batch... > Mark all > Build

After that the build take some time but should work.

Code: Select all

(....)
4>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
14>Copyright (C) Microsoft Corporation.  All rights reserved.
14>***  Copying d:\Programming\Warzone2100\win32\Debug\Warzone2100-Dbg.exe to D:\Programming\Warzone2100\win32\..\data\Warzone2100-Dbg.exe  ***
14>        1 Datei(en) kopiert.
14>Das Buildprotokoll wurde unter "file://d:\Programming\Warzone2100\win32\Debug\BuildLog.htm" gespeichert.
14>Warzone2100 - 0 Fehler, 207 Warnung(en)
========== Alles neu erstellen: 14 erfolgreich, Fehler bei 0, 0 übersprungen ==========

Note: For me i had to change the Start object to Warzone2100 first to get a new "Warzone2100-Dbg.exe" ;)