我正在Ubuntu 16.04 LTS(Ubuntu 16.04.1 LTS(GNU / Linux 4.4.0-91-通用x86_64))上编译JDK8,出现错误使我感到困惑,当我这样做./bash configure
时,错误是
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.
答案 0 :(得分:0)
根据this,您需要这样的内容:
./configure --with-freetype-include=/usr/include/freetype2 --with-freetype-lib=/usr/lib/x86_64-linux-gnu
答案 1 :(得分:0)
更简单,这也有效:
/configure --with-freetype=/usr