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

Bruno Voisin bvoisin at mac.com
Fri Mar 7 13:31:25 CET 2008


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

> On 7 Mar 2008, at 11:48 am, Sven Siegmund wrote:
>
>>
>> I have found the xdvipdfmx in the repository
>> (http://scripts.sil.org/svn-public/xetex/TRUNK/texk/xdvipdfmx/) but I
>> don't see there the build-xetex script.
>
> The build-xetex script is at the top level (of TRUNK), and builds
> both xetex and xdvipdfmx. (xdv2pdf can't run on Windows, it's a Mac-
> only driver.)
>
> However, that's a Unix shell script....

On the Mac, having downloaded the source tarball from <http://scripts.sil.org/svn-view/xetex/TRUNK/ 
 > and extracted it to ~/Desktop/TRUNK/:

- If I cd to the xdvipdfmx subdir inside, and type in Terminal:

sh configure
   --with-kpathsea=/usr/local/gwTeX
   --with-ft2lib=/usr/local/lib/libfreetype.a
   --with-ft2include=/usr/local/include/freetype2
   --with-pnglib-libdir=/usr/local/lib
   --with-pnglib-include=/usr/local/include/libpng12
   --bindir=/usr/texbin

then the configure script runs successfully, ending up with:

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

The options above are all on the same line, I've inserted line breaks  
for clarity. I'm not sure all these options are necessary, especially  
--with-kpathsea and --with-bindir.

- However if I just cd to TRUNK and run build-xetex, the script fails  
while running configure for xdvipdfmx, ending up with:

checking whether byte ordering is bigendian... (cached) no
checking for char... yes
checking size of char... configure: error: cannot compute sizeof (char)
See `config.log' for more details.
configure: error: ../../../texk/xdvipdfmx/configure failed for xdvipdfmx
configure: error: ../../texk/configure failed for texk
### configure script appears to have failed

This failure had been traced back in the past to the absence of the  
dynamic png libraries.

How is it possible to instruct build-xetex to use the --with-pnglib- 
libdir  and --with-pnglib-include when calling configure for  
xdvipdfmx? I've tried to just use these option for build-xetex, but  
that doesn't seem to have any effect.

To clarify things: the kpathsea and png libs are not installed by Mac  
TeX, I got them separately by installing the gwTeX and PNG Library i- 
Packages with i-Installer, respectively.

Bruno Voisin


More information about the XeTeX mailing list