Is it possible to use GTK+ library with Android?
Asked
Active
Viewed 4.0k times
38
-
3GTK is open source. You're welcome to port it. – Jonathan Baldwin Jul 13 '13 at 03:28
-
Sweet! Yaks are so beautiful when they're shaved! – Ross Rogers Jan 19 '22 at 13:59
4 Answers
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
-
1Great 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
-
-
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