Forum

Build Quake 1 on Visual Studio 2008

Discuss programming topics for the various GPL'd game engine sources.

Moderator: InsideQC Admins

Build Quake 1 on Visual Studio 2008

Postby nicolasbol » Mon Feb 23, 2009 6:51 pm

Hello all,

I'm trying to build Quake World but I can't really figure out what is wrong.

I have installed the Windows SDK and DirectX SDK, ran into the usual _errno MACRO error (renamed to qerrno).

Server, Proxy and MASM are building fine but the Client projects gives me:

3>LINK : fatal error LNK1181: cannot open input file '.\GLRelease\math.obj'

My math.h is coming from:

C:\Program Files\Microsoft Visual Studio 9.0\VC\include

I thought maybe there is a problem with the lib location for the linker but I can't find a math.lib in:

C:\Program Files\Microsoft Visual Studio 9.0\VC\lib

I tried to Google the error, to little avail so I guess It's more a C problem than a Quake problem.

I'm kinda stuck here :(.
nicolasbol
 
Posts: 9
Joined: Mon Feb 23, 2009 6:47 pm

Postby revelator » Tue Feb 24, 2009 4:20 am

uhm actually quake has its own math.h if it cant find it it means gas2masm couldnt create it "problem since net version of msvc"

you need to alter the properties of each asm file removing all " so it looks like this

Code: Select all
cl /EP > $(OUTDIR)\$(InputName).spp $(InputPath)
..\gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp >                                                                                                                                                                                                    $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi                                                                                                                                                                                                    $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
User avatar
revelator
 
Posts: 2567
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Postby nicolasbol » Tue Feb 24, 2009 4:40 pm

Thanks reckless,

I found what was the problem.

I probably screwed up when offered to convert all projects, deleting everything and starting over from q1sources.zip:

- Fix the errno Macro error.
- Add LIBC.lib to ignored library in qwcl project.

Built 4 projects perfectly. It looks like Visual Studio 2008 is doing much better than it predecessor regarding quake compilation.
nicolasbol
 
Posts: 9
Joined: Mon Feb 23, 2009 6:47 pm

Postby revelator » Wed Feb 25, 2009 11:16 am

yep its pretty good but can also be a p.i.t.a :lol: especially with its warnings about crt libs not certain to be secure :wink:

and aye libc needs to be ignored newer msvc only comes with the c++ runtime.

well glad you got it running :D
User avatar
revelator
 
Posts: 2567
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger


Return to Engine Programming

Who is online

Users browsing this forum: No registered users and 1 guest