[tex-live] xetex and fontconfig

Jonathan Kew jonathan_kew at sil.org
Fri Dec 15 17:51:19 CET 2006

On 15 Dec 2006, at 8:06 am, Manfred Lotz wrote:

> gcc  -g -O2    -o xdvipdfmx -L../../../texk/kpathsea/.libs
> xdvipdfmx-agl.o xdvipdfmx-agl_standard.o xdvipdfmx-bmpimage.o
> xdvipdfmx-cff.o xdvipdfmx-cff_dict.o xdvipdfmx-cid.o
> xdvipdfmx-cidtype0.o xdvipdfmx-cidtype2.o xdvipdfmx-cmap.o
> xdvipdfmx-cmap_read.o xdvipdfmx-cmap_write.o xdvipdfmx-cs_type2.o
> xdvipdfmx-dpxconf.o xdvipdfmx-dpxcrypt.o xdvipdfmx-dpxfile.o
> xdvipdfmx-dpxutil.o xdvipdfmx-dvi.o xdvipdfmx-dvipdfmx.o
> xdvipdfmx-epdf.o xdvipdfmx-error.o xdvipdfmx-fontmap.o
> xdvipdfmx-jpegimage.o xdvipdfmx-mem.o xdvipdfmx-mfileio.o
> xdvipdfmx-mpost.o xdvipdfmx-numbers.o xdvipdfmx-otl_conf.o
> xdvipdfmx-otl_opt.o xdvipdfmx-pdfcolor.o xdvipdfmx-pdfdev.o
> xdvipdfmx-pdfdoc.o xdvipdfmx-pdfdraw.o xdvipdfmx-pdfencoding.o
> xdvipdfmx-pdfencrypt.o xdvipdfmx-pdffont.o xdvipdfmx-pdfnames.o
> xdvipdfmx-pdfobj.o xdvipdfmx-pdfparse.o xdvipdfmx-pdfresource.o
> xdvipdfmx-pdfximage.o xdvipdfmx-pkfont.o xdvipdfmx-pngimage.o
> xdvipdfmx-pst.o xdvipdfmx-pst_obj.o xdvipdfmx-sfnt.o
> xdvipdfmx-spc_color.o xdvipdfmx-spc_dvips.o xdvipdfmx-spc_html.o
> xdvipdfmx-spc_misc.o xdvipdfmx-spc_pdfm.o xdvipdfmx-spc_tpic.o
> xdvipdfmx-spc_util.o xdvipdfmx-spc_xtx.o xdvipdfmx-specials.o
> xdvipdfmx-subfont.o xdvipdfmx-tfm.o xdvipdfmx-tt_aux.o
> xdvipdfmx-tt_cmap.o xdvipdfmx-tt_glyf.o xdvipdfmx-tt_gsub.o
> xdvipdfmx-tt_post.o xdvipdfmx-tt_table.o xdvipdfmx-truetype.o
> xdvipdfmx-type0.o xdvipdfmx-t1_char.o xdvipdfmx-t1_load.o
> xdvipdfmx-type1.o xdvipdfmx-type1c.o xdvipdfmx-unicode.o
> xdvipdfmx-vf.o  ../../../libs/libpng/libpng.a ../../../libs/zlib/ 
> libz.a ../../../libs/freetype2/.libs/libfreetype.a
> -lkpathsea -lm  -lfontconfig
> /usr/bin/ld: cannot find -lfontconfig
> gmake [4]: *** [xdvipdfmx] Error 1
> As already mentioned this is a FreeBSD system and here fontconfig
> libraries are in /usr/X11R6/lib/.

OK, I've made some further changes to the configure/make setup, and I  
believe the --with-fontconfig=/usr/X11R6 setting should now work for  
both xetex and xdvipdfmx. (It's a bit messy, as they seem to deal  
with passing flags down through configure and make in different ways.)

I tested building on a Linux system where I had moved the fontconfig  
lib and headers from /usr to /usr/X11R6/{lib,include}/; without the -- 
with-fontconfig=/usr/X11R6 option, I see the same failures as you  
have reported, and with it, I get a successful build. So I hope this  
will work for you.


More information about the tex-live mailing list