J'ai essayé de construire JDK 9 EA sur Mac, mais un bug? Suspendu en raison d'une erreur de construction.
$ brew install mercurial
$ hg clone http://hg.openjdk.java.net/jdk9/jdk9 jdk9
$ cd jdk9
#Obtenez la source de jdk(Prend environ 15 minutes)
$ bash ./get_source.sh
#Je me fâche quand j'ai besoin d'un type gratuit
$ bash ./configure
...
configure: error: Could not find freetype! You might be able to fix this by running 'brew install freetype'.
~/java/jdk9/common/autoconf/generated-configure.sh: line 82: 5: Bad file descriptor
configure exiting with result code 1
#Installer freetype
$ brew install freetype
#Spécifiez à nouveau le chemin du freetype et configurez
$ bash ./configure --with-freetype-include=/usr//local/homebrew/include/freetype2 --with-freetype-lib=/usr/local/homebrew/lib
...
====================================================
A new configuration has been successfully created in
~/java/jdk9/build/macosx-x86_64-normal-server-release
using configure arguments '--with-freetype-include=/usr//local/homebrew/include/freetype2 --with-freetype-lib=/usr/local/homebrew/lib'.
Configuration summary:
* Debug level: release
* HS debug level: product
* JDK variant: normal
* JVM variants: server
* OpenJDK target: OS: macosx, CPU architecture: x86, address length: 64
* Version string: 9-internal+0-adhoc.mkakimi.jdk9 (9-internal)
Tools summary:
* Boot JDK: java version "9" Java(TM) SE Runtime Environment (build 9+176) Java HotSpot(TM) 64-Bit Server VM (build 9+176, mixed mode) (at /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home)
* Toolchain: clang (clang/LLVM from Xcode 8.2.1)
* C Compiler: Version 8.0.0 (at /usr/bin/clang)
* C++ Compiler: Version 8.0.0 (at /usr/bin/clang++)
Build performance summary:
* Cores to use: 8
* Memory limit: 16384 MB
$ make (Erreur de construction)
https://bugs.openjdk.java.net/browse/JDK-8173336
Recommended Posts