diff --git a/cpp/CHANGELOG.md b/cpp/CHANGELOG.md index 0c940817cdd3b0f85043dc7f4e9dfd1c4d8715ff..50e62d7dfc470c26e69bc9891dd0cafdd37f9f12 100644 --- a/cpp/CHANGELOG.md +++ b/cpp/CHANGELOG.md @@ -24,6 +24,7 @@ Please mark all change in change log and use the ticket from JIRA. - MS-45 - Implement DeleteTable interface ## Task +- MS-74 - Change README.md in cpp # MegaSearch 0.2.0 (2019-05-31) diff --git a/cpp/README.md b/cpp/README.md index f65e97383259c61e53deecd142304ccde729fc3a..32b79dae9866359b8be0391fda9f6627d14c8a19 100644 --- a/cpp/README.md +++ b/cpp/README.md @@ -2,20 +2,12 @@ #### Step 1: install necessery tools centos7 : - yum install gfortran libsqlite3-dev libsnappy-dev libzstd-dev bzip2 + yum install gfortran flex bison ubuntu16.04 : - sudo apt-get install gfortran libsqlite3-dev libsnappy-dev libzstd-dev bzip2 liblz4-dev + sudo apt-get install gfortran flex bison -#### 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 -t Debug - ./build.sh -t Release - -#### Step 3: build(output to cmake_build folder) +#### Step 2: build(output to cmake_build folder) cmake_build/src/vecwise_server is the server cmake_build/src/libvecwise_engine.a is the static library @@ -24,19 +16,30 @@ cmake_build/src/libvecwise_engine.a is the static library ./build.sh -t Debug ./build.sh -t Release ./build.sh -g # Build GPU version - + +If you encounter the following error when building: +`protocol https not supported or disabled in libcurl` + +1. Install libcurl4-openssl-dev + +2. Install cmake 3.14: + + ``` + ./bootstrap --system-curl + make + sudo make install + ``` + #### To build unittest: - + ./build.sh -u or ./build.sh --unittest - - + ### Launch server Set config in cpp/conf/server_config.yaml Then launch server with config: - cd [build output path] start_server.sh stop_server.sh @@ -44,7 +47,7 @@ Then launch server with config: ### Launch test_client(only for debug) 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