 |
Squawk Build on Mac OS
Installing
- Point your browser at http://developer.apple.com/tools/download/ and download Xcode 3.0 (requires a free signup with Apple Developer Community).
- Double-click on XcodeTools.mpkg. Click through the various pop ups and proceed with default options for installing Xcode Tools.
- svn command line tools should be installed, You can also install a GUI client for svn, such as SmartSVN, or use the builtin svn support form your IDE.
- Java should be installed. You can make sure that the JDK is installed properly by invoking the java command with the -version argument. The actual output you see might be slightly different depending on the version installed.
% java -version
java version "1.5.0_13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-237)
Java HotSpot(TM) Client VM (build 1.5.0_13-119, mixed mode, sharing)
Preparing
- Get squawk by entering https://squawk.dev.java.net/svn/squawk/trunk in the URL box in the SVN window or command line. See https://squawk.dev.java.net/servlets/ProjectSource for details.
Building/Running
Open a Terminal window and change directory to the root of your squawk SVN repository. The file d.sh should be in this directory. Now you need to run a series of build commands to get to the point where squawk runs on the host. Enter each of the following commands (the text in italics are comments):
- ./d.sh copyphoneme Copies the cldc java files to the cldc folder. Only need to do this once.
- ./d.sh Compiles the java modules
- ./d.sh -prod -mac -o2 rom cldc Builds the VM squawk executable
- ./squawk com.sun.squawk.Test It takes a seconds to complete. Do not get scared about the nullpointer exception: it is part of the test.
Optional build steps:
- d.sh clean Removes classes files - both preverified and not, and preprocessed source files. Do only as needed, such as when changing builder properties.
- cd builder; bld.sh; cd .. Builds the builder after changing the builder source.
For more details on building and running Squawk, please see BuildingSquawk.
-- Main.derek_white - 09 Jul 2008
|