From 2044235de8bf87c695c7b39ddadd70aa1394d739 Mon Sep 17 00:00:00 2001 From: Colm Donelan Date: Mon, 10 Aug 2020 11:00:29 +0100 Subject: IVGCVSW-5181 Updating to flatbuffers 1.12.0 * Modify BuildGuideCrossCompilation.md to download flatbuffers 1.12.0 * Add FAQ entry about Flat Buffers on Ubuntu 20.04. Signed-off-by: Colm Donelan Change-Id: I489bdb11edb32cec28aabab48c8d5af8c929b25e --- BuildGuideCrossCompilation.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'BuildGuideCrossCompilation.md') diff --git a/BuildGuideCrossCompilation.md b/BuildGuideCrossCompilation.md index 3a89a309d4..6feb28aa66 100644 --- a/BuildGuideCrossCompilation.md +++ b/BuildGuideCrossCompilation.md @@ -130,11 +130,11 @@ The instructions show how to build the ArmNN core library and the Boost, Protobu ''' #### <"a name=buildflatbuffer">Build Flatbuffer -* Building Flatbuffer version 1.10.0 +* Building Flatbuffer version 1.12.0 '''bash - wget -O flatbuffers-1.10.0.tar.gz https://github.com/google/flatbuffers/archive/v1.10.0.tar.gz - tar xf flatbuffers-1.10.0.tar.gz - cd flatbuffers-1.10.0 + wget -O flatbuffers-1.12.0.tar.gz https://github.com/google/flatbuffers/archive/v1.12.0.tar.gz + tar xf flatbuffers-1.12.0.tar.gz + cd flatbuffers-1.12.0 rm -f CMakeCache.txt mkdir build cd build @@ -147,7 +147,8 @@ The instructions show how to build the ArmNN core library and the Boost, Protobu '''bash mkdir build-arm64 cd build-arm64 - cmake .. -DCMAKE_C_COMPILER=/usr/bin/aarch64-linux-gnu-gcc \ + # Add -fPIC to allow us to use the libraries in shared objects. + CXXFLAGS="-fPIC" cmake .. -DCMAKE_C_COMPILER=/usr/bin/aarch64-linux-gnu-gcc \ -DCMAKE_CXX_COMPILER=/usr/bin/aarch64-linux-gnu-g++ \ -DFLATBUFFERS_BUILD_FLATC=1 \ -DCMAKE_INSTALL_PREFIX:PATH=$ \ @@ -171,7 +172,7 @@ The instructions show how to build the ArmNN core library and the Boost, Protobu mkdir tflite cd tflite cp ../tensorflow/tensorflow/lite/schema/schema.fbs . - ../flatbuffers-1.10.0/build/flatc -c --gen-object-api --reflect-types --reflect-names schema.fbs + ../flatbuffers-1.12.0/build/flatc -c --gen-object-api --reflect-types --reflect-names schema.fbs ''' #### Build ArmNN @@ -210,7 +211,7 @@ The instructions show how to build the ArmNN core library and the Boost, Protobu -DBUILD_TF_LITE_PARSER=1 \ -DTF_LITE_GENERATED_PATH=$HOME/tflite \ -DFLATBUFFERS_ROOT=$HOME/flatbuffers-arm64 \ - -DFLATC_DIR=$HOME/flatbuffers-1.10.0/build \ + -DFLATC_DIR=$HOME/flatbuffers-1.12.0/build \ -DPROTOBUF_ROOT=$HOME/google/x86_64_pb_install \ -DPROTOBUF_ROOT=$HOME/armnn-devenv/google/x86_64_pb_install/ \ -DPROTOBUF_LIBRARY_DEBUG=$HOME/armnn-devenv/google/arm64_pb_install/lib/libprotobuf.so.15.0.1 \ -- cgit v1.2.1