gnustep-dev
[Top][All Lists]
Advanced

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

Re: gnustep-base cross compile for Android


From: Ivan Vučica
Subject: Re: gnustep-base cross compile for Android
Date: Thu, 4 Apr 2013 12:04:18 +0200

Hello Emmanuel,

Only now did I take some time to take a look at your patches. It seems at least some of them are still needed. Did you review them? If not, I'll be playing with that these days.

Richard and Adam, could you take a quick look at the -base and -make patches, respectively? They basically look alright to me, and I'd apply the needed changes one-by-one, on an as-needed basis. Some of the changes were already made, but I'd love feedback before actually committing anything in the repositories.

(The "on an as-needed basis" applies especially to things like the "gsbase_GNUmakefile.patch", which disables SSL, Tests and Tools without actually.)

Additional note: I'm structuring the Android build script that I'm working on to be nicer. That is, to be more easy to study and apply step-by-step. I'll be publishing it as a Mercurial repository when it's restructured. It'll be a collection of shell scripts sourced by the main script, which should also allow easy addition of Android-specific patches into the build process before they're properly integrated into upstream GNUstep.


On Tue, Mar 12, 2013 at 5:57 PM, Emmanuel Maillard <address@hidden> wrote:
Hello Ivan,

There is the script and patches i use to cross compile libobjc2, gnustep-make-2.6.2, gnustep-base-1.24.0 with libxml2 and libffi on Mac OS X.
(You need to install autoconf and automake on Mac OS before running script.)

I will review all patches for gnustep with current SVN code and submit them tonight or tomorrow.

Cheers
Emmanuel





Le 9 mars 2013 à 14:15, Ivan Vučica <address@hidden> a écrit :

> Hello Emmanuel,
>
> Can you share the patches and configure options?
>
> I'm now stuck at getting gnustep-base to 'configure' correctly, and not complain about pthread_join(). I guess I could disable the test, but maybe there's a wiser way to do this.
>
> On 9. 3. 2013., at 10:31, Emmanuel Maillard <address@hidden> wrote:
>
>> Hi,
>>
>> I fixed the Makefile issue, sorry for the noise…
>>
>> Now, libobjc2 and gnustep-base can be cross compile for Android.
>>
>> For libobjc2 all runtime tests, except exceptions one, pass successfully :
>>
>> I/ActivityManager(   61): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.objc.tests/.ObjectiveCTests } from pid 142
>> I/ActivityManager(   61): Start proc com.objc.tests for activity com.objc.tests/.ObjectiveCTests: pid=463 uid=10034 gids={}
>> D/dalvikvm(  463): Trying to load lib /data/data/com.objc.tests/lib/libruntime-test.so 0x40513070
>> D/dalvikvm(  463): Added shared lib /data/data/com.objc.tests/lib/libruntime-test.so 0x40513070
>> D/dalvikvm(  463): No JNI_OnLoad found in /data/data/com.objc.tests/lib/libruntime-test.so 0x40513070, skipping init
>> D/RuntimeTest(  463): testInvalidArguments() ran
>> D/RuntimeTest(  463): testAMethod() ran
>> D/RuntimeTest(  463): testAMethod() ran
>> D/RuntimeTest(  463): testGetMethod() ran
>> D/RuntimeTest(  463): testProtocols() ran
>> D/RuntimeTest(  463): testMultiTypedSelector() ran
>> D/RuntimeTest(  463): testClassHierarchy() ran
>> D/RuntimeTest(  463): testAllocateClass() ran
>> D/RuntimeTest(  463): Instance of NSObject: 0x2b7844
>> D/RuntimeTest(  463): Enter synchronized code
>> D/RuntimeTest(  463): testSynchronized() ran
>> D/RuntimeTest(  463): testExceptions() skipped
>> D/RuntimeTest(  463): testRegisterAlias() ran
>> I/ActivityManager(   61): Displayed com.objc.tests/.ObjectiveCTests: +918ms
>>
>> testExceptions abort in objc_exception_throw because _Unwind_RaiseException return _URC_FAILURE.
>>
>> I can cross-compile gnustep-base-1.24.0, with only libffi and libxml2 as dependencies, and without SSL subproject for now.
>> The shared library load successfully  on Android and some tests pass, see logcat.txt.
>>
>> Cheers
>> Emmanuel
>>
>> <logcat.txt>
>>
>>
>> Le 25 févr. 2013 à 18:42, Emmanuel Maillard <address@hidden> a écrit :
>>
>>> Hi,
>>>
>>> I try to cross-compile gnustep-base-1.24.0 for Android.
>>> I already have fix some issues (patches will come soon), I checked Makefiles but I didn't find how to fix this target issue.
>>> (used makefiles are gnustep-make-2.6.2)
>>>
>>> <snip>…</snip>
>>> Compiling file NSMessagePortNameServer.m ...
>>> Compiling file GSFFIInvocation.m ...
>>> make[4]: *** No rule to make target `Additions/obj/subproject.o', needed by `obj/libgnustep-base.a'.  Stop.
>>> make[3]: *** [internal-library-all_] Error 2
>>> make[2]: *** [libgnustep-base.all.library.variables] Error 2
>>> make[1]: *** [internal-all] Error 2
>>> make: *** [internal-all] Error 2
>>>
>>> Any help is welcome.
>>>
>>> Thanks
>>> Emmanuel
>>>
>>>
>>> _______________________________________________
>>> Gnustep-dev mailing list
>>> address@hidden
>>> https://lists.gnu.org/mailman/listinfo/gnustep-dev
>>
>> _______________________________________________
>> Gnustep-dev mailing list
>> address@hidden
>> https://lists.gnu.org/mailman/listinfo/gnustep-dev
>
> --
> Ivan Vučica
> address@hidden - http://ivan.vucica.net/
>





--
Ivan Vučica - address@hidden


reply via email to

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