From 47c3405d6bcc6ed27ac57104f6ce2fa0eb5225e2 Mon Sep 17 00:00:00 2001 From: FrancisMurtagh Date: Wed, 21 Nov 2018 16:44:12 +0000 Subject: IVGCVSW-2183 BuildGuideCrossCompilation.md Documentation update * Removed confusing mention of Anaconda and CuDNN and reworded Change-Id: I2e4d86704c6564b2d18cec191246edd15cde0905 (cherry picked from commit 0e76ed0a6ab74be72a27121747ce78a516872c53) --- BuildGuideCrossCompilation.md | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/BuildGuideCrossCompilation.md b/BuildGuideCrossCompilation.md index ec85526dda..9f80bccaaf 100644 --- a/BuildGuideCrossCompilation.md +++ b/BuildGuideCrossCompilation.md @@ -62,14 +62,16 @@ The instructions show how to build the ArmNN core library and the Boost, Protobu cd caffe cp Makefile.config.example Makefile.config ``` -* Adjust Makefile.config (for example, if using Anaconda Python, or if cuDNN is desired): +* Adjust Makefile.config as necessary for your environment, for example: ``` - CPU only version - + #CPU only version: CPU_ONLY := 1 - Add hdf5 and protobuf include and library directories (Replace $HOME with your actual /home/username dir) - INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial/ $HOME/armnn-devenv/google/x86_64_pb_install/include/ - LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /usr/lib/x86_64-linux-gnu/hdf5/serial/ $HOME/armnn-devenv/google/x86_64_pb_install/lib/ - g++ need to be version 5 + + #Add hdf5 and protobuf include and library directories (Replace $HOME with explicit /home/username dir): + INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial/ $HOME/armnn-devenv/google/x86_64_pb_install/include/ + LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /usr/lib/x86_64-linux-gnu/hdf5/serial/ $HOME/armnn-devenv/google/x86_64_pb_install/lib/ + + #g++ needs to be version 5: CUSTOM_CXX := g++-5 ``` * Setup environment: @@ -88,9 +90,9 @@ The instructions show how to build the ArmNN core library and the Boost, Protobu #### Cross-compiling ToolChain * Install the standard cross-compilation libraries for arm64: - ``` - sudo apt install crossbuild-essential-arm64 - ``` + ``` + sudo apt install crossbuild-essential-arm64 + ``` #### Build Boost library for arm64 * Build Boost library for arm64 Download Boost version 1.64 from http://www.boost.org/doc/libs/1_64_0/more/getting_started/unix-variants.html @@ -216,9 +218,9 @@ The instructions show how to build the ArmNN core library and the Boost, Protobu * If apt-get update returns 404 errors for arm64 repos refer to section 5 below. * Alternatively the missing arm64 version of libz.so.1 can be downloaded and installed from a .deb package here: https://launchpad.net/ubuntu/wily/arm64/zlib1g/1:1.2.8.dfsg-2ubuntu4 - ```bash - sudo dpkg -i zlib1g_1.2.8.dfsg-2ubuntu4_arm64.deb - ``` + ```bash + sudo dpkg -i zlib1g_1.2.8.dfsg-2ubuntu4_arm64.deb + ``` ## #### Unable to install arm64 packages after adding arm64 architecture * Using sudo apt-get update should add all of the required repos for arm64 but if it does not or you are getting 404 errors the following instructions can be used to add the repos manually: -- cgit v1.2.1