Author Topic: FB ALPHA PLUS! V0.2.95.23 [U7] compilie issue  (Read 8077 times)

Offline deep

  • New Member
  • *
  • Posts: 5
  • Karma: +0/-0
FB ALPHA PLUS! V0.2.95.23 [U7] compilie issue
« on: August 11, 2011, 10:33:02 PM »
Hi all:

I follow[Guide] Compiling FBA with MS Visual Studio (2010) and MinGW   to compile FB ALPHA PLUS! V0.2.95.23 [U7] version,but it is always fail.
Sourcecode sownload link is athttp://fbap.1emu.net/pages/downloads.html.
I have no idea to solve it.
Could someone help me,please. :redface:

MinGW:
below is me build tool:
A_mingwrt-3.16-mingw32-dll.tar.gz
B_mingwrt-3.16-mingw32-dev.tar.gz
C_binutils-2.19.1-mingw32-bin.tar.gz
D_w32api-3.13-mingw32-dev.tar.gz
E_mingw32-make-3.81-20090910.tar.gz
F_gcc-core-3.4.5-20060117-3.tar.gz
G_gcc-g++-3.4.5-20060117-3.tar.gz
ActivePerl-5.12.4.1205-MSWin32-x86-294981.msi
dx80_mgw.zip
fbaxbins.zip
mame-gnulike-20110519.exe
nasm-2.07-win32.zip
upx307w.zip

I have installed all of them into my xp system and set the path by the bat file in the fba folder.
Below is my buildmingw.bat
Code: [Select]
@echo off
set PATH=E:\Game_emulator\ezxfba\fbapu7_029523_src\compilie_tool\MinGW\Perl\bin;E:\Game_emulator\ezxfba\fbapu7_029523_src\compilie_tool\MinGW\bin;%PATH%
echo Setting up working folder...
echo Ready to go!
echo ###################################################
echo #            FB Alpha Compiler Utility            #
echo #                     Ready...                    #
echo ###################################################
echo --------------- Available options -----------------
echo 1 = normal build mode
echo 2 = Normal build compressed with UPX
echo 3 = Build a debug executable
echo 4 = Exit utility
echo ---------------------------------------------------

Title FB Alpha compiler utility

:START
set /p input=choice:
IF %input% == 1 goto NORMAL
IF %input% == 2 goto COMPRESS
IF %input% == 3 goto DEBUG
IF %input% == 4 goto EXIT
if %var% GTR 4 echo Invalid option!

:NORMAL
cls
echo Procesing input...
mingw32-make
goto START

:COMPRESS
cls
echo Procesing input...
mingw32-make COMPRESS=1
goto START

:DEBUG
cls
echo Procesing input...
mingw32-make DEBUG=1
goto START

:EXIT
Leaving the compile utility...
when i execute this bat, it will build fail.

so I modify the makefile.mingw file to inclue -I$(srcdir)vc/include
Code: [Select]
incdir = $(foreach dir,$(alldir),-I$(srcdir)$(dir)) -I$(objdir)generated -I$(srcdir)mingw/include -I$(srcdir)vc/include -I-
Then build again.
But, this time occur the error again.

this is a very trick error.
so i have no idea about this.
Did i miss some step or details?
Thanks for your reply and you time.

Offline deep

  • New Member
  • *
  • Posts: 5
  • Karma: +0/-0
Re: FB ALPHA PLUS! V0.2.95.23 [U7] compilie issue
« Reply #1 on: August 11, 2011, 10:57:43 PM »
Then i try to build the same version(FB ALPHA PLUS! V0.2.95.23 [U7]) by another way:VC.
I follow the Topic: FB Alpha Compiling tools 
http://neo-source.com/index.php?topic=1041.0
and download/install the tool below
5.2.3790.2075.51.PlatformSDK_Svr2003R2_rtm.img
dxsdk_oct2004.exe
vcsetup.exe
fbaxbins_v2.zip
But it is still fail  :redface:

below is my buildvc.bat
Code: [Select]
@echo off
@call "C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\SetEnv.Cmd"
@call "C:\Program Files\Microsoft DirectX 9.0 SDK (October 2004)\Utilities\Dx_Setenv.cmd"
@call "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"
@echo _
@path = E:\Game_emulator\ezxfba\fbapu7_029523_src\compilie_tool\VC\fbaxbins_v2\unixutils\bin;%path%
@path = E:\Game_emulator\ezxfba\fbapu7_029523_src\compilie_tool\VC\fbaxbins_v2\perl\bin\MSWin32-x86;%path%
@path = E:\Game_emulator\ezxfba\fbapu7_029523_src\compilie_tool\VC\fbaxbins_v2\nasm-2.03.01;%path%
@make vc
@echo _
@echo FB Alpha Compilation using Visual Studio 9 (VC toolkit) Done.
@pause
when i execute it , occur the error

so i modify the WINABLE.H file
I mark this
Code: [Select]
//typedef DWORD   HWINEVENTHOOK;typedef DWORD   HWINEVENTHOOK;
for using winuser.h's define
when I built again, another error is occured.

I am so depressed to do this.
Could some one help me please.
Thanks a lot!!

Offline doomking

  • Jr. Member
  • **
  • Posts: 69
  • Karma: +21/-0
Re: FB ALPHA PLUS! V0.2.95.23 [U7] compilie issue
« Reply #2 on: August 12, 2011, 11:36:20 AM »
MINGW COMPILE ENVIORMENT FOR FB ALPHA PLUS!

http://fbap.1emu.net/pages/utilities.html

Offline deep

  • New Member
  • *
  • Posts: 5
  • Karma: +0/-0
Re: FB ALPHA PLUS! V0.2.95.23 [U7] compilie issue
« Reply #3 on: August 14, 2011, 10:11:30 PM »
MINGW COMPILE ENVIORMENT FOR FB ALPHA PLUS!

http://fbap.1emu.net/pages/utilities.html

Thanks for doomking's help.
But I have tried it before ,It didn't work.
And NATIVE ASSEMBLER link are fail.

So I look for another way and try again. :redface:

Offline doomking

  • Jr. Member
  • **
  • Posts: 69
  • Karma: +21/-0
Re: FB ALPHA PLUS! V0.2.95.23 [U7] compilie issue
« Reply #4 on: August 15, 2011, 05:25:04 AM »

Offline deep

  • New Member
  • *
  • Posts: 5
  • Karma: +0/-0
Re: FB ALPHA PLUS! V0.2.95.23 [U7] compilie issue
« Reply #5 on: August 15, 2011, 09:59:05 PM »
http://www.nasm.us/

I have  tried it.

I download these tools and install them in the MinGW folder
1.MINGW COMPILE ENVIORMENT FOR FB ALPHA PLUS!
2.MINIMALIST GNU FOR WINDOWS
3.ULTIMATE PACKER FOR EXECUTABLES
4.•The latest stable version of NASM is 2.09.10 (revision history).

But it still fail


Offline doomking

  • Jr. Member
  • **
  • Posts: 69
  • Karma: +21/-0
Re: FB ALPHA PLUS! V0.2.95.23 [U7] compilie issue
« Reply #6 on: August 16, 2011, 01:55:24 AM »

Offline deep

  • New Member
  • *
  • Posts: 5
  • Karma: +0/-0
Re: FB ALPHA PLUS! V0.2.95.23 [U7] compilie issue
« Reply #7 on: August 17, 2011, 04:55:56 AM »
download fbapu7_029523_src_fix.7z
http://www.mediafire.com/?t8ksrk2atdycit3

download mingw452.7z
http://www.mediafire.com/?4f535irru9mfa43

Thanks for doomking. It's build success.
And I merge your code with mine.
There are three files differently.
1.My local version without src/libs library
2.mingw_win32.h
3.makefile.mingw

The attachment which have old Vice-file name is my local version.

Does someone know why the  makefile and mingw_win32.h must be modified like that.

Final , thanks doomking's sharing. It's very helpfulness. :cool: