[Vm-dev] Building Squeak for Android
Andreas Raab
andreas.raab at gmx.de
Thu Mar 25 16:40:44 UTC 2010
Hi Guys -
May I suggest that we cover "lore" like this on a "Build Notes" page on
the Wiki? Hopefully, this won't be the last time someone is going trough
the exercise and such notes (don't do this, DO that, if this doesn't
work try THAT instead) can be tremendously helpful for someone trying to
get started.
Cheers,
- Andreas
On 3/25/2010 3:53 AM, Mikael Kindborg wrote:
>
> Many thanks for your input. Might be that I am using NDK r3.
> Will try after work and make sure to check your list.
> Very best, Micke
>
> On 24 March 2010 21:05, Stefan Krecher<stefan.krecher at googlemail.com> wrote:
>>
>> Hi,
>> - did you copy the correct libsqueakvm.so
>> (android_ndk_xyz/apps/squeakvm/project/libs/armeabi/libsqueakvm.sq) to
>> the right location in your eclipse-workspace? The size of that .so
>> should be about 370 kb.
>> - did you refresh the eclipse-workspace after copying the .so?
>> - which version of the ndk are you using? I encountered problems with
>> r3 and went back to r1.
>>
>> regards,
>> Stefan
>>
>> 2010/3/24 Mikael Kindborg<mikael.kindborg at gmail.com>:
>>>
>>> Hi!
>>>
>>> I have grabbed the subversion repository for Android Squeak and
>>> compiled and built the app, but the app crashes.
>>>
>>> Compiling and running the sample hello-jni works fine. Downloading and
>>> running the Squeak version on Android Market works fine.
>>>
>>> Building the native lib goes fine (no errors), and building the
>>> project in Eclipse seems to work. SqueakVM.apk is created and looks
>>> fine inside as far as I can tell.
>>>
>>> Attaching a file with the logcat output from the install and the launch.
>>>
>>> Some highlights:
>>>
>>> During install:
>>>
>>> 03-24 20:33:37.779: WARN/PackageManager(74): Not granting permission
>>> android.permission.READ_FRAME_BUFFER to package org.squeak.android
>>> (protectionLevel=2 flags=0x7e44)
>>>
>>> 03-24 20:33:38.559: WARN/ResourceType(74): Resources don't contain
>>> package for resource number 0x7f050000
>>> (Many of of the above)
>>>
>>> During launch:
>>>
>>> 03-24 20:34:37.409: INFO/System.out(20785): onCreate
>>> 03-24 20:34:37.409: INFO/System.out(20785): Loading squeakvm shared library
>>> 03-24 20:34:37.419: DEBUG/dalvikvm(20785): Trying to load lib
>>> /data/data/org.squeak.android/lib/libsqueakvm.so 0x44948060
>>> 03-24 20:34:37.419: DEBUG/dalvikvm(20785): Added shared lib
>>> /data/data/org.squeak.android/lib/libsqueakvm.so 0x44948060
>>> 03-24 20:34:37.419: DEBUG/dalvikvm(20785): No JNI_OnLoad found in
>>> /data/data/org.squeak.android/lib/libsqueakvm.so 0x44948060
>>> 03-24 20:34:37.419: DEBUG/dalvikvm(20785): +++ not scanning
>>> '/system/lib/libwebcore.so' for 'setLogLevel' (wrong CL)
>>> 03-24 20:34:37.419: DEBUG/dalvikvm(20785): +++ not scanning
>>> '/system/lib/libmedia_jni.so' for 'setLogLevel' (wrong CL)
>>> 03-24 20:34:37.430: DEBUG/dalvikvm(20785): +++ not scanning
>>> '/system/lib/libexif.so' for 'setLogLevel' (wrong CL)
>>> 03-24 20:34:37.430: DEBUG/dalvikvm(20785): +++ not scanning
>>> '/system/lib/libsrec_jni.so' for 'setLogLevel' (wrong CL)
>>>
>>> 03-24 20:34:40.779: INFO/DEBUG(20635): pid: 20785, tid: 20785>>>
>>> org.squeak.android<<<
>>> 03-24 20:34:40.779: INFO/DEBUG(20635): signal 11 (SIGSEGV), fault addr 00000027
>>> 03-24 20:34:40.779: INFO/DEBUG(20635): r0 00000027 r1 bea42821 r2
>>> 000000f7 r3 00000009
>>> 03-24 20:34:40.779: INFO/DEBUG(20635): r4 80a64ce8 r5 4186bc8c r6
>>> 00000000 r7 00000000
>>> 03-24 20:34:40.779: INFO/DEBUG(20635): r8 00000000 r9 4186bc8c 10
>>> 00000000 fp 00000000
>>> 03-24 20:34:40.779: INFO/DEBUG(20635): ip 80000000 sp bea427f0 lr
>>> 00000000 pc afe0df0c cpsr 80000010
>>> 03-24 20:34:40.869: INFO/DEBUG(20635): #00 pc 0000df0c
>>> /system/lib/libc.so
>>> 03-24 20:34:40.869: INFO/DEBUG(20635): #01 pc 00020fd2
>>> /data/data/org.squeak.android/lib/libsqueakvm.so
>>> 03-24 20:34:40.869: INFO/DEBUG(20635): #02 pc 0000ea16
>>> /data/data/org.squeak.android/lib/libsqueakvm.so
>>> 03-24 20:34:40.879: INFO/DEBUG(20635): #03 pc 0000ecb4
>>> /system/lib/libdvm.so
>>>
>>> 03-24 20:34:41.039: INFO/ActivityManager(74): Process
>>> org.squeak.android (pid 20785) has died.
>>> 03-24 20:34:41.050: DEBUG/Zygote(51): Process 20785 terminated by signal (11)
>>>
>>> I'm new to Android NDK. Any ideas on how to proceed?
>>>
>>> Best, Micke
>>>
>>>
>>
>>
>>
>> --
>> Dipl.-Wirtsch.-Inf. Stefan Krecher
>> Neulander Str. 17, 27374 Visselhövede
>> Tel +49(0)4262 958848
>> mobil +49(0)172 3608616
>> http://krecher.com
>>
>
More information about the Vm-dev
mailing list