[XeTeX] How do I build xdvipdfmx (or xdv2pdf) on Windows?

Bruno Voisin bvoisin at mac.com
Fri Mar 7 14:29:25 CET 2008


Le 7 mars 08 à 13:52, Jonathan Kew a écrit :

> I just "hid" my installed png libs (by moving /usr/local/lib and /usr/
> local/include aside), and build-xetex still runs successfully for me.
> The default build script is supposed to use its own static libs
> anyway, ignoring any you have installed. So I'm not sure that's the
> problem in this case.

I just cd'ed to TRUNK/texk/xdvipdfmx and ran configure from there:

$ sh configure
[...]
checking for kpse_find_file in -lkpathsea... no
configure: error: kpathsea library not found
This version of xdvipdfmx requires the kpathsea library and its  
headers. If
you know where it is you might try setting the LDFLAGS environment  
variable
with -L pointing to the directory containing libkpathsea.a.

$ sh configure --with-kpathsea=/usr/local/gwTeX
[...]
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 xbasename in -lkpathsea... yes
checking whether kpathsea library supports TDS version 1.1  
installation... yes
checking for freetype2 header files and library... no
configure: error:
This version of xdvipdfmx requires that FreeType2 and its headers be  
available.
You can use the --with-freetype2 option to indicate the location of  
the installed
freetype2, or --with-ft2lib and --with-ft2include to point to the  
libfreetype.a
library and the FreeType2 include files.


$ sh configure --with-kpathsea=/usr/local/gwTeX --with-ft2lib=/usr/ 
local/lib/libfreetype.a --with-ft2include=/usr/local/include/freetype2
[...]
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 xbasename in -lkpathsea... yes
checking whether kpathsea library supports TDS version 1.1  
installation... yes
checking for freetype2 header files and library... yes
checking for ANSI C header files... (cached) yes
checking for unistd.h... (cached) yes
checking for stdint.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for working memcmp... yes
checking for open... yes
checking for close... yes
checking for system... yes
checking for getenv... yes
checking for mkstemp... yes
checking for basename... yes
checking whether time.h defines timezone as an external variable... yes
checking whether struct tz has tm_gmtoff as a member... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_zone... yes
checking whether byte ordering is bigendian... no
checking for char... yes
checking size of char... 1
checking for short... yes
checking size of short... 2
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking for fontconfig header files... no
checking for Mac OS X ApplicationServices framework... yes
checking for paper header files... no
checking for zlib header files... yes
checking for compress in -lz... yes
checking for compress2 in -lz... yes
checking for pow... yes
checking for png header files... yes
checking for png_get_image_width in -lpng... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating data/Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: executing depfiles commands

Thus it seems the culprits are kpathsea and FreeType:

- kpathsea because it's not present in TeXLive as installed by MacTeX,  
and has to come from elsewhere (gwTeX in my case).

- FreeType because they're not installed in a standard location by  
MacTeX.

Bruno Voisin


More information about the XeTeX mailing list