马跃伟
马跃伟

Reputation: 21

Compile JDK8 error.''Could not find freetype''

I am compiling JDK8 at Ubuntu 16.04 LTS,(Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-91-generic x86_64)),there is a error make me Confused,when i do./bash configure,the error is

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

but when i do the sudo apt-get install libfreetype6-dev,ubuntu tell freetype is already installed like this

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.

Upvotes: 2

Views: 4023

Answers (2)

Hans Jansen
Hans Jansen

Reputation: 1

Even much simpler, this also works:

/configure --with-freetype=/usr

Upvotes: 0

user5145
user5145

Reputation: 21

According to this, you need something like this:

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

Upvotes: 1

Related Questions