README.md 760 字节
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 10 11

    cd [sourcecode path]/cpp/thid_party
    ./build.sh
    
G
groot 已提交
12 13 14 15
#### Step 3: build(output to cmake_build folder)
cmake_build/src/vecwise_engine_server is the server

cmake_build/src/libvecwise_engine.a is the static library
G
groot 已提交
16 17 18 19 20

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

G
groot 已提交
31
Then luanch server with config:
G
groot 已提交
32 33
    
    vecwise_engine_server -c [sourcecode path]/cpp/conf/server_config.yaml
J
jinhai 已提交
34