Building on Mac
Daniel Fuchs
daniel.fuchs at oracle.com
Mon Mar 18 08:40:57 UTC 2013
Hi Peter,
Did you 'install the command line tools' in Xcode?
The fact that you have to refer to /Applications/Xcode.app/... let me
think that
perhaps you didn't.
Start Xcode, go to preferences, and explore the different panes: there's
one that
will let you install the command line tools.
If that was the issue - then after installing the command line tools you
should be
able to run configure without the two options below.
Hope this helps,
-- daniel
On 3/18/13 7:56 AM, Peter Zhelezniakov wrote:
> On Mar 18, 2013, at 3:41 AM, David Holmes <david.holmes at oracle.com> wrote:
>> Are you trying to build OpenJDK or Oracle JDK?
> Oracle JDK -- I have jdk/make/closed and jdk/src/closed.
>
> I've parsed the output of --debug-configure, and realised I need the --enable-macosx-runtime-support option. With this option, configure requires neither X11 nor freetype. However, the build still fails without X headers. So the complete command line that led to successful build for me was:
>
> bash ./configure \
> --x-includes=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/X11/include \
> --x-libraries=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/X11/lib \
> --enable-macosx-runtime-support
>
> Thanks!
More information about the build-dev
mailing list