Coder Social home page Coder Social logo

gtkandroid's Introduction

The current code base DOESN'T WORK on the modern NDK versions. The last known version it did work with was r10. Some attempts to solve this incompatibility are hopefully introduced in this repo's forks here on GitHub.

GTKAndroid

This is a set of hacks, makefiles and configs allowing you to run GTK-based forms on Android platform.

Please see build instructions

Known issues/limitations of this 0.1alpha version:

  • It may take a few seconds for something to appear on the screen, when you run the app for the first time. (fontconfig processes all the system fonts then)

  • All libraries are statically linked atm (several of them are LGPL-licensed, which may be inappropriate for some applications)

  • Only "C" locale is supported by libc on Android

  • No soft keyboard support yet

gtkandroid's People

Contributors

eugals avatar julianwi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gtkandroid's Issues

libintl.h problem

I do not know how you did before ,but It's 2018 now,and now the NDK kit provided by Google does not longer contain libintl.h header.I tried to find some replacement,but they all won't work.
So I just want to ask you for the header(or libraries) that you used to build.

python clibs/getLibs.py script fails on freetype library

Like the title says.

Solution:

Comment out line 256 which currently reads:
dl.download("freetype/distsrc", "http://download.savannah.gnu.org/releases/freetype/freetype-2.5.4.tar.bz2")

And create a line after it that reads:
dl.download("freetype/distsrc", "https://download.savannah.gnu.org/releases/freetype/freetype-old/freetype-2.5.4.tar.bz2")

as the repo directory structure appears to have changed.

EDIT: I noticed the domain in the update is different as well, and I have no idea of the security implications of that, so heads up fair warning, I used it.

EDIT2: found the "gnu.org" domain link and updated again. Relax security neck hairs a little perhaps.

What is the current status of the project?

I see a fork that was updated 3 months ago, are there any plans to continue working?
The idea of running GTK apps on Android sounds very cool. Especially with the advent of LibHandy, I think the naivety of the view can be solved with the help of themes.

i can not build native app

i can build share lib libgtka_test.so,
when i build native c app(only use c called gtk api), when it links share lib libgtka_test.so ,

it delates libgtka_test.so then link failed , can u provide an example ? , tks a lot

notes: i use win7 with android-ndk-r10b i pray you can understand what i say ,poor en...

/////////////////////////////////////////////////Android.mk//////////////////////////////////////////////////////////////////////////
/////////////main.c get from your app/jni, i add a main func ,call func android_main ///////////////////////////

# This file is only used at AOSP usage. (not NDK usage)
LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)


LOCAL_CFLAGS += -pie -fPIE
LOCAL_LDFLAGS += -pie -fPIE

#######################################################

LOCAL_C_INCLUDES += D:\android-ndk-r10b\sources\android\native_app_glue
LOCAL_C_INCLUDES += D:\android-ndk-r10b\platforms\android-19\arch-arm\usr\include
LOCAL_C_INCLUDES += E:\ANDROID_NDK_PROJECT\GTKAndroid-master\clibs\gtk\include
LOCAL_C_INCLUDES += E:\ANDROID_NDK_PROJECT\GTKAndroid-master\clibs\gtk\distsrc
LOCAL_C_INCLUDES += E:\ANDROID_NDK_PROJECT\GTKAndroid-master\clibs\glib\distsrc\glib
LOCAL_C_INCLUDES += E:\ANDROID_NDK_PROJECT\GTKAndroid-master\clibs\glib\distsrc
LOCAL_C_INCLUDES += E:\ANDROID_NDK_PROJECT\GTKAndroid-master\clibs\glib\include
LOCAL_C_INCLUDES += E:\ANDROID_NDK_PROJECT\GTKAndroid-master\clibs\glib\distsrc\gmodule
LOCAL_C_INCLUDES += E:\ANDROID_NDK_PROJECT\GTKAndroid-master\clibs\glib\distsrc\gmodule
LOCAL_C_INCLUDES += E:\ANDROID_NDK_PROJECT\GTKAndroid-master\clibs\pango\distsrc
LOCAL_C_INCLUDES += E:\ANDROID_NDK_PROJECT\GTKAndroid-master\clibs\cairo\distsrc\cairo\src
LOCAL_C_INCLUDES += E:\ANDROID_NDK_PROJECT\GTKAndroid-master\clibs\cairo\cairo-extra
LOCAL_C_INCLUDES += E:\ANDROID_NDK_PROJECT\GTKAndroid-master\clibs\gdk-pixbuf\distsrc
LOCAL_C_INCLUDES += E:\ANDROID_NDK_PROJECT\GTKAndroid-master\clibs\atk\distsrc

#LOCAL_MODULE_TAGS := optional

#######################################################

#LOCAL_LDLIBS += -L$(LOCAL_PATH)/../../usr/lib -lc
#LOCAL_LDLIBS += -L$(LOCAL_PATH)/../../usr/lib -lstdc++
#LOCAL_LDLIBS += -LE:\ANDROID_NDK_PROJECT\GTKAndroid-master\app_me\libs\armeabi -lgtka_test


#######################################################

LOCAL_MODULE    := gtka_test
LOCAL_SRC_FILES := main.c

#LOCAL_MODULE_TAGS := optional

#include $(BUILD_SHARED_LIBRARY)
include $(BUILD_EXECUTABLE)

#######################################################

#include $(LOCAL_PATH)/Android_gl2_copyTexImage.mk

#######################################################

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.