Skip to content

Commit

Permalink
More verbose build instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
kpu committed Feb 22, 2016
1 parent 9662a51 commit 8e0c9e1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions BUILDING
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
KenLM has switched to cmake
cmake .
make -j 4
But they recommend building out of tree
mkdir -p build && cd build
cmake ..
make -j 4

If you only want the query code and do not care about compression (.gz, .bz2, and .xz):
./compile_query_only.sh
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ The website http://kheafield.com/code/kenlm/ has more documentation. If you're

## Compiling
Use cmake, see [BUILDING](BUILDING) for more detail.
```bash
mkdir -p build
cd build
cmake ..
make -j 4
```

## Compiling with your own build system
If you want to compile with your own build system (Makefile etc) or to use as a library, there are a number of macros you can set on the g++ command line or in util/have.hh .
Expand Down

0 comments on commit 8e0c9e1

Please sign in to comment.