Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| install:compile_cygwin [2008/08/25 12:41] – 92.252.45.110 | install:compile_cygwin [2010/12/03 09:30] (current) – old revision restored eros | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Compiling CWB from source under Windows ====== | ====== Compiling CWB from source under Windows ====== | ||
| - | Compilation and installation of CWB version | + | Compilation and installation of CWB version |
| + | |||
| + | |||
| + | |||
| + | |||
| + | ===== Status of the Cywgin port ===== | ||
| + | |||
| + | The Cygwin port of the CWB is **experimental**. | ||
| + | |||
| + | The problems we have encountered may be due to limitations in the virtual memory management of Windows and the Cygwin emulation layer manage. | ||
| + | |||
| + | In the long term, we hope to offer a native Windows port of the CWB. Please join the [[http:// | ||
| Line 12: | Line 24: | ||
| * '' | * '' | ||
| * '' | * '' | ||
| + | * '' | ||
| + | * '' | ||
| We recommend to install the simple text editor '' | We recommend to install the simple text editor '' | ||
| + | |||
| ===== Getting the source code ===== | ===== Getting the source code ===== | ||
| - | Get the source code from [[http://cwb.sourceforge.net/ | + | Get the source code from [[http:// |
| <code bash> | <code bash> | ||
| - | tar xf cwb-XXXXXX.tgz | + | tar xf cwb-XXXXXX.tgz |
| </ | </ | ||
| Line 26: | Line 41: | ||
| <code bash> | <code bash> | ||
| - | cd cwb-3.0 | + | cd cwb-XXXXXX (current version 2.2.b99-RC1) |
| </ | </ | ||
| + | |||
| + | **Important note:** In principle, you can unpack the CWB source code anywhere you like, but // | ||
| + | |||
| ===== Edit the makefile ===== | ===== Edit the makefile ===== | ||
| - | First you need to set a few parameters in Makefile.inc using your favorite | + | First you need to set a few parameters in '' |
| <code bash> | <code bash> | ||
| - | nano -w Makefile.inc | + | nano -w config.mk |
| </ | </ | ||
| - | In the **platform** directive, insert //gnuwin32// | + | Otherwise, navigate to the '' |
| + | |||
| + | In the **platform** directive, insert //cygwin// | ||
| < | < | ||
| - | # currently available platforms: | + | # |
| - | # | + | # PLATFORM-SPECIFIC CONFIGURATION (OS and CPU type) |
| - | # | + | # |
| - | # | + | # Pre-defined platform configuration files: |
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| # | # | ||
| # | # | ||
| - | # | + | # |
| - | # solaris | + | # darwin-64 |
| - | # gnuwin32 | + | # |
| + | # solaris | ||
| + | # | ||
| # | # | ||
| - | PLATFORM = gnuwin32 | + | include $(TOP)/ |
| </ | </ | ||
| - | The **site** directive has to be //cygwin// | + | The **site** directive |
| < | < | ||
| - | # SITE-SPECIFIC CONFIGURATION: | ||
| # | # | ||
| - | # currently defined sites: | + | # SITE-SPECIFIC CONFIGURATION |
| - | # osx-fink Mac OS X installation in Fink's /sw tree | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| # | # | ||
| - | # NB If there is no config file for your site, you must set SITE=none | + | # Pre-defined |
| - | # NB and specify values at least for the next three variables below | + | # |
| - | # NB (more may be needed). | + | # |
| - | SITE = cygwin | + | # osx-fink |
| + | # binary-release | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | include $(TOP)/ | ||
| </ | </ | ||
| + | |||
| + | |||
| ===== Compilation ===== | ===== Compilation ===== | ||
| - | Then we compile the different components, one at a time. First we clean and check dependencies: | + | The easiest way to compile the CWB is to type |
| + | |||
| + | <code bash> | ||
| + | make all | ||
| + | </ | ||
| + | |||
| + | at the command line, and go to fetch a cup of coffee (due to the overhead of the Cygwin emulation layer, compilation is much slower than on Unix systems). | ||
| + | |||
| + | Since the Cygwin port is still experimental, | ||
| <code bash> | <code bash> | ||
| Line 90: | Line 119: | ||
| </ | </ | ||
| - | Then we compile the corpus | + | Then, compile the '' |
| <code bash> | <code bash> | ||
| - | make cl | + | make editline |
| </ | </ | ||
| - | Then editline: | + | Now compile the corpus library: |
| <code bash> | <code bash> | ||
| - | make editline | + | make cl |
| </ | </ | ||
| + | |||
| Then the utilities: | Then the utilities: | ||
| Line 108: | Line 138: | ||
| </ | </ | ||
| - | Finally we compile cqp: | + | And finally CQP: |
| <code bash> | <code bash> | ||
| make cqp | make cqp | ||
| </ | </ | ||
| + | |||
| + | You may also want to check that the manpages are up to date: | ||
| + | |||
| + | <code bash> | ||
| + | make man | ||
| + | </ | ||
| + | |||
| + | |||
| ===== Installation ===== | ===== Installation ===== | ||
| Line 119: | Line 157: | ||
| <code bash> | <code bash> | ||
| - | sudo make install | + | make install |
| </ | </ | ||
| + | |||
| + | If you have set up Cygwin with a separate administrator account, you may need to type '' | ||