In this episode, we continue to build up the tools needed to build OpenJDK7.
- Install a bootstrap JDK. I used JDK6 Update 6 (JDK plus JRE)
- Install the binary plugs. These are the closed parts of JDK7 that will be pulled in when necessary during the build.
- Add JAVA_HOME to PATH so tools like jar and javac are available
- Install the free Visual C++ 2005 Express Edition
(registration/activation required) English localized version available here - Install the 2005 Platform SDK
- Install DirectX SDK Summer 2004
- Install freetype
- Build Freetype
- Refer to http://freetype.freedesktop.org/wiki/FreeType_DLL
- Modify "include\freetype\config\ftoption.h"
- Create and save the _cl_options and _link_options files.
- Add '/D"FT2_BUILD_LIBRARY"' to _cl_options
- Open a "Visual Studio 2005 Command Prompt" window
cd freetype-2.3.5
cl @_cl_options
link @_link_options
copy ft-msvc-dll.lib freetype.lib
copy FreeType-2.1.10-MSVC-8b2.dll freetype.dll
copy FreeType-2.1.10-MSVC-8b2.dll.manifest freetype.dll.manifest
exit
- install ant and set ANT_HOME
- install findbugs and set FINDBUGS_HOME
- Write a build.bash script. Here is mine:
set -vx
#
# Ref:
# http://mail.openjdk.java.net/pipermail/build-dev/2007-August/000180.html
export OPENJDK=true
#
export BUILD_NUMBER="b`date +%j`"
export HOTSPOT_BUILD_JOBS=4
#
time make sanity | tee sanity.log
time make all | tee build.log