Articles Hierarchy

Articles Home » RPI » RPI4 4 Processing 4

RPI4 4 Processing 4

while i just now got my RPI4 (4GB ) see here
i want do a new setup just to try to make ( build ) my own
Processing 4.0 beta
based on the JAVA11 version of Processing by Sam Pottinger.

note: Processing actual version is 3.5.4 as of today ( 27.2.2020 )
download
but for Raspberry Pi only a 3.5.3 is available
( the Processing community lost a key member doing the Raspberry Pi versions builds )

for a new setup i first check on the RPI system RASPBIAN version here
and see nothing new:
info for the 'slim' version ( desktop without preinstalled apps )
Raspbian Buster with desktop
Image with desktop based on Debian Buster
Version: February 2020
Release date: 2020-02-13
Kernel version: 4.19
Size: 1136 MB

that i burn to a uSD card ( old 32GB SanDisk Ultra A1 ).
( for easy setup can use ssh and wpa_supplicant.conf file trick )
means allow shh ( remote terminal ) and WIFI online direct at first start,
later also allow VNC ( remote desktop sudo raspi-config) and edit /etc/dhcpcd.conf for FIX IP
all to make it more easy to use it remote from PC and not need HDMI-TV / keyboard / mouse on RPI.


now, what i might need for build processing:
first info could be from wiki
so: install git and ant


pi@RPI4:~ $ sudo apt install git
Reading package lists... Done
Building dependency tree
Reading state information... Done
git is already the newest version (1:2.20.1-2+deb10u2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


pi@RPI4:~ $ sudo apt install ant
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
ant-optional ca-certificates-java default-jre-headless java-common openjdk-11-jre-headless
Suggested packages:
ant-doc default-jdk | java-compiler | java-sdk antlr javacc junit junit4 jython libactivation-java libbcel-java libbsf-java
libcommons-logging-java libcommons-net-java libmail-java libjaxp1.3-java libjdepend-java libjsch-java liblog4j1.2-java
liboro-java libregexp-java libxalan2-java libxml-commons-resolver1.1-java libxz-java default-jre fonts-dejavu-extra
fonts-ipafont-gothic fonts-ipafont-mincho fonts-wqy-microhei | fonts-wqy-zenhei fonts-indic
The following NEW packages will be installed:
ant ant-optional ca-certificates-java default-jre-headless java-common openjdk-11-jre-headless
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 35.5 MB of archives.
After this operation, 150 MB of additional disk space will be used.
Do you want to continue? [Y/n] y

but i run into errors:
Err:1 http://raspbian.raspberrypi.org/raspbian buster/main armhf openjdk-11-jre-headless armhf 11.0.6+10-1~deb10u1
404 Not Found [IP: 93.93.128.193 80]
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/pool/main/o/openjdk-11/openjdk-11-jre-headless_11.0.6+10-1~deb10u1_armhf.deb 404 Not Found [IP: 93.93.128.193 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

after several tries also with timeout problems, and a update & upgrade it worked...


and where can i find that processing 4 source code? here? ( or here? )


while for Processing 4 i read: Update from Java 11.0.2 to 11.0.5
( comes with internal version?)
i check RASPBIAN JAVA version:
pi@RPI4:~ $ java -version
openjdk version "11.0.7" 2020-04-14
OpenJDK Runtime Environment (build 11.0.7+10-post-Raspbian-3deb10u1)
OpenJDK Server VM (build 11.0.7+10-post-Raspbian-3deb10u1, mixed mode)
pi@RPI4:~ $



acc Build-Instructions must only use:
cd build
ant run



pi@RPI4:~/projects/Processing4/processing4-processing-1270-4.0a1/build $ ant run
Buildfile: /home/pi/projects/Processing4/processing4-processing-1270-4.0a1/build/build.xml

run:

ignore-tools:
[echo] Ignore the 'Unable to locate tools.jar' message.
[echo] The tools.jar file is not required to build Processing.

check-linux-arm32:

check-linux-arm64:

revision-check:

linux-check-os:

jdk-check:
[echo] Checking for linux/jdk-11.0.6.tgz
[echo] Result: ${jdk.tgz.downloaded}

downloader-setup:

compile:
[mkdir] Created dir: /home/pi/projects/Processing4/processing4-processing-1270-4.0a1/build/jre/bin
[javac] Compiling 1 source file to /home/pi/projects/Processing4/processing4-processing-1270-4.0a1/build/jre/bin

dist-no-test:
[jar] Building jar: /home/pi/projects/Processing4/processing4-processing-1270-4.0a1/build/jre/downloader.jar

jdk-download:

BUILD FAILED
/home/pi/projects/Processing4/processing4-processing-1270-4.0a1/build/build.xml:456: The following error occurred while executing this line:
/home/pi/projects/Processing4/processing4-processing-1270-4.0a1/build/build.xml:373: java.lang.RuntimeException: 32-bit Linux not supported by AdoptOpenJDK.
at Downloader.adoptOpenJdkUrl(Downloader.java:262)
at Downloader.download(Downloader.java:167)
at Downloader.execute(Downloader.java:150)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
at org.apache.tools.ant.Task.perform(Task.java:350)
at org.apache.tools.ant.Target.execute(Target.java:449)
at org.apache.tools.ant.Target.performTasks(Target.java:470)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:36)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
at org.apache.tools.ant.Task.perform(Task.java:350)
at org.apache.tools.ant.Target.execute(Target.java:449)
at org.apache.tools.ant.Target.performTasks(Target.java:470)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1388)
at org.apache.tools.ant.Project.executeTarget(Project.java:1361)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.Main.runBuild(Main.java:834)
at org.apache.tools.ant.Main.startAnt(Main.java:223)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101)

Total time: 6 seconds
pi@RPI4:~/projects/Processing4/processing4-processing-1270-4.0a1/build $


if i read that build instructions again i opt the possible problem is:
Computers don't like me.
but on the bright side, it could have been worse, like it let me wait some hours before it tells me that it failed...


now check at SAM's build instructions