Author Topic: Compile Error  (Read 28957 times)

Offline cap

  • New Member
  • *
  • 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: 5170
  • Karma: +465/-1
  • pie? I nearly bought one!
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

  • New Member
  • *
  • 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 Barry Harris

  • dontbeabarry
  • *
  • Posts: 1785
  • Karma: +0/-65535
  • I'm Barry Harris and I like to f*** people over
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.
Account of Barry Harris; the traitor.
Send me an e-mail at barry@fbalpha.com letting me know how big of a piece of sh** I am.

Offline cap

  • New Member
  • *
  • 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: 5170
  • Karma: +465/-1
  • pie? I nearly bought one!
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

  • New Member
  • *
  • 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: 5170
  • Karma: +465/-1
  • pie? I nearly bought one!
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

  • New Member
  • *
  • 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 »

Offline Joaquim2020

  • Sr. Member
  • ****
  • Posts: 269
  • Karma: +4/-11
Re: Compile Error
« Reply #9 on: May 21, 2020, 03:24:39 PM »
Hi cap,
try this command instead: mingw32-make mingw345

best regards,
- dink

How to compile only one source or two? For example i want Neo Geo and Cave.

Offline dink

  • Administrator
  • *****
  • Posts: 5170
  • Karma: +465/-1
  • pie? I nearly bought one!
Re: Compile Error
« Reply #10 on: May 21, 2020, 07:40:34 PM »
edit makefile.burn_rules and find "drvsrc =", now take out all the drivers except neogeo and cave drivers.

best regards,
- dink