aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadik Armagan <sadik.armagan@arm.com>2021-07-22 12:28:43 +0100
committerSadik Armagan <sadik.armagan@arm.com>2021-07-26 10:25:28 +0000
commitda245eb153337c6f1e75383bfe0fecd2cdcaed04 (patch)
treee0604d5b0ac12487d45e61debd1e43c994b0de89
parentd7ed6d4e53a877a25fcea754d76c8831451f18f1 (diff)
downloadarmnn-da245eb153337c6f1e75383bfe0fecd2cdcaed04.tar.gz
IVGCVSW-5966 'Update all the documentation'
* Update all documentation for removing BOOST library dependency Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Change-Id: Ie21ff096a11b7a623b1b9bb6f71eb63ea6e7b615
-rw-r--r--BuildGuideAndroidNDK.md30
-rw-r--r--BuildGuideCrossCompilation.md57
-rw-r--r--README.md4
-rw-r--r--docs/FAQ.md2
-rw-r--r--src/dynamic/README.md6
5 files changed, 5 insertions, 94 deletions
diff --git a/BuildGuideAndroidNDK.md b/BuildGuideAndroidNDK.md
index b386fa810e..5294514aef 100644
--- a/BuildGuideAndroidNDK.md
+++ b/BuildGuideAndroidNDK.md
@@ -2,7 +2,6 @@
- [Introduction](#introduction)
- [Download the Android NDK and make a standalone toolchain](#download-the-android-ndk-and-make-a-standalone-toolchain)
-- [Build the Boost C++ libraries](#build-the-boost-c---libraries)
- [Build the Compute Library](#build-the-compute-library)
- [Build Google's Protobuf library](#build-google-s-protobuf-library)
- [Build Arm NN](#build-armnn)
@@ -17,8 +16,6 @@ The instructions show how to build the Arm NN core library.
Building protobuf is optional. We have given steps should the user wish to build it (i.e. as an Onnx dependency).
All downloaded or generated files will be saved inside the `~/armnn-devenv` directory.
-#####Note: We are currently in the process of removing boost as a dependency to Arm NN. This process is finished for everything apart from our unit tests. This means you don't need boost to build and use Arm NN but you need it to execute our unit tests. Boost will soon be removed from Arm NN entirely.
-
## Download the Android NDK and make a standalone toolchain
* Download the Android NDK from [the official website](https://developer.android.com/ndk/downloads/index.html):
@@ -37,30 +34,6 @@ All downloaded or generated files will be saved inside the `~/armnn-devenv` dire
* With the android ndk-20b, you don't need to use the make_standalone_toolchain script to create a toolchain for a specific version of android. Android's current preference is for you to just specify the architecture and operating system while setting the compiler and just use the ndk directory.
-## Build the Boost C++ libraries
-
-* Download Boost version 1.64:
-```bash
-mkdir ~/armnn-devenv/boost
-cd ~/armnn-devenv/boost
-wget https://dl.bintray.com/boostorg/release/1.64.0/source/boost_1_64_0.tar.bz2
-tar xvf boost_1_64_0.tar.bz2
-```
-
-* Build:
-
- (Requires clang if not previously installed: `sudo apt-get install clang`)
-
- Note: You can specify the 'Android_API' version you want. For example, if your ANDROID_API is 27 then the compiler will be aarch64-linux-android27-clang++.
-```bash
-echo "using clang : arm : aarch64-linux-android<Android_API>-clang++ ;" > $HOME/armnn-devenv/boost/user-config.jam
-cd ~/armnn-devenv/boost/boost_1_64_0
-./bootstrap.sh --prefix=$HOME/armnn-devenv/boost/install
-./b2 install --user-config=$HOME/armnn-devenv/boost/user-config.jam \
- toolset=clang-arm link=static cxxflags=-fPIC \
- --with-test --with-log --with-program_options -j16
-```
-
## Build the Compute Library
* Clone the Compute Library:
@@ -165,7 +138,6 @@ cmake .. \
-DCMAKE_EXE_LINKER_FLAGS="-pie -llog -lz" \
-DARMCOMPUTE_ROOT=$HOME/armnn-devenv/ComputeLibrary/ \
-DARMCOMPUTE_BUILD_DIR=$HOME/armnn-devenv/ComputeLibrary/build \
- -DBOOST_ROOT=$HOME/armnn-devenv/boost/install/ \
-DARMCOMPUTENEON=1 -DARMCOMPUTECL=1 -DARMNNREF=1 \
-DPROTOBUF_ROOT=$HOME/armnn-devenv/google/arm64_pb_install/
```
@@ -201,8 +173,6 @@ cmake \
-DCMAKE_CXX_FLAGS=--std=c++14 \
-DCMAKE_EXE_LINKER_FLAGS="-pie -llog" \
-DCMAKE_MODULE_LINKER_FLAGS="-llog" \
--DBOOST_ROOT=$HOME/armnn-devenv/boost/install \
--DBoost_SYSTEM_LIBRARY=$HOME/armnn-devenv/boost/install/lib/libboost_system.a \
-DARMNN_PATH=$HOME/armnn-devenv/armnn/build/libarmnn.so ..
```
diff --git a/BuildGuideCrossCompilation.md b/BuildGuideCrossCompilation.md
index 721ee13b67..5aaa3828ed 100644
--- a/BuildGuideCrossCompilation.md
+++ b/BuildGuideCrossCompilation.md
@@ -3,7 +3,6 @@
- [Introduction](#introduction)
- [Cross-compiling ToolChain](#cross-compiling-toolchain)
- [Build and install Google's Protobuf library](#build-and-install-google-s-protobuf-library)
-- [Build Boost library for arm64](#build-boost-library-for-arm64)
- [Build Compute Library](#build-compute-library)
- [Download ArmNN](#download-armnn)
- [Build Flatbuffer](#build-flatbuffer)
@@ -16,7 +15,7 @@
## Introduction
-These are the step by step instructions on Cross-Compiling Arm NN under an x86_64 system to target an Arm64 system. This build flow has been tested with Ubuntu 16.04 and it depends on the same version of Ubuntu or Debian being installed on both the build host and target machines. The instructions assume you are using a bash shell and show how to build the Arm NN core library, Boost, Protobuf, Tflite, Flatbuffer and Compute Libraries.
+These are the step by step instructions on Cross-Compiling Arm NN under an x86_64 system to target an Arm64 system. This build flow has been tested with Ubuntu 16.04 and it depends on the same version of Ubuntu or Debian being installed on both the build host and target machines. The instructions assume you are using a bash shell and show how to build the Arm NN core library, Protobuf, Tflite, Flatbuffer and Compute Libraries.
Start by creating a directory to contain all components:
'''
@@ -24,7 +23,6 @@ mkdir $HOME/armnn-devenv
cd $HOME/armnn-devenv
'''
-#####Note: We are currently in the process of removing boost as a dependency to Arm NN. This process is finished for everything apart from our unit tests. This means you don't need boost to build and use Arm NN but you need it to execute our unit tests. Boost will soon be removed from Arm NN entirely. We have also removed support for Caffe and Tensorflow parsers from 21.05.
## Cross-compiling ToolChain
* Install the standard cross-compilation libraries for arm64:
@@ -64,18 +62,6 @@ make install -j16
cd ..
```
-## 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
- Using any version of Boost greater than 1.64 will fail to build Arm NN, due to different dependency issues.
-```bash
-cd $HOME/armnn-devenv
-tar -zxvf boost_1_64_0.tar.gz
-cd boost_1_64_0
-echo "using gcc : arm : aarch64-linux-gnu-g++ ;" > user_config.jam
-./bootstrap.sh --prefix=$HOME/armnn-devenv/boost_arm64_install
-./b2 install toolset=gcc-arm link=static cxxflags=-fPIC --with-test --with-log --with-program_options -j32 --user-config=user_config.jam
-```
## Build Compute Library
* Building the Arm Compute Library:
@@ -177,7 +163,6 @@ cd build
CXX=aarch64-linux-gnu-g++ CC=aarch64-linux-gnu-gcc cmake .. \
-DARMCOMPUTE_ROOT=$HOME/armnn-devenv/ComputeLibrary \
-DARMCOMPUTE_BUILD_DIR=$HOME/armnn-devenv/ComputeLibrary/build/ \
--DBOOST_ROOT=$HOME/armnn-devenv/boost_arm64_install/ \
-DARMCOMPUTENEON=1 -DARMCOMPUTECL=1 -DARMNNREF=1 \
-DONNX_GENERATED_SOURCES=$HOME/armnn-devenv/onnx \
-DBUILD_ONNX_PARSER=1 \
@@ -248,46 +233,6 @@ Running 4493 test cases...
```
## Troubleshooting and Errors:
-### Error adding symbols: File in wrong format
-* When building Arm NN:
-```bash
-/usr/local/lib/libboost_log.a: error adding symbols: File in wrong format
-collect2: error: ld returned 1 exit status
-CMakeFiles/armnn.dir/build.make:4028: recipe for target 'libarmnn.so' failed
-make[2]: *** [libarmnn.so] Error 1
-CMakeFiles/Makefile2:105: recipe for target 'CMakeFiles/armnn.dir/all' failed
-make[1]: *** [CMakeFiles/armnn.dir/all] Error 2
-Makefile:127: recipe for target 'all' failed
-make: *** [all] Error 2
-```
-* Boost libraries are not compiled for the correct architecture, try recompiling for arm64
-<br><br>
-
-### Virtual memory exhausted
-* When compiling the boost libraries:
-```bash
-virtual memory exhausted: Cannot allocate memory
-```
-* Not enough memory available to compile. Increase the amount of RAM or swap space available.
-<br><br>
-
-### Unrecognized command line option '-m64'
-* When compiling the boost libraries:
-```bash
-aarch64-linux-gnu-g++: error: unrecognized command line option ‘-m64’
-```
-* Clean the boost library directory before trying to build with a different architecture:
-```bash
-sudo ./b2 clean
-```
-* It should show the following for arm64:
-```bash
-- 32-bit : no
-- 64-bit : yes
-- arm : yes
-```
-<br><br>
-
### Missing libz.so.1
* When compiling armNN:
```bash
diff --git a/README.md b/README.md
index 0ab6863d6a..296ca53493 100644
--- a/README.md
+++ b/README.md
@@ -80,10 +80,6 @@ or take a look at previous [github issues](https://github.com/ARM-software/armnn
Consequently Arm NN will from the 21.08 Release at the end of August 2021 no longer be officially
supported on Ubuntu 16.04 LTS but will instead be supported on Ubuntu 18.04 LTS.
-3. We are currently in the process of removing [boost](https://www.boost.org/) as a dependency to Arm NN. This process
- is finished for everything apart from our unit tests. This means you don't need boost to build and use Arm NN but
- you need it to execute our unit tests. Boost will soon be removed from Arm NN entirely.
-
## How to get involved
If you would like to get involved but don't know where to start, a good place to look is in our Github Issues.
diff --git a/docs/FAQ.md b/docs/FAQ.md
index f79e2d19f8..4e8e177068 100644
--- a/docs/FAQ.md
+++ b/docs/FAQ.md
@@ -3,6 +3,8 @@ Frequently asked questions
These are issues that have been commonly seen when using ArmNN.
+Note: The 21.08 release of Arm NN removes Boost library dependency. You are not required to install boost library with 21.08 and newer releases.
+
Problems seen when trying to build armnn and ComputeLibrary obtained from GitHub
-----------------------------------------------------------------------------
diff --git a/src/dynamic/README.md b/src/dynamic/README.md
index 39ed18895d..6efec20465 100644
--- a/src/dynamic/README.md
+++ b/src/dynamic/README.md
@@ -23,15 +23,13 @@ The makefile used for building the standalone reference dynamic backend is also
### Standalone dynamic backend build
The easiest way to build a standalone sample dynamic backend is to build using environment configured compiler
-and specify the Arm NN path and Boost path to the CMake command:
+and specify the Arm NN path to the CMake command:
```shell
cd ${DYNAMIC_BACKEND_DIR}
mkdir build
cd build
-cmake -DBOOST_ROOT=${BOOST_PATH} \
- -DBoost_SYSTEM_LIBRARY=${BOOST_PATH}/lib/libboost_system.a \
- -DARMNN_PATH=${ARMNN_PATH}/libarmnn.so ..
+cmake -DARMNN_PATH=${ARMNN_PATH}/libarmnn.so ..
```
Then run the build