linux - 编译JDK8报错.'' Could not find freetype''

标签 linux ubuntu java-8

我在 Ubuntu 16.04 LTS,(Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-91-generic x86_64)) 上编译 JDK8,当我执行 ./bash 时,有一个错误让我很困惑配置,错误为

configure: error: Could not find freetype! You might be able to fix this by running 'sudo apt-get install libfreetype6-dev'. configure exiting with result code 1

但是当我执行 sudo apt-get install libfreetype6-dev 时,ubuntu 告诉 freetype 已经像这样安装了

ubuntu@VM-137-125-ubuntu:~/openjdk$ sudo apt-get install libfreetype6-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libfreetype6-dev is already the newest version (2.6.1-0.1ubuntu2.3).
0 upgraded, 0 newly installed, 0 to remove and 225 not upgraded.

最佳答案

根据 this ,你需要这样的东西:

./configure --with-freetype-include=/usr/include/freetype2 --with-freetype-lib=/usr/lib/x86_64-linux-gnu

关于linux - 编译JDK8报错.'' Could not find freetype'',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52377684/

相关文章:

linux - 如何在 Linux 中使用另一个脚本运行一个脚本?

c - 为什么我不能用 -fPIE 编译但可以用 -fPIC 编译?

c - 如何在Linux Ubuntu上使用splint进行C程序?

java - 带有 Java 8 Stream 的构建器模式

Java 7u40 Java SE 8 sun.reflect.Reflection.getCallerClass

java 8,使用相同的 javassist 时,Lambda 表达式的工作方式不同

linux - .htaccess 在 "/"之后重定向任何内容

linux - 获取 KSH 名称

linux - 当我使用 GTX 590 在 Ubuntu 10.04 上运行 cuda 代码时,我得到 "Runtime API error : invalid device ordinal."

ubuntu 12.04 SSL 握手失败