# Processing 4 on Raspberry Pi 4B - problems with Run, Present and Compile

**URL:** <https://discourse.processing.org/t/processing-4-on-raspberry-pi-4b-problems-with-run-present-and-compile/38304>\
**Category:** Processing for Pi\
**Created:** [August 11, 2022, 5:06am UTC](https://discourse.processing.org/t/processing-4-on-raspberry-pi-4b-problems-with-run-present-and-compile/38304 "2022-08-11T05:06:30Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![pbat](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/pbat/32/16786_2.png) [@pbat](https://discourse.processing.org/u/pbat)\
**Post date:** [August 11, 2022, 5:06am UTC](https://discourse.processing.org/t/processing-4-on-raspberry-pi-4b-problems-with-run-present-and-compile/38304/1 "2022-08-11T05:06:30Z")

</div>

I have been using my Mac version of Processing to compile executables for a new Raspberry Pi 4B. They work fine though a little slowly.

So I installed Processing on my Pi following the instructions on the Processing Downloads pages. It has been installed in my Pi Downloads folder. When I run it I can open and edit files (same as the ones on my Mac) but can’t Run, Present or Compile them. A huge number of errors are generated and most appear to be about missing Java components with unprintable names. I suspect that it has been installed in the wrong place?

Can anyone help?

---

<div class="post-metadata">

**Author:** ![f42ter](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/f42ter/32/16793_2.png) [@f42ter](https://discourse.processing.org/u/f42ter)\
**Post date:** [August 11, 2022, 4:58pm UTC](https://discourse.processing.org/t/processing-4-on-raspberry-pi-4b-problems-with-run-present-and-compile/38304/2 "2022-08-11T16:58:09Z")

</div>

Hi pbat,

welcome!

Let’s have a look first:

Do you use specific libraries not installed or available on your PI.  
Have a look if the built in examples are working.

If you already tried that, have a look for specific missing libraries.  
Show us a screenshot if coed and error messages in addition.

cu  
Tom

---

<div class="post-metadata">

**Author:** ![pbat](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/pbat/32/16786_2.png) [@pbat](https://discourse.processing.org/u/pbat)\
**Post date:** [August 11, 2022, 8:43pm UTC](https://discourse.processing.org/t/processing-4-on-raspberry-pi-4b-problems-with-run-present-and-compile/38304/3 "2022-08-11T20:43:54Z")

</div>

Thanks Tom - it happens when I try to run the built-in sketches - like Flocking.

Here is a screengrab of the error listing - there’s another page - its too long for one grab.

 ![2022-08-12-063454_1600x900_scrot](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/1/6/16f7a1a5dbc2f34d3dd6e2213186152a4e30073f.png)

The error message is “Could not run the sketch”

---

<div class="post-metadata">

**Author:** ![f42ter](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/f42ter/32/16793_2.png) [@f42ter](https://discourse.processing.org/u/f42ter)\
**Post date:** [August 12, 2022, 10:48am UTC](https://discourse.processing.org/t/processing-4-on-raspberry-pi-4b-problems-with-run-present-and-compile/38304/4 "2022-08-12T10:48:03Z")

</div>

I’m on Raspberry 64 bit os and 64 bit Processing version 4.0b8 and it’s working fine.

---

<div class="post-metadata">

**Author:** ![pbat](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/pbat/32/16786_2.png) [@pbat](https://discourse.processing.org/u/pbat)\
**Post date:** [August 12, 2022, 9:50pm UTC](https://discourse.processing.org/t/processing-4-on-raspberry-pi-4b-problems-with-run-present-and-compile/38304/5 "2022-08-12T21:50:17Z")

</div>

Hi Tom - whereabouts on the Pi is your version of Processing installed?

---

<div class="post-metadata">

**Author:** ![f42ter](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/f42ter/32/16793_2.png) [@f42ter](https://discourse.processing.org/u/f42ter)\
**Post date:** [August 13, 2022, 5:14am UTC](https://discourse.processing.org/t/processing-4-on-raspberry-pi-4b-problems-with-run-present-and-compile/38304/6 "2022-08-13T05:14:40Z")

</div>

I’ve extracted processing into  
/home/pi/Programs/processing-4.0b8

After running sudo install.sh it works.  
But use the correct version, the 64-bit version of processing run on

```auto
Linux raspberrypi 5.15.32-v8+ #1538 SMP PREEMPT Thu Mar 31 19:40:39 BST 2022 aarch64 GNU/Linux

```

only. Check for the 64-bit architecture **arch64**.

```auto
pi@raspberrypi:~/Programs $ ls
arduino-1.8.19 eclipse-installer java-2022-06 processing-4.0b8
pi@raspberrypi:~/Programs $ cd processing-4.0b8/
pi@raspberrypi:~/Programs/processing-4.0b8 $ ls
changes.md install.sh lib processing tools
core java modes processing-java uninstall.sh
pi@raspberrypi:~/Programs/processing-4.0b8 $
```

---

<div class="post-metadata">

**Author:** ![pbat](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/pbat/32/16786_2.png) [@pbat](https://discourse.processing.org/u/pbat)\
**Post date:** [August 13, 2022, 6:23am UTC](https://discourse.processing.org/t/processing-4-on-raspberry-pi-4b-problems-with-run-present-and-compile/38304/7 "2022-08-13T06:23:58Z")

</div>

I definitely downloaded the 64 ARM version. I’ve run the terminal commands you mention and get this - there’s no mention of the ‘arch64’ term you refer to? I haven’t used Unix much since 1979 - so am pretty much lost here:

 ![2022-08-13-161718_1600x900_scrot](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/6/8/686abfe665d0aa6c67decfe38479141f886ed8ee.jpeg)

---

<div class="post-metadata">

**Author:** ![f42ter](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/f42ter/32/16793_2.png) [@f42ter](https://discourse.processing.org/u/f42ter)\
**Post date:** [August 13, 2022, 7:47am UTC](https://discourse.processing.org/t/processing-4-on-raspberry-pi-4b-problems-with-run-present-and-compile/38304/8 "2022-08-13T07:47:20Z")

</div>

Could be an issue of 4.01?  
Have you checked for the arch64 architecture.

So I’,m sorry I can’t help.

---

<div class="post-metadata">

**Author:** ![pbat](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/pbat/32/16786_2.png) [@pbat](https://discourse.processing.org/u/pbat)\
**Post date:** [August 13, 2022, 5:44pm UTC](https://discourse.processing.org/t/processing-4-on-raspberry-pi-4b-problems-with-run-present-and-compile/38304/9 "2022-08-13T17:44:26Z")

</div>

Does this help?

pi@raspberrypi:~/processing-4.0.1 $ file java/bin/java

java/bin/java: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 3.7.0, not stripped

pi@raspberrypi:~/processing-4.0.1 $

---

<div class="post-metadata">

**Author:** ![pbat](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/pbat/32/16786_2.png) [@pbat](https://discourse.processing.org/u/pbat)\
**Post date:** [August 13, 2022, 10:57pm UTC](https://discourse.processing.org/t/processing-4-on-raspberry-pi-4b-problems-with-run-present-and-compile/38304/10 "2022-08-13T22:57:55Z")

</div>

Problem solved!

Even though the new Pi 4B is 64-bit the OS - Raspbian is only 32-bit. So I needed the 32-bit version of Processing and not the 64-bit one.
