Inside3D!
     

Compiling Quake Engine with VC++ Express?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> Programming Tutorials
View previous topic :: View next topic  
Author Message
Sajt



Joined: 16 Oct 2004
Posts: 1026

PostPosted: Tue Nov 21, 2006 5:32 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Quake Matt



Joined: 05 Jun 2005
Posts: 129

PostPosted: Thu Nov 30, 2006 1:03 pm    Post subject: Reply with quote

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:
#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!
Back to top
View user's profile Send private message
Pulseczar



Joined: 12 Aug 2006
Posts: 37

PostPosted: Sun Dec 24, 2006 3:39 pm    Post subject: Reply with quote

doesn't Quake 1 predate C#?
Back to top
View user's profile Send private message AIM Address
Entar



Joined: 05 Nov 2004
Posts: 422
Location: At my computer

PostPosted: Sun Dec 24, 2006 5:44 pm    Post subject: Reply with quote

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.
_________________
woh... feelin woozy... too much cider...
http://entar.quakedev.com
games fascination - My Game Development Blog/Journal
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
Sajt



Joined: 16 Oct 2004
Posts: 1026

PostPosted: Mon Dec 25, 2006 8:21 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> Programming Tutorials All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group