[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-build-dev
Subject:    Re: Building JDK9 fails on OS X El Capitan
From:       Phil Race <philip.race () oracle ! com>
Date:       2016-07-07 19:05:57
Message-ID: 577EA815.6070302 () oracle ! com
[Download RAW message or body]

I expect this is the SDK version you are using more than the OS version.
10.9 is the supported SDK.

Any changes to this particular code should be discussed on 
2d-dev@openjdk.java.net
since they would not be build changes

But that might not be sufficient .. you could encounter other issues that
limit the ability to build using whatever SDK you have.

-phil.


On 07/07/2016 11:31 AM, Robin Stevens wrote:
> Hello,
>
> it is currently not possible to build JDK9 on OS X El Capitan.
>
> The problem is the line
>
> #include <Accelerate/Accelerate.h>
>
> in files
>
> jdk/src/java.desktop/macosx/native/libawt_lwawt/font/CGGlyphImages.m
> jdk/src/java.desktop/macosx/native/libawt_lwawt/awt/ImageSurfaceData.m
>
> On OS X El Capitan, the Accelerate.h file contains
>
> #ifndef __VECLIB__
> #include <vecLib/vecLib.h>
> #endif
>
> where vecLib.h contains
>
> #error "The vecLib framework is deprecated. Please include
> <Accelerate/Accelerate.h> instead of <vecLib/vecLib.h> and link to the
> Accelerate framework instead of the vecLib framework."
>
> This is also the error with which the build fails.
>
> Adding
>
> #define __VECLIB__
>
> to the two aforementioned files resolves the error, as it avoids that the
> Accelerate.h file loads the vecLib.h file.
>
> I have no idea of the impact of adding #define __VECLIB__ , and what it
> might break.
> The purpose of this email is more to ensure that other people who stumble
> against the same problem can find a solution using Google.
>
> Regards,
>
> Robin

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic