尝试在Windows10的Cygwin下构建OpenJDK 9。我想使用gcc工具链,但默认情况下它会找到微软工具链。获取以下错误:
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工具链呢?
谢谢,杰弗里
发布于 2018-03-18 06:11:57
根据OpenJDK build instructions的说法,构建OpenJDK需要Microsoft Visual Studio。
我模糊地记得曾尝试将Windows支持移植到GCC和Ming64 (用于在Fedora上进行交叉编译),但它需要大量的更改,而且从未完全完成。
https://stackoverflow.com/questions/49340652
复制相似问题