The Source for Java Technology Collaboration


Squawk Build on Mac OS

Installing

  1. Point your browser at http://developer.apple.com/tools/download/ and download Xcode 3.0 (requires a free signup with Apple Developer Community).
  2. Double-click on XcodeTools.mpkg. Click through the various pop ups and proceed with default options for installing Xcode Tools.
  3. 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.
  4. 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

  1. 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):
  1. ./d.sh copyphoneme     Copies the cldc java files to the cldc folder. Only need to do this once.
  2. ./d.sh     Compiles the java modules
  3. ./d.sh -prod -mac -o2 rom cldc     Builds the VM squawk executable
  4. ./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

Topic OnMac . { Edit | Ref-By | Printable | Diffs r7 < r6 < r5 < r4 < r3 | More }
 XML java.net RSS

Revision r7 - 14 Nov 2008 - 02:26:50 - Main.ivira
Parents: WebHome > Squawk