Skip to content

Compilation for Android #324

Answered by stevekay
bogdanBDM asked this question in Q&A
Jun 19, 2022 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

For what it's worth, I've compiled the latest sysstat against Android. Compiled on a Debian 11 x86_64 box, cross compiling to arch64.

Have not tested it in depth, but on the face of it, looks functional.

So in answer to the original question, my response is Yes, it can be ported to Android, see steps to compile as below, and give feedback on any issues encountered.

Cross compile

steve@debian:~/sysstat$ sudo apt install gcc-aarch64-linux-gnu
...
steve@debian:~/sysstat$ uname -a
Linux debian 5.10.0-14-amd64 #1 SMP Debian 5.10.113-1 (2022-04-29) x86_64 GNU/Linux
steve@debian:~/sysstat$ export CC=/usr/bin/aarch64-linux-gnu-gcc
steve@debian:~/sysstat$ export CFLAGS=-static
steve@debian:~/sysst…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@bogdanBDM
Comment options

Answer selected by bogdanBDM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants