Building on Mac
david.dehaven at oracle.com
Fri Mar 15 21:17:53 UTC 2013
It's not installed by default, and I'm not sure why you'd want to since Apple provides it. But if it's there that could be a concern.
Incidentally, someone else got a build working with brew so there's an alternative to MacPorts for those who don't want to use it. The only caveat is that brew installs everything into the system paths, which could cause problems later on. And it uses Ruby *hack cough*...
> Be warned that if you use macports you'll need to make sure that ports is at the end of your path. The ports version of "file" doesn't correctly detect 64 bit executables.
> On Mar 15 2013, at 13:49 , David Chase wrote:
>> For reference, I build on Mountain Lion, with latest XCode, recent XQuartz, and some MacPorts.
>> "grep opt/local config.log" produces:
>> configure:6295: result: /opt/local/bin/gsed
>> configure:8107: found /opt/local/bin/port
>> configure:10420: found /opt/local/bin/pkg-config
>> configure:10432: result: /opt/local/bin/pkg-config
>> configure:30314: /usr/llvm-gcc-4.2/bin/llvm-g++-4.2 -o conftest -L/opt/local/lib -lfreetype conftest.cpp -lfreetype >&5
>> configure:31661: found /opt/local/bin/ccache
>> configure:31673: result: /opt/local/bin/ccache
>> pkg_cv_FREETYPE2_CFLAGS='-I/opt/local/include/freetype2 -I/opt/local/include '
>> pkg_cv_FREETYPE2_LIBS='-L/opt/local/lib -lfreetype '
>> CCACHE='CCACHE_COMPRESS=1 CCACHE_SLOPPINESS=time_macros /opt/local/bin/ccache'
>> FREETYPE2_CFLAGS='-I/opt/local/include/freetype2 -I/opt/local/include '
>> FREETYPE2_LIBS='-L/opt/local/lib -lfreetype'
>> and also:
>> port list installed | egrep 'ccache|freetype|gsed|pkg-config'
>> ccache @3.1.9 devel/ccache
>> freetype @2.4.10 print/freetype
>> gsed @4.2.2 textproc/gsed
>> On 2013-03-15, at 2:53 PM, David DeHaven <david.dehaven at oracle.com> wrote:
>>>> Then it stumbled upon freetype, which it should not need either. I added --with-freetype, but it failed to recognise .dylib as the library suffix:
>>>> configure: error: Could not find libfreetype.so nor freetype.dll in /opt/local/lib
>>> IIRC Freetype is required for libfontmanager when building OpenJDK (not closed) but it doesn't seem to differentiate when configure is run.
>>> Look in config.log to see why it's failing. The error message is misleading, it's not actually looking for those extensions it's checking by using the CFLAGS returned by pkg-config. Mine works fine with the MacPorts freetype port.
More information about the build-dev