Building on Mac

David Chase at
Fri Mar 15 20:49:41 UTC 2013

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> 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 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.
> -DrD-

More information about the build-dev mailing list