sudo apt-get update sudo apt-get install -y g++ sudo apt-get install -y libcapnp-dev sudo apt-get install -y libcapnp-0.6.1
git clone https://github.com/capnproto/capnproto.git cd capnproto/c++ ./setup-autotools.sh autoreconf -i ./configure make -j6 check
./configure CXXFLAGS="-O3 -march=armv8-a+crc -mtune=cortex-a72"
sudo apt-get install -y protobuf-compiler libprotobuf-dev git clone https://github.com/protocolbuffers/protobuf.git cd protobuf && git submodule update --init --recursive ./autogen.sh && ./configure && make sudo make install
这样就可以在 ARM 上构建 capnproto。
下一篇:arm上跑ubuntu