MacOS X 10.3 and later comes with the XCode suite of
programming tools. We're starting to learn how to build JMRI
with this. This page contains the info we have so far.
Step 0: Getting Ready (Only needed once)
Generate a new Xcode Project "Somewhere"(Nopossible path conflict with
anything existing....)
- Select: Ant-based Application Jar
- Name it JMRI
- Save (Finish)
- Quit
- Only take the jmri.xcode file and copy it into the JMRI folder right
next to the build.xml file. Delete the rest....
- Start the jmri.xcode at its new location
- Select the Targets -> jmri
- write jar into the Arguments field
Step 1: Source Code compilation
Start XCode 1.5 and press compile
--> Now the jmri.jar should be built at its intended location
Step 2: Program compilation
Start the Jar Bundler, found under Developer/Applications/Java Tools
"Build Information":
Choose the jmri.jar as Main Class and select the program to be compiled
Add a nice picture
Check the rest of the Options on this page
"Classpath and Files":
Add all libs to Additions to Classpath
"Properties":
Add the VM Options and the Additional properties found in the build.xml
Press Create Applicetion and select Program Name
Now you should find a nice program.....
Unfortunately I did not find any way to save the entries in Jar
Builder so you will need to redo everything anytime you start it.....
Alternate Instructions for XCode 3
Open Terminal
% cd (somewhere you want to do this)
% mkdir xcode
% mkdir xcode
Launch XCode (I used 3.1.3)
"New Project"
select "Java Application"
click "Choose..."
save as 'java' in the 'xcode' directory you created
% cd xcode
% mv java/build.xml java/build.xml.old
% cvs -q checkout all
% cd java
% rm src/AboutBox.java
% rm src/PrefPane.java
% rm src/java.java
% open java.xcodeproj/
select executables -> java, click "Info";
general tab -> select "Custom Directory" and set the xcode/java directory
Project -> Edit Active Target "java"
uncheck pass build settings
set arguements to: $(ACTION)
Project - > edit executable
name: DecoderPro
path: /usr/bin/ant
arguments, add: decoderpro
"Build and Run" button should work!