尝试在Windows 10下的Cygwin下构建OpenJDK 9.我想使用gcc工具链,但默认情况下它正在查找Microsoft工具链。得到以下错误:
bash$ ./configure MAKE=/usr/local/bin/gmake with_freetype=C:/Users/gfalk/OpenJDK/freetype
Running generated-configure.sh
configure: Configuration created at Sat Mar 17 14:44:10 EDT 2018.
configure: configure script generated at timestamp 1496926402.
checking for basename... /usr/bin/basename
checking for bash... /usr/bin/bash
....
configure: Cannot locate a valid Visual Studio installation, checking current environment
checking for Visual Studio variables... not found
configure: Cannot locate a valid Visual Studio or Windows SDK installation on disk,
configure: nor is this script run from a Visual Studio command prompt.
configure: Try setting --with-tools-dir to the VC/bin directory within the VS installation
configure: or run "bash.exe -l" from a VS command prompt and then run configure from there.
configure: error: Cannot continue
configure exiting with result code 1
如何将其指向gcc工具链?
谢谢, 杰弗里
答案 0 :(得分:0)
根据OpenJDK build instructions,构建OpenJDK需要Microsoft Visual Studio。
我朦胧地回忆起试图将Windows支持移植到GCC和Ming64(用于Fedora上的交叉编译),但它需要进行非平凡的更改,并且从未完成它。