Author Topic: FB Alpha Compiling tools  (Read 10493 times)

Offline CaptainCPS

  • FBNeo Dev
  • ******
  • Posts: 1513
  • Karma: +127/-0
  • FB Alpha Team
    • CaptainCPS's Home
FB Alpha Compiling tools
« on: September 12, 2008, 10:54:12 AM »
Visual C++ Environment files:

DirectX 9.0 SDK Update - (October 2004)

Windows® Server 2003 R2 Platform SDK ISO Download

Visual C++ 2008 Express Edition

The following 'binaries pack' is needed always and normally are placed in the same directory as MINGW, but I made a separate package for use with VC compile tools:

http://rapidshare.com/files/144686715/fba_compile_binaries.7z.html (updated link with better directory structure pack)

Sample FBA_Compile_VC.BAT (paths are variable depending on where you installed everything)

Quote
@echo off
@call "C:\Microsoft Platform SDK for Windows Server 2003 R2\SetEnv.Cmd"
@call "C:\Microsoft DirectX 9 SDK (October 2004)\Utilities\Dx_Setenv.cmd"
@call "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"
@echo _
@path = C:\fba_compile_binaries\unixutils\bin;%path%
@path = C:\fba_compile_binaries\perl\bin\MSWin32-x86;%path%
@path = C:\fba_compile_binaries\nasm-2.03.01;%path%
@make vc
@echo _
@echo FB Alpha Compilation using Visual Studio 9 (VC toolkit) Done.
@pause

MinGW Environment files (This is my own personal package, throws no error + no warnings):

http://rapidshare.com/files/144679113/mingw_capcpsx.7z.html [~10 MB] [no unneeded stuff ^^]

And the FBA_Compile_MinGW.BAT file I use based on that:

Quote
@cls
@path=C:\mingw\perl\bin\MSWin32-x86;%path%
@path=C:\mingw\bin;%path%
@prompt = mingw$s$p$g
@mingw32-make
@echo _
@echo FB Alpha Compilation using MinGW v3.1 Environment Done.
@echo _
@pause

PS: I'm short of time now so excuse me if I don't explain to much at this moment ^^U, if anyone wanna comment about something go on!  :wink:.

SeeYaa!
 :biggrin:
« Last Edit: September 27, 2010, 12:58:17 AM by CaptainCPS-X »

Offline kenshiro

  • Expert
  • *****
  • Posts: 145
  • Karma: +21/-0
Re: _[ FB Alpha Compiling tools ]_
« Reply #1 on: September 12, 2008, 11:51:14 AM »
Thanks a lot! That was a pain in the ass to set my development environment to compile a PC build of FBA (there's not just the Xbox build in the life lol).

Thanks ;p

Offline jlac10

  • New Member
  • *
  • Posts: 8
  • Karma: +0/-0
Re: _[ FB Alpha Compiling tools ]_
« Reply #2 on: September 13, 2008, 06:07:52 AM »
   
thank you very much CaptainCPS-X. how can I compile version for non unicode Win9x?
I'm sorry for my poor English

Offline CaptainCPS

  • FBNeo Dev
  • ******
  • Posts: 1513
  • Karma: +127/-0
  • FB Alpha Team
    • CaptainCPS's Home
Re: _[ FB Alpha Compiling tools ]_
« Reply #3 on: September 13, 2008, 11:31:30 AM »
   
thank you very much CaptainCPS-X. how can I compile version for non unicode Win9x?
I'm sorry for my poor English

there are 3 makefiles in the main source directory, "makefile", "makefile.mingw" and "makefile.vc", you must open with notepad the first one "makefile" and look for this:

UNICODE = 1

then change that line to ...

#UNICODE = 1

...after doing that, save the "makefile", delete the old 'obj' directory to make sure everything goes fine and compile FBA again ^^

You will have a final 'fbaa.exe', that's the ANSI (non-unicode) build  ;p

SeeYaa!
 :biggrin:

Offline Akheron

  • Newbies
  • *
  • Posts: 12
  • Karma: +1/-0
Re: _[ FB Alpha Compiling tools ]_
« Reply #4 on: March 28, 2009, 12:56:02 AM »
Ok i need mingw, is this for support for C99? If i already know C++ will i need to learn this dialect of C?