我在 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/