38

Is it possible to use GTK+ library with Android?

Evgeny Vinnik
  • 1,235
  • 2
  • 16
  • 27

4 Answers4

16

Try GTKAndroid.

It still has many limitations at the moment when I'm writing this comment, but you should be able to run some simple forms with this already.

eugals
  • 176
  • 1
  • 5
  • 1
    Great resource, but according to the creator, it "The current code base DOESN'T WORK on the modern NDK versions." right now. It currently has links to [its forks](https://github.com/eugals/GTKAndroid/network/members) that might provide better functionality. – Lazerbeak12345 Oct 15 '20 at 17:58
10

Nothing is impossible. First of all, GTK library need to be coss-compiled. After that, the compiled library need to be deployed to android.

binhgreat
  • 982
  • 8
  • 13
3

Even JAVA can run native code, there should be a way, http://developer.android.com/sdk/ndk/1.6_r1/index.html

jperez45
  • 39
  • 2
  • no, I think `java` is more native than `c` in Android? –  May 22 '21 at 13:16
  • 1
    @FelixXu how native is it, just because the OS has a JVM built-in doesn't mean it is "closer to the metal" than C, does it? I guess that depends on the definition of "native". – nlhnt Apr 11 '22 at 06:56
2

You can run GTK applications on Android through the broadway backend.

Scrooge McDuck
  • 372
  • 2
  • 14