- Goals
- User guide
- Classlib developers guide
- Developer guide
- Tester guide
- Porting guide
- Blogs
- Project development
- Glossary
- Proposals
- FAQ
- Papers & presentations
- References
- Research
Building on the Mac OSX / Intel platform
(These instructions were contributed by "jarrah".)
I've successfully built jnode on MacOS X from the trunk and the 2.6 sources. Here's what I needed to do:
- I'm using 10.5.2. I'm not sure if it works on 10.4.x.
- Download and install Java SE 6 from the ADC site. I used Developer Preview 9. Note that this only works on 64 bit compatible machines (MacBook Pro's with Core 2 Duo processors are OK). The link to the downloads page is: https://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/105/wo/aC2LI...
- If you don't want to use Java SE 6 as your default Java (I don't), then edit build.sh and add /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Commands/ before the java command.
- Download and build cdrtools (I used version 2.01.01) from http://cdrecord.berlios.de/private/cdrecord.html. I just installed the mkisofs executable in /usr/local/bin (which is in my path).
- Download and install yasm from http://www.tortall.net/projects/yasm/wiki/Download. I used version 0.6.2.
- Edit all/lib/jnode.xml and change the javac "memoryMaximumSize" attribute to "1024m".
- Edit core/src/openjdk/sun/sun/applet/AppletViewerPanel.java and comment out line 34 "import sun.tools.jar.*;"
- Run "sh build.sh cd-x86-lite".
You should end up with an ISO image called jnode-x86.iso in all/build/cdroms.
Cheers,
Greg
- Printer-friendly version
- Login to post comments
ant, NASM and mkisofs tools
I used the handy Mac Ports (http://www.macports.org/) to obtain the cdrtools package which contains mkisofs.
For nasm I had it already installed, but it's also available from MacPorts; I cant remeberer installing directly it myself; but I am wondering if it came with XCode.
For my java dev I had already installed ant using a package from another useful soure 'fink' (http://www.finkproject.org/)
To switch system wide java versions goto Applcations->Utilities->Java Preferences
To set the java for temporarily for the current shell/terminal session you can alternatively to the previous post suggestion use:
export PATH=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Commands:$PATH