Hello,
I'm trying to compile/run a sketch from the commandline/without displaying the Processing IDE.
Is this possible ? If so, is it possible on Windows 7 ?
I've found a
Commander class which hints that it would be possible, but the
processing/build/cmd folder
isn't present in the current revision.
I've
- found one in an older revision though
- installed ant
- build Processing from source
- installed Cygwin
- ran the dist.sh command from the processing/build/cmd folder
but ran into some errors:
- $ sh dist.sh
- Creating command-line distribution for revision 0192...
- rm: cannot remove `processing-cmd-0192/lib/export': Permission denied
- rm: cannot remove `processing-cmd-0192/lib/theme': Permission denied
- rm: cannot remove `processing-cmd-0192/libraries': Permission denied
- rm: cannot remove `processing-cmd-0192/processing/lib': Permission denied
- rm: cannot remove `processing-cmd-0192/processing/libraries': Permission denied
- cp: cannot create regular file `processing/lib/antlr.jar': Permission denied
- cp: cannot create regular file `processing/lib/ecj.jar': Permission denied
- cp: cannot create regular file `processing/lib/jna.jar': Permission denied
- cp: cannot create directory `processing/libraries/net': Permission denied
- cp: cannot create directory `processing/libraries/opengl': Permission denied
- cp: cannot create directory `processing/libraries/serial': Permission denied
- cp: cannot create directory `processing/libraries/pdf': Permission denied
- cp: cannot create directory `processing/libraries/dxf': Permission denied
- cp: cannot stat `../../xml': No such file or directory
- cp: cannot stat `../../candy': No such file or directory
- cp: cannot create directory `processing/libraries/video': Permission denied
- cp: cannot stat `../linux/work/lib/pde.jar': No such file or directory
- cp: cannot stat `../linux/work/lib/core.jar': No such file or directory
- find: `processing/lib': Permission denied
- find: `processing/libraries': Permission denied
- find: `processing/lib': Permission denied
- find: `processing/libraries': Permission denied
- find: `processing/lib': Permission denied
- find: `processing/libraries': Permission denied
- find: `processing/lib': Permission denied
- find: `processing/libraries': Permission denied
- find: `processing/lib': Permission denied
- find: `processing/libraries': Permission denied
- Creating tarball and finishing...
- mv: cannot move `processing' to `processing-cmd-0192/processing': Directory not empty
- dist.sh: line 65: zip: command not found
I'm currently going through all this trouble because I need to export a running Windows application of a sketch.
The problem is the sketch is using GSVideo, which under my current configuration (Windows7 64bit, 32bit JRE7, 32bit JDK7) I'm having issues with. I've spotted this
older post about GSVideo but my issue seems to be slightly different:
If I Run the sketch, everything seems fine. If I export a Windows application and run the 32bit application, my application freezes. I've got
a very simple sketch which illustrates the issue in isolation and it seems to point to a GSMovie initialization.
Any clues on how I might be able to get past this issue ?
Thanks,
George
1