|
BuildInstructions
How to Build Processing on Your Favorite Platform
If you have questions about the contents of this document, ask them in the forum. Update February/March 2010
Troubleshooting the newer Ant build
More to come... Building on Windows
svn checkout http://processing.googlecode.com/svn/trunk/processing processing-read-only
ant run
svn up Updated 24 June 2011 Steps for First Time SetupThese are the old instructions, but are still partially true and may offer clues. Install Development Tools
Again, be sure to leave the option selected for 'Unix line endings'. If you're not using Cygwin, then be sure to find the preference in your SVN client. The Cygwin installer is sometimes a little flaky, so it may take more than one try to get everything in there. In fact, it's often best to run the installer once, and let it install all its defaults, then run it again, and select the items above. It's also useful to run the installer every few months to keep things fresh.
Grab the CodeAs of June 2010, we've moved the repository to Google Code. To get the code, type this from a prompt: svn checkout http://processing.googlecode.com/svn/trunk/ processing-read-only That part may take a while, especially for people outside the US or who have a slow internet connection. (The JRE binaries are stored in SVN so that we can properly test on the exact platform/runtime setup that we'll be releasing. No longer the case.) Install QuickTime for Java (Windows users only)
Build ItNow to build for the first time: cd /path/to/processing/build/windows or if you're on linux cd /path/to/processing/build/linux let's say you're into black turtlenecks and jeans cd /path/to/processing/build/macosx and then.. ./make.sh If everything went well, you'll have no errors. (Feel free to make suggestions for things to include here for common problems.) Then to run: ./run.sh Each time you make a change, use make to build the thing and run to get it up and running. Updating to the Latest VersionEach time you want to update to latest version: cd /path/to/processing svn update If you're getting strange errors when you try to build, especially if new folders have been added to the Processing repository, remove your 'work' folder and rebuild. Generally, this is a good idea to do whenever a new release has been made, since that will involve files that may have been changed (or folders that have been moved). get to the processing folder cd /path/to/processing remove the work directory cd build/yourplatform rm -rf work and try again ./make.sh Unfortunately there isn't a way to know if new folders have since been added. But if you're getting "class not found" errors while building, then that's a good indicator that something is missing from a subfolder. Building with EclipseDisclaimer: Processing is intended to be built with ant. You should always ensure the code compiles with ant before checking in.
svn checkout http://processing.googlecode.com/svn/trunk/processing processing ant processing/build/build.xml svn checkout http://processing.googlecode.com/svn/trunk/processing processing You should now have the following file structureprocessing/ workspace/ rem Run these from the directory containing both processing/ and workspace/ mklink /D workspace\android ..\processing\android mklink /D workspace\processing ..\processing\app mklink /D workspace\processing-core ..\processing\core mklink /D workspace\processing-dxf ..\processing\java\libraries\dxf mklink /D workspace\processing-net ..\processing\java\libraries\net mklink /D workspace\processing-opengl ..\processing\java\libraries\opengl mklink /D workspace\processing-pdf ..\processing\java\libraries\pdf mklink /D workspace\processing-serial ..\processing\java\libraries\serial mklink /D workspace\processing-video ..\processing\java\libraries\video mklink /D processing\app\modes ..\build\windows\work\modes mklink /H processing\app\lib\preferences.txt processing\build\windows\work\lib\preferences.txt mklink /H processing\app\lib\about.jpg processing\build\windows\work\lib\about.jpg mklink /H processing\app\lib\contributions.gif processing\build\windows\work\lib\contributions.gif #!/bin/bash # Run these from the directory containing both processing/ and workspace/ ln -s ../processing/android workspace/android ln -s ../processing/app workspace/processing ln -s ../processing/core workspace/processing-core ln -s ../processing/java/libraries/dxf workspace/processing-dxf ln -s ../processing/java/libraries/net workspace/processing-net ln -s ../processing/java/libraries/opengl workspace/processing-opengl ln -s ../processing/java/libraries/pdf workspace/processing-pdf ln -s ../processing/java/libraries/serial workspace/processing-serial ln -s ../processing/java/libraries/video workspace/processing-video # For Mac OS X, use: ln -s ../build/macosx/work/Processing.app/Contents/Resources/Java/modes/ processing/app/modes ln processing/build/macosx/work/Processing.app/Contents/Resources/Java/lib/preferences.txt processing/app/lib/preferences.txt ln processing/build/macosx/work/Processing.app/Contents/Resources/Java/lib/contributions.gif processing/app/lib/contributions.gif ln processing/build/macosx/work/Processing.app/Contents/Resources/Java/lib/about.jpg processing/app/lib/about.jpg # For Linux, use: ln -s ../build/linux/work/modes processing/app/modes ln processing/build/linux/work/lib/preferences.txt processing/app/lib/preferences.txt ln processing/build/linux/work/lib/contributions.gif processing/app/lib/contributions.gif ln processing/build/linux/work/lib/about.jpg processing/app/lib/about.jpg |
cd /path/to/processing/build/windows
i can't find path directory. what did i do wrong?
hi jinux1, /path/to/ means the place where your processing folder is.
I think the build instructions are out of date. To compile I had to
and then to run on linux, I had to
Also, requires Android SDK 2.1 API 7
The /processing/core/ dir contains an Eclipse .classpath and .project file, but importing the project flags lots of errors. Are there guidelines on how to work with the code in Eclipse? On windows, Ant can be insanely hard to make work due to its inability to cope with spaces in ant and java locations (and the only correct location for java in Windows XP and up is in /program files/, which means it always has a space in its file location). Eclipse can take care of calling Ant correctly, so the presence of a .classpath and .project file hints at the fact that it is possible to edit and compile the processing source in that.
It would be really great if Android SDK was an optional dependency. We aren't all interested in developing phone apps.
How to build processing on Eclipse Helios.
I have problems on build, when execute ant build
`BUILD FAILED /home/cravo/workspace/processing/build/build.xml:41: The following error occurred while executing this line: /home/cravo/workspace/processing/build/build.xml:90: The following error occurred while executing this line: /home/cravo/workspace/processing/app/build.xml:100: The JAVA_HOME variable must be set to the location of a full JDK. For instance, on Ubuntu Linux, this might be /usr/lib/jvm/java-6-sun.`
I have these
default-java java-1.5.0-gcj-4.5 java-1.6.0-openjdk java-6-openjdk
installed on my devlopment machine; this is not enough?
I've downloaded Processing's code(release 0204) and built it using ant on my windows 7 system(64 bit, jdk 1.7.0). I also managed to setup the Eclipse(Helios) workspace. When I build it using ant from cmd, Processing runs after a successful build and works fine, but when I run Base.java from inside Eclipse, Processing runs, but I'm not able to execute any sort of code by typing into the processing editor. Examples don't work either. I get the following error:
Exception in thread "Thread-9" java.lang.NullPointerException?
I've included the extra libraries(dependencies) as well like android.jar,etc. Projects show no errors otherwise.I guess I need to build it using Eclipse ant. But each project in Eclipse has individiual build.xml files. Building any of those individually doesn't seem to work. How do I build the entire project, i.e how do I build it using the build.xml file located in processing/build folder? Eclipse ant doesn't let me add that file either.