参考:
OpFlex
Building
mkdir -p ~/workpushd workgit clone https://git.opendaylight.org/gerrit/opflexpopd
libopflex
First, install libuv from source:
pushd ~/workgit clone https://github.com/libuv/libuv.git --branch v1.xpushd libuv./autogen.sh./configuremake -j8sudo make installpopdpopd
Next, install rapidjson:
pushd ~/workgit clone https://github.com/miloyip/rapidjson.git --branch v1.0.2 --depth 1pushd rapidjsoncmake .makesudo make installpopdpopd
Now, you can build libopflex:
pushd ~/work/opflex/libopflex./autogen.sh./configuremake -j8 # make -j2make checksudo make installpopd
genie and libmodelgbp
First, run the code generator:
pushd ~/work/opflex/geniemvn compile exec:javapopd
Next build and install the libmodelgbp library:
pushd ~/work/opflex/genie/target/libmodelgbpbash autogen.sh./configuremakesudo make installpopd