I was trying to compile the older 2.1 RC2 in Code::Blocks and was wondering what wall I was hitting as it was asking me to define *warzone_devpkg*
Not knowing what this is or really how to assign value to it I was hoping I could get some advice, so I can start out on my C++ learning curve....
Compiling Source.
-
craigengbrecht
- Trained

- Posts: 51
- Joined: 21 Jul 2008, 03:49
- Location: Red Deer, AB
Compiling Source.
AMD FX X8 3.88Ghz
16GB KVM 1333Mhz
ASUS M5A97
ASUS EAH 6850 1GB
3x ASUS 1920x1080 VW246H
1x 5000GB Primary
1x 1TB Internal
1x 3TB Internal
16GB KVM 1333Mhz
ASUS M5A97
ASUS EAH 6850 1GB
3x ASUS 1920x1080 VW246H
1x 5000GB Primary
1x 1TB Internal
1x 3TB Internal
-
Zarel
- Elite

- Posts: 5770
- Joined: 03 Jan 2008, 23:35
- Location: Minnesota, USA
Re: Compiling Source.
Well, Warzone is written in C, so it's not really C++ at all.craigengbrecht wrote:I was trying to compile the older 2.1 RC2 in Code::Blocks and was wondering what wall I was hitting as it was asking me to define *warzone_devpkg*
Not knowing what this is or really how to assign value to it I was hoping I could get some advice, so I can start out on my C++ learning curve....
warzone_devpkg can be found at: http://download.gna.org/warzone/develop ... 1/mingw32/
The one you probably want is warzone2100-devpkg-2.1-mingw32-20080928.7z
-
craigengbrecht
- Trained

- Posts: 51
- Joined: 21 Jul 2008, 03:49
- Location: Red Deer, AB
Re: Compiling Source.
Ok, So I have downloaded that version of the source, though I am now unsure of even how to load it into Code::Blocks, do you have any advice, or can you tell me how I could make it into a project, so that I can load all the files?
I am sorry, I am quite new to compilers and have worked with the simplistic ones in Linux but am new on windows hardware...
I am sorry, I am quite new to compilers and have worked with the simplistic ones in Linux but am new on windows hardware...
AMD FX X8 3.88Ghz
16GB KVM 1333Mhz
ASUS M5A97
ASUS EAH 6850 1GB
3x ASUS 1920x1080 VW246H
1x 5000GB Primary
1x 1TB Internal
1x 3TB Internal
16GB KVM 1333Mhz
ASUS M5A97
ASUS EAH 6850 1GB
3x ASUS 1920x1080 VW246H
1x 5000GB Primary
1x 1TB Internal
1x 3TB Internal
-
Zarel
- Elite

- Posts: 5770
- Joined: 03 Jan 2008, 23:35
- Location: Minnesota, USA
Re: Compiling Source.
Nah, that's not a version of the source, it's just a dev package.
Here's the relevant part of the wiki:
Here's the relevant part of the wiki:
You will need 7-Zip (a legally free archiving utility) to extract this file. We will assume you extracted the devpkg to "C:\devpkg" in the following.
In the directory where you extracted the Warzone 2100 sources to, copy makerules\config.mk.tmpl to makerules\config.mk and open the new file for editing (notepad will do just fine). Now uncomment this line:
MODE=debug
(Removing the hash '#' sign will uncomment it).
Now set the DEVDIR line to the path where you extracted the developer's package (replace all backslashes by forward slashes, e.g. '\' should be '/'), and if you encounter any spaces in the path prefix those spaces with a backslash like this '\ '. So with the above path you'd have to use this line:
DEVDIR=C:/devpkg
If you would have extracted the developer's package to "C:\Program Files\Warzone developer package" then your line would have to look like this instead:
DEVDIR=C:/Program\ Files/Warzone\ developer\ package
-
elio
- Regular

- Posts: 508
- Joined: 09 Jun 2007, 22:11
Re: Compiling Source.
and here is the link to the wiki Compile_Guide