Forum

Compiling Quake Engine with VC++ Express?

Post tutorials on how to do certain tasks within game or engine code here.

Moderator: InsideQC Admins

Postby Sajt » Tue Nov 21, 2006 5:32 am

IIRC the afxres.h thing is something to do with precompiled headers. Maybe you turn precompiled headers off, or maybe change afxres.h to winafx.h or something, sorry I'm digging crap out of a dusty old toilet here.
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.
Sajt
 
Posts: 1215
Joined: Sat Oct 16, 2004 3:39 am

Postby Quake Matt » Thu Nov 30, 2006 1:03 pm

A-ha! I've got it working!

It turns out that I had an unfinished open source afxres.h or something, that was clashing somewhat with the real afxres. So, if you ever get a similar problem when compiling your resource file, check this file out in a text editor to make sure it's the right one.

Next problem came from a missing libc.lib file. I found two versions of it in the platform SDK - AMD64 and IA64 versions - but neither of them are any good for a x86 target. Looking around the web, the original library is practically obsolete now (as of VS2005 it seems) and all the functionality has been moved into other files. Basically, it just needs to be added to the list of ignore libraries or, for a more permanent solution, a dummy version of it should be created. I've just opted for the former to get Quake running!

Anyway, hope this helps anybody else trying to use Express!

Additional: Further sucess stories - I've even managed to get the basic CleanSrc and ArqLite to compile, which seem like good starting points for a learner like me. The two share some code that VS Express doesn't seem to like, found in quakedef.h:

Code: Select all
#pragma comment (linker,"/opt:nowin98")
#pragma comment (linker,"/merge:.text=.data")
#pragma comment (linker,"/merge:.reloc=.data")
#pragma comment (linker,"/ignore:4078")


These four lines cause the compiler to throw out hundreds of warning files, then stop dead when it tries the two merge parts. Comment these out, and everything seems to compile nicely. Now I'm roaring along, so much so that I've already added some much-needed 1920x1200 support!
User avatar
Quake Matt
 
Posts: 129
Joined: Sun Jun 05, 2005 9:59 pm

Postby Pulseczar » Sun Dec 24, 2006 3:39 pm

doesn't Quake 1 predate C#?
User avatar
Pulseczar
 
Posts: 37
Joined: Sat Aug 12, 2006 6:45 pm

Postby Entar » Sun Dec 24, 2006 5:44 pm

It does. Quake was written in plain old C, and has absolutely nothing to do with C#, as far as I know, unless someone decides to port it or some such.
User avatar
Entar
 
Posts: 439
Joined: Fri Nov 05, 2004 7:27 pm
Location: At my computer

Postby Sajt » Mon Dec 25, 2006 8:21 pm

Might as well port Quake2 to Java.

Oh crap...
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.
Sajt
 
Posts: 1215
Joined: Sat Oct 16, 2004 3:39 am

Previous

Return to Programming Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest