diff options
author | Colm Donelan <Colm.Donelan@arm.com> | 2020-08-10 11:00:29 +0100 |
---|---|---|
committer | Colm Donelan <colm.donelan@arm.com> | 2020-08-11 09:05:33 +0000 |
commit | 2044235de8bf87c695c7b39ddadd70aa1394d739 (patch) | |
tree | f1ab79915d3fb8d12a4567e754b8428841edd0f6 /BuildGuideCrossCompilation.md | |
parent | 9cf7f88f5923dd1ba5d159ade85fcc20185c323f (diff) | |
download | armnn-2044235de8bf87c695c7b39ddadd70aa1394d739.tar.gz |
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 <Colm.Donelan@arm.com>
Change-Id: I489bdb11edb32cec28aabab48c8d5af8c929b25e
Diffstat (limited to 'BuildGuideCrossCompilation.md')
-rw-r--r-- | BuildGuideCrossCompilation.md | 15 |
1 files changed, 8 insertions, 7 deletions
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</a> -* 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=$<DIRECTORY_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 ''' #### <a name="buildANN">Build ArmNN</a> @@ -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 \ |