Skip to content

Commit 78e3e30

Browse files
authored
Merge pull request #18728 from pshipton/vs2022build
Update the Windows build instructions for VS2022
2 parents 99a3624 + bd9a324 commit 78e3e30

File tree

3 files changed

+29
-21
lines changed

3 files changed

+29
-21
lines changed

doc/build-instructions/Build_Instructions_V11.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ You must install a number of software dependencies to create a suitable build en
385385

386386
- [Cygwin](https://cygwin.com/install.html), which provides a Unix-style command line interface. Install all packages in the `Devel` category. In the `Archive` category, install the packages `zip` and `unzip`. In the `Utils` category, install the `cpio` package. Install any further package dependencies that are identified by the installer. More information about using Cygwin can be found [here](https://cygwin.com/docs.html).
387387
- [Windows JDK 11](https://api.adoptopenjdk.net/v3/binary/latest/11/ga/windows/x64/jdk/openj9/normal/adoptopenjdk), which is used as the boot JDK.
388-
- [Microsoft Visual Studio 2019](https://aka.ms/vs/16/release/vs_community.exe), which is the version currently used by OpenJ9 builds.
388+
- [Microsoft Visual Studio 2022](https://aka.ms/vs/17/release/vs_community.exe), which is the version currently used by OpenJ9 builds.
389389
- [Freemarker V2.3.8](https://sourceforge.net/projects/freemarker/files/freemarker/2.3.8/freemarker-2.3.8.tar.gz/download) - only when building with `--with-cmake=no`
390390
- [LLVM/Clang](https://releases.llvm.org/7.0.0/LLVM-7.0.0-win64.exe)
391391
- [NASM Assembler v2.13.03 or newer](https://www.nasm.us/pub/nasm/releasebuilds/?C=M;O=D)
@@ -409,17 +409,17 @@ cd /cygdrive/c/temp
409409

410410
- Run the following command:
411411
```
412-
wget https://aka.ms/vs/16/release/vs_community.exe -O vs2019.exe
412+
wget https://aka.ms/vs/17/release/vs_community.exe -O vs2022.exe
413413
```
414-
- Before installing Visual Studio, change the permissions on the installation file by running `chmod u+x vs2019.exe`.
415-
- Install Visual Studio by running the file `vs2019.exe` (There is no special step required for installing. Please follow the guide of the installer to install all desired components, the C++ compiler is required).
414+
- Before installing Visual Studio, change the permissions on the installation file by running `chmod u+x vs2022.exe`.
415+
- Install Visual Studio by running the file `vs2022.exe` (There is no special step required for installing. Please follow the guide of the installer to install all desired components, the C++ compiler is required).
416416

417417
Not all of the shared libraries that are included with Visual Studio are registered during installation.
418418
In particular, the `msdia140.dll` libraries must be registered manually by running command prompt as administrator. To do so, execute the following from a command prompt:
419419

420420
```
421-
regsvr32 "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\DIA SDK\bin\msdia140.dll"
422-
regsvr32 "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\DIA SDK\bin\amd64\msdia140.dll"
421+
regsvr32 "C:\Program Files (x86)\Microsoft Visual Studio\2022\Community\DIA SDK\bin\msdia140.dll"
422+
regsvr32 "C:\Program Files (x86)\Microsoft Visual Studio\2022\Community\DIA SDK\bin\amd64\msdia140.dll"
423423
```
424424

425425
- When building with `--with-cmake=no`, unpack the Freemarker archive:

doc/build-instructions/Build_Instructions_V17.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ You must install a number of software dependencies to create a suitable build en
378378

379379
- [Cygwin](https://cygwin.com/install.html), which provides a Unix-style command line interface. Install all packages in the `Devel` category. In the `Archive` category, install the packages `zip` and `unzip`. In the `Utils` category, install the `cpio` package. Install any further package dependencies that are identified by the installer. More information about using Cygwin can be found [here](https://cygwin.com/docs.html).
380380
- [Windows JDK 17](https://api.adoptopenjdk.net/v3/binary/latest/17/ga/windows/x64/jdk/openj9/normal/adoptopenjdk), which is used as the boot JDK.
381-
- [Microsoft Visual Studio 2019](https://aka.ms/vs/16/release/vs_community.exe), which is the default compiler level used by OpenJDK17.
381+
- [Microsoft Visual Studio 2022](https://aka.ms/vs/17/release/vs_community.exe), which is the default compiler level used by OpenJDK17.
382382
- [Freemarker V2.3.8](https://sourceforge.net/projects/freemarker/files/freemarker/2.3.8/freemarker-2.3.8.tar.gz/download) - only when building with `--with-cmake=no`
383383
- [LLVM/Clang](https://releases.llvm.org/7.0.0/LLVM-7.0.0-win64.exe)
384384
- [NASM Assembler v2.13.03 or newer](https://www.nasm.us/pub/nasm/releasebuilds/?C=M;O=D)
@@ -402,18 +402,18 @@ cd /cygdrive/c/temp
402402

403403
- Run the following command:
404404
```
405-
wget https://aka.ms/vs/16/release/vs_community.exe -O vs2019.exe
405+
wget https://aka.ms/vs/17/release/vs_community.exe -O vs2022.exe
406406
```
407407

408-
- Before installing Visual Studio, change the permissions on the installation file by running `chmod u+x vs2019.exe`.
409-
- Install Visual Studio by running the file `vs2019.exe` (There is no special step required for installing. Please follow the guide of the installer to install all desired components, the C++ compiler is required).
408+
- Before installing Visual Studio, change the permissions on the installation file by running `chmod u+x vs2022.exe`.
409+
- Install Visual Studio by running the file `vs2022.exe` (There is no special step required for installing. Please follow the guide of the installer to install all desired components, the C++ compiler is required).
410410

411411
Not all of the shared libraries that are included with Visual Studio are registered during installation.
412412
In particular, the `msdia140.dll` libraries must be registered manually by running command prompt as administrator. To do so, execute the following from a command prompt:
413413

414414
```
415-
regsvr32 "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\DIA SDK\bin\msdia140.dll"
416-
regsvr32 "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\DIA SDK\bin\amd64\msdia140.dll"
415+
regsvr32 "C:\Program Files (x86)\Microsoft Visual Studio\2022\Community\DIA SDK\bin\msdia140.dll"
416+
regsvr32 "C:\Program Files (x86)\Microsoft Visual Studio\2022\Community\DIA SDK\bin\amd64\msdia140.dll"
417417
```
418418

419419
- When building with `--with-cmake=no`, unpack the Freemarker archive:

doc/build-instructions/Build_Instructions_V8.md

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ You must install a number of software dependencies to create a suitable build en
379379

380380
- [Cygwin for 64-bit versions of Windows](https://cygwin.com/install.html), which provides a Unix-style command line interface. Install all packages in the `Devel` category. In the `Archive` category, install the packages `zip` and `unzip`. In the `Utils` category, install the `cpio` package. Install any further package dependencies that are identified by the installer. More information about using Cygwin can be found [here](https://cygwin.com/docs.html).
381381
- [Windows JDK 8](https://api.adoptopenjdk.net/v3/binary/latest/8/ga/windows/x64/jdk/openj9/normal/adoptopenjdk), which is used as the boot JDK.
382-
- [Microsoft Visual Studio 2019](https://aka.ms/vs/16/release/vs_community.exe), which is the version currently used by OpenJ9 builds.
382+
- [Microsoft Visual Studio 2022](https://aka.ms/vs/17/release/vs_community.exe), which is the version currently used by OpenJ9 builds.
383383
- [Freemarker V2.3.8](https://sourceforge.net/projects/freemarker/files/freemarker/2.3.8/freemarker-2.3.8.tar.gz/download) - only when building with `--with-cmake=no`
384384
- [LLVM/Clang 64bit](https://releases.llvm.org/7.0.0/LLVM-7.0.0-win64.exe) or [LLVM/Clang 32bit](https://releases.llvm.org/7.0.0/LLVM-7.0.0-win32.exe)
385385
- [NASM Assembler v2.13.03 or newer](https://www.nasm.us/pub/nasm/releasebuilds/?C=M;O=D)
@@ -396,18 +396,26 @@ Add the path to `nasm.exe` to the `PATH` environment variable to override the ol
396396
export PATH="/cygdrive/c/Program Files/NASM:$PATH" (in Cygwin)
397397
```
398398

399-
Not all of the shared libraries that are included with Visual Studio 2013 or 2017 are registered during installation.
400-
In particular, the `msdia120.dll` or `msdia140.dll` libraries must be registered manually by running command prompt as administrator. To do so, execute the following from a command prompt:
399+
You can download Visual Studio manually or obtain it using the [wget](https://www.gnu.org/software/wget/faq.html#download) utility. If you choose to use `wget`, follow these steps:
401400

402-
VS2013:
401+
- Open a cygwin terminal and change to the `/temp` directory:
403402
```
404-
regsvr32 "C:\Program Files (x86)\Microsoft Visual Studio 12.0\DIA SDK\bin\msdia120.dll"
405-
regsvr32 "C:\Program Files (x86)\Microsoft Visual Studio 12.0\DIA SDK\bin\amd64\msdia120.dll"
403+
cd /cygdrive/c/temp
406404
```
407-
VS2017:
405+
406+
- Run the following command:
407+
```
408+
wget https://aka.ms/vs/17/release/vs_community.exe -O vs2022.exe
409+
```
410+
- Before installing Visual Studio, change the permissions on the installation file by running `chmod u+x vs2022.exe`.
411+
- Install Visual Studio by running the file `vs2022.exe` (There is no special step required for installing. Please follow the guide of the installer to install all desired components, the C++ compiler is required).
412+
413+
Not all of the shared libraries that are included with Visual Studio are registered during installation.
414+
In particular, the `msdia140.dll` libraries must be registered manually by running command prompt as administrator. To do so, execute the following from a command prompt:
415+
408416
```
409-
regsvr32 "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\DIA SDK\bin\msdia140.dll"
410-
regsvr32 "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\DIA SDK\bin\amd64\msdia140.dll"
417+
regsvr32 "C:\Program Files (x86)\Microsoft Visual Studio\2022\Community\DIA SDK\bin\msdia140.dll"
418+
regsvr32 "C:\Program Files (x86)\Microsoft Visual Studio\2022\Community\DIA SDK\bin\amd64\msdia140.dll"
411419
```
412420

413421
- When building with `--with-cmake=no`, unpack the Freemarker archive:

0 commit comments

Comments
 (0)