More verbose build instructions

This commit is contained in:
Kenneth Heafield 2016-02-22 11:33:55 +00:00
Родитель 9662a51eda
Коммит 8e0c9e1582
2 изменённых файлов: 11 добавлений и 0 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -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 .