Head down, clicking away... TimBell

« Building OpenJDK7 on... 32-bit XP: set up the tool chain, part one. | Main | Building OpenJDK7 on... »

Sunday Jan 13, 2008

In this episode, we continue to build up the tools needed to build OpenJDK7.


  1. Install a bootstrap JDK. I used JDK6 Update 6 (JDK plus JRE)

  2. Install the binary plugs. These are the closed parts of JDK7 that will be pulled in when necessary during the build.

  3. Add JAVA_HOME to PATH so tools like jar and javac are available

  4. Install the free Visual C++ 2005 Express Edition
    (registration/activation required) English localized version available here

  5. Install the 2005 Platform SDK

  6. Install DirectX SDK Summer 2004

  7. Install freetype

  8. 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




  9. install ant and set ANT_HOME

  10. install findbugs and set FINDBUGS_HOME

  11. 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

Comments:

Post a Comment:
Comments are closed for this entry.