Author Topic: How to solve the issue of FBA byte overflow during compilation?  (Read 283 times)

Offline hxghwx

  • Jr. Member
  • **
  • Posts: 50
  • Karma: +0/-3
As shown in the figure

Offline barbudreadmon

  • Administrator
  • *****
  • Posts: 1194
  • Karma: +68/-2
  • Helper
Re: How to solve the issue of FBA byte overflow during compilation?
« Reply #1 on: May 16, 2025, 02:27:08 AM »
There are far too few informations and an error message i can't even read ?

In the first place, if you are building your own executable instead of downloading our official binaries, i suppose that means you are not using an unmodified version of our latest source code ? In which case you should probably start by sharing informations about that.
Also keep in mind that the official compiler for FBNeo is currently mingw under the msys2 environment, support for other compilers can be spotty because most of our devs don't use them.

Maybe someone else can help you but i sure can't.

Offline TNTRafael

  • New Member
  • *
  • Posts: 4
  • Karma: +0/-0
Re: How to solve the issue of FBA byte overflow during compilation?
« Reply #2 on: May 16, 2025, 03:00:37 AM »
Open the file "makefile"

go to this part and disable the avi record with "#" like this:

# Include AVI recording support (uses Video For Windows)
# INCLUDE_AVI_RECORDING = 1

It should work after this, at least with the Mucci's tutorial and tools(ming/gcc) found right here in the forum

Offline barbudreadmon

  • Administrator
  • *****
  • Posts: 1194
  • Karma: +68/-2
  • Helper
Re: How to solve the issue of FBA byte overflow during compilation?
« Reply #3 on: May 16, 2025, 03:05:45 AM »
Open the file "makefile"

go to this part and disable the avi record with "#" like this:

# Include AVI recording support (uses Video For Windows)
# INCLUDE_AVI_RECORDING = 1

It should work after this, at least with the Mucci's tutorial and tools(ming/gcc) found right here in the forum

He seems to be using msvc instead of mingw, i think msvc uses project files from https://github.com/finalburnneo/FBNeo/tree/master/projectfiles instead of makefiles (i could be wrong).

Not sure why you'd need to do that with mucci's tutorial, it shouldn't be necessary with msys2+mingw.
« Last Edit: May 16, 2025, 03:07:01 AM by barbudreadmon »

Offline TNTRafael

  • New Member
  • *
  • Posts: 4
  • Karma: +0/-0
Re: How to solve the issue of FBA byte overflow during compilation?
« Reply #4 on: May 16, 2025, 03:29:52 AM »
He seems to be using msvc instead of mingw, i think msvc uses project files from https://github.com/finalburnneo/FBNeo/tree/master/projectfiles instead of makefiles (i could be wrong).

Not sure why you'd need to do that with mucci's tutorial, it shouldn't be necessary with msys2+mingw.

I'm not sure either but, i think he's using the project files from that previous thread you helped where he asks for the 0.2.97.44 source code

For curiosity i downloaded the source, i didn't know that trick too, i tried to compile with the old mingw 4.9 but didn't work any build (32/64/debug), at the end it always return many errors from that video libraries/objects

when you disable the avi record, it starts to compile all kinds of builds flawlessly
----------------
And you right, i'm totally confusing the files sorry about that, it's the makefile.vc you have to edit, but is worth a try disabling the video features
« Last Edit: May 16, 2025, 04:27:21 AM by TNTRafael »

Offline taoenwen

  • Newbies
  • *
  • Posts: 20
  • Karma: +3/-0
Re: How to solve the issue of FBA byte overflow during compilation?
« Reply #5 on: May 16, 2025, 04:01:11 AM »
makefile.vc only supports the latest fbneo source code and can only be compiled in a single task.

As for the original fba makefile.vc, I don't know what is needed, e.g. perxxx.bat, perl ...
« Last Edit: May 16, 2025, 04:04:37 AM by taoenwen »

Offline barbudreadmon

  • Administrator
  • *****
  • Posts: 1194
  • Karma: +68/-2
  • Helper
Re: How to solve the issue of FBA byte overflow during compilation?
« Reply #6 on: May 16, 2025, 04:50:49 AM »
Hmmm i think makefile.vc (and anything msvc) had been broken for quite some time before taoenwen started fixing it a few years ago.
I'd recommend mingw through msys2 for any version of this project.

note: i'd also recommend not using older version of this project, i can't see any reason to do that.
« Last Edit: May 16, 2025, 04:53:16 AM by barbudreadmon »

Offline dink

  • Administrator
  • *****
  • Posts: 5311
  • Karma: +498/-1
  • pie? I nearly bought one!
Re: How to solve the issue of FBA byte overflow during compilation?
« Reply #7 on: May 16, 2025, 09:23:17 AM »
Maybe this will help.  It's for:
Latest FBNeo & GCC 15.1.0

1: get GCC 15.1.0 from here:
to make 64bit exe
https://github.com/brechtsanders/winlibs_mingw/releases/download/15.1.0posix-12.0.0-msvcrt-r1/winlibs-x86_64-posix-seh-gcc-15.1.0-mingw-w64msvcrt-12.0.0-r1.zip

to make 32bit exe
https://github.com/brechtsanders/winlibs_mingw/releases/download/15.1.0posix-12.0.0-msvcrt-r1/winlibs-i686-posix-dwarf-gcc-15.1.0-mingw-w64msvcrt-12.0.0-r1.zip

2: Installing GCC 15.1.0 compiler
unzip archive to c:\utils\c
unzip compile_support_utils_revisited.zip to c:\utils\c\bin
(it is attached to this message)

3: Modify PATH
put c:\utils\c\bin in PATH
Google: adding to PATH in windows

4: FBNeo Source get.
Get FBNeo source code
https://github.com/finalburnneo/FBNeo  - click the green [<> CODE] button
unzip source in c:\fbneo

5: Now let's make .exe!
open cmd, cd to:
c:\fbneo\FBNeo-master

and type / paste this:
(64bit exe)
mingw32-make mingw -j 16 BUILD_X64_EXE=1
(32bit exe)
mingw32-make mingw -j 16

now wait a few minutes, and you'll have an exe. :)

best regards,
- dink
« Last Edit: May 16, 2025, 09:32:27 AM by dink »

Offline hxghwx

  • Jr. Member
  • **
  • Posts: 50
  • Karma: +0/-3
Re: How to solve the issue of FBA byte overflow during compilation?
« Reply #8 on: May 16, 2025, 10:05:04 PM »
I found that shortening the name of the game driver added to MAKEFILE can add more game drivers without errors. I wonder if there are any other methods?

Offline dink

  • Administrator
  • *****
  • Posts: 5311
  • Karma: +498/-1
  • pie? I nearly bought one!
Re: How to solve the issue of FBA byte overflow during compilation?
« Reply #9 on: May 17, 2025, 02:13:35 AM »
In fbneo, we link the drivers separately from the rest of the object files, so this gives us enough to work with.

best regards,
- dink

Offline hxghwx

  • Jr. Member
  • **
  • Posts: 50
  • Karma: +0/-3
Re: How to solve the issue of FBA byte overflow during compilation?
« Reply #10 on: May 17, 2025, 04:02:02 AM »
Adding an extra CPP file to MAKEFILE still works like this. If it exceeds the limit, it can compile normally. I don't know why?

Offline dink

  • Administrator
  • *****
  • Posts: 5311
  • Karma: +498/-1
  • pie? I nearly bought one!
Re: How to solve the issue of FBA byte overflow during compilation?
« Reply #11 on: May 17, 2025, 09:07:16 AM »
hxghwx,
Unfortunately, I don't know anything about MS Visual Studio