[XeTeX] Linking with FreeType 2 on Mac OS X

Jjgod Jiang gzjjgod at gmail.com
Sat Feb 10 22:37:42 CET 2007

Hi Jonathan,

I've been trying to fix a xdvipdfmx bug on Plane 1+ characters
support. But I found that I could not build it successfully on my
Mac (I used to build that on my Linux box).

Here is the situation: I'm using libkpathsea from i-Installer and
FreeType 2.1.10 from macports. So I use:

./configure --with-kpathsea=/usr/local/TeXLive --with-freetype2=/opt/local

According to the output:

checking for kpse_find_file in -lkpathsea... yes
checking whether you have kpathsea headers and they know about the
required file formats... yes
checking for freetype2 header files and library... yes
checking for FT_Init_FreeType in -lfreetype... yes
checking for fontconfig header files... no
checking for Mac OS X ApplicationServices framework... yes

Looks pretty fine, but when I typed make, it ended up like this:

gcc -g -O2 -o xdvipdfmx xdvipdfmx-agl.o [dozens of .o files]
-framework ApplicationServices  -L/usr/local/TeXLive/lib
-L/usr/local/lib /usr/local/TeXLive/lib/libkpathsea.a
/usr/local/lib/libfreetype.dylib -lz
/usr/bin/ld: Undefined symbols:
collect2: ld returned 1 exit status
make[2]: *** [xdvipdfmx] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

At first I thought may be my FreeType 2 is too dated, so I fetch a copy
of recent FreeType 2.3.1, but got exacly the same failure.

(I checkout xdvipdfmx source from XeTeX repository, may be it's fixed
in TeX Live SVN repository?)

- jjgod.

More information about the XeTeX mailing list