Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| install:compile_cygwin [2010/11/29 04:48] – ICqzFYBRmtzd 193.67.160.48 | install:compile_cygwin [2010/12/03 09:30] (current) – old revision restored eros | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | rPaHQB | + | ====== Compiling CWB from source under Windows ====== |
| + | |||
| + | Compilation and installation of CWB version 3.0 | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ===== 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://devel.sslmit.unibo.it/mailman/ | ||
| + | |||
| + | |||
| + | |||
| + | ===== Prerequisites ===== | ||
| + | |||
| + | In order to compile and run the CWB tools under Windows you need the [[http:// | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | We recommend to install the simple text editor '' | ||
| + | |||
| + | |||
| + | ===== Getting the source code ===== | ||
| + | |||
| + | Get the source code from [[http://sourceforge.net/projects/ | ||
| + | |||
| + | <code bash> | ||
| + | tar xf cwb-XXXXXX.tgz (current version 2.2.b99-RC1) | ||
| + | </ | ||
| + | |||
| + | Enter the new directory: | ||
| + | |||
| + | <code bash> | ||
| + | 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 ===== | ||
| + | |||
| + | First you need to set a few parameters in '' | ||
| + | |||
| + | <code bash> | ||
| + | nano -w config.mk | ||
| + | </ | ||
| + | |||
| + | Otherwise, navigate to the '' | ||
| + | |||
| + | In the **platform** directive, insert // | ||
| + | |||
| + | < | ||
| + | # | ||
| + | # PLATFORM-SPECIFIC CONFIGURATION (OS and CPU type) | ||
| + | # | ||
| + | # Pre-defined platform configuration files: | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | include $(TOP)/ | ||
| + | </ | ||
| + | |||
| + | The **site** directive also has to be changed to // | ||
| + | |||
| + | < | ||
| + | # | ||
| + | # SITE-SPECIFIC CONFIGURATION (installation path and other local settings) | ||
| + | # | ||
| + | # Pre-defined site configuration files: | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | include $(TOP)/ | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | ===== Compilation ===== | ||
| + | |||
| + | 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> | ||
| + | make clean | ||
| + | make depend | ||
| + | </ | ||
| + | |||
| + | Then, compile the '' | ||
| + | |||
| + | <code bash> | ||
| + | make editline | ||
| + | </ | ||
| + | |||
| + | Now compile the corpus library: | ||
| + | |||
| + | <code bash> | ||
| + | make cl | ||
| + | </ | ||
| + | |||
| + | |||
| + | Then the utilities: | ||
| + | |||
| + | <code bash> | ||
| + | make utils | ||
| + | </ | ||
| + | |||
| + | And finally CQP: | ||
| + | |||
| + | <code bash> | ||
| + | make cqp | ||
| + | </ | ||
| + | |||
| + | You may also want to check that the manpages are up to date: | ||
| + | |||
| + | <code bash> | ||
| + | make man | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | ===== Installation ===== | ||
| + | |||
| + | Now we're ready to install the whole toolkit: | ||
| + | |||
| + | <code bash> | ||
| + | make install | ||
| + | </ | ||
| + | |||
| + | If you have set up Cygwin with a separate administrator account, you may need to type '' | ||