Giter Club home page Giter Club logo

openjdk8's Introduction

MAC编译OpenJDK8

[TOC]

当前环境

  1. mac 10.13.2
  2. 系统已经安装了jdk "1.8.0_151"

依赖软件

  • Xcode
  • llvm
brew install llvm,之后生成引用文件
sudo ln -s /usr/bin/llvm-g++ /Applications/Xcode.app/Contents/Developer/usr/bin/llvm-g++
sudo ln -s /usr/bin/llvm-gcc /Applications/Xcode.app/Contents/Developer/usr/bin/llvm-gcc 
  • freetype
  • XQuartz 下载XQurtz,之后生成引用文件
sudo ln -s /usr/X11/include/X11 /usr/include/X11   

编译步骤

  1. hg clone http://hg.openjdk.java.net/jdk8/jdk8 jdk8
  2. cd jdk8 && source .bash_porfile
  3. cd jkd8 && get_source.sh --with-debug-level=slowdebug --with-target-bits=64
  4. make all 2>& 1 | tee abc.txt
第二步如果错误,请检查环境配置,
.bash_profile为环境变量先关配置
--with-debug-level=slowdebug 表示编译出详细的调试信息

参考文献

http://jimmee.iteye.com/blog/2288307 https://github.com/ydcun/Java/blob/master/java/src/main/java/com/ydcun/openjdk/jdk8/MAC%E7%BC%96%E8%AF%91OpenJDK8.md

openjdk8's People

Contributors

tss0823 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.