Skip to content

Compile RetroArch cores for aarch64 devices using WSL2 + Ubuntu 22.04

Notifications You must be signed in to change notification settings

jfroco/retroarch-cores-aarch64

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

retroarch-cores-aarch64

Compile RetroArch cores for aarch64 devices using WSL2 + Ubuntu 22.04

I have tested this procedure on Windows 10 WSL2 + Ubuntu 22.04.01LTS and on an Anbernic RG28XX device using Knulli Batocera Linux distro.

  1. Install WSL and enable WSL version 2 in Windows
  2. Install Ubuntu 22.04.01 LTS from the Microsoft Store

From now on, run everything in your Ubuntu terminal:

  1. Update and upgrade Ubuntu
sudo apt -y update && sudo apt -y upgrade
  1. Install the necessary packages (*)
sudo apt -y install build-essential git libarchive-zip-perl rsync zip python3 python3-pip python3-setuptools python3-wheel ninja-build libopenal-dev premake4 autoconf gcc-aarch64-linux-gnu g++-aarch64-linux-gnu

(*) Packages recommended by https://github.com/christianhaitian/retroarch-cores , adding g++-aarch64-linux-gnu and removing gcc-arm-linux-gnueabihf

  1. Clone your libretro core (e.g., fuse-libretro)
mkdir libretro && cd libretro

git clone --recursive https://github.com/libretro/fuse-libretro.git

cd fuse-libretro
make clean
  1. Compile the core
CC=aarch64-linux-gnu-gcc CXX=aarch64-linux-gnu-g++ make -j$(nproc) 
  1. Strip the core
aarch64-linux-gnu-strip fuse_libretro.so
  1. Copy the new core (.so file) to the appropriate folder. In the case of Knulli Batocera, copy it to the SD card in this folder:"
/usr/lib/libretro/

Now, continue on your device:

  1. Test the core

  2. Save it permanently using the command line (SSH or similar) on your device:

batocera-save-overlay

Packages precompiled

You can find the following precompiled cores in https://github.com/jfroco/retroarch-cores-aarch64/tree/main/cores :

About

Compile RetroArch cores for aarch64 devices using WSL2 + Ubuntu 22.04

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published