View previous topic :: View next topic |
Author |
Message |
nicolasbol
Joined: 23 Feb 2009 Posts: 9
|
Posted: Mon Feb 23, 2009 6:51 pm Post subject: Build Quake 1 on Visual Studio 2008 |
|
|
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 . |
|
Back to top |
|
 |
reckless
Joined: 24 Jan 2008 Posts: 390 Location: inside tha debugger
|
Posted: Tue Feb 24, 2009 4:20 am Post subject: |
|
|
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: | 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 |
|
|
Back to top |
|
 |
nicolasbol
Joined: 23 Feb 2009 Posts: 9
|
Posted: Tue Feb 24, 2009 4:40 pm Post subject: |
|
|
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. |
|
Back to top |
|
 |
reckless
Joined: 24 Jan 2008 Posts: 390 Location: inside tha debugger
|
Posted: Wed Feb 25, 2009 11:16 am Post subject: |
|
|
yep its pretty good but can also be a p.i.t.a especially with its warnings about crt libs not certain to be secure
and aye libc needs to be ignored newer msvc only comes with the c++ runtime.
well glad you got it running  |
|
Back to top |
|
 |
|