Page 1 of 1
[Solved] Compiling errors
Posted: Fri Apr 10, 2009 16:07
by Adeon
Hello! Can you help me?
I'm trying to compile GZDoom in a while, and got no success so far.
Here are the currently errors I get:
Can't realize what goes on.
Thank you!
Re: Compilling errors
Posted: Fri Apr 10, 2009 16:51
by Gez
Either you did not install the FMOD Ex API, or you did not configure MSVC to look in the relevant directories.
http://zdoom.org/wiki/Compile_ZDoom_on_Windows
The other problem is odder.
Re: Compilling errors
Posted: Fri Apr 10, 2009 19:46
by Adeon
Thanks for replying.
Got FMOD working now; 40 errors left.
I think it has something to do with my MS visual C++ (got both 2005 and 2008 installed), haven't it?
Re: Compilling errors
Posted: Fri Apr 10, 2009 19:58
by Rachael
The Wiki wrote: Note: If compiling GZDoom, you will need to download
glext.h and
wglext.h in a directory which will be included during compilation.
Re: Compilling errors
Posted: Fri Apr 10, 2009 20:44
by Adeon
SoulPriestess wrote:The Wiki wrote: Note: If compiling GZDoom, you will need to download
glext.h and
wglext.h in a directory which will be included during compilation.
Yeah, I've already done this. Thank you
OK, I unistalled MS-VC 2008 and repaired VC 2005 (and noticed that I got an error screen while installing, but the program's working fine... I'm worried about it :S)
Now here's what I get:
20 errors, some progress at least. But What's with windows.h? I Really can't get it.
I'll try re-installing VC2005 again (*bored*)
Thank you.
[EDIT]Again, the same error:
"
Microsoft .NET Framework 2.0 has encountered a problem during setup.
Setup did not complete correctly."
I'm sure it's no-good.

Re: Compilling errors
Posted: Fri Apr 10, 2009 21:00
by Enjay
Did you install the Windows Platform SDK? There is a windows.h as part of that.
Re: Compilling errors
Posted: Fri Apr 10, 2009 21:11
by Gez
So you can't even install VC++ completely now? Your computer must suffer from several problems.
Windows.h is normally installed by the Platform SDK, as Enjay said. You do not need the .NET Framework for compiling ZDoom, though. Does the VC++ installer really require it? I don't remember.
Just be sure to have VC++ configured correctly, with the directories set as explained on the wiki for FMOD Ex, the DirectX SDK, the platform SDK, and NASM.
Re: Compilling errors
Posted: Fri Apr 10, 2009 22:42
by Adeon
Gez wrote:So you can't even install VC++ completely now? Your computer must suffer from several problems.
Windows.h is normally installed by the Platform SDK, as Enjay said. You do not need the .NET Framework for compiling ZDoom, though. Does the VC++ installer really require it? I don't remember.
Just be sure to have VC++ configured correctly, with the directories set as explained on the wiki for FMOD Ex, the DirectX SDK, the platform SDK, and NASM.
OK, I installed the Platform SDK, but it still not working (got the same errors)... I don't know what to do in VC++ to include this since the instructions at the wiki page mention only where to download this (otherwise I'm misunderstanding, I found this page somehow confusing).
All the directories, paths etc are just like the ones in this tutorial:
http://forum.drdteam.org/viewtopic.php?t=3563
Sorry, I'm pretty a newbie, thank you for your patience!

Re: Compilling errors
Posted: Fri Apr 10, 2009 22:50
by Gez
Adeon wrote:I don't know what to do in VC++ to include this since the instructions at the wiki page mention only where to download this (otherwise I'm misunderstanding, I found this page somehow confusing).
Well, you've got that "Set Up Directories" section a bit after the download section... But that should be mostly the same as in WG's tutorial anyway.
Re: Compilling errors
Posted: Fri Apr 10, 2009 23:14
by Adeon
Oh... My bad... The directory to Platform SDK set in VC++ did not exist...
Now I finally compiled successfully! Thank you kindly!

Re: Compilling errors
Posted: Fri Apr 10, 2009 23:28
by Enjay
Yeah, the Wiki article kind of implies that some of the paths will get set up automatically. However, I've had to add them manually both times that I've set things up. The environment variable version of the paths didn't work either. I had to set them explicitly to the install directories.
Re: Compilling errors
Posted: Fri Apr 10, 2009 23:53
by Adeon
Enjay wrote:Yeah, the Wiki article kind of implies that some of the paths will get set up automatically. However, I've had to add them manually both times that I've set things up. The environment variable version of the paths didn't work either. I had to set them explicitly to the install directories.
Mmmm... Yeah, I don't think I could be able to do such a thing since I'm just starting with VC++.
Now when I run the GZDoom that I compiled, I get an error at the beginning, just when everything loads up.
The VC++ Debug gave me the following message:
- Unhandled exception at 0x0080f520 in gzdoomd.exe: 0xC0000005: Access violation writing location 0x00b0c7d9.
And it points out the line in green in v_video.cpp:
- CleanWidth = width / CleanXfac;
CleanHeight = height / CleanYfac;
assert(CleanWidth >= 320);
assert(CleanHeight >= 200);
DisplayWidth = width;
DisplayHeight = height;
DisplayBits = bits;
R_MultiresInit ();
RenderTarget = screen;
screen->Lock (true);
R_SetupBuffer ();
screen->Unlock ();
M_RefreshModesList ();
return true;
[/i]
What now? Is it my fault?

Thank you.
EDIT: I still can't figure out what the hell is going on! Should I re-download Directx SDK or something (hope not)?
EDIT2: Wow, my intuition was right. Installed another DirectX SDK and now it's working fine.