From c224e5bcacccd0dcfe1ab114270f5e931e611540 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: e0f2c5408bbd830220a1d43432695442aa6d53c7 --- .gitignore | 1 + cpp/README.md | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index e0cd6a4d..3a6b1571 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ cmake_build *.log 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 93e0c8a3..ef2f727a 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 -- GitLab