我正在嘗試使用來自 Git 儲存庫的 Cygwin 從原始程式碼建立 Windows 11 上的最新 Java OpenJDKhttps://github.com/openjdk/loom
按照 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