We are about to switch to a new forum software. Until then we have removed the registration on this forum.
(mint13 to raspbian jessy in this case)
trying to export something from Linux to run on the Pi. The application is successfully created (as application.linux-armv6hf) and copied over.
running it on the Pi gives me the following though
Invalid maximum heap size: -Xmx4096m
The specified size exceeds the maximum representable size.
Error: could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
changing the value in the generated script fixes this. 2048 is still too much. 1024 works.
However, i then get another error
java: symbol lookup error: /media/tmp/jogamp_0000/file_cache/jln.../jln.../libnewt.so:
undefined symbol: bcm_host_init
which apparently is required if you want to use opengl (which i do)
Comments
i'll post the code here:
NoddyShader.pde
data/frag.glsl
data/vert.glsl
which brings me to another problem: when i run the above in processing on the PI itself i get
do i need a version number in there? are the libraries different?
#version 110
didn't work, nor#version 130
ok, i tried the new opengl drivers mentioned here
https://github.com/processing/processing/wiki/Raspberry-Pi#graphics
and that was more helpful, telling me that version 100 and 120 were supported. i changed it to 120 and that is now working!
note to self, don't run things in fullscreen until you know they don't lock up
in summary then:
Exporting glsl sketches from linux to pi isn't great at the moment.
GLSL sketches run from processing on the pi work with the Feb 2016 raspbian update, see wiki link above