ConTeXt Standalone/Implementation

From Wiki
< ConTeXt Standalone
Revision as of 08:41, 29 September 2007 by Mojca Miklavec (talk | contribs) (how to build XeTeX and xdvipdfmx (by Taco and Arthur))
Jump to navigation Jump to search

Current state of binaries in minimals

program windows linux linux-64 mac-intel mac-ppc latest TL
metapost latest (A/M) latest (M) latest(M) latest (M) latest (M) 1.00x 0.993
pdfTeX latest (A/M) latest (M) latest (M) latest (M) latest (M) 1.40.5 1.40.2
XeTeX latest (A/M) latest (M) latest (M) latest (M) latest (M) 0.997 0.996
xdvipdfmx latest (A/M) latest (M) latest (M) latest (M) latest (M) 0.4 / SVN #96
luatex semi-latest (A/M) latest (M) latest (M) latest (M) 0.11.2 --

A = automatic, M = manual

splitting binaries

i can then use that (will make a script) that will install what is needed

mtxrun --script install --engine=xetex --platform=macosx-intel

and such (is we make luatex 'common' we have a scripting machinery)

building XeTeX and xdvipdfmx

(This might need to be moved to some better place, for example under XeTeX, but I needed to leave a note on building process before we all forget it.)

SVN sources are available at:

http://scripts.sil.org/svn-public/xetex/TRUNK
http://scripts.sil.org/svn-public/xdvipdfmx/TRUNK

Taco's notes (for linux)

XeTeX's build process needs the texlive bin directory in the path. On the contextgarden, that should be /opt/texlive2007/bin/i386-linux/, because the build massages that path a bit to find an install directory, and it assumes one of the bits is '/bin/'

For xdvipdfmx you have to feed it the locations of the kpathsea and freetype2 packages. I used these three commands:

$ export XETEX=location-of-xetex-TRUNK
$ export LDFLAGS=-L$XETEX/Work/texk/kpathsea/.libs
$ export CFLAGS="-I$XETEX/texk -I$XETEX/Work/texk"
$ ./configure --with-ft2lib=$XETEX/Work/libs/freetype2/.libs/libfreetype.a --with-ft2include="$XETEX/libs/freetype2/include"

followed by 'make'. Not very pretty, but it worked.

Arthur's notes (for xdvipdfmx)

$ export $XETEX=location-of-xetex-TRUNK
$ CFLAGS="-I$XETEX/texk -I$XETEX/Work/texk -I$XETEX/libs/freetype2/include -I$XETEX/libs/freetype2" \
   LDFLAGS="-L$XETEX/Work/texk/kpathsea/.libs -L$XETEX/Work/libs/freetype2" ./configure

Cross-compiling for PPC on Intel Mac