ducalex / retro-go

Retro emulation for the ODROID-GO and other ESP32 devices
GNU General Public License v2.0
489 stars 114 forks source link

Improve SDL compilation instructions #118

Open tomvanbraeckel opened 1 week ago

tomvanbraeckel commented 1 week ago

I see retro-go has an "sdl2" target that would presumably allow running it on a regular, x86/64 desktop computer, I think...

But I can't find documentation on how to do it, in components/retro-go/targets/sdl2/docs/README.md or BUILDING.md

I apt-get installed libsdl2-dev and ran:

./rg_tool.py --target sdl2 build

But immediately it complains about:

IDF_PATH is not defined. Are you running inside esp-idf environment?

And with IDF_PATH set as usual, of course ESP_PLATFORM is set and then it tries to compile all sorts of non-desktop things.

So I was wondering if some more instructions could be added about this, or provided here, or just some clarification that "this is not supported anymore" if that's the case.

ducalex commented 1 week ago

SDL2 target is only for myself, for debugging and profiling, hence the no documentation. It works but it must be built manually (gcc/tcc/clang supported) and launching a game must be done by editing the config and I think the display patches are missing from master right now.

It will never be a prime target but I agree that it would be nice to eventually make it easy to build the SDL2 version. It would make it simpler for people to tinker.

We can keep this issue open as a reminder!

tomvanbraeckel commented 1 week ago

Ah yes, that makes sense, thanks!

I would love to also be able to do some debugging and profiling ;-)

Not to push, but as a first step, I made this list of what's needed:

ducalex commented 6 days ago

I've pushed to a temp branch, though it no longer works very well due to changes since I last used it. But it should build!

https://github.com/ducalex/retro-go/commit/7cd4a38c600d29f42f03cbac407b1caa09a69be9

The build scripts builds the launcher and retro-core then runs both. The first run will create the folder structure where you can drop some roms to test.

I build with mingw64 (it also works with tinycc and clang) so you might have to change some things if you run Linux proper.

tomvanbraeckel commented 6 days ago

That's so cool! Let me see if I can get it to work on Linux proper :-D