README.md 1.1 KB
Newer Older
G
groot 已提交
1 2
### Compilation
#### Step 1: install necessery tools
G
groot 已提交
3 4

    centos7 : yum install gfortran
J
jinhai 已提交
5
    ubuntu16.04 : sudo apt-install install gfortran libsqlite3-dev
G
groot 已提交
6

G
groot 已提交
7
#### Step 2: build third-parties
G
groot 已提交
8 9
Note: If you want to debug into third-parties, you can build debug with CXXFLAGS='-g -O0' with option 
: -t Debug
G
groot 已提交
10 11

    cd [sourcecode path]/cpp/thid_party
G
groot 已提交
12 13
    ./build.sh -t Debug
    ./build.sh -t Release
G
groot 已提交
14
    
G
groot 已提交
15
#### Step 3: build(output to cmake_build folder)
G
groot 已提交
16
cmake_build/src/vecwise_server is the server
G
groot 已提交
17 18

cmake_build/src/libvecwise_engine.a is the static library
G
groot 已提交
19 20 21 22 23

    cd [sourcecode path]/cpp
    ./build.sh -t Debug
    ./build.sh -t Release
    
G
groot 已提交
24
#### To build unittest:
G
groot 已提交
25 26 27 28 29 30 31 32
    
    ./build.sh -u
    or
    ./build.sh --unittest
    
    
### Luanch server
Set config in cpp/conf/server_config.yaml
G
groot 已提交
33

G
groot 已提交
34
Then luanch server with config:
G
groot 已提交
35
    
G
groot 已提交
36 37 38
    cd [build output path]
    start_server.sh
    stop_server.sh
J
jinhai 已提交
39

G
groot 已提交
40
### Luanch test_client(only for debug)
G
groot 已提交
41 42
If you want to test remote api, you can build test_client.
test_client use same config file with server:
G
groot 已提交
43 44 45 46
    
    cd [build output path]/test_client
    test_client -c [sourcecode path]/cpp/conf/server_config.yaml