RetroArch Megathread


hi i think this is great but for some reason after i do the make -j4 it runs until it says “virtual memory exhausted: Cannot allocate memory”, I’ve done the make -j4 again and it happened again, should i restart?? or is there something i need to do. i will put a picture of what i have done
gameshell%20code%202 gameshell%20code%203 gameshell%20coding%201


sorry the second and third are not in order


you don’t have enough free ram on your system to compile this
try to add a swap file
this will use sd card to fake more ram

(or wait anyone compile this and use his binary
that’s why i create custom repo, to share binary and trim all of this compile madness from lambda users)


Thanks for the help r043v but when i try to make a swap file i get this
( cpi@clockworkpi:~ cd sudo fallocat -l 1G /swapfile -bash: cd: too many arguments) or (cpi@clockworkpi:~ cd sudo dd if=/dev/zero of=/swapfile bs=1024 count=1048576
-bash: cd: too many arguments)
I appreciate the help, also do you know where i can find a copy of the original retroarch file on the game shell just in case i mess things up and there’s too many files in the one i’m currently. I’m looking on github now to see if i can find one.


why do you prefix commands with cd ?
cd is shell command for “Change Directory”

you may find current retroarch .so files in your gameshell into ~/apps/emulators/ directory, go rename original before overwrite it


Thanks r043v for telling me about the cd I didn’t know that it was “change Directory” even thought it seems simple enough to realize that it is. I’m still pretty new to this stuff. And thanks for telling about where to find the .so file. I’ll try to redo the swap file when I get home without the cd prefix.

How Can I install dosbox-sdl2 version?

Ok another one:

always run this first

export TARGET=~/.config/retroarch/cores/
mkdir -p ~/repositories/cores

Do this for builds that end up in an error due to not having enough RAM (so far DOSBox-SVN and gPSP)

sudo fallocate -l 1G ~/swap
sudo chmod 600 ~/swap
sudo mkswap ~/swap
sudo swapon ~/swap


sudo apt install libsdl-net1.2 libsdl-net1.2-dev libsdl1.2-dev libsdl1.2
cd ~/repositories/cores
git clone
cd dosbox-svn
git checkout libretro
git submodule update --init
cd libretro
make -j8 WITH_DYNAREC=arm
cp -v *.so $TARGET


cd ~/repositories/cores
git clone
cd gPSP
make platform=armv -j2
cp -v *.so $TARGET

If someone can provide me instructions to make a buildroot for the CPI (or a way to run the image on a faster device) I can make a buildbot for you guys.


salut :- )

have you check this thread for set up a cross compile environment ? (yet with sdl2, not 1.2


I had to rebuild from scratch, had it expand to a 64g sd and the built in games work all fine. The only core I’m trying to get running, first, since it’s one of the few ones that I really want to play on a system that doesn’t have full button support for things like GBA or SNES by default (since I don’t have the lightkey module since I had no idea what that even was in the crowdfunder) is NGPC… of course it’s just a complete mess trying to run it. I saw another thread that had a suggestion on how to fix it and did all that and still no dice. Has anyone had any real luck getting it to run smoothly after redoing their entire system and updating like I have? I feel like I’m at my last stitch of dealing with this machine before either giving up or shooting myself. lol


I followed each step and I got stuck at
make -j8 WITH_DYNAREC=arm
when I type make -j8 WITH_DYNAREC=arm
It keep saying make: *** No targets specified and no makefile found. Stop.
so I cant install DOSBox.
Do you have any idea about this error


and also when I type
sudo apt install libsdl-net1.2 libsdl-net1.2-dev libsdl1.2-dev libsdl1.2
it saying

Reading package lists… Done
Building dependency tree
Reading state information… Done
Package libsdl1.2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

I think this one is making error about make -j8 WITH_DYNAREC=arm this code


I have no idea about the apt failure…
works for me.

For the build failure, fixed, mistake on my part on the instructions, read them again


from the other thread it was just need to run a sudo apt-get update before the install attempt …

(gs get 4 cores, make -j4 will be better)


I’m trying to put the “hotkeys” for Save State and Load State in version 0.3 and there’s no way … I get the five seconds countdown, but if I press the Shift + L or Shift + R key I can not save the combination…
In version 0.2 I do not have that problem.
Any solution? It is incredible the failure of Clockwork os 0.3 and without news of an update to solve this disaster …


I had this same issue, I resolved it by using something like WinSCP to browse the file directories of my Gameshell, Navigate to /home/cpi/.config/retroarch and find retroarch.cfg.

Now change your keybindings via this method, for now, it works. I dont keybind save state and load states, Instead I bound input_menu_toggle = "escape" and then do my save/load states via the overlay menu that comes up. If I need to exit, i’ll do it via this menu toggle.

Thats my two cents.


Hmm, I seem to have got stuck at the first stage and get the following:

Catherines-MacBook-Pro:~ cbrocksopp$ sudo apt-get install git build-essential
Reading Package Lists… Done
Building Dependency Tree… Done
E: Couldn’t find package build-essential
Catherines-MacBook-Pro:~ cbrocksopp$

What am I missing? Many thanks in advance…


Maybe some one could help me? I messed up with Retroarch controlls. I reassigned buttons wrong and now d-pad doesn’t work in retroarch so I can’t fix mapping. In menu of launcher everything works, but “update retroarch” through buttons layout in settings menu do nothing.
In the end I stuck with no possibility to fix controlls(
Any suggestions? Config file of conroller I didn’t manage to find.


you’ll probably need to ssh into your GS and delete the retroarch.cfg


Try this.
cd ~/.config/retroarch/ && rm -f retroarch.cfg && wget