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
I/ActivityManager( 284): START u0 {act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER] flg=0x10200000
cmp=com.gnustep.tests/.GSBaseTests} from pid 515
D/PermissionCache( 37): checking android.permission.READ_FRAME_BUFFER for
uid=1000 => granted (2473 us)
W/WindowManager( 284): Failure taking screenshot for (266x425) to layer 21005
E/SurfaceFlinger( 37): ro.sf.lcd_density must be defined as a build property
D/dalvikvm( 876): Not late-enabling CheckJNI (already on)
I/ActivityManager( 284): Start proc com.gnustep.tests for activity
com.gnustep.tests/.GSBaseTests: pid=876 uid=10046 gids={50046, 1028}
I/dalvikvm( 876): Turning on JNI app bug workarounds for target SDK version
9...
E/Trace ( 876): error opening trace file: No such file or directory (2)
I/ARMAssembler( 37): generated scanline__00000077:03515104_00009002_00000000
[127 ipp] (149 ins) at [0x4287d1f0:0x4287d444] in 7660000 ns
D/dalvikvm( 876): Trying to load lib
/data/app-lib/com.gnustep.tests-1/libobjc.so 0x40ce14d8
D/dalvikvm( 876): Added shared lib
/data/app-lib/com.gnustep.tests-1/libobjc.so 0x40ce14d8
D/dalvikvm( 876): No JNI_OnLoad found in
/data/app-lib/com.gnustep.tests-1/libobjc.so 0x40ce14d8, skipping init
D/dalvikvm( 876): Trying to load lib
/data/app-lib/com.gnustep.tests-1/libgnustep-base.so 0x40ce14d8
D/dalvikvm( 876): Added shared lib
/data/app-lib/com.gnustep.tests-1/libgnustep-base.so 0x40ce14d8
D/dalvikvm( 876): No JNI_OnLoad found in
/data/app-lib/com.gnustep.tests-1/libgnustep-base.so 0x40ce14d8, skipping init
D/dalvikvm( 876): Trying to load lib
/data/app-lib/com.gnustep.tests-1/libgsbase-test.so 0x40ce14d8
D/dalvikvm( 876): Added shared lib
/data/app-lib/com.gnustep.tests-1/libgsbase-test.so 0x40ce14d8
D/GNUstepTests( 876): Passed test:
D/GNUstepTests( 876): Class 'NSObject' exists
D/GNUstepTests( 876): Passed test:
D/GNUstepTests( 876): Class 'NSObject' has working alloc
D/GNUstepTests( 876): Passed test:
D/GNUstepTests( 876): Class 'NSObject' alloc gives the correct class
D/GNUstepTests( 876): Passed test:
D/GNUstepTests( 876): Class 'NSObject' has working init
D/GNUstepTests( 876): Passed test:
D/GNUstepTests( 876): Class 'NSObject' has working new
D/GNUstepTests( 876): Passed test:
D/GNUstepTests( 876): Class 'NSObject' has working allocWithZone
D/GNUstepTests( 876): Passed test:
D/GNUstepTests( 876): +conformsToProtocol returns YES on an implemented
protocol
D/GNUstepTests( 876): Passed test:
D/GNUstepTests( 876): +conformsToProtocol returns YES on a protocol
implemented in a category
D/GNUstepTests( 876): Passed test:
D/GNUstepTests( 876): +conformsToProtocol returns NO on an unimplemented
protocol
D/GNUstepTests( 876): Passed test:
D/GNUstepTests( 876): -conformsToProtocol returns YES on an implemented
protocol
D/GNUstepTests( 876): Passed test:
D/GNUstepTests( 876): -conformsToProtocol returns YES on a protocol
implemented in a category
D/GNUstepTests( 876): Passed test:
D/GNUstepTests( 876): -conformsToProtocol returns NO on an unimplemented
protocol
D/GNUstepTests( 876): Passed test:
D/GNUstepTests( 876): +new creates an empty array
D/GNUstepTests( 876): Passed test:
D/GNUstepTests( 876): +array creates an empty array
D/GNUstepTests( 876): Passed test:
D/GNUstepTests( 876): +arrayWithObject: builds a minimal array
D/GNUstepTests( 876): Passed test:
D/GNUstepTests( 876): +arrayWithObjects: builds an array
D/GNUstepTests( 876): Passed test:
D/GNUstepTests( 876): +arrayWithArray: copies array
V/PhoneStatusBar( 397): setLightsOn(true)
E/SurfaceFlinger( 37): ro.sf.lcd_density must be defined as a build property
D/gralloc_goldfish( 876): Emulator without GPU emulation detected.
I/ActivityManager( 284): Displayed com.gnustep.tests/.GSBaseTests: +1s693ms
D/ExchangeService( 716): Received deviceId from Email app: null
D/ExchangeService( 716): !!! deviceId unknown; stopping self and retrying
W/WindowManager( 284): Failure taking screenshot for (266x425) to layer 21010
I/Choreographer( 515): Skipped 35 frames! The application may be doing too
much work on its main thread.
I/dalvikvm( 284): Jit: resizing JitTable from 4096 to 8192
E/SurfaceFlinger( 37): ro.sf.lcd_density must be defined as a build property
Le 25 févr. 2013 à 18:42, Emmanuel Maillard <[email protected]> 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
> [email protected]
> https://lists.gnu.org/mailman/listinfo/gnustep-dev
_______________________________________________
Gnustep-dev mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/gnustep-dev