BueniaDev / libmbGB

Game Boy (Color) emulation library, sorta
GNU General Public License v3.0
3 stars 0 forks source link

Building on repl.it is broken (see below) #18

Open BueniaDev opened 3 years ago

BueniaDev commented 3 years ago

There appear to be numerous issues with libmbGB's repl.it functionality, shown below:

  1. CMake is incorrectly set to use the Windows-based "MSYS Makefiles" generator in the repl.it build script, despite repl.it's terminals being Linux systems.
  2. Even if number 1 is fixed, the CMake configuration fails anyways, due to the SDL2 reference frontend currently relying on the OpenGL and GLEW libraries, which aren't even installed on repl.it's terminals.

Here what needs to be done in order to solve this problem:

  1. Set CMake to use the "Unix Makefiles" generator in the repl.it build script.
  2. Modify the SDL2 reference frontend and its corresponding CMakeLists.txt file to make building the hardware-accelerated OpenGL rendering backend (and by extension, building the frontend with the OpenGL and GLEW libraries) optional.

The reason this issue is even open in the first place is because, even though this issue can be easily fixed, the real work comes in actually implementing these bugfixes.

So yeah, wish me luck on that!

BueniaDev commented 3 years ago

For some reason, GitHub automatically closed the issue before I could verify that it was fixed. I will reclose the issue once I get that sorted out, okay?

BueniaDev commented 3 years ago

Quick update: The core library (libmbGB) builds just fine with Repl.it's stock GCC 7.5, but the SDL2 frontend errors out due to missing headers. So for now, this issue will remain open. Will commence work on a fix in the coming days. See you around, everybody!