[Solved] Compiling errors

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

Locked
Adeon
Posts: 6
Joined: Fri Apr 10, 2009 16:01

[Solved] Compiling errors

Post 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:

Code: Select all

REMOVED TO KEEP THE PAGE CLEAN
Can't realize what goes on.
Thank you!
Last edited by Adeon on Sat Apr 11, 2009 3:10, edited 3 times in total.
User avatar
Gez
Developer
Developer
Posts: 1399
Joined: Mon Oct 22, 2007 16:47

Re: Compilling errors

Post 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.
Adeon
Posts: 6
Joined: Fri Apr 10, 2009 16:01

Re: Compilling errors

Post by Adeon »

Gez wrote: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.
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?
User avatar
Rachael
Developer
Developer
Posts: 3651
Joined: Sat May 13, 2006 10:30

Re: Compilling errors

Post 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.
Adeon
Posts: 6
Joined: Fri Apr 10, 2009 16:01

Re: Compilling errors

Post 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:

Code: Select all

REMOVED TO KEEP THE PAGE CLEAN
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. :|
Last edited by Adeon on Fri Apr 10, 2009 23:55, edited 1 time in total.
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Re: Compilling errors

Post by Enjay »

Did you install the Windows Platform SDK? There is a windows.h as part of that.
User avatar
Gez
Developer
Developer
Posts: 1399
Joined: Mon Oct 22, 2007 16:47

Re: Compilling errors

Post 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.
Adeon
Posts: 6
Joined: Fri Apr 10, 2009 16:01

Re: Compilling errors

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

Re: Compilling errors

Post 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.
Adeon
Posts: 6
Joined: Fri Apr 10, 2009 16:01

Re: Compilling errors

Post by Adeon »

Oh... My bad... The directory to Platform SDK set in VC++ did not exist...
Now I finally compiled successfully! Thank you kindly! :D
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Re: Compilling errors

Post 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.
Adeon
Posts: 6
Joined: Fri Apr 10, 2009 16:01

Re: Compilling errors

Post 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? :cry:
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.
Locked

Return to “GZDoom”