From b8b84abea57353f4f7fe1aa998c001eae8bd1858 Mon Sep 17 00:00:00 2001 From: groot Date: Wed, 17 Apr 2019 12:15:12 +0800 Subject: [PATCH] build faiss thrift optional Former-commit-id: 26ae31415424b7c86f8c7f99d0e30cc73c32f3f6 --- .gitignore | 1 + cpp/README.md | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 3eb961bb58..646dfac932 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ cmake_build *.tar.gz cpp/third_party/thrift-0.12.0/ +cpp/third_party/faiss-1.5.1 diff --git a/cpp/README.md b/cpp/README.md index 93e0c8a36e..ef2f727ae5 100644 --- a/cpp/README.md +++ b/cpp/README.md @@ -5,9 +5,12 @@ ubuntu16.04 : sudo apt-install install gfortran libsqlite3-dev #### Step 2: build third-parties +Note: If you want to debug into third-parties, you can build debug with CXXFLAGS='-g -O0' with option +: -t Debug cd [sourcecode path]/cpp/thid_party - ./build.sh + ./build.sh -t Debug + ./build.sh -t Release #### Step 3: build(output to cmake_build folder) cmake_build/src/vecwise_engine_server is the server @@ -34,8 +37,8 @@ Then luanch server with config: vecwise_engine_server -c [sourcecode path]/cpp/conf/server_config.yaml ### Luanch test_client(only for debug) - -Client use same config file with server: +If you want to test remote api, you can build test_client. +test_client use same config file with server: cd [build output path]/test_client test_client -c [sourcecode path]/cpp/conf/server_config.yaml