Author Topic: Compile Error  (Read 1182 times)

Offline cap

  • Newbies
  • *
  • Posts: 5
  • Karma: +0/-0
  • Dream on Interactive Manga Anime
Compile Error
« on: May 07, 2017, 11:17:14 am »
hi,
I've played with Final Burn Alpha on many Capcom titles. Now I would like to play Final Fight again but I also want to better understand the programming behind this emulator so to begin I tried to compile FBA with Windows 10 based on the Compile Guide at http://www.fbalpha.com/compile/.

I extracted mingw345.7z under D:\D:\fba\ming
, installed ActivePerl 5.24 under C:\Perl (default dir)
, extracted fba_src_029740.7z under D:\fba\fbasrc

Then I started the prompt as an Administraor (I don't think that's necessary but it's a common issue on later windows)
I typed
path=d:`\fba\ming\bin;%PATH%
There was no problem when I pressed Enter then I went on with
minggw32-make ming
The command prompt then said
mingw32-make: *** No rule to male target 'ming'. Stop.
It must be a beginner's matter of what sort but I can't stand such a sassy behavior from the prompt.
What did I forget please ?

Offline dink

  • Administrator
  • *****
  • Posts: 2570
  • Karma: +220/-0
  • feed the horse yumyum
Re: Compile Error
« Reply #1 on: May 07, 2017, 02:07:53 pm »
Hi cap,
try this command instead: mingw32-make mingw345

best regards,
- dink

Offline cap

  • Newbies
  • *
  • Posts: 5
  • Karma: +0/-0
  • Dream on Interactive Manga Anime
Re: Compile Error
« Reply #2 on: May 08, 2017, 06:23:49 am »

I didn't think it was that easy.
I thought ming in the command was the name of the folder where I extracted folder : D:\fba\ming
minggw32-make ming
It works!
Although not thoroughly

The compile process ends with these lines

src/cpu/mips3/mips3_common.h:4:19: cstdint: No such file or directory
src/burn/drv/midway/d_kinst.cpp:531: warning: unused parameter 'nAction'
src/burn/drv/midway/d_kinst.cpp:531: warning: unused parameter 'pnMin'
mingw32-make[1]: *** [d_kinst.o] Error 1
mingw32-make: *** [mingw345] Error 2

So the final .exe is nowhere to be found.
Any more clue(s) please ?

I feel ashamed  :biggrin:
Thank you
« Last Edit: May 08, 2017, 07:07:48 am by cap »

Offline Treble Winner

  • FBA Dev
  • ******
  • Posts: 1802
  • Karma: +104/-0
  • FB Alpha Team
    • http://www.barryharris.me.uk
Re: Compile Error
« Reply #3 on: May 08, 2017, 07:18:38 am »
Comment out (put a # before it) this line in the makefile;

Code: [Select]
INCLUDE_CPLUSPLUS11_FILES = 1
GCC 3.4.5 doesn't support C++11 that is required by some drivers.

Offline cap

  • Newbies
  • *
  • Posts: 5
  • Karma: +0/-0
  • Dream on Interactive Manga Anime
Re: Compile Error
« Reply #4 on: May 08, 2017, 08:40:02 am »
I don't understand.

I've commented D:\fba\fbasrc\makefile, line 40
INCLUDE_CPLUSPLUS11_FILES = 1
becomes
#INCLUDE_CPLUSPLUS11_FILES = 1

But I still get errors and no .exe

I think I'd better forget about it
« Last Edit: May 08, 2017, 08:53:02 am by cap »

Offline dink

  • Administrator
  • *****
  • Posts: 2570
  • Karma: +220/-0
  • feed the horse yumyum
Re: Compile Error
« Reply #5 on: May 08, 2017, 10:07:33 am »
Don't give up, we'll help you figure it out! :)
after you made the change to  "#INCLUDE_CPLUSPLUS11_FILES = 1", can you pls. post the error messages you get now?

best regards,
- dink

I don't understand.

I've commented D:\fba\fbasrc\makefile, line 40
INCLUDE_CPLUSPLUS11_FILES = 1
becomes
#INCLUDE_CPLUSPLUS11_FILES = 1

But I still get errors and no .exe

I think I'd better forget about it

Offline cap

  • Newbies
  • *
  • Posts: 5
  • Karma: +0/-0
  • Dream on Interactive Manga Anime
Re: Compile Error
« Reply #6 on: May 08, 2017, 10:34:20 am »
mingw32-make mingw345
Making normal build...

Generating depend file for src/burner/win32/about.cpp...
Generating depend file for src/burner/win32/resource.rc...
Compiling src/burn/drv/sega/sys16_gfx.cpp...
src/burn/drv/sega/sys16_gfx.cpp: In function `void System16PaletteInit()':
src/burn/drv/sega/sys16_gfx.cpp:3004: error: `nullptr' was not declared in this scope
mingw32-make[1]: *** [sys16_gfx.o] Error 1
mingw32-make: *** [mingw345] Error 2

« Last Edit: May 08, 2017, 11:11:17 am by cap »

Offline dink

  • Administrator
  • *****
  • Posts: 2570
  • Karma: +220/-0
  • feed the horse yumyum
Re: Compile Error
« Reply #7 on: May 08, 2017, 06:17:31 pm »
That was actually a bug on our side, sorry about that.  Here is a new sys16_gfx.cpp with the problem solved so that it will compile fine w/gcc 3.x.  Download the attachment and put it in src\burn\drv\sega (copy it over the old one)

best regards,
- dink

Offline cap

  • Newbies
  • *
  • Posts: 5
  • Karma: +0/-0
  • Dream on Interactive Manga Anime
Re: Compile Error
« Reply #8 on: May 09, 2017, 04:17:14 am »
I got my FBA.exe in v 0.2.97.40 compiled!
I played Final Fight (World, set 1) with my basic USB Thrustmaster joystick.
These games are real fun. I can't reach the 2nd district with a single coin though.
I would run out of money whether I would finnish it!

The input menu with Directinput is wonderful. I can map any buttons, axes... incredible.
There are PC games with less mapping possibilities!

Also I'm amazed you've found the faulty cpp.
Could you tell what you amended in sys16_gfx.cpp ?
By the way could you tell me which files can be edited to amend frontend gfx or strings... for me to accomplish a visual exploit.
Thank you
« Last Edit: May 15, 2017, 11:54:27 am by cap »