How to install x11 headers on android?

  • Context:
  • Thread starter Thread starter jk22
  • Start date Start date
  • Tags Tags
    Android install
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 2K views
jk22
Messages
732
Reaction score
25
Hello,

I'm using cppdroid and wrote a c code running a window on x11 (originally Ubuntu Linux) and installed a xserver on android. How could i compile this code on Android knowing it lacks the x11 headers ? Thanks.
 
Physics news on Phys.org
I don't know what you mean by this. Is it to compile under linux and put the executable on android ?
 
jk22 said:
I don't know what you mean by this. Is it to compile under linux and put the executable on android ?
Yes. Many compilers will let you specify the target architecture of code you're compiling. Ordinarily, when your compiler is running on a particular OS, the code you compile will run on that same OS. A cross compiler will generate code that will run under a different OS/architecture.

I'm not familiar with X11, but if your code is intended to run on Android, I'm reasonably sure it has the same or similar functionality as is available in X11.