# Processing Compiler?

**URL:** <https://discourse.processing.org/t/processing-compiler/22101>\
**Category:** Processing for Pi\
**Created:** [June 23, 2020, 3:03pm UTC](https://discourse.processing.org/t/processing-compiler/22101 "2020-06-23T15:03:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wirtex](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/wirtex/32/5701_2.png) [@Wirtex](https://discourse.processing.org/u/Wirtex)\
**Post date:** [June 23, 2020, 3:03pm UTC](https://discourse.processing.org/t/processing-compiler/22101/1 "2020-06-23T15:03:36Z")

</div>

Hi,  
I develop quite regularly on Processing; and a few days ago, I found a raspberry pi. Unfortunately it is too slow to have a desktop environment, so I use the command line os l(GNU/Linux) (raspberry pi os lite)  
I would like to know if a _processing complier exist_ (like, not the ide, but just a program that allows you to convert .pde files into execution)  
So that I can code manualy my sketches (using the sudo nano command) and after compe them.  
Please help  
Thanks

---

<div class="post-metadata">

**Author:** ![monkstone](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/monkstone/32/64_2.png) [@monkstone](https://discourse.processing.org/u/monkstone)\
**Post date:** [June 23, 2020, 3:34pm UTC](https://discourse.processing.org/t/processing-compiler/22101/2 "2020-06-23T15:34:23Z")

</div>

What you need to know is the processing ide includes an [antlr](https://www.antlr.org) pre-processor that converts the \*.pde to java.  
You can find that file in your `/tmp` folder on linux. It is this java code that gets compiled to run a sketch. In fact the compiled code also get stored in the `/tmp` folder. PS I get quite reasonable performance on my [RaspberryPI4 (4G)](https://discourse.processing.org/t/video-capture-on-raspberrypi4-with-manjaro-arm/21523).

---

<div class="post-metadata">

**Author:** ![monkstone](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/monkstone/32/64_2.png) [@monkstone](https://discourse.processing.org/u/monkstone)\
**Post date:** [June 23, 2020, 6:15pm UTC](https://discourse.processing.org/t/processing-compiler/22101/3 "2020-06-23T18:15:37Z")

</div>

@wirtex I just checked out your profile, since you are so young you may have never have encountered the [vim editor](https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&cad=rja&uact=8&ved=2ahUKEwiou4mDw5jqAhWOXsAKHZyWAogQFjAAegQIAhAB&url=https%3A%2F%2Fwww.vim.org%2F&usg=AOvVaw2gtTFLqzrxu9juj90JjrSk). The benefit of this editor is very powerful whilst being lightweight. Also there is processing-plugin, meaning that  
you get syntax highlighting and a tool that allows you to call `processing-java` from the editor:-

```bash
:!processing-java --sketch=/home/tux/sketchbook/SolidText --run

```

Get the [vim plugin here](https://github.com/sophacles/vim-processing).  
Here is screen capture on my RaspberryPI4

 ![vim](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/e/eab1cd013c9431a095c1fbe40dbb46fa0189a2cc.png)

A simplified command `:make` is supposed to work, but it did not work for me. You need to have `processing-java` on your `path` for either method to work.

---

<div class="post-metadata">

**Author:** ![monkstone](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/monkstone/32/64_2.png) [@monkstone](https://discourse.processing.org/u/monkstone)\
**Post date:** [June 23, 2020, 9:08pm UTC](https://discourse.processing.org/t/processing-compiler/22101/4 "2020-06-23T21:08:30Z")

</div>

@Wirtex here’s a little video I recorded:-  
 ![vim](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/9/9a254ad5b43bb249ddf3f6b6d56bceb258bba76a.gif)

---

<div class="post-metadata">

**Author:** ![Wirtex](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/wirtex/32/5701_2.png) [@Wirtex](https://discourse.processing.org/u/Wirtex)\
**Post date:** [June 23, 2020, 11:58pm UTC](https://discourse.processing.org/t/processing-compiler/22101/5 "2020-06-23T23:58:44Z")

</div>

Okk, thanks @monkstone!  
I’ll try this solution tomorrow (now its 2am at my place) but i’m confident it’ll work  
Thanks!

---

<div class="post-metadata">

**Author:** ![monkstone](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/monkstone/32/64_2.png) [@monkstone](https://discourse.processing.org/u/monkstone)\
**Post date:** [June 24, 2020, 10:09am UTC](https://discourse.processing.org/t/processing-compiler/22101/6 "2020-06-24T10:09:47Z")

</div>

I assume you have a window manager installed, otherwise you will not be able to display sketches. If you haven’t you could do worse than using JWM, here is a PiCrate (ruby implementation of processing for raspberrypi) running on a RaspberryPI3b+:-

 ![2020-06-24-08:35:12-screenshot](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/8/85f92917761a1cfb911f972c6886016d0d4972ca.png)
