discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Android: How to call GSInitializeProcess() properly?


From: Ivan Vučica
Subject: Android: How to call GSInitializeProcess() properly?
Date: Thu, 12 Jun 2014 11:27:14 +0100

Hi,

as you may know, any native code in Android GUI applications must be delivered as a shared object.

So, there is no main() and there is no executable. There is also no bundle that the binary can be delivered in, and we might only fake HOME by providing the application's data directory. (I temporarily use /.)

Based on previous discussions on this list, I've thrown together a fake call to GSInitializeProcess():

    const char* argv[1] = { "gnustep-app" };
    const char* env[3] = { "USER=android", "HOME=/", NULL };
    GSInitializeProcess(1, argv, env);

Sadly:

    I/gnustep-app( 6739): 2014-06-12 10:25:35.191 gnustep-app[6739] NSBundle.m:396  Assertion failed in NSString *GSPrivateExecutablePath().  NSInternalInconsistencyException

Any existing approach to dealing with there-is-no-executable situation?
--
Ivan Vučica
ivan@vucica.net

reply via email to

[Prev in Thread] Current Thread [Next in Thread]