I managed to get past this error using the following configuration line:

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

It's good enough for us to be able to build, so I'll stick with it, but it seems the detection mechanism is somehow broken.

On 05/01/2015 17:22, Volker Simonis wrote:
Maybe this is a 32/64 bit mismatch - i.e. you are on a 64-bit machine
with 64-bit libfreetype but configuring for 32-bit ?



On Fri, Dec 19, 2014 at 10:08 AM, Cédric Champeau
<[email protected]> wrote:
Hi everyone,

Some of you may know that we try to test Groovy builds against the latest
versions of the JDK. For that, we have setup a CI build of OpenJDK 7, 8 and
9. However, the JDK 8 builds have been failing for several months now (sorry
I didn't have much time to investigate this specific subject, so I rely on
EA builds instead, which gives us late but valuable feedback).

Basically, in the JDK 8 build log (JDK 9 doesn't have the issue), I can read
this in the logs:

[02:00:17]:     [Step 1/2] configure: error: Could not find freetype! You
might be able to fix this by running 'sudo apt-get install
libfreetype6-dev'.

However if I try to do so, I see that freetype *is* installed:

# apt-get install libfreetype6-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libfreetype6-dev is already the newest version.

The server is running Ubuntu 14.04.1 LTS, which gcc 4.8.2, which is supposed
to "work flawlessly" from what I read here:
https://wiki.openjdk.java.net/display/Build/Supported+Build+Platforms

We build from http://hg.openjdk.java.net/jdk8u/jdk8u

Thanks for your help!

--
Cédric Champeau
SpringSource - Pivotal
http://twitter.com/CedricChampeau
http://melix.github.io/blog
http://spring.io/ http://www.gopivotal.com/



--
Cédric Champeau
Groovy language developer
http://twitter.com/CedricChampeau
http://melix.github.io/blog

Reply via email to