猿问

Mac OS下编译openJDK的问题

最近买了一本《深入理解Java虚拟机》的书,书中第一章描写怎么样编译openJDK,我自己在编译的过程当中出错了,由于对unix/Linux知之甚少,找了好多,都没有解决。

接下来贴出使用 make sanity命令输出的一部分内容:

 
Target Build Versions:
  JDK_VERSION = 1.7.0
  MILESTONE = internal
  RELEASE = 1.7.0-internal
  FULL_VERSION = 1.7.0-internal-aichangchun_2014_08_24_20_57-b00
  BUILD_NUMBER = b00
 
External File/Binary Locations:
  USRJDKINSTANCES_PATH = /opt/local
  BUILD_JDK_IMPORT_PATH = /NOT-SET/re/jdk/1.7.0/promoted/latest/binaries
    ALT_BUILD_JDK_IMPORT_PATH = 
  JDK_IMPORT_PATH = /NOT-SET/re/jdk/1.7.0/promoted/latest/binaries/macosx-x86_64
    ALT_JDK_IMPORT_PATH = 
  LANGTOOLS_DIST = 
    ALT_LANGTOOLS_DIST = /Users/aichangchun/openjdk/build/macosx-x86_64/langtools/dist
  CORBA_DIST = 
    ALT_CORBA_DIST = /Users/aichangchun/openjdk/build/macosx-x86_64/corba/dist
  JAXP_DIST = 
    ALT_JAXP_DIST = /Users/aichangchun/openjdk/build/macosx-x86_64/jaxp/dist
  JAXWS_DIST = 
    ALT_JAXWS_DIST = /Users/aichangchun/openjdk/build/macosx-x86_64/jaxws/dist
  HOTSPOT_DOCS_IMPORT_PATH = /NO_DOCS_DIR
    ALT_HOTSPOT_DOCS_IMPORT_PATH = 
  HOTSPOT_IMPORT_PATH = /Users/aichangchun/openjdk/build/macosx-x86_64/hotspot/import
    ALT_HOTSPOT_IMPORT_PATH = /Users/aichangchun/openjdk/build/macosx-x86_64/hotspot/import
  HOTSPOT_SERVER_PATH = /Users/aichangchun/openjdk/build/macosx-x86_64/hotspot/import/jre/lib/server
    ALT_HOTSPOT_SERVER_PATH = 
  CACERTS_FILE = ./../src/share/lib/security/cacerts
    ALT_CACERTS_FILE = 
  CUPS_HEADERS_PATH = /usr/include
    ALT_CUPS_HEADERS_PATH = 
 
OpenJDK-specific settings:
  FREETYPE_HEADERS_PATH = /usr/local/include/freetype2
    ALT_FREETYPE_HEADERS_PATH = /usr/local/include/freetype2
  FREETYPE_LIB_PATH = /usr/local/lib
    ALT_FREETYPE_LIB_PATH = /usr/local/lib
 
Previous JDK Settings:
  PREVIOUS_RELEASE_PATH = 
    ALT_PREVIOUS_RELEASE_PATH = 
  PREVIOUS_JDK_VERSION = 1.6.0
    ALT_PREVIOUS_JDK_VERSION = 
  PREVIOUS_JDK_FILE = 
    ALT_PREVIOUS_JDK_FILE = 
  PREVIOUS_JRE_FILE = 
    ALT_PREVIOUS_JRE_FILE = 
  PREVIOUS_RELEASE_IMAGE = 
    ALT_PREVIOUS_RELEASE_IMAGE =

ERROR: The Compiler version is undefined. 

ERROR: FreeType version  2.3.0  or higher is required. 
 /bin/mkdir -p /Users/aichangchun/openjdk/build/macosx-x86_64/btbins
rm -f /Users/aichangchun/openjdk/build/macosx-x86_64/btbins/freetype_versioncheck
Failed to build freetypecheck.  

Exiting because of the above error(s). 

 

标红的是报的错误,说我本机FreeType字库的问题,我也下载最新的了,请问接下来改怎么办???

慕娘9325324
浏览 598回答 5
5回答

守着一只汪

看了一遍,完全不懂啊。。。看着是给IOS编译的,能说的再具体一点儿吗???

尚方宝剑之说

我也遇到一样的问题了,LZ解决了么?
随时随地看视频慕课网APP

相关分类

Java
我要回答