Page 1 of 2

How to compile GZDoom with VC++

Posted: Thu Sep 25, 2008 16:36
by WolfyGirl
What do i need to Compile GZDoom in VC++?

Installing TortoiseSVN

First of all you have to be sure that you have TortoiseSVN with you.
You can download 2 different version.
The 32bit and 64bit systems.
For this tool you need to download one of the links below, but watch it!, always be sure you pick the right Installer that is made for your bit system.

32BIT > http://downloads.sourceforge.net/tortoi ... i?download
64BIT > http://downloads.sourceforge.net/tortoi ... i?download

Downloading and Installing Visual C++ 2008

You need Virtual C++ in order to make the Source Codes functioning.
First of all, you have to be sure that you have VC++ 2005 or 2008 with you.
If you don't have VC++ with you, you can always download the free 120 days trial from Microsoft Download Center.
Only install VC++ 2008, the rest in the Installation Package aren't important or needed, those are just Add-ons.
Let's go to the next step.

How to get the latest GZDoom SVN?

First you have to restart after you have installed VC++ 2008 and TortoiseSVN in order to make both programs functioning like they have to.
Now, after the restart, Make an new Directory(Folder) with any name you want.
Than right click on the Directory(Folder) and select SVN Checkout....
Than it will ask for the Directory(Folder) you want to install the source codes into and the Download Url to the SVN Directory(Folder) on the FTP Database.
The url for the SVN is http://mancubus.net/svn/hosted/gzdoom/trunk/
Be sure that it is typed correctly, or when having Downloading problems, just disable your Firewalls for a few second until the download has successfuly finished.
Now click on next so it can download all the files that VC++ 2008 need to compile your GZDoom build.

How do i get the tools i need in order to get rid of the errors i get?

Do not Compile to fast.
This may cause files to damage or Corrupting, which will force you to redownload the whole SVN.
However, let's get back to work on the tools.
First we have to find the C++ Tools Menu.
Find the menu Tools > Options.
Than you should see the General options.
Now go to the List "Projects & Solutions".
Than open the List "VC++ Directories".
Now you should see the Executable Files list.
Be sure that you do this the correct way, or else you might still have problems with compiling.
Follow the instructions on ZDoom Wiki about Compiling on Windows Operating Systems.
Now put all the Tools that are in the Given link above.
Again, be sure you entered all the entries in the correct way.
It should look like this :

For the Executable Files
Image

For the Include Files
Image

For the Library Files
Image

[Edit] Now that i was so blonde enough to forget to import the GL Extensions that GZDoom needs for Windows Compiling, i'll update the list for it, or else some will be still stuck with the GL features that will not compile after the other scripts. ;)
There are 2 more GL files you have to import to the list.
Those are glext.h and wglext.h.
Now download both file you see above (glext.h and wglext.h) and download those files into your <path to your project>/src/gl folder and all the files should compile correctly.
My excuse for those missing files! :oops: [/Edit]

Now press OK button and let's give the Compiling(F7) a go!
It should compile without errors, maybe only a few warnings, but still it will be an stable build. :)
If you still have problems, i advise to check the SVN files first on Corruption and Damage, after that you can always contact Graf Zahl or someone else for help about your found problem.
Good luck with Compiling your GZDoom project! :oops:

Posted: Thu Sep 25, 2008 20:36
by StasBFG[iddqd]
How to compile a win64 binary?

Posted: Thu Sep 25, 2008 20:40
by Rachael
That is one I am sure even the devs have trouble with. x64 architecture is still fairly new. I know it can be done, but you may need to alter the code.

Other than that, you'll have to most likely change the project settings themselves in order to produce a 64 bit executable.

Posted: Thu Sep 25, 2008 21:48
by Graf Zahl
I only have a VC++ Express which doesn't support x64 compiles so unfortunately I can't test if it compiles properly and I can't make the necessary changes to the project.

Posted: Fri Sep 26, 2008 6:20
by WolfyGirl
i make use of 2005.
i also tested it with 2008, and both compiles successfuly.
however, there might be still a warnings that you can ignore.
the game itself still works fine ^-^
pretty stupid that i found out that some files wheir just damaged or Corrupted since i was keep begging for help about what i had to do to fix it. -.-
but gladly i found it out myself.
also those 2 GL files wheir corrupted.
it gave me more than 9000 errors! xD


EDIT : Shite.... made this ZGDoom typo >_>

Posted: Fri Sep 26, 2008 8:33
by WolfyGirl
btw, i guess compiling on 64BIT systems should be the same way as 32BIT systems.

Posted: Fri Sep 26, 2008 8:37
by Rachael
You would be correct with that guess.

Posted: Fri Sep 26, 2008 8:43
by WolfyGirl
i am sure about it. :P
i still have to find out how to compile does in Linux, first i have to download Ubuntu Linux so i can install it in Microsoft Virtual PC.
and i think i have to expend my tutorial a bit more.
some information are missing in the steps.
however, i have to dubble check it when i am back from school.

Posted: Fri Sep 26, 2008 8:48
by Rachael
Linux doesn't work too well in Virtual PC. Your best bet is use VMWare Server.

It worked a lot better in older versions of VPC before Microsoft bought it, but as typical Microsoft nature dictates, they've crippled certain parts of the code so that it is no longer supported.

If you do get it working, it will have required some painstaking effort.

Posted: Fri Sep 26, 2008 8:51
by WolfyGirl
i'll try it out when i am back from school.
only 1 hour remaining. :D

Posted: Tue Oct 07, 2008 7:22
by WolfyGirl
Steps list updated, i forgot to import the glext.h and wglext.h files you have to import in your src/gl folder

Posted: Tue Oct 07, 2008 16:19
by GuntherDW
WolfyGirl, aside the fact that ubuntu is kind of bad at shipping standard libs to use with GCC, compiling gzdoom is a small adventure imo :P
because graf can't support it directly, we have to provide patches to make it work, and even then he can't apply them all because some might interfere with the windows side for ex.
if you're prepared to get some bruises and stuff, you'll find that 64bit compiles on linux run smoothly :)

(en hallo noorderbuur :P)

Posted: Tue Oct 07, 2008 21:39
by WolfyGirl
English only please. :P
okay, i understand dutch, but the rule on the forum is to only use the langauge "English".
On the other side i still have to mess around with this CMAKE for Linux.
i have Ubuntu installed with the latest Upgrades in the laggy VMware! xD
at least it works better than Microsoft® Virtual PC.
I'll see what i can do about that, and maybe make an tutorial about that when i got it fully compiled.
The only problem in Linux is all those Terminal commands you have to work with. :(

/me takes a look at Linux Magazine.

Posted: Tue Oct 07, 2008 21:51
by Enjay
I don't think anyone really minds a little sentence like that in non-English, as long as it is obviously just a little joke or something like that. The only Dutch I know is "Zwarte Piet" - and that's only because a Dutch girl in one of my classes told me about him. :lol:

Anyway, thanks for putting up this tutorial. I'm sure it will be appreciated. When I first set things up to get Zdoom and GZdoom compiled it was a major undertaking for me (there's thread on here somewhere detailing all my efforts). It was the first time that I had done something like it. If it hadn't been for the help of various people, some of which was above and beyond the call of duty, I never would have got it done.

There are a couple of points where it obvious that you are not a native English speaker. eg "First of all you have to be sure that you have TortoiseSVN with you." The "with you" at the end sounds odd. A more usual sentence might be something like "First, make sure you have a copy of TortoiseSVN installed."

Perhaps you should look at the Zdoom Wiki page and see if any of your hints and tips could be added to that?

Posted: Tue Oct 07, 2008 21:59
by WolfyGirl
Enjay wrote:Perhaps you should look at the Zdoom Wiki page and see if any of your hints and tips could be added to that?
An list full with Programs you have to add. xD
i'll do that later, got school tomorrow(only 6 hours). =.=