I have a jailbroken kindle touch. I want to write native apps (for example a reddit client), so I searched for how to compile gtk code for it and found this post:
https://www.mobileread.com/forums/sh...d.php?t=189372.
Everything goes fine and I can compile it with regular gcc for my laptop. I've gotten the libs from the kindle and followed the tutorial all the way up to cross compiling the test program. When I run the long command starting with arm-linux-gnueabi-gcc I get output that looks like this:
Code:
In file included from /usr/lib/x86_64-linux-gnu/glib-2.0/include/glibconfig.h:9:0,
from /usr/include/glib-2.0/glib/gtypes.h:32,
from /usr/include/glib-2.0/glib/galloca.h:32,
from /usr/include/glib-2.0/glib.h:30,
from /usr/include/glib-2.0/gobject/gbinding.h:28,
from /usr/include/glib-2.0/glib-object.h:23,
from /usr/include/glib-2.0/gio/gioenums.h:28,
from /usr/include/glib-2.0/gio/giotypes.h:28,
from /usr/include/glib-2.0/gio/gio.h:26,
from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
from /usr/include/gtk-2.0/gdk/gdk.h:32,
from /usr/include/gtk-2.0/gtk/gtk.h:32,
from gtktest.c:1:
/usr/include/glib-2.0/glib/gtypes.h: In function ‘_GLIB_CHECKED_ADD_U64’:
/usr/include/glib-2.0/glib/gmacros.h:232:53: error: size of array ‘_GStaticAssertCompileTimeAssertion_0’ is negative
#define G_STATIC_ASSERT(expr) typedef char G_PASTE (_GStaticAssertCompileTimeAssertion_, __COUNTER__)[(expr) ? 1 : -1] G_GNUC_UNUSED
^
/usr/include/glib-2.0/glib/gmacros.h:229:47: note: in definition of macro ‘G_PASTE_ARGS’
#define G_PASTE_ARGS(identifier1,identifier2) identifier1 ## identifier2
^
/usr/include/glib-2.0/glib/gmacros.h:232:44: note: in expansion of macro ‘G_PASTE’
#define G_STATIC_ASSERT(expr) typedef char G_PASTE (_GStaticAssertCompileTimeAssertion_, __COUNTER__)[(expr) ? 1 : -1] G_GNUC_UNUSED
^
/usr/include/glib-2.0/glib/gtypes.h:423:3: note: in expansion of macro ‘G_STATIC_ASSERT’
G_STATIC_ASSERT(sizeof (unsigned long long) == sizeof (guint64));
^
So, from searching for that error, I think that means I need to use a gtk header that is for arm. I'm not sure where to get that though or how to specify that to gcc. Does anyone know what I need to do to make sure the right arm headers and libs are used? I am new to gtk; I've written one small image sorting app before on an x84_64 machine but that's all.
Info about my os and packages:
I am using debian linux stretch (I think it's also called testing, since sid is what unstable is called). The arm-linux-gnueabi I have is arm-linux-gnueabi-5, because the version in the tutorial isn't in my apt repos.