Xcode Oracle JDK: 13
先确保系统已安装freetype和ccache
- freetype: 2.9
- ccache: 3.3.5
$ brew install freetype ccache通过Mercurial代码管理版本管理工具从Repository中直接获取源码(Repository为http://hg.openjdk.java.net)
进入解压后的文件夹,然后运行bash ./configure。这是一项检测所需要的依赖是否安装好了的脚本。只需要根据其提供的错误提示,将相应错误修改完成即可。
--with-debug-level=slowdebug 启用slowdebug级别调试
--enable-dtrace 启用dtrace
--with-jvm-variants=server 编译server类型JVM
--with-target-bits=64 指定JVM为64位
--enable-ccache 启用ccache,加快编译
--with-num-cores=8 编译使用CPU核心数
--with-memory-size=8000 编译使用内存
--disable-warnings-as-errors 忽略警告bash configure
--with-debug-level=slowdebug --enable-dtrace
--with-jvm-variants=server
--with-target-bits=64
--enable-ccache
--with-num-cores=8
--with-memory-size=8000
--disable-warnings-as-errorsconfigure: error: No xcodebuild tool and no system framework headers found, use --with-sysroot or --with-sdk-name to provide a path to a valid SDK运行了一下xcodebuild,错误信息如下:
xcode-select: error: tool 'xcodebuild' requires Xcode,
but active developer directory
'/Library/Developer/CommandLineTools' is a command line tools instance- 解决方案
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developermake image














