I'm pretty sure I had XQuartz 2.7.5 installed when I started, and only 
installed 2.7.7 as an attempt to address the failure.

—Dan

> On Oct 22, 2014, at 5:52 AM, Bernhard Urban <bernhard.ur...@jku.at> wrote:
> 
> Hi Dan,
> 
> I had some problems building JDK8 on Mavericks regarding freetype.  My 
> solution was to use XQuartz 2.7.5 (instead of 2.7.7), maybe it's worth a try.
> 
> 
> -Bernhard
> 
> On Wed, Oct 22, 2014 at 12:46 AM, Dan Smith <daniel.sm...@oracle.com 
> <mailto:daniel.sm...@oracle.com>> wrote:
> Looks like I'm a little bit too close to the bleeding edge, but I wonder if 
> anyone's looking into cleaning up building on OS X Yosemite (10.10).
> 
> Building jdk9 mostly works fine, but I've had issues with FreeType.
> 
> ----
> Problem #1:
> 
> > make dist-clean
> > sh configure --with-boot-jdk=$JAVA8_HOME
> 
> ...
> configure: error: Could not find freetype!
> configure exiting with result code 1
> 
> (I tried re-installing XQuartz (updated to 2.7.7), in response to this or a 
> similar error.  Not sure if that made any difference, but I still get an 
> error.)
> 
> Workaround is to point directly to my X11 directories:
> > sh configure --with-boot-jdk=$JAVA8_HOME 
> > --with-freetype-include=/usr/X11/include/freetype2 
> > --with-freetype-lib=/usr/X11/lib
> 
> ----
> Problem #2:
> 
> > make images
> 
> ...
> xattr: No such file: 
> /Users/dan/Dev/jdk/jdk9/build/macosx-x86_64-normal-server-release/jdk/lib/libfreetype.dylib.6
> ...
> make[3]: *** No rule to make target 
> `/Users/dan/Dev/jdk/jdk9/build/macosx-x86_64-normal-server-release/jdk/lib/libfreetype.dylib.6',
>  needed by 
> `/Users/dan/Dev/jdk/jdk9/build/macosx-x86_64-normal-server-release/images/j2re-image/lib/libfreetype.dylib.6'.
>   Stop.
> make[3]: *** Waiting for unfinished jobs....
> make[2]: *** [images] Error 2
> make[1]: *** [main-wrapper] Error 2
> make: *** [images] Error 2
> 
> 
> If I skip the 'images' step, the build succeeds the first time (so I do get 
> usable output, fortunately) but subsequently fails with:
> > make
> 
> ...
> cp: symlink: libfreetype.6.dylib: File exists
> make[3]: *** 
> [/Users/dan/Dev/jdk/jdk9/build/macosx-x86_64-normal-server-release/jdk/lib/libfreetype.dylib.6]
>  Error 1
> make[2]: *** [java.desktop-copy] Error 2
> make[2]: *** Waiting for unfinished jobs....
> make[1]: *** [main-wrapper] Error 2
> make: *** [default] Error 2
> 
> I found /usr/X11/lib/libfreetype.6.dylib, and tried linking from or copying 
> to /usr/X11/lib/libfreetype.dylib.6, but that didn't help.
> 
> —Dan
> 

Reply via email to