Difference between revisions of "Apertium on Windows"

From Apertium
Jump to navigation Jump to search
Line 17: Line 17:
 
# Check out the repository as normal using svn.
 
# Check out the repository as normal using svn.
 
# Patch the apertium source [[Apertium on Windows/No Unlocked Patch|this patch]] (save it as <code>no_unlocked.diff</code>)
 
# Patch the apertium source [[Apertium on Windows/No Unlocked Patch|this patch]] (save it as <code>no_unlocked.diff</code>)
#: <code>$ patch -p1 < no_unlocked.diff</code>
+
##: <code>$ patch -p1 < no_unlocked.diff</code>
  +
## and [[Apertium on Windows/No ANSI Patch|this one]] too (save as <code>no_ansi.diff</code>)
  +
##: <code>$ patch -p1 < no_ansi.diff</code>
 
# Make and install lttoolbox
 
# Make and install lttoolbox
 
## ./autogen.sh
 
## ./autogen.sh

Revision as of 20:08, 31 May 2007

It is possible to compile Apertium for use on windows using Cygwin, which provides a UNIX-like environment in windows.

Before you begin you should install the cygwin with the following additional packages, if you find this list incomplete please update it.

  • autoconf (Devel)
  • automake (Devel)
  • flex (Devel)
  • libgcrypt (Libs)
  • libtool (Devel)
  • libxml2 (Devel)
  • libxml2-devel (Devel)
  • libxslt (Libs)
  • pkg-config (Devel)
  • subversion (Devel)

Steps

  1. Check out the repository as normal using svn.
  2. Patch the apertium source this patch (save it as no_unlocked.diff)
    1. $ patch -p1 < no_unlocked.diff
    2. and this one too (save as no_ansi.diff)
      $ patch -p1 < no_ansi.diff
  3. Make and install lttoolbox
    1. ./autogen.sh
    2. make
    3. make install
  4. Make and install apertium (currently doesn't work due to problems with *_unlocked functions and a strdup problem)
    1. export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
    2. ./autogen.sh
    3. make