summaryrefslogtreecommitdiff
path: root/BUILDING
blob: dcb3d45b30074794bbe9e2f0a42fe9cbd22653c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
To build cdec, you'll need:

 * SRILM (register and download from http://www.speech.sri.com/projects/srilm/)
 * Google c++ testing framework (http://code.google.com/p/googletest/)
 * boost headers & boost program_options (you may need to install a package
    like boost-devel)


Instructions for building
-----------------------------------

 1) Download and build SRILM

 2) Download, build, and install Google Test (optional, this is necessary
    to build unit tests that may be useful in development; system tests
    work without it)

 3) Use automake / autoconf to generate the configure script.
    I'm not an expert at using these tools, but this should be sufficient:

        autoreconf -ifv

 4) Configure and build.  Your command will look something like this.

        ./configure --with-srilm=/home/me/software/srilm-1.5.9 --disable-gtest
        make

    If you get errors during configure about missing BOOST macros, then step 3
    failed, and you need to keep working at it.  If you get errors during the
    build, it's probably a problem with step 3 or possibly with some compiler
    version idiosyncracies (generally, I assume you have a relatively new
    of g++).

    If you're building on cygwin, their libtool is buggy; this make command
    works for now:

        make LIBS+="-loolm -ldstruct -lmisc -lz -lboost_program_options" \
             CFLAGS+="-Wno-sign-compare"

 5) Test

        ./tests/run-system-tests.pl

    Everything should pass.


 6) Enjoy!