You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c2e7cb6
Browse filesBrowse the repository at this point in the historyBrowse files
* update github actions to use JVM25, and to get submodules
* Update documentation
* Specify JVM 25 for gradle daemon
* remove conditionals around enableWebGPU
* Update github actions to install required linux packages
Copy file name to clipboardExpand all lines: BUILD.md
+34-63Lines changed: 34 additions & 63 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,30 +7,24 @@ Great to see you are interested in contributing to Processing. To get started yo
7
7
_**Note:** A paid subscription is **not** required. Everything needed to build and work on Processing is available for free in IntelliJ IDEA._
8
8
9
9
1.[Download IntelliJ IDEA](https://www.jetbrains.com/idea/download/) and install it.
10
-
1. Clone the `Processing4` repository locally.
10
+
1. Install [Rust](https://rustup.rs/). It is needed to build `libprocessing`, the native library behind the WebGPU renderer.
11
+
1. Clone the `processing4` repository locally, including its submodules (`git clone --recursive`, or `git submodule update --init --recursive` in an existing clone).
11
12
1. Open the cloned repository in **IntelliJ IDEA**.
12
13
1. When prompted, select **Trust Project**. (You can preview the project in Safe Mode, but you will not be able to build Processing.)
13
14
1. If IntelliJ asks whether to import the Gradle project, select **Load Gradle Project**.
14
-
1. Make sure IntelliJ and Gradle are both using **JDK 17**:
15
+
1. Make sure IntelliJ and Gradle are both using **JDK 25**:
15
16
* Go to **`File > Project Structure > Project`**
16
-
* Set **Project SDK** to **JDK 17** (we recommend **Eclipse Temurin**)
17
-
* If needed, choose **Download JDK…** and install **Version 17**
17
+
* Set **Project SDK** to **JDK 25** (we recommend **Eclipse Temurin**)
18
+
* If needed, choose **Download JDK…** and install **Version 25**
18
19
* Then go to **`Settings > Build, Execution, Deployment > Build Tools > Gradle`**
19
-
* Set **Gradle JVM** to the same **JDK 17**
20
+
* Set **Gradle JVM** to the same **JDK 25** (the project requests 25 in `gradle/gradle-daemon-jvm.properties`, so this is usually picked automatically)
20
21
1. Wait for Gradle sync to finish.
21
22
1. Click the green **Run** button in the top right to build and launch Processing. You can also use this menu to start a debug session.
22
23
23
24
> [!TIP]
24
25
> If you encounter any issues with this process, Read the [Troubleshooting and Setup Tips for IntelliJ IDEA](#troubleshooting-and-setup-tips-intellij-idea)
25
26
26
-
1. Clone the Processing4 repository to your machine locally
27
-
1. Open the cloned repository in IntelliJ IDEA CE
28
-
1. When prompted, select **Trust Project**. You can preview the project in Safe Mode but you won't be able to build Processing.
29
-
1. IntelliJ may ask if you want to load Gradle project. If you allow this, make sure you are using JDK version 17.
30
-
1. In the main menu, go to File > Project Structure > Project Settings > Project.
31
-
1. In the SDK Dropdown option, select a JDK version 17 or Download the jdk
32
-
1. Click the green Run Icon in the top right of the window. This is also where you can find the option to debug Processing.
33
-
1. Logs can be found in the `Build` or `Debug` pane on the bottom left of the window
27
+
Logs can be found in the `Build` or `Debug` pane on the bottom left of the window.
34
28
35
29
36
30
## VSCode
@@ -52,69 +46,37 @@ If you prefer not to use an IDE, you can also build Processing directly from the
52
46
53
47
### Set Up the Environment
54
48
55
-
If you don't have them installed, you will need to install [Git](https://git-scm.com/downloads) and [Gradle](https://gradle.org/install/) first. Then follow these steps:
49
+
If you don't have them installed, you will need to install [Git](https://git-scm.com/downloads), [Gradle](https://gradle.org/install/) and [Rust](https://rustup.rs/) first. Then follow these steps:
[SDKMAN!](https://sdkman.io/) is a useful tool for developers working on multiple versions of the JVM.
84
-
85
-
## WebGPU Support (Optional)
86
-
87
-
To build Processing with the experimental WebGPU renderer, you need JDK 25, Rust, and jextract.
88
-
89
-
### Install Temurin JDK 25
90
-
91
-
```bash
92
-
brew install --cask temurin@25 # macOS
93
-
```
94
-
95
-
### Install `jextract`
59
+
Download and install the appropriate version for your platform from [Adoptium](https://adoptium.net/temurin/releases/?package=jdk&version=25&os=any&arch=any), or use a package manager:
96
60
97
-
`jextract` generates Java bindings from C header files.
98
-
You can download it [here](https://jdk.java.net/jextract/) or install it using SDKMAN!:
99
-
100
-
```bash
101
-
sdk install jextract
102
-
````
103
-
104
-
### Build with WebGPU
61
+
```bash
62
+
brew install --cask temurin@25 # macOS
63
+
winget install --id=EclipseAdoptium.Temurin.25.JDK -e # Windows
64
+
```
105
65
106
-
```bash
107
-
./gradlew build -PenableWebGPU=true
108
-
```
66
+
[SDKMAN!](https://sdkman.io/) is also a useful tool for developers working on multiple versions of the JVM.
109
67
110
68
3. **Set the `JAVA_HOME` environment variable:**
111
69
112
-
It may be necessary to set the `JAVA_HOME` environment variable to point to your Temurin JDK installation.
70
+
It may be necessary to set the `JAVA_HOME` environment variable to point to your Temurin JDK installation.
113
71
114
72
```bash
115
-
export JAVA_HOME=/path/to/temurin/jdk-17.0.15+6/
73
+
export JAVA_HOME=/path/to/temurin/jdk-25/
116
74
```
117
75
76
+
4. **(Optional) Install `jextract`:**
77
+
78
+
`jextract` generates the Java bindings for`libprocessing`. The build downloads it automatically, but if you already have it installed (for example with `sdk install jextract`), that copy will be used instead.
79
+
118
80
### Build, Run, and Package Processing
119
81
120
82
#### Build the Project (Required First Step)
@@ -191,18 +153,18 @@ If you are specifically trying to run the `Processing CLI`, you can test command
191
153
192
154
If you’re building Processing using IntelliJ IDEA and something’s not working, here are a few things that might help:
193
155
194
-
### Use the Correct JDK (temurin-17)
156
+
### Use the Correct JDK (temurin-25)
195
157
196
-
Make sure IntelliJ is using **temurin-17**, not another version. If building with WebGPU (`-PenableWebGPU=true`), use **temurin-25** instead.
158
+
Make sure IntelliJ is using **temurin-25**, not another version.
197
159
198
160
1. Go to **File > Project Structure > Project**
199
-
2. Set the **Project SDK** to: `temurin-17 java version "17.0.15"`
161
+
2. Set the **Project SDK** to: `temurin-25 java version "25"`
0 commit comments