OpenJDK9源码编译

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/xiaocszn/article/details/81709096

完全参考http://www.jianshu.com/p/26bd050610a4这篇文章

https://blog.csdn.net/wd2014610/article/details/81703203

https://blog.csdn.net/wd2014610/article/details/81664062

https://www.jianshu.com/p/ee7e9176632c

https://rqsir.github.io/2019/04/19/openjdk-8-%E4%BD%BF%E7%94%A8Clion%E8%B0%83%E8%AF%95%E6%BA%90%E7%A0%81/

1. 本机环境

  • 系统版本:macOS Sierra (10.12)

  • Boot JDK:

    • java -version

      ⋊> ~/study java -version                                                                                                                                                                          21:41:25
      java version "1.8.0_45"
      Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
      Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)

       

  • XCode:

  • xcodebuild -version

    ⋊> ~/study xcodebuild -version                                                                                                                                                                    22:00:15
    Xcode 8.0
    Build version 8A218a

    2. 安装必要软件

brew install ccache
brew install freetype

3. 下载源码

$ hg clone http://hg.openjdk.java.net/jdk9/jdk9 YourOpenJDK
$cd YourOpenJDK
$ bash ./get_source.sh

如果出现如下错误则重试

abort: stream ended unexpectedly (got 638305 bytes, expected 689947)

4. 编译

bash ./configure --with-freetype=/usr/local/opt/freetype --disable-zip-debug-info --disable-warnings-as-errors --with-debug-level=slowdebug 2>&1 | tee configure_mac_x64.log

 

展开阅读全文

没有更多推荐了,返回首页