From fac99e2ac508c2bf084662f64b607f3941998d4b Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Fri, 21 Aug 2020 11:31:30 +0100 Subject: Minor html changes to BuildGuideCrossCompilation.md to make it look better Signed-off-by: Nikhil Raj Change-Id: I4213bf811d39898506c6d976089d90379a617056 --- BuildGuideCrossCompilation.md | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/BuildGuideCrossCompilation.md b/BuildGuideCrossCompilation.md index 6feb28aa66..3d1deebe7a 100644 --- a/BuildGuideCrossCompilation.md +++ b/BuildGuideCrossCompilation.md @@ -122,16 +122,16 @@ The instructions show how to build the ArmNN core library and the Boost, Protobu #### Build Tensorflow * Building Tensorflow version 1.15: - '''bash + ```bash git clone https://github.com/tensorflow/tensorflow.git cd tensorflow/ git checkout 590d6eef7e91a6a7392c8ffffb7b58f2e0c8bc6b ../armnn/scripts/generate_tensorflow_protobuf.sh ../tensorflow-protobuf ../google/x86_64_pb_install - ''' + ``` -#### <"a name=buildflatbuffer">Build Flatbuffer +#### Build Flatbuffer * Building Flatbuffer version 1.12.0 - '''bash + ```bash 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 @@ -142,9 +142,10 @@ The instructions show how to build the ArmNN core library and the Boost, Protobu -DCMAKE_INSTALL_PREFIX:PATH=$ \ -DFLATBUFFERS_BUILD_TESTS=0 make all install - ''' + ``` + * Build arm64 version of flatbuffer - '''bash + ```bash mkdir build-arm64 cd build-arm64 # Add -fPIC to allow us to use the libraries in shared objects. @@ -154,26 +155,26 @@ The instructions show how to build the ArmNN core library and the Boost, Protobu -DCMAKE_INSTALL_PREFIX:PATH=$ \ -DFLATBUFFERS_BUILD_TESTS=0 make all install - ''' + ``` #### Build Onnx * Building Onnx - '''bash + ```bash git clone https://github.com/onnx/onnx.git cd onnx git fetch https://github.com/onnx/onnx.git f612532843bd8e24efeab2815e45b436479cc9ab && git checkout FETCH_HEAD export LD_LIBRARY_PATH=$/protobuf-host/lib:$LD_LIBRARY_PATH ../google/x86_64_pb_install/bin/protoc onnx/onnx.proto --proto_path=. --proto_path=../google/x86_64_pb_install/include --cpp_out ../onnx - ''' + ``` #### Build TfLite * Building TfLite - '''bash + ```bash mkdir tflite cd tflite cp ../tensorflow/tensorflow/lite/schema/schema.fbs . ../flatbuffers-1.12.0/build/flatc -c --gen-object-api --reflect-types --reflect-names schema.fbs - ''' + ``` #### Build ArmNN * Compile ArmNN for arm64: -- cgit v1.2.1