Error compiling GZDoom

Advanced OpenGL source port fork from ZDoom, picking up where ZDoomGL left off.
[Home] [Download] [Git builds (Win)] [Git builds (Mac)] [Wiki] [Repo] [Bugs&Suggestions]

Moderator: Graf Zahl

Cleveland Rock
Posts: 18
Joined: Mon Dec 18, 2006 3:05
Location: Cleveland, Ohio, United States
Contact:

Error compiling GZDoom

Post 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.
User avatar
Salad Viking
Posts: 40
Joined: Mon Aug 23, 2010 21:50
Location: A hot air balloon traveling over Chile

Re: Error compiling GZDoom

Post 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.
Cleveland Rock
Posts: 18
Joined: Mon Dec 18, 2006 3:05
Location: Cleveland, Ohio, United States
Contact:

Re: Error compiling GZDoom

Post 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…
User avatar
Salad Viking
Posts: 40
Joined: Mon Aug 23, 2010 21:50
Location: A hot air balloon traveling over Chile

Re: Error compiling GZDoom

Post 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.
Cleveland Rock
Posts: 18
Joined: Mon Dec 18, 2006 3:05
Location: Cleveland, Ohio, United States
Contact:

Re: Error compiling GZDoom

Post 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.
User avatar
Salad Viking
Posts: 40
Joined: Mon Aug 23, 2010 21:50
Location: A hot air balloon traveling over Chile

Re: Error compiling GZDoom

Post 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.
Cleveland Rock
Posts: 18
Joined: Mon Dec 18, 2006 3:05
Location: Cleveland, Ohio, United States
Contact:

Re: Error compiling GZDoom

Post by Cleveland Rock »

Ah, I see. Any ideas about what to do about
Spoiler: this?
User avatar
Salad Viking
Posts: 40
Joined: Mon Aug 23, 2010 21:50
Location: A hot air balloon traveling over Chile

Re: Error compiling GZDoom

Post 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.
Cleveland Rock
Posts: 18
Joined: Mon Dec 18, 2006 3:05
Location: Cleveland, Ohio, United States
Contact:

Re: Error compiling GZDoom

Post by Cleveland Rock »

Spoiler:
Argh! Now what do I do?
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: Error compiling GZDoom

Post 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.
Cleveland Rock
Posts: 18
Joined: Mon Dec 18, 2006 3:05
Location: Cleveland, Ohio, United States
Contact:

Re: Error compiling GZDoom

Post 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?
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: Error compiling GZDoom

Post 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.
Cleveland Rock
Posts: 18
Joined: Mon Dec 18, 2006 3:05
Location: Cleveland, Ohio, United States
Contact:

Re: Error compiling GZDoom

Post 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.
User avatar
Gez
Developer
Developer
Posts: 1399
Joined: Mon Oct 22, 2007 16:47

Re: Error compiling GZDoom

Post 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.
Cleveland Rock
Posts: 18
Joined: Mon Dec 18, 2006 3:05
Location: Cleveland, Ohio, United States
Contact:

Re: Error compiling GZDoom

Post 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.
Locked

Return to “GZDoom”