【发布时间】:2018-03-17 18:49:47
【问题描述】:
尝试在 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 工具链?
谢谢, 杰弗里
【问题讨论】:
标签: java gcc makefile build configure