From ee2828cc18dceb380b7a9a8ff699c30cd8930948 Mon Sep 17 00:00:00 2001 From: kvart2006 Date: Sun, 19 Feb 2017 23:20:52 +0100 Subject: [PATCH] Update README.md --- zerobuf/README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zerobuf/README.md b/zerobuf/README.md index de371ae4..036c392c 100644 --- a/zerobuf/README.md +++ b/zerobuf/README.md @@ -22,10 +22,11 @@ To compile a schema file, called in this case ```aschema.fbs```, type: ``` /path_to/rumprun-packages/zerobuf/ZeroBuf/bin/zerobufCxx.py -o=. aschema.fbs ``` +Note that a source file and a header file are generated by the schema compiler, in this case: ```aschema.cpp and aschema.h```. Example1: (compiling the schema file number 1) ``` -/root/git/rumprun-packages/zerobuf/ZeroBuf/bin/zerobufCxx.py -o=. schema1.fbs.fbs +/root/git/rumprun-packages/zerobuf/ZeroBuf/bin/zerobufCxx.py -o=. schema1.fbs ``` In order to run an example application on rumprun, you have to provide the paths to the zerobuf include directory located in rumprun-packages/pkgs/include, and to the ```libServus``` and ```libZeroBuf``` libraries during compilation. Both are located in rumprun-packages/pkgs/lib: @@ -40,7 +41,7 @@ Rumprun compile step: /lib = /root/git/rumprun-packages/pkgs/lib /include = /root/git/rumprun-packages/pkgs/include ``` -leads to: +leads to (with the schema generated source file: ```schema1.cpp```): ``` x86_64-rumprun-netbsd-g++ -std=c++17 schema1_test.cpp schema1.cpp \ /root/git/rumprun-packages/zerobuf/ZeroBuf/Servus/servus/serializable.cpp \