私は、GitリポジトリからCygwinを使用してソースからWindows 11上で最新のJava OpenJDKをビルドしようとしています。出典: github.com
README.mdの指示に従ってみると、
If you are eager to try out building the JDK, these simple steps works most of the time. They assume that you have installed Git (and Cygwin if running on Windows) and cloned the top-level JDK repository that you want to build.
Get the complete source code:
git clone https://git.openjdk.java.net/jdk/
Run configure:
bash configure
If configure fails due to missing dependencies most of the time it prints a suggestion on how to resolve the situation on
your platform. Follow the instructions, and try running `bash configure`
again.
私がやっている
bash configure --enable-absolute-paths-in-output
(--enable フラグの有無で試しました)
Visual Studio コミュニティがインストールされており、デスクトップ開発アドイン用の C++ もインストールされています。
次の状態に到達し、失敗します。
何かアドバイスはありますか?
configure: Using default toolchain microsoft (Microsoft Visual Studio)
configure: Found Visual Studio installation at /cygdrive/c/progra~1/mib055~1/2022/Community using well-known name
configure: Warning: None of vc/bin/amd64/vcvars64.bat vc/bin/x86_amd64/vcvarsx86_amd64.bat vc/auxiliary/build/vcvarsx86_amd64.bat vc/auxiliary/build/vcvars64.bat were found, Visual Studio installation not recognized. Ignoring
configure: Found Visual Studio installation at /cygdrive/c/progra~1/mib055~1/2022/Community using well-known name
configure: Warning: None of vc/bin/amd64/vcvars64.bat vc/bin/x86_amd64/vcvarsx86_amd64.bat vc/auxiliary/build/vcvarsx86_amd64.bat vc/auxiliary/build/vcvars64.bat were found, Visual Studio installation not recognized. Ignoring
configure: error: Cannot locate a valid Visual Studio installation
configure exiting with result code 1