# ArduBoy emulator

**URL:** <https://forum.clockworkpi.com/t/arduboy-emulator/4109>\
**Category:** Emulators\
**Created:** [July 19, 2019, 6:16pm UTC](https://forum.clockworkpi.com/t/arduboy-emulator/4109 "2019-07-19T18:16:35Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ITCactus](https://avatars.discourse-cdn.com/v4/letter/i/b2d939/32.png) [@ITCactus](https://forum.clockworkpi.com/u/ITCactus)\
**Post date:** [July 19, 2019, 6:16pm UTC](https://forum.clockworkpi.com/t/arduboy-emulator/4109/1 "2019-07-19T18:16:35Z")

</div>

thanks to the @Lix’s topic [“Arduboy Games on the GameShell”](https://forum.clockworkpi.com/t/arduboy-games-on-the-gameshell/4094),  
i have created a fork and added some tweaks for _GameSH\>_,  
and also instruction on how to install emulator for easy use.

> **[ITCactus/sim-arduboy](https://github.com/ITCactus/sim-arduboy)**
>
> Arduboy board implementation using simavr, tweaked for ClockWork(GameSH\>) - ITCactus/sim-arduboy

so, just follow [“How to install” section in README](https://github.com/ITCactus/sim-arduboy/blob/master/README.md#how-to-install) on the repo, and have fun.

NOTE: not every game will work on emulator.

---

<div class="post-metadata">

**Author:** ![RaphaelTetreault](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/raphaeltetreault/32/1926_2.png) [@RaphaelTetreault](https://forum.clockworkpi.com/u/RaphaelTetreault)\
**Post date:** [August 17, 2019, 3:44pm UTC](https://forum.clockworkpi.com/t/arduboy-emulator/4109/2 "2019-08-17T15:44:35Z")

</div>

Hi @ITCactus.

Thanks for you guide on github! I got as far as the following command:

> `sudo apt-get update && sudo apt-get install build-essential libelf-dev libsdl2-dev freeglut3-dev`

However, I run into the following error:

> ERROR: This version of the GNU libc requires kernel version 3.2 or later. Please upgrade your kernel before installing glibc.

![libc_error](https://canada1.discourse-cdn.com/flex029/uploads/clockworkpi/original/2X/5/5844dfe2a0b7a7c09b3ecb2a5ed8232728bea7ea.png)

My CPi is more or less at factory state in terms of software, so pardon if this error is standard and trivial.

Regards,  
Raphaël

---

<div class="post-metadata">

**Author:** ![ITCactus](https://avatars.discourse-cdn.com/v4/letter/i/b2d939/32.png) [@ITCactus](https://forum.clockworkpi.com/u/ITCactus)\
**Post date:** [August 17, 2019, 6:29pm UTC](https://forum.clockworkpi.com/t/arduboy-emulator/4109/3 "2019-08-17T18:29:03Z")

</div>

hello @RaphaelTetreault,  
i tested the guide on both clockwork OS v 0.3, and the latest one - 0.4.  
i don’t remember if i had this error… perhaps i just ignored it and forget, because the clockwork OS v0.3 has a kernel 4.2, and clockwork OS v0.4 has a kernel 5.2.  
so, in any case, you may just simply ignore the message about error.

---

<div class="post-metadata">

**Author:** ![RaphaelTetreault](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/raphaeltetreault/32/1926_2.png) [@RaphaelTetreault](https://forum.clockworkpi.com/u/RaphaelTetreault)\
**Post date:** [August 17, 2019, 8:10pm UTC](https://forum.clockworkpi.com/t/arduboy-emulator/4109/4 "2019-08-17T20:10:44Z")

</div>

Hi @ITCactus,

Thanks! Ignoring the error lets me proceed. I have built the binaries (in `/home/cpi/games/ArduBoy/sim-arduboy`), using `lima` for the GPU driver switch, and have the menu `/home/cpi/apps/Menu/22_ArduBoy` in it’s place. However, when the application opens a game (I’m testing with [Ardynia](https://community.arduboy.com/t/ardynia-a-zelda-style-adventure/6336)) the emulator closes immediately afterwards. I had the same issue with PICO-8, so my assumption is the built binary is not in the proper location or a config file has not been updated to point to it. Any thoughts?

Regards,  
Raphaël

---

<div class="post-metadata">

**Author:** ![ITCactus](https://avatars.discourse-cdn.com/v4/letter/i/b2d939/32.png) [@ITCactus](https://forum.clockworkpi.com/u/ITCactus)\
**Post date:** [August 17, 2019, 10:23pm UTC](https://forum.clockworkpi.com/t/arduboy-emulator/4109/5 "2019-08-17T22:23:04Z")

</div>

try with some different games/apps.  
i already mentioned, that “Ardynia” is not working with emulator

> [@Arduboy Games on the GameShell](https://forum.clockworkpi.com/t/arduboy-games-on-the-gameshell/4094/18):
>
> it’s hard to guess… if you follow exactly every step in the [“How to install”](https://github.com/ITCactus/sim-arduboy/blob/master/README.md#how-to-install) instruction, then it should work… i verified every step when wrote it… but, you could also try to [rebuild “ArduBoy” by yourself](https://github.com/ITCactus/sim-arduboy/blob/master/README.md#to-rebuild-arduboy-by-yourself). maybe it will help… also, it worth to mention, that NOT every game(hex-file) will work, i tried the “ardynia.hex”, but it never worked on that emulator.

---

<div class="post-metadata">

**Author:** ![Lix](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/lix/32/3394_2.png) [@Lix](https://forum.clockworkpi.com/u/Lix)\
**Post date:** [August 17, 2019, 11:13pm UTC](https://forum.clockworkpi.com/t/arduboy-emulator/4109/6 "2019-08-17T23:13:11Z")

</div>

Recompile manually from scratch and make sure you installed the dependencies listed.

---

<div class="post-metadata">

**Author:** ![RaphaelTetreault](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/raphaeltetreault/32/1926_2.png) [@RaphaelTetreault](https://forum.clockworkpi.com/u/RaphaelTetreault)\
**Post date:** [August 18, 2019, 1:15am UTC](https://forum.clockworkpi.com/t/arduboy-emulator/4109/7 "2019-08-18T01:15:37Z")

</div>

@ITCactus I’ve gone and tried out 6 different games: Arduventure, Ardynia, CastleBoy, Dark&Under, MetroCity and Starduino. None of these seem to work. As @Lix suggested, I recompiled the binaries again after setting dependencies (`sudo apt-get update && sudo apt-get install build-essential libelf-dev libsdl2-dev freeglut3-dev`, `cd ~/games/ArduBoy/sim-arduboy/`, and `make`) but no luck.

---

<div class="post-metadata">

**Author:** ![ITCactus](https://avatars.discourse-cdn.com/v4/letter/i/b2d939/32.png) [@ITCactus](https://forum.clockworkpi.com/u/ITCactus)\
**Post date:** [August 18, 2019, 12:09pm UTC](https://forum.clockworkpi.com/t/arduboy-emulator/4109/8 "2019-08-18T12:09:43Z")

</div>

ok  
try this

> [@Arduboy Games on the GameShell](https://forum.clockworkpi.com/t/arduboy-games-on-the-gameshell/4094/21):
>
> did you tried to rebuild emulator by yourself? if ‘yes’, and it still not working, make sure, you switched to the Lima GPU driver via Settings-\>GPU Driver Switch-\>Lima driver (with Fbturbo, emulator either running too slow, or not starting at all). if it still not working, try restart your GameShell, make attempt to start some ArduBoy game, then SSH to GameShell, and run a command cat /tmp/x.log paste the result here

maybe logs will contain smth. useful info

---

<div class="post-metadata">

**Author:** ![RaphaelTetreault](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/raphaeltetreault/32/1926_2.png) [@RaphaelTetreault](https://forum.clockworkpi.com/u/RaphaelTetreault)\
**Post date:** [August 18, 2019, 3:39pm UTC](https://forum.clockworkpi.com/t/arduboy-emulator/4109/9 "2019-08-18T15:39:35Z")

</div>

Thanks for all your help. It appears the application tries to change to an invalid directory and is denied opening the program.

> `/bin/sh: 1: cd: can't cd to /home/cpi/games/ArduBoy/sim-arduboy/sim_arduboy`  
> `/bin/sh: 1: /home/cpi/games/ArduBoy/sim-arduboy/sim_arduboy: Permission denied`

 ![xlog](https://canada1.discourse-cdn.com/flex029/uploads/clockworkpi/original/2X/f/f6ab69f2041b4275727b4cfef32cf604bf15b401.png)  
I could fix the first command by making a new directory named `sim_arduboy`, but that inherently does not fix the second command as the binary has to be moved to do so. For reference, my binary was generated and located at `/home/cpi/games/ArduBoy/sim-arduboy/sim_arduboy`

![sim_arduboy](https://canada1.discourse-cdn.com/flex029/uploads/clockworkpi/original/2X/0/05d640512ba08e72ca854973c56aa3736a7e2ffe.png)

---

<div class="post-metadata">

**Author:** ![ITCactus](https://avatars.discourse-cdn.com/v4/letter/i/b2d939/32.png) [@ITCactus](https://forum.clockworkpi.com/u/ITCactus)\
**Post date:** [August 18, 2019, 5:10pm UTC](https://forum.clockworkpi.com/t/arduboy-emulator/4109/10 "2019-08-18T17:10:33Z")

</div>

> [@RaphaelTetreault](#):
>
> sim\_arduboy

this is supposed to be an executable file, and NOT a folder/directory.  
try next steps:

1. try to delete `sim_arduboy` file in `/home/cpi/games/ArduBoy/sim-arduboy/` directory
2. try to delete `sim_arduboy` directory (`/home/cpi/games/ArduBoy/sim-arduboy/sim_arduboy`) if exists
3. make a build again.
4. restart your GameShell
5. try to launch “ArduBoy emulator” again.

if it still not working, look at `/tmp/x.log` again.  
if you still see the “Permission denied” error,  
then, perhaps, you could try to grant executable permissions to the `sim_arduboy`:

1. SSH to GameShell
2. `cd ~/games/ArduBoy/sim-arduboy/`
3. `chmod +x sim_arduboy` (or `chmod +x ./sim_arduboy`. can’t verify now).
4. restart your GameShell
5. try to launch “ArduBoy emulator” again.

---

<div class="post-metadata">

**Author:** ![Tariq](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/tariq/32/2763_2.png) [@Tariq](https://forum.clockworkpi.com/u/Tariq)\
**Post date:** [August 25, 2019, 1:03am UTC](https://forum.clockworkpi.com/t/arduboy-emulator/4109/11 "2019-08-25T01:03:17Z")

</div>

Hey, I made a mistake on the GameShell via command line and ended up having to re-flash the SD card and I’m trying to copy 22\_Arduboy onto the gameshell, but the terminal keeps telling me that the file doesn’t exist. I got everything else right and the folder is already installed but the app isn’t showing on the GameShell. Is there anything i’m doing wrong?

---

<div class="post-metadata">

**Author:** ![Tariq](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/tariq/32/2763_2.png) [@Tariq](https://forum.clockworkpi.com/u/Tariq)\
**Post date:** [August 25, 2019, 1:09am UTC](https://forum.clockworkpi.com/t/arduboy-emulator/4109/12 "2019-08-25T01:09:47Z")

</div>

![15666953173326672976586122155310](https://canada1.discourse-cdn.com/flex029/uploads/clockworkpi/original/2X/e/e90a25a3bb4ca80742d6b9c21b3a2ea4f2ccff19.jpeg)

---

<div class="post-metadata">

**Author:** ![Lix](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/lix/32/3394_2.png) [@Lix](https://forum.clockworkpi.com/u/Lix)\
**Post date:** [August 25, 2019, 1:46am UTC](https://forum.clockworkpi.com/t/arduboy-emulator/4109/13 "2019-08-25T01:46:21Z")

</div>

Did you try to create the folder manually first through Filezilla and then trying to copy the content inside of it?

---

<div class="post-metadata">

**Author:** ![Tariq](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/tariq/32/2763_2.png) [@Tariq](https://forum.clockworkpi.com/u/Tariq)\
**Post date:** [August 25, 2019, 1:51am UTC](https://forum.clockworkpi.com/t/arduboy-emulator/4109/14 "2019-08-25T01:51:00Z")

</div>

No, i tried to rebuild it via command line following your tutorial and ITCactus’s tutorial as well. The Arduboy folder is on my computer but when i try to copy it over to the GameShell i end up getting stuck at that error message.

---

<div class="post-metadata">

**Author:** ![Lix](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/lix/32/3394_2.png) [@Lix](https://forum.clockworkpi.com/u/Lix)\
**Post date:** [August 25, 2019, 1:57am UTC](https://forum.clockworkpi.com/t/arduboy-emulator/4109/15 "2019-08-25T01:57:03Z")

</div>

ok… Create the folder manually in the GS then and just try to copy the content from your PC in it.  
Or even better, copy the folder to the root and then use move command to place it where you want it.  
Also, check if you already have a 22\_something in there… You know you can place it elsewhere too and just point your .sh to the right place afterward.

---

<div class="post-metadata">

**Author:** ![Tariq](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/tariq/32/2763_2.png) [@Tariq](https://forum.clockworkpi.com/u/Tariq)\
**Post date:** [August 25, 2019, 2:02am UTC](https://forum.clockworkpi.com/t/arduboy-emulator/4109/16 "2019-08-25T02:02:49Z")

</div>

Cool. I have the 22\_Arduboy loaded onto the computer already. I’ll give it a go and let you know the results.

---

<div class="post-metadata">

**Author:** ![Tariq](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/tariq/32/2763_2.png) [@Tariq](https://forum.clockworkpi.com/u/Tariq)\
**Post date:** [August 25, 2019, 2:27am UTC](https://forum.clockworkpi.com/t/arduboy-emulator/4109/17 "2019-08-25T02:27:42Z")

</div>

![15667000302324671212673530138881](https://canada1.discourse-cdn.com/flex029/uploads/clockworkpi/original/2X/9/9b980bd8e1ba3538d73e848c06846cb6b0eb31e9.jpeg)

---

<div class="post-metadata">

**Author:** ![Lix](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/lix/32/3394_2.png) [@Lix](https://forum.clockworkpi.com/u/Lix)\
**Post date:** [August 25, 2019, 2:38am UTC](https://forum.clockworkpi.com/t/arduboy-emulator/4109/18 "2019-08-25T02:38:33Z")

</div>

Instead of using **~** , enter the full path ex. /home/cpi/…

---

<div class="post-metadata">

**Author:** ![ITCactus](https://avatars.discourse-cdn.com/v4/letter/i/b2d939/32.png) [@ITCactus](https://forum.clockworkpi.com/u/ITCactus)\
**Post date:** [August 25, 2019, 11:15am UTC](https://forum.clockworkpi.com/t/arduboy-emulator/4109/19 "2019-08-25T11:15:14Z")

</div>

@Tariq  
i already see, that you have “Ardu **b** oy” in every place, and NOT an “Ardu **B** oy”.  
pay close attention on letter “B” in your dirs - it MUST be uppercase: “Ardu **B** oy”. that tiny difference may cause a lot of issues.  
if you use a lowercase “b” on purpose, then do NOT forget to edit “action.config” content in `sim-arduboy/22_ArduBoy/`.

but it will be better, if you delete the entire folder `/home/cpi/games/ArduBoy`, and follow tutorial from the very beginning.

---

<div class="post-metadata">

**Author:** ![Tariq](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/tariq/32/2763_2.png) [@Tariq](https://forum.clockworkpi.com/u/Tariq)\
**Post date:** [August 25, 2019, 12:30pm UTC](https://forum.clockworkpi.com/t/arduboy-emulator/4109/20 "2019-08-25T12:30:50Z")

</div>

Thanks for your help 🙂

[Next page](https://forum.clockworkpi.com/t/arduboy-emulator/4109.md?page=2)
