Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated bgfx to github commit 7b8d531 #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Menion2k
Copy link

@Menion2k Menion2k commented Mar 6, 2019

Updated bx to github commit 13e2211
Added bimg github commit 084e14e

Files from bimg required by bgfx are compiled in the same libbgfx.a library for convinience

Signed-off-by: Menion menion@gmail.com

Updated bx to github commit 13e2211
Added bimg github commit 084e14e

Files from bimg required by bgfx are compiled in the same libbgfx.a library for convinience

Signed-off-by: Menion <menion@gmail.com>
@markwkidd
Copy link
Contributor

markwkidd commented Mar 6, 2019

I am not finding a 7b8d531 commit in the MAMEdev repository: https://github.com/mamedev/mame/search?q=7b8d531&type=Commits

Is that the right hash, or did I misunderstand what you were writing about that?

Edit: I want to clarify that I am very excited for this improvement to MAME 2016!

@markwkidd
Copy link
Contributor

markwkidd commented Mar 6, 2019

For the record, I can't clone this repo's master branch and get to compile in the standard libretro msys2 environment in Windows 10 x64. Seems to be a Makefile issue:

$ make -j3
GCC 8.2.1 detected
fatal: No names found, cannot describe anything.
makefile:942: *** MINGW32 is not set.  Stop.

edit: I also tried make Makefile.libretro -j3 with a similar result. I haven't done any more investigation though

@r-type
Copy link
Contributor

r-type commented Mar 6, 2019

Hum since bgfx is not used in libretro port , i bet we can just remove it!

@r-type
Copy link
Contributor

r-type commented Mar 6, 2019

this should do the trick
https://pastebin.com/rEXuTUaC

@Menion2k if you can try to build using this patch to see if it works for you.

@r-type
Copy link
Contributor

r-type commented Mar 6, 2019

@markwkidd
did you look at this
#9

@markwkidd
Copy link
Contributor

I have to apologize I did not, I've just been following this issue in the forum where it started as an enhancement for RPi/ARM compilation and didn't browse around much here.

I'll read a bit more

@r-type
Copy link
Contributor

r-type commented Mar 6, 2019

@markwkidd
for your windows build maybe you can try an
make Makefile.libretro -j3 PTR64=1

@Menion2k
Copy link
Author

Menion2k commented Mar 7, 2019

I am not finding a 7b8d531 commit in the MAMEdev repository: https://github.com/mamedev/mame/search?q=7b8d531&type=Commits

Is that the right hash, or did I misunderstand what you were writing about that?

I am not updating mame, I have just updated bgfx and bx to the mentioned commits from their original Github branch in order to solve compilation issues with recent GCC

Hum since bgfx is not used in libretro port , i bet we can just remove it!

Honestly I don't follow this. The original mam2016 libretro porting used bgfx why are you saying it is not needed? Have you beeb able to compile and run mame2016 without it?

@r-type
Copy link
Contributor

r-type commented Mar 7, 2019

Yes if course it run.
Btw i have done this port and i know what i mean when i said ,libretro mame dont use bgfx 😁

@markwkidd
Copy link
Contributor

I applied the patch but there still seems to be some fundamental issue with Makefile.libretro for Windows x64:

$ patch -p1 < patch.diff
patching file Makefile.libretro
patching file scripts/genie.lua
patching file scripts/src/3rdparty.lua
patching file scripts/src/main.lua

$ make Makefile.libretro -j3 PTR64=1
GCC 8.2.1 detected
fatal: No names found, cannot describe anything.
make: Nothing to be done for 'Makefile.libretro'.

@markwkidd
Copy link
Contributor

I still have not done any investigating on this myself to be clear. I just plugged those commands into a fresh clone of the master branch.

@r-type
Copy link
Contributor

r-type commented Mar 7, 2019

I have no windows ATM to test an msys2 build,
but did you test
$ make Makefile.libretro -j3 PTR64=1
or
make -f Makefile.libretro -j3 PTR64=1
as you should use the "-f" to point the makefile.

@markwkidd
Copy link
Contributor

markwkidd commented Mar 8, 2019

@r-type thank you, that built!

There is still a Makefile syntax error somewhere but it doesn't seem to be a big problem because with your patch applied I was able to build a functioning MAME 2016 core in the Windows 10 x64 msys2 environment.

@r-type
Copy link
Contributor

r-type commented Mar 17, 2019

nice to here! BTW this patch also works with the last mame core, as i repeat we don't use for now bgfx in mame libretro core.
maybe we can commit it and close this PR then.

@Menion2k
Copy link
Author

I have very little time to apply the patch and resubmit the PR, I don't have anything against that someone pick my branch, apply the bgfx patch and submit the PR
Bye

joolswills added a commit to joolswills/RetroPie-Setup that referenced this pull request May 10, 2019
 * disable bgfx (fails on neon with recent GCC due to outdated SIMD instrinsics)
 * see libretro/mame2016-libretro#25
joolswills added a commit to joolswills/RetroPie-Setup that referenced this pull request May 10, 2019
 * disable bgfx (fails on neon with recent GCC due to outdated SIMD instrinsics)
 * see libretro/mame2016-libretro#25
joolswills added a commit to joolswills/RetroPie-Setup that referenced this pull request May 10, 2019
 * disable bgfx (fails on neon with recent GCC due to outdated SIMD instrinsics) - patch by r-type
 * see libretro/mame2016-libretro#25
barbudreadmon pushed a commit to barbudreadmon/RetroPie-Setup that referenced this pull request May 14, 2019
 * disable bgfx (fails on neon with recent GCC due to outdated SIMD instrinsics) - patch by r-type
 * see libretro/mame2016-libretro#25
joolswills added a commit to RetroPie/RetroPie-Setup that referenced this pull request May 15, 2019
  * disable bgfx (fails on neon with recent GCC due to outdated SIMD instrinsics) - patch by r-type
  * see libretro/mame2016-libretro#25
@inactive123
Copy link
Contributor

inactive123 commented Aug 9, 2019

Alright, so what is the consensus here? Should bgfx be removed? AFAIK, it just adds additional lag and it was not ideal right now since no emulators inside MAME use it for hardware acceleration anyway. So get rid of it or not?

@klepp0906
Copy link

same issue. cant compile. same error about mingw32 not being set.

not that this needed another voice, but since i found it looking for a solution >.>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants