RetroArch Megathread


That got rid of the Unknown option error, but I’m getting that error “/usr/bin/ld: cannot open output file retroarch: Is a directory collect2: error: ld returned 1 exit status makefile:195: recipe for target 'retroarch failed make: *** [retroarch] Error 1” when I do the cmd “make -j4”.


LD retroarch
/usr/bin/ld: cannot open output file retroarch: Is a directory
collect2: error: ld returned 1 exit status makefile:195: recipe for target 'retroarch failed
make: *** [retroarch] Error 1

Is the full error.


you have a RetroArch directory inside your retroarch folder


Do I need to reinstall retroarch or remove the RetroArch directory? What file in retroarch would it be under?



I think I found it and deleted it. Hopefully that fixes it.

1 Like

Nice Post.

I’m just wondering that do I need to change the settings to get optimized performance with 1.7.6 on OS 0.3?

I got terrible sound on some NES games (eg.1943) with Nestopia UE.



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)