Difference between revisions of "ConTeXt Standalone/Implementation"

From Wiki
Jump to navigation Jump to search
(how to build XeTeX and xdvipdfmx (by Taco and Arthur))
(→‎Taco's notes (for linux): (my xdvipdmx trick is essentially the same as Arthur's))
Line 40: Line 40:
 
=== Taco's notes (for linux) ===
 
=== Taco's notes (for linux) ===
  
XeTeX's build process needs the texlive bin directory in the path.
+
XeTeX's build process needs the a tex bin directory in the path to deduce an installation directory from.
On the contextgarden, that should be <code>/opt/texlive2007/bin/i386-linux/</code>,
+
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,
+
because it assumes that path is tds compliant (i.e., it ends with '<code>/bin/<<platform>></code>')
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) ===
 
=== Arthur's notes (for xdvipdfmx) ===

Revision as of 09:49, 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 a tex bin directory in the path to deduce an installation directory from. On the contextgarden, that should be /opt/texlive2007/bin/i386-linux/, because it assumes that path is tds compliant (i.e., it ends with '/bin/<<platform>>')

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