Welcome to my new 2015 guide that will help those people interested to compile the latest FB Alpha sources. I made this guide as simple and short as possible, I personally made the procedure before writing this up, to make sure everything is all good. As reference, my system is: Windows 8.1 (x64).

This guide might get updated in the future if needed, so check back later if you're interested.

No environment variables will be added to Windows, the resulting build environment will serve for the main purpose of compiling FB Alpha. In case you want to uninstall / remove the build environment, you can just remove the installed files and no programs will be affected by this.

I - REQUIREMENTSBefore you proceed you must download the following Self Executable / RAR I prepared that already has TDM-GCC Compiler Suite v4.9.2-3, NASM v2.11.08 and the GNU Utils.

IV - CREATING A BATCH / CMD FILEA Batch or Cmd is a text-based file that will help us compile FB Alpha easily without having to open Windows Command Prompt, it will automatically summon the Command Prompt and execute the desired commands. Remember to run it as Administrator to avoid any issues with the system.

1- Create a new .TXT document on c:\fba_dev\fba_src_xxxxxx\ and rename it to compile_mingw_gcc492.cmd2- Open it in NOTEPAD, then COPY / PASTE the following and SAVE it:

Quote

@ECHO OFF@SET "PATH=c:\mingw64\bin;c:\Perl64\bin"

@mingw32-make mingw471

@PAUSE

V - COMPILING / BUILDING FBA1- Run compile_mingw_gcc492.cmd (as administrator if you encounter any system access issues)

2- After the process end you will have fba.exe in the same directory. COPY it to another directory before running / testing it, if you want to avoid having many directories created in your FB Alpha Source / development directory.

Note: If you want to build the x64 version of FBA just modify the CMD file with this:

Quote

@mingw32-make mingw471 BUILD_X64_EXE=1

and if you want to build a debug FBA version this:

Quote

@mingw32-make mingw471 BUILD_X64_EXE=1 DEBUG=1

These are located in the makefile, so you could comment/un-comment them as well.

For those who go the MingW route and like a custom installation (like me), and compile under the mingw shell; here are some tips:Grab the latest MingW installer and install, at: https://osdn.net/projects/mingw/While installing MingW: If you get an error on libisl, grab the libisl package directly from the page and unpack it with WinRAR into \mingw

See the attachments:First expand the dx8 mingw headers and lib directory into \mingw\ - this allows compile of the basic/enhanced blitters

You'll also need the Official MS DirectX 9 headers. From the source:https://www.microsoft.com/en-us/download/details.aspx?id=6812 (573MB)an Easy route: open the installer exe with WinRAR and copy out the "includes" directory.From attachment of this message (0.5MB)Unpack this into c:\mingw and overwrite any .h files which were previously there.

Even though this MingW installs gcc 6.3.0, you'll use the "make mingw510" target, because that's just the target for 5.1.0 and above.

For those who go the MingW route and like a custom installation (like me), and compile under the mingw shell; here are some tips:Grab the latest MingW installer and install, at: https://osdn.net/projects/mingw/While installing MingW: If you get an error on libisl, grab the libisl package directly from the page and unpack it with WinRAR into \mingw

You'll need the Official MS DirectX headers. From the source:https://www.microsoft.com/en-us/download/details.aspx?id=6812 (573MB)an Easy route: open the installer exe with WinRAR and copy out the "includes" directory.From attachment of this message (0.5MB)Unpack this into c:\mingw and overwrite any .h files which were previously there.

Even though this MingW installs gcc 6.3.0, you'll use the "make mingw510" target, because that's just the target for 5.1.0 and above.

best regards,- dink

I did installed the DX SDK jun2010, perl64, mingw from the link you have shared, did over write the include files, put the nasm.exe inside C:\MinGW\bin and i did make sure the "C:\Perl64\bin" "C:\MinGW\bin" were added to the variable path. Yet still unable to compile it.

gcc --versiongcc (MinGW.org GCC-8.2.0-1) 8.2.0Copyright (C) 2018 Free Software Foundation, Inc.This is free software; see the source for copying conditions. There is NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Hmm, I remember now, a long time ago I put dx8 headers on first, then dx9 headers. dx8 has the ddraw and others.See attachment after expanding this one, make sure to copy dx9 headers over these, again. (includes directory)... you also might have to put the lib directory in dx8_mgw.zip into mingw/lib

@dink Thank you very much, it worked successfully compiled the x86 build.I tried make a non-debug build by using the flag "DEBUG=0" but for some reason made a debug build, yet it's just a minor issue =P

@dink Thank you very much, it worked successfully compiled the x86 build.I tried make a non-debug build by using the flag "DEBUG=0" but for some reason made a debug build, yet it's just a minor issue =P