Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 712 Bytes

README.md

File metadata and controls

39 lines (27 loc) · 712 Bytes

Build and use protobuf with OpenEnclave

Clone the repo

git clone https://github.com/radhikaj/protobuf_prototype

git submodule --init

Build protobuf including libraries for host and enclave

cd protobuf
mkdir build
export CXX=/usr/bin/clang++-7
export CC=/use/bin/clang
cmake -Dprotobuf_WITH_ZLIB=OFF -Dprotobuf_BUILD_TESTS=OFF  ../cmake
make

Install protobuf

cmake -DCMAKE_INSTALL_PREFIX=/opt/protobuf ../cmake
sudo make install

Start using the newly installed protobuf

export PKG_CONFIG_PATH=/opt/protobuf/lib/pkgconfig:${PKG_CONFIG_PATH}
export PATH=/opt/protobuf/bin:${PATH}

Build the sample

See sample's README.