Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PCP on Android #2012

Open
xw914 opened this issue Jul 9, 2024 · 2 comments
Open

PCP on Android #2012

xw914 opened this issue Jul 9, 2024 · 2 comments

Comments

@xw914
Copy link

xw914 commented Jul 9, 2024

Hi,

Hope everyone in the community is well.

I am quite interested in running PCP on Android. While there is something for OSX, Windows, and Solaris, it looks like there is a gap of guidance of this topic from the documentation about Android. Also I cannot find any previous community questions related to this topic. So raising one here.

Could anyone familiar with PCP kindly provide some hints about how can I start working on running PCP on Android? I assume I will need to do the building of PCP on some Ubuntu Linux machines (maybe even cross compile and use statically linking), but any advice would be great, thanks!

@natoscott
Copy link
Member

@xw914 that will be a fun little project! From a quick search I think you may want to try 'termux' as that gives you zsh/bash shell and (some of?) the necessary toolchain (things like make, gcc/clang, gdb, git, etc - heh, even htop!). If you can ssh into the device, better still, and if you can cross-compile from Linux that will also help you I'm sure.

Good luck! You can reach several experienced PCP developers on our slack channels (see pcp.io/community.html) - may be easier to chat there to explore this further.

@xw914
Copy link
Author

xw914 commented Jul 9, 2024

Hi @natoscott ! Thanks, both of the suggestions make sense, but I guess due to my use case (also I think the Android version that I used is higher than the one that Termux can be run), I would prefer building the PCP from the source from Ubuntu Linux (either x86 or Arm) and run them on Android.

Do you think it makes sense to statically link the whole PCP project and copy them to the Android device? A quick try of LDFLAGS="$LDFLAGS -static" ./configure && make on my arm64 dev board will lead to some failures from ld and I guess this is because I am still ramping up on the PCP build system...Any suggestions? We can continue the discussion in the Slack channel that you pointed out above. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants