Problems building OpenJDK 8 for MacOSX
David Clunie
dclunie at dclunie.com
Thu May 16 14:16:05 PDT 2013
Hi David
Thanks, that was it.
Though I did not have port XFree86 installed, there were a bunch of
other X11 related packages installed in support of other ports.
So I just moved "/opt/local" out of the way temporarily, and then
a "bash configure" and "make all" worked.
It would be nice if:
- the configure scripts could run despite there being X11 related ports
and could prioritize /opt/X11 over /opt/local
- the page at
"https://wikis.oracle.com/display/OpenJDK/Mac+OS+X+Port"
could be updated to reference
"http://hg.openjdk.java.net/jdk8/jdk8/raw-file/tip/README-builds.html#setup"
as well as be specific about needing the "bash configure" step, and
needing "make all" or "make images" not just plain make (else no
bundle is built), and that the bundle to copy to JavaVirtualMachines
will be built in:
"build/macosx-x86_64-normal-server-release/images/j2sdk-bundle/jdk1.8.0.jdk"
It would be even nicer if binary builds were distributed so that one
would not have to spend time getting it to build to be able to test
it. I can't imagine how many folks must be put off testing by this
process.
David
On 5/16/13 1:34 PM, David DeHaven wrote:
>
>>> % bash configure | grep X
>>> configure: Resolving CXX (as /usr/bin/g++) failed, using /usr/bin/g++ directly.
>>> checking resolved symbolic links for CXX... /usr/llvm-gcc-4.2/bin/llvm-g++-4.2
>>> checking if CXX is disguised ccache... no, keeping CXX
>>> configure: Resolving CXXCPP (as /usr/llvm-gcc-4.2/bin/llvm-g++-4.2) failed, using /usr/llvm-gcc-4.2/bin/llvm-g++-4.2 directly.
>>> checking what is not needed on MacOSX?... alsa pulse x11
>>> checking what is not needed on an X11 build on MacOSX?... alsa pulse
>>> checking for X... libraries /opt/local/lib, headers /opt/local/include
>> Looks like this path is incorrect /opt/local/include.
>> There is no such paths on my system.
>> It should be
>> checking for X... libraries /usr/X11/lib, headers /usr/X11/include
>
> /opt/local is where the MacPorts headers and lib would be located. Maybe try deactivating XFree86 in MacPorts first.
>
> -DrD-
>
>
>
More information about the macosx-port-dev
mailing list