mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 22:29:18 +01:00
206 lines
6.5 KiB
Plaintext
Executable File
206 lines
6.5 KiB
Plaintext
Executable File
HOW TO BUILD PROCESSING
|
|
|
|
|
|
//// WINDOWS
|
|
|
|
|
|
// Steps for First Time Setup
|
|
|
|
|
|
1. INSTALL CYGWIN, downloadable from www.cygwin.com
|
|
or directly link to the installer: www.cygwin.com/setup.exe
|
|
|
|
** of the packages, begin with the defaults, and add:
|
|
cvs - used for version control
|
|
gzip - probably installed by default, just make sure
|
|
perl - use this version, activestate or other distros have trouble
|
|
tar, unzip, zip - for created archives
|
|
textutils - i think this is included in the defaults, but make sure
|
|
|
|
** these aren't required initially, but useful:
|
|
openssh (command line ssh client)
|
|
nano (handy/simple text editor)
|
|
|
|
** and be sure to select the option for 'unix line endings'.
|
|
|
|
** other notes
|
|
|
|
the installer is sometimes a little flakey, so it may take more than
|
|
one try to get everything in there. you can also run the installer
|
|
again to add new applications, so you might try just installing the
|
|
base stuff, and then come back to install the other bits.
|
|
|
|
it's also useful to run the installer (grab a new one from the site,
|
|
since it changes) every few months to keep things fresh.
|
|
|
|
|
|
|
|
2. GRAB THE CODE FROM SOURCEFORGE
|
|
|
|
* this grabs the code as an anonymous user. if you have a sourceforge
|
|
account, you should know how to grab the code as yourself.
|
|
|
|
# first do this
|
|
cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/processing login
|
|
# just hit enter when it asks for a password
|
|
|
|
# then do this (may take a while)
|
|
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/processing co processing
|
|
# (maybe even a long while for you dialup and international folks)
|
|
|
|
# gonna do a few things in the p5 folder
|
|
cd processing
|
|
|
|
# if you're not doing web development, you won't need those folders
|
|
rm -rf web web_gen
|
|
|
|
# this is actually done by the build script, but you may as well do it now
|
|
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/processing co bagel
|
|
|
|
# a quick cleanup, removes empty (dead/old) folders
|
|
cvs update -P
|
|
|
|
# get back to the processing/ folder
|
|
cd ..
|
|
|
|
|
|
|
|
3. INSTALL JIKES
|
|
|
|
* a copy of jikes, the ibm's free and speedy java compiler that we
|
|
use, has been placed in build/windows/jikes.exe.gz
|
|
|
|
* NOTE! this version of jikes has been specially compiled under cygwin
|
|
to use : as a path separator, so that all the build scripts work. so
|
|
if you already have another version of jikes installed, this one is
|
|
the one you want for building P5.
|
|
|
|
* open up a cygwin shell, then go like dis:
|
|
|
|
cd /yourpath/to/processing/build/windows
|
|
# /yourpath/to is where you've placed the processing folder
|
|
# for instance, if it's in c:\processing, the line below would be
|
|
# /cygdrive/c/processing/build/windows
|
|
|
|
# make a copy of jikes
|
|
cp jikes.exe.gz /usr/bin/
|
|
|
|
# unpack and install
|
|
cd /usr/bin
|
|
gzip -d jikes.exe.gz
|
|
chmod +x jikes.exe
|
|
|
|
# make sure it's now in the path
|
|
rehash
|
|
|
|
# and see if it works by typing:
|
|
jikes
|
|
# if it doesn't list the options, then something wasn't installed
|
|
# correctly. retrace your steps and see if you've done everything.
|
|
# or if i've made an error in the instructions, lemme know.
|
|
|
|
# back to home
|
|
cd /yourpath/to/processing
|
|
|
|
|
|
|
|
4. SET YOUR CLASSPATH (for bagel)
|
|
|
|
* you need a few things in your classpath, they are:
|
|
- the rt.jar from a java runtime (1.1 or 1.4)
|
|
- comm.jar, from javacomm. you can find a copy in
|
|
processing/build/windows/dist/lib/comm.jar
|
|
if you don't already have it installed
|
|
|
|
* to add them to your CLASSPATH (win2k or xp), go to Control Panels ->
|
|
System Properties -> Advanced -> Environment Variables
|
|
if CLASSPATH is already listed in one of the lefthand columns,
|
|
just make sure it includes those two things. if it doesn't, add
|
|
them (with full paths to them), separated by semicolons.
|
|
on win98 or winme (ack! don't use em!) you'll have to mess with
|
|
autoexec.bat. but we strongly recommend not doing this on 98/ME.
|
|
|
|
* you'll also need to install quicktime for java, if you're building
|
|
for windows or mac. grab a quicktime installer from:
|
|
http://www.apple.com/quicktime/download/
|
|
|
|
* if you already have quicktime installed, just make sure that
|
|
quicktime for java has already been installed, use the quicktime
|
|
updater (Program Files -> QuickTime -> QuickTime Updater) hit the
|
|
'Details' button in the updater, and if it lists "Not installed"
|
|
for "QuickTime for Java", well, take care of that.
|
|
|
|
* make sure that qtjava is in your classpath as well, done
|
|
properly. arielm had problems with this, and adds:
|
|
|
|
so i checked a bit and it seems that the quicktime 4 java
|
|
installation (at least on windows xp) is broken, for the 2 following
|
|
reasons:
|
|
1) CLASSPATH is defined as a "System variable"
|
|
instead of a "User variable"
|
|
2) the value of CLASSPATH is encosed into quotes (")
|
|
|
|
after manually fixing these issues, things were fine. (either
|
|
properly place quotes around a single version of CLASSPATH, or use a
|
|
version that doesn't need to be quoted and has no spaces,
|
|
i.e. replace 'Program Files' with the 8.3 dos version: 'PROGRA~1'
|
|
(indeed, this awful nomenclature still works).
|
|
|
|
|
|
5. BUILD IT
|
|
|
|
* you'll need to close and re-open the cygwin window after setting
|
|
your CLASSPATH.
|
|
|
|
# now to build for the first time:
|
|
cd /path/to/processing/build/windows
|
|
./make.sh
|
|
|
|
# if everything went well, you'll have no errors.
|
|
# (need more doc here on common problems..)
|
|
|
|
# then to run it
|
|
./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 Version
|
|
|
|
1. Each time you want to update to latest version from cvs:
|
|
|
|
cd /path/to/processing
|
|
cvs -z3 update
|
|
# -z3 means make it snappy (using compression)
|
|
|
|
|
|
2. Or if new folders have been added, use:
|
|
|
|
cd /path/to/processing
|
|
cvs -z3 update -d -P
|
|
# -d grabs new directories and -P cleans out old (empty) ones
|
|
# cvs is a little brain dead about this stuff
|
|
|
|
# if you've removed web/ and web_dev/, then do the update -d -P
|
|
# from inside app/ and bagel/ (rather than from the just the
|
|
# processing/ folder) otherwise -d will grab web and web_dev again
|
|
|
|
# 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.
|
|
|
|
|
|
//// MAC OS 9
|
|
|
|
this is actually built from inside osx, but then you reboot into os9
|
|
to move files around, remove and .DS_Store files that may have shown
|
|
up, and package the thing with stuffit.
|
|
|
|
when first attempting to build, it's necessary to un-macbinarize the
|
|
Proce55ing application. (processing/build/macos9/dist/Proce55ing.bin)
|
|
for some reason, this doesn't quite work with stuffit expander. i use
|
|
an app called MacBinaryII+, which is a super crusty app, but it works.
|