# HG changeset patch # User prr # Date 1273613502 25200 # Node ID aa4f995fb65e9f761c96c808a58cfd1190f10455 # Parent 5f5c33d417f3a14706b09a4a95e65fa7b6fa54d6 6931180: Migration to recent versions of MS Platform SDK Summary: Changes to enable building JDK7 with Microsoft Visual Studio 2010 Reviewed-by: ohair, art, ccheung, dcubed diff -r 5f5c33d417f3 -r aa4f995fb65e README-builds.html --- a/README-builds.html Thu Apr 29 14:32:39 2010 -0700 +++ b/README-builds.html Tue May 11 14:31:42 2010 -0700 @@ -183,13 +183,13 @@ Windows X86 (32-bit) Windows XP - Microsoft Visual Studio C++ 2008 Standard Edition + Microsoft Visual Studio C++ 2010 Professional Edition JDK 6u14 FCS Windows X64 (64-bit) Windows Server 2003 - Enterprise x64 Edition - Microsoft Platform SDK - April 2005 + Microsoft Visual Studio C++ 2010 Professional Edition JDK 6u14 FCS @@ -789,11 +789,7 @@
  • Install the - Microsoft Visual Studio Compilers (32-bit). -
  • -
  • - Install the - Microsoft Platform SDK. + Microsoft Visual Studio Compilers).
  • Setup all environment variables for compilers @@ -964,13 +960,28 @@ Windows i586: Microsoft Visual Studio Compilers
    +

    +BEGIN WARNING: At this time (Spring/Summer 2010) JDK 7 is starting a transition to +use the newest VS2010 Microsoft compilers. These build instructions are updated +to show where we are going. We have a QA process to go through before +official builds actually use VS2010. So for now, official builds are +still using VS2003. No other compilers are known to build the entire JDK, +including non-open portions. +So for now you should be able to build with either VS2003 or VS2010. +We do not guarantee that VS2008 will work, although there is sufficient +makefile support to make at least basic JDK builds plausible. +Visual Studio 2010 Express compilers are likely to be able to build all the +"open" sources, with only small adjustments, but this has yet to be made +to work. Also we have not yet seen the 7.1 Windows SDK with the 64 bit +compilers. END WARNING. +

    The 32-bit OpenJDK Windows build requires - Microsoft Visual Studio C++ 2008 (VS2008) Standard + Microsoft Visual Studio C++ 2010 (VS2010) Professional Edition compiler. The compiler and other tools are expected to reside in the location defined by the variable - VS90COMNTOOLS which + VS100COMNTOOLS which is set by the Microsoft Visual Studio installer.

    Once the compiler is installed, @@ -982,36 +993,21 @@ prior to building the OpenJDK. The above environment variables MUST be set. + This compiler also contains the Windows SDK v 7.0a, + which is an update to the Windows 7 SDK.

    WARNING: Make sure you check out the CYGWIN link.exe WARNING. The path /usr/bin must be after the path to the Visual Studio product.

    - Windows: Microsoft Platform SDK + Windows x64: Microsoft Visual Studio Compilers
    - On X64, the Microsoft Platform Software - Development Kit (SDK), April 2005 Edition compiler, - is required for building the OpenJDK - because it contains the C/C++ compiler. - You will need to minimally install the Core SDK and - the MDAC SDK features of this compiler. -

    - Once the Platform SDK is installed, - it is recommended that you run SetEnv.Cmd /X64 - to set the compiler environment variables - MSSDK, - MSTOOLS, - INCLUDE, - LIB, and - PATH - prior to building the - OpenJDK. - The above environment variables MUST be set. -

    - This Platform SDK compiler is only used on X64 builds - but other parts of the Platform SDK may be used - for the X86 builds. + On X64, the set up is much the same in VS2010 + except that you run amd64\VCVARS64.BAT + to set the compiler environment variables. + Previously 64 builds had used the 64 bit compiler in + an unbundled Windows SDK but this is no longer necessary.

    @@ -1314,40 +1310,16 @@ but it's normally found via the DirectX environment variable DXSDK_DIR. - MSVCRT.DLL + MSVCR100.DLL
    - i586 only: - The OpenJDK 32-bit build requires access to a redistributable - MSVCRT.DLL. - If the MSVCRT.DLL is not installed in - the system32 directory set the + The OpenJDK build requires access to a redistributable + MSVCR100.DLL. + This is usually picked up automatically from the redist + directories of Visual Studio 2010. + If this cannot be found set the ALT_MSVCRT_DLL_PATH variable to the location of this file.

    - X64 only: - The OpenJDK 64-bit build requires access to a redistributable - MSVCRT.DLL, which is - usually supplied by the - Platform SDK. - If it is not available from the Platform SDK, - set the - ALT_MSVCRT_DLL_PATH - variable to the location of this file. -

    - MSVCR90.DLL -
    - i586 only: - The - OpenJDK - build requires access to a redistributable - MSVCR90.DLL which should be - supplied by the - Visual Studio product. - If the MSVCR90.DLL is not available from the - Visual Studio product - set the - ALT_MSVCR90_DLL_PATH - variable to the location of this file.
    @@ -1623,11 +1595,10 @@ The location of the MSVCRT.DLL. -
    ALT_MSVCR90_DLL_PATH
    +
    ALT_MSVCRNN_DLL_PATH
    - i586 only: The location of the - MSVCR90.DLL. + MSVCR100.DLL.