Compile a Core for a Specific Platform

It’s been a while since I programmed, but I am attempting to update the beetle saturn core for linux. I am compiling on Ubuntu so I’m following the compile guide at https://docs.libretro.com/development/retroarch/compilation/ubuntu/.

For the make file

$ make -f Makefile.libretro

how do you specify to build only the .so for linux x86_64?

1 Like

if you’re just trying to build the one core, just clone the core’s repo (https://github.com/libretro/beetle-saturn-libretro) and then ‘make’

Thanks hunterk. I did that, but do I have to specify a target platform?

I only want to build for linux x86_64. I don’t want a windows .dll, android, etc. I was thinking the make file would build multiple versions of the core, do I specifically need to pass a parameter to only build for linux x86_64?

No, it should detect your platform. If you’re trying to cross-compile, you’ll need to do something like “platform=win CC=x86_64-w64-mingw-gcc CXX=x86_64-w64-mingw-g++” but native compiles should work fine without all that.

1 Like