cross-compiling stressapptest for aarch64 and Android

762 views
Skip to first unread message

Rafał Kar

unread,
Feb 26, 2018, 7:11:39 AM2/26/18
to stressapptest-discuss
Hi,
I want to cross-compile stressapptest app on my laptop (x86) running ubuntu 16.04. The target platform is Open-Q development board with Snapdragon 820 (aarch64) running Android 7.1.1.

What is the easiest way of doing that? After some time of googling I already know that "configure" script should be run with --host=aarch64-none-linux-gnueabi --with-static parameters:
./configure --host=aarch64-none-linux-gnueabi  --with-static

However I'm getting output suggesting that I don't have my compilators configured for crosscompilation for ARM:
Tutaj wprowadź kod...checking for aarch64-none-linux-gnueabi-g++... no
checking
for aarch64-none-linux-gnueabi-c++... no
checking
for aarch64-none-linux-gnueabi-gpp... no
checking
for aarch64-none-linux-gnueabi-aCC... no
checking
for aarch64-none-linux-gnueabi-CC... no
checking
for aarch64-none-linux-gnueabi-cxx... no
checking
for aarch64-none-linux-gnueabi-cc++... no
checking
for aarch64-none-linux-gnueabi-cl.exe... no
checking
for aarch64-none-linux-gnueabi-FCC... no
checking
for aarch64-none-linux-gnueabi-KCC... no
checking
for aarch64-none-linux-gnueabi-RCC... no
checking
for aarch64-none-linux-gnueabi-xlC_r... no
checking
for aarch64-none-linux-gnueabi-xlC... no
checking
for g++... g++
checking whether the C
++ compiler works... yes
checking
for C++ compiler default output file name... a.out
checking
for suffix of executables...
checking whether we are cross compiling... no


I still don't know how ubuntu should be configured for cross-compilation of stressapptest. Or maybe I should use Android NDK? If so then how should I do it?

Regards

andrew dieckman

unread,
Feb 27, 2018, 6:39:38 PM2/27/18
to stressapptest-discuss
You might have to just go in and touch up the Makefile by hand.
You don't need to change to many entries.  
I think that is all I have changed in it.
You mainly need to add the prefix path, the crosstools binaries (CC, CPP, CXX, STRIP), the LIBINCLUDE for the crosstools include path, and the LDFLAGS for the crosstools libraries.

build_triplet
host_triplet
CC
CPP
CXX
STRIP
LIBINCLUDE
LDFLAGS
host
host_alias
host_cpu
host_os
host_vendor
prefix
Reply all
Reply to author
Forward
0 new messages