Building Java 7 on OS X Snow Leopard
Oliver Schrenk
Oliver.Schrenk at gmx.net
Fri Oct 23 07:29:07 PDT 2009
Hi,
thanks for the info. It builds.
So this worked for me:
// change symlinks to gcc 4.0
// not sure if needed, if using CC, CXX make options, use with care
$ sudo rm /usr/bin/gcc
$ sudo ln -s /usr/bin/gcc-4.2 /usr/bin/gcc
// change to path where you want to put all the stuff
cd /path/to/downloads
// get sources an apply patch
$ hg fclone http://hg.openjdk.java.net/bsd-port/bsd-port
$ cd bsd-port/hotspot
// get John's patch, not hosted anywherem get it from attachment and
unzip it
$ patch -p1 /path/to/downlods>/snowleopard.patch
$ cd ..
// set environment
$ export LC_ALL=C
$ export LANG=C
$ unset CLASSPATH
$ unset JAVA_HOME
// get soylatte
// get password from: http://landonf.bikemonkey.org/static/soylatte/
// remember to precede a whitespace in the password with a backslash "\"
$ wget http://jrl:<password>@hg.bikemonkey.org/archive/
javasrc_1_6_jrl_darwin/soylatte16-i386-1.0.3.tar.bz2
tar -xvjf soylatte16-i386-1.0.3.tar.bz2
// get jibx, info: http://jibx.sourceforge.net/
// (1.2.1 didj't work for me),
wget http://downloads.sourceforge.net/project/jibx/jibx/jibx-1.1.6a/jibx_1_1_6a.zip
unzip jibx_1_1_6a.zip
// replace "/path/to/downloads" with appropiate folder
$ make \
ALT_BOOTDIR=/path/to/downloads/soylatte16-i386-1.0.3/ \
ALT_FREETYPE_HEADERS_PATH=/usr/X11R6/include \
ALT_FREETYPE_LIB_PATH=/usr/X11R6/lib \
ALT_JIBX_LIBS_PATH=/path/to/downloads/jibx \
ALT_CUPS_HEADERS_PATH=/usr/include \
ANT_HOME=/usr/share/ant \
ARCH_DATA_MODEL=32 \
JAVA_TOOLS_DIR=/Users/Oliver/Downloads/soylatte16-i386-1.0.3/bin
NO_DOCS=true \
CC="gcc-4.0" \
CXX="g++-4.0" \
HOTSPOT_BUILD_JOBS=2
// get a real coffee or a tea and wait for Java7 to be built
-------------- next part --------------
A non-text attachment was scrubbed...
Name: snowleopard.patch.zip
Type: application/zip
Size: 1318 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/bsd-port-dev/attachments/20091023/ef772fb3/snowleopard.patch.zip
-------------- next part --------------
Hopefully this helps someone
Best regards
Oliver Schrenk
More information about the bsd-port-dev
mailing list