compiling quake 2

Discuss programming topics for the various GPL'd game engine sources.
Post Reply
Subject9x
Posts: 7
Joined: Thu Feb 10, 2011 4:12 am
Contact:

compiling quake 2

Post by Subject9x »

I've recently swung around to wanting to mod quake 2 again; but I'm having a devil of a time getting it to compile.

downloaded the latest KMquake2 source (lazarus included)
I initially tried compiling in the CodeBlocks IDE with Borland C++ 5.5 with no success and am now trying VS2008.
When I open the project in VS2008; it fails to compile because it can't find 'ver.h' which is in the .rc file...which fails to load.

I just feel very lost and confused over what should be a relatively simple process.
Baker
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am

Post by Baker »

Perhaps this solves your problem:

http://forums.inside3d.com/viewtopic.php?t=2920

The thread started like this ...
franqutrass wrote:I have a problem with the KMQuake 2 source code when I compile the "engine source code (updated ) you can download of here:
And ended like this ...
franqutrass wrote:ohh, my god, thanks¡¡¡¡¡¡¡¡
many thanks¡¡¡¡¡¡¡¡¡
you are a GOD
Seems like better than average odds to me. :D
The night is young. How else can I annoy the world before sunsrise? 8) Inquisitive minds want to know ! And if they don't -- well like that ever has stopped me before ..
Subject9x
Posts: 7
Joined: Thu Feb 10, 2011 4:12 am
Contact:

Post by Subject9x »

Ok; I tried the trick with AFXRES.h file; replacing Ver.h with the same snippet of code to no avail.

The whole DLL compiles with just warnings...except for this one file (ver.h) i've scoured the folders but can't find it.

EDIT:did some googling; seems ver.h has to do with VS versions. I cahnged

#include "ver.h"
to
#include "winver.h" (the updated ver.h file for newer VS)

and viola the problem went away!

HOWEVER
now the Linker is crapping out during compiling the DLL
-googling again; solution was to update VS8
-done; and now it compiles without error

thanks for the help!
Baker
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am

Post by Baker »

Subject9x wrote:Ok; I tried the trick with AFXRES.h file; replacing Ver.h with the same snippet of code to no avail.

The whole DLL compiles with just warnings...except for this one file (ver.h) i've scoured the folders but can't find it.

EDIT:did some googling; seems ver.h has to do with VS versions. I cahnged

#include "ver.h"
to
#include "winver.h" (the updated ver.h file for newer VS)

and viola the problem went away!

HOWEVER
now the Linker is crapping out during compiling the DLL
-googling again; solution was to update VS8
-done; and now it compiles without error

thanks for the help!
I am glad you got it to compile ;)
The night is young. How else can I annoy the world before sunsrise? 8) Inquisitive minds want to know ! And if they don't -- well like that ever has stopped me before ..
Post Reply