Welcome!

Final Burn Neo => FBN Development => Topic started by: hxghwx on May 15, 2025, 10:21:53 PM

Title: How to solve the issue of FBA byte overflow during compilation?
Post by: hxghwx on May 15, 2025, 10:21:53 PM
As shown in the figure(http://)
Title: Re: How to solve the issue of FBA byte overflow during compilation?
Post by: barbudreadmon 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 (https://github.com/finalburnneo/FBNeo/releases/tag/latest), 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 (https://www.msys2.org/), 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.
Title: Re: How to solve the issue of FBA byte overflow during compilation?
Post by: TNTRafael 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
Title: Re: How to solve the issue of FBA byte overflow during compilation?
Post by: barbudreadmon 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.
Title: Re: How to solve the issue of FBA byte overflow during compilation?
Post by: TNTRafael 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
Title: Re: How to solve the issue of FBA byte overflow during compilation?
Post by: taoenwen 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 ...
Title: Re: How to solve the issue of FBA byte overflow during compilation?
Post by: barbudreadmon 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.
Title: Re: How to solve the issue of FBA byte overflow during compilation?
Post by: dink 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
Title: Re: How to solve the issue of FBA byte overflow during compilation?
Post by: hxghwx 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?
Title: Re: How to solve the issue of FBA byte overflow during compilation?
Post by: dink 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
Title: Re: How to solve the issue of FBA byte overflow during compilation?
Post by: hxghwx 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?
Title: Re: How to solve the issue of FBA byte overflow during compilation?
Post by: dink on May 17, 2025, 09:07:16 AM
hxghwx,
Unfortunately, I don't know anything about MS Visual Studio
Title: Re: How to solve the issue of FBA byte overflow during compilation?
Post by: taoenwen on May 21, 2025, 12:32:18 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?

我看到了中文。

XP 应该没几个人在用了,更没有条件去测试,建议使用新一点的 OS。