libretro / bsnes2014

Libretro fork of bsnes. As close to upstream as possible.
GNU General Public License v3.0
9 stars 17 forks source link

Cannot build on Linux #73

Open arromdee opened 3 years ago

arromdee commented 3 years ago

Following the instructions on https://docs.libretro.com/development/retroarch/compilation/linux-and-bsd/ results in being unable to compile bsnes balanced (or more precisely, being unable to compile it with openGL).

Adding $(info statements to the Makefile to trace through it and find the problem shows me that the platform is set to "unix-opengl" and the Makefile does not understand that, causing it to fall through to the else statement that applies to Windows. It then tries to compile a .dll using Windows libraries, which fails.

In addition, the libretro-build.sh script doesn't properly report the error. What actually happens is that bsnes is compiled twice, once successfully (as unix) and once unsuccessfully (as unix-opengl). However, the summary at the end of the script just says that the core was not processed successfully, rather than saying that it was successfully processed one way and unsuccessfully another.

hizzlekizzle commented 3 years ago

This core is software rendered. Why do you need to compile it with OpenGL?

It should just be: make target=libretro profile=balanced

arromdee commented 3 years ago

I "need to compile" it with OpenGL because when I follow the instructions on the Retroarch web page that tell me how to compile it, the steps described in the instructions will try to compile it with OpenGL. I actually had no idea whether it 'needs OpenGL, but I could imagine some reasons (for instance, it might use it to scale in fullscreen mode, or to rotate Mode 7).

If the instructions are wrong, they need to be fixed.