Compile and Run GUI on Android

Asked

Viewed 51 times

0

I use c4droid to compile C code using gcc, in my studies I want to enter the graphical interface, but as I am without computer I thought to use the android itself. Well, I installed the GNU Root Debian app, installed gtk3, Glade and its dependencies. In the Debian app, I can compile the code, but when it comes to running with . / the attached photo error appears here. I already searched but I could not solve this error, my doubt and, is this error happening because it is not possible to open a graphical interface on android? Has anyone ever tried anything like that? I’m on holdinserir a descrição da imagem aqui

1 answer

0

I believe it is not possible because Android itself is already running an X Server that is pointing to the screen of your smartphone. This hypothesis is corroborated by the error message that display 1 cannot be opened.

  • Thanks for the contact! Couldn’t I use a VNC app to connect to Debian? If I could, would it conflict with Xserver? In queries seen that could be used another server, such as Xclock, this proceeds?

  • You can use a VNC app, but Xserver has to run on Debian in order for VNC to have anything to display. Xclock is not an X server, but a very basic application that can be run in a graphical environment. I believe you will need a computer anyway...

  • Fpolina, I’ve downloaded vnc4server on Debian and a client on android. I was able to connect with localhost on port 5901, but in the vnc client only appears a gray screen without aspect. Well, there will be no escape from the computer, but it would be a hand in the wheel to be able to program Gui by own android. I will try, maybe in the future this option already has, but c4droid has support for Qt with c++, soon I will use it, thank you!

  • If the answer is satisfactory, accept it to close this question =)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.