add guiding for using self-prepared protobuf lib

This commit is contained in:
Edmond 2017-05-16 10:46:43 +08:00
Родитель 5d2a1ad8d3
Коммит 62498ab36c
1 изменённых файлов: 8 добавлений и 0 удалений

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

@ -84,6 +84,14 @@ On OSX, you can use brew:
```
% brew install protobuf autoconf automake libtool
```
Use your prepared protobuf library:
```
Setup below environment variables before build
% export PROTOBUF=<path_to_protobuf>
% export PROTOC="$PROTOBUF/bin/protoc"
% export PROTOBUF_LIBS="-L$PROTOBUF/lib -lprotobuf -D_THREAD_SAFE"
% export PROTOBUF_CFLAGS="-I$PROTOBUF/include -D_THREAD_SAFE"
```
## Build and Install SentencePiece
```