Difference between revisions of "ConTeXt Standalone/Implementation"

From Wiki
Jump to navigation Jump to search
(luatex for mac-intel (was already there) and linux (by me) just one missing now (i forgot to make luatex on the amd yesterday))
(how to build XeTeX and xdvipdfmx (by Taco and Arthur))
Line 1: Line 1:
 
= Current state of binaries in minimals =
 
= Current state of binaries in minimals =
 
(Not yet online.)
 
  
 
{| border="1"
 
{| border="1"
Line 27: Line 25:
  
 
== splitting binaries ==
 
== splitting binaries ==
files.lst :
 
 
# common
 
...
 
...
 
#luatex
 
...
 
...
 
#xetex
 
...
 
...
 
#pdftex
 
...
 
...
 
 
   
 
   
 
i can then use that (will make a script) that will install what is needed
 
i can then use that (will make a script) that will install what is needed
 
  mtxrun --script install --engine=xetex --platform=macosx-intel
 
  mtxrun --script install --engine=xetex --platform=macosx-intel
 
and such (is we make luatex 'common' we have a scripting machinery)
 
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 <code>/opt/texlive2007/bin/i386-linux/</code>,
 +
because the build massages that path a bit to find an install directory,
 +
and it assumes one of the bits is '<code>/bin/</code>'
 +
 +
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 ==

Revision as of 08:41, 29 September 2007

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