Page 1 of 2

Error compiling GZDoom

Posted: Mon Jan 31, 2011 2:20
by Cleveland Rock
Spoiler: DOS prompt
Spoiler: DxDiag system information
Any ideas? I tried the wiki and tried Google. No luck. If you need any more information than that, let me know. Thanks.

Re: Error compiling GZDoom

Posted: Tue Feb 01, 2011 1:34
by Salad Viking
It looks like arith.h failed to be generated. Try manually compiling arithchk.c and running it. If some C code is printed to the console instead of to arith.h, just copy what was printed and paste it in arith.h.

Re: Error compiling GZDoom

Posted: Tue Feb 01, 2011 1:57
by Cleveland Rock
Salad Viking wrote:Try manually compiling arithchk.c and running it.
That would be something I don't know how to do…

Re: Error compiling GZDoom

Posted: Tue Feb 01, 2011 7:50
by Salad Viking
Go to the command prompt, set the current directory to the containing folder (type "cd "<path to ZDoom source>\gdtoa"" minus the outer quotes), and type "gcc arithchk.c". That will compile the file and generate the file "a.exe". Run it. This will generate arith.h or, as mentioned above, print the expected contents to the standard output stream (the command prompt). Once you have arith.h, try compiling ZDoom again.

When I first tried compiling ZDoom, this exact same thing happened to me. I guess ZDoom just hates MinGW. :?
I still haven't successfully compiled ZDoom. Last time I tried, I got most of the way when one of the included projects wouldn't compile for no apparent reason.

Re: Error compiling GZDoom

Posted: Tue Feb 01, 2011 22:56
by Cleveland Rock
Spoiler:
I had to make the arith.h file myself, but, afterwards…
Spoiler:
I guess I should compile this file manually, too?
Spoiler:
Argh! I don't know what I'm doing wrong. I've compiled GZDoom before. The last time I tried was r2256, which compiled successfully.

…Wait, r2256? How can that be? The most recent revision, the one I'm trying to compile, is 1186.

Re: Error compiling GZDoom

Posted: Wed Feb 02, 2011 8:06
by Salad Viking
Cleveland Rock wrote:I guess I should compile this file manually, too?
Yes, you should do that one manually, too. As far as I remember, that's the only other one you'll need to do this for.
Cleveland Rock wrote:Argh! I don't know what I'm doing wrong. I've compiled GZDoom before. The last time I tried was r2256, which compiled successfully.

…Wait, r2256? How can that be? The most recent revision, the one I'm trying to compile, is 1186.
Well, you might have compiled ZDoom r2256, which was committed some time ago.

Re: Error compiling GZDoom

Posted: Wed Feb 02, 2011 8:56
by Cleveland Rock
Ah, I see. Any ideas about what to do about
Spoiler: this?

Re: Error compiling GZDoom

Posted: Thu Feb 03, 2011 7:12
by Salad Viking
As I said, you'll need to compile qnan.c, run the generated executable, and create qnan.h. Then you may continue compiling.

Re: Error compiling GZDoom

Posted: Thu Feb 03, 2011 8:41
by Cleveland Rock
Spoiler:
Argh! Now what do I do?

Re: Error compiling GZDoom

Posted: Thu Feb 03, 2011 10:00
by Graf Zahl
No idea. It looks like some code generation tool called from CMake does not output to a redirected file but to the console instead.

Re: Error compiling GZDoom

Posted: Thu Feb 03, 2011 20:42
by Cleveland Rock
I've been using CMake to generate a MinGW makefile, since one doesn't appear to be provided with the GZDoom source code. Is there something else I could be doing?

Re: Error compiling GZDoom

Posted: Thu Feb 03, 2011 21:49
by Graf Zahl
Aside from using Visual C++ I don't have an idea. I don't know how many people actually use MinGW to compile ZDoom or GZDoom but it's probably not many.

Re: Error compiling GZDoom

Posted: Thu Feb 03, 2011 22:49
by Cleveland Rock
Well, I really don't feel like downloading an old version just so I can compile this, so, unless someone writes a tutorial for compiling it with Visual C++ 2010 Express, I'm just not gonna bother compiling it. Sigh. If I didn't require so many Windows-specific programs (Doom Builder, for example), I'd go back to Linux. Compiling stuff was so easy on Linux.

Re: Error compiling GZDoom

Posted: Thu Feb 03, 2011 22:57
by Gez
I think you should be able to use the Wiki guide for VC 2005 with VC 2010. I know VC 2010 will have no trouble converting the solution and project files to its version, and the steps should be the same; though the exact place of stuff in the options and properties menus will have changed.

IIRC, the main difference is that in VC 2010, paths (for libraries, includes, exes, etc.) are project-dependent rather than global.

Re: Error compiling GZDoom

Posted: Thu Feb 03, 2011 23:02
by Cleveland Rock
Precisely what I mean. I'm pretty sure one would need to have the mental capacity to understand programming to know how to do that without a tutorial.