aboutsummaryrefslogtreecommitdiff
path: root/docs/00_introduction.dox
diff options
context:
space:
mode:
authorAnthony Barbier <anthony.barbier@arm.com>2017-06-23 14:42:52 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-09-17 14:14:20 +0100
commitfabb038a54ca217497c17e31ba7ae098690f2f69 (patch)
treee00f819966b02621007d24ae2f5739c77c21ba4d /docs/00_introduction.dox
parent960b0849e037641b74e57105a55d107da7dbe9b0 (diff)
downloadComputeLibrary-fabb038a54ca217497c17e31ba7ae098690f2f69.tar.gz
COMPMID-344 Fixed instructions to build Android examples
Change-Id: Ia405332ebd2a36162b167ca5468ad69c3efdd677 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/78714 Reviewed-by: Gian Marco Iodice <gianmarco.iodice@arm.com> Reviewed-by: Moritz Pflanzer <moritz.pflanzer@arm.com> Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Diffstat (limited to 'docs/00_introduction.dox')
-rw-r--r--docs/00_introduction.dox10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/00_introduction.dox b/docs/00_introduction.dox
index 00a5896f43..1fb94ed637 100644
--- a/docs/00_introduction.dox
+++ b/docs/00_introduction.dox
@@ -495,23 +495,23 @@ To cross-compile the library in asserts mode, with OpenCL only support, for Andr
The examples get automatically built by scons as part of the build process of the library described above. This section just describes how you can build and link your own application against our library.
-@note The following command lines assume the arm_compute binaries are present in the current directory or in the system library path.
+@note The following command lines assume the arm_compute and libOpenCL binaries are present in the current directory or in the system library path. If this is not the case you can specify the location of the pre-built library with the compiler option -L. When building the OpenCL example the commands below assume that the CL headers are located in the include folder where the command is executed.
Once you've got your Android standalone toolchain built and added to your path you can do the following:
To cross compile a NEON example:
#32 bit:
- arm-linux-androideabi-clang++ examples/neon_convolution.cpp -I. -Iinclude -std=c++11 -larm_compute-static -L. -o neon_convolution_arm -static-libstdc++ -pie
+ arm-linux-androideabi-clang++ examples/neon_convolution.cpp utils/Utils.cpp -I. -Iinclude -std=c++11 -larm_compute-static -L. -o neon_convolution_arm -static-libstdc++ -pie
#64 bit:
- aarch64-linux-android-g++ examples/neon_convolution.cpp -I. -Iinclude -std=c++11 -larm_compute-static -L. -o neon_convolution_aarch64 -static-libstdc++ -pie
+ aarch64-linux-android-g++ examples/neon_convolution.cpp utils/Utils.cpp -I. -Iinclude -std=c++11 -larm_compute-static -L. -o neon_convolution_aarch64 -static-libstdc++ -pie
To cross compile an OpenCL example:
#32 bit:
- arm-linux-androideabi-clang++ examples/cl_convolution.cpp -I. -Iinclude -std=c++11 -larm_compute-static -L. -o cl_convolution_arm -static-libstdc++ -pie -lOpenCL
+ arm-linux-androideabi-clang++ examples/cl_convolution.cpp utils/Utils.cpp -I. -Iinclude -std=c++11 -larm_compute-static -L. -o cl_convolution_arm -static-libstdc++ -pie -lOpenCL
#64 bit:
- aarch64-linux-android-g++ examples/cl_convolution.cpp -I. -Iinclude -std=c++11 -larm_compute-static -L. -o cl_convolution_aarch64 -static-libstdc++ -pie -lOpenCL
+ aarch64-linux-android-g++ examples/cl_convolution.cpp utils/Utils.cpp -I. -Iinclude -std=c++11 -larm_compute-static -L. -o cl_convolution_aarch64 -static-libstdc++ -pie -lOpenCL
@note Due to some issues in older versions of the Mali OpenCL DDK (<= r13p0), we recommend to link arm_compute statically on Android.