Welcome, Guest
Username: Password: Remember me
CodeTyphon Cross-Build Development, discussions and problems
  • Page:
  • 1

TOPIC:

"Could not load liblclapp.so" 11 years 4 months ago #4188

  • phil
  • phil's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 7
  • Thank you received: 0
Still desparately trying to build androidlcl. Since ant build was giving me same trouble, I got old copy of apkbuilder.bat and tried that as well. This gets me an apk without seeing errors (I think). Put it on the emulator however, and no go. Get the above message. Looking in the apk, I cant find the so either. If it comes to that CT compiles it to liblclapp (without the extension). I can find nowhere in the build process how to bundle the liblclapp into the apk anyway.

I must be missing a step. Any ideas?

Please Log in or Create an account to join the conversation.

"Could not load liblclapp.so" 11 years 4 months ago #4190

  • phil
  • phil's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 7
  • Thank you received: 0
Oops. Added the .so to liblclapp in lib, reran the build script and it now installs. shows the controls, but crashes the moment you click on anything.

Please Log in or Create an account to join the conversation.

"Could not load liblclapp.so" 11 years 4 months ago #4191

  • phil
  • phil's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 7
  • Thank you received: 0
Hmm. So tried several emulators and build with both -14 and -8. Same result. App launches and then dies the moment you click a control. Here is logcat. Any brilliant ideas on where to start figuring this out? (Man its a mission doing this in Android).
I/ActivityManager(   65): Start proc com.pascal.lcltest for activity com.pascal.
lcltest/.LCLActivity: pid=323 uid=10036 gids={3003, 1015}
I/lclapp  (  323): Trying to load liblclapp.so
D/dalvikvm(  323): Trying to load lib /data/data/com.pascal.lcltest/lib/liblclap
p.so 0x46030268
D/dalvikvm(  323): Added shared lib /data/data/com.pascal.lcltest/lib/liblclapp.
so 0x46030268
I/lclapp  (  323): JNI_OnLoad called
I/lclapp  (  323): Reading our Activity Class
I/lclapp  (  323): JNI_OnLoad finished
I/lclapp  (  323): LCLOnCreate called by LCLActivity.onCreate
I/lclapp  (  323): [TCDWidgetSet.CreateTimer] Result=42073840
I/lclapp  (  323): [TCDWidgetSet.DestroyTimer] TimerHandle=42073840 lTimer.Nativ
eHandle=4603A0D0 lTimer.NativeGlobalReference=4603A0D0
I/lclapp  (  323): [TCDWidgetSet.CreateTimer] Result=42073840
I/lclapp  (  323): [TCDWidgetSet.DestroyTimer] TimerHandle=42073840 lTimer.Nativ
eHandle=4603A180 lTimer.NativeGlobalReference=4603A180
I/lclapp  (  323): [TCDWSCustomCheckBox.GetPreferredSize] Width=143 Height=38
I/lclapp  (  323): [TCDWSCustomCheckBox.GetPreferredSize] Width=143 Height=38
I/lclapp  (  323): [TCDWSCustomForm.ShowHide] First form layout adjustment lOldD
PI=96 lNewDPI=160 lOldFormWidth=220 lNewFormWidth=100
I/lclapp  (  323): [LCLOnConfigurationChanged] i=0 lOldDPI=160 lNewDPI=160 lOldF
ormWidth=100 lNewFormWidth=1280
D/dalvikvm(  323): GC_EXTERNAL_ALLOC freed 1014 objects / 66240 bytes in 51ms
I/ActivityManager(   65): Displayed activity com.pascal.lcltest/.LCLActivity: 28
45 ms (total 2845 ms)
I/DEBUG   (   30): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *
**
I/DEBUG   (   30): Build fingerprint: 'generic/sdk/generic/:2.2/FRF91/43546:eng/
test-keys'
I/DEBUG   (   30): pid: 323, tid: 323  >>> com.pascal.lcltest <<<
I/DEBUG   (   30): signal 11 (SIGSEGV), fault addr 614c540e
I/DEBUG   (   30):  r0 420784a0  r1 000000e6  r2 0000010b  r3 614c540f
I/DEBUG   (   30):  r4 00000052  r5 00000125  r6 00000000  r7 4208b53c
I/DEBUG   (   30):  r8 beddb914  r9 4208b530  10 4208b518  fp beddb564
I/DEBUG   (   30):  ip beddb568  sp beddb510  lr 80cef24c  pc 614c540e  cpsr 200
00030
I/DEBUG   (   30):          #00  pc 614c540e
I/DEBUG   (   30):          #01  lr 80cef24c  /data/data/com.pascal.lcltest/lib/
liblclapp.so
I/DEBUG   (   30):
I/DEBUG   (   30): code around pc:
I/DEBUG   (   30): 614c53ec ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (   30): 614c53fc ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (   30): 614c540c ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (   30): 614c541c ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (   30): 614c542c ffffffff ffffffff ffffffff ffffffff
I/DEBUG   (   30):
I/DEBUG   (   30): code around lr:
I/DEBUG   (   30): 80cef22c e590003c e51b2044 e51b1040 e51b303c
I/DEBUG   (   30): 80cef23c e593303c e5933000 e5933068 e12fff33
I/DEBUG   (   30): 80cef24c e3500000 0a00001b e51b0040 e3500000
I/DEBUG   (   30): 80cef25c ba000018 e51b003c e1a01000 e5911000
I/DEBUG   (   30): 80cef26c e59110b0 e12fff31 e51b1040 e1510000
I/DEBUG   (   30):
I/DEBUG   (   30): stack:
I/DEBUG   (   30):     beddb4d0  ffff6464
I/DEBUG   (   30):     beddb4d4  482ffd20
I/DEBUG   (   30):     beddb4d8  beddb534  [stack]
I/DEBUG   (   30):     beddb4dc  beddb4e8  [stack]
I/DEBUG   (   30):     beddb4e0  80d32504  /data/data/com.pascal.lcltest/lib/lib
lclapp.so
I/DEBUG   (   30):     beddb4e4  80d3023c  /data/data/com.pascal.lcltest/lib/lib
lclapp.so
I/DEBUG   (   30):     beddb4e8  00000040
I/DEBUG   (   30):     beddb4ec  00000004
I/DEBUG   (   30):     beddb4f0  00000000
I/DEBUG   (   30):     beddb4f4  4208b53c
I/DEBUG   (   30):     beddb4f8  beddb57c  [stack]
I/DEBUG   (   30):     beddb4fc  4829a260
I/DEBUG   (   30):     beddb500  00000000
I/DEBUG   (   30):     beddb504  00000000
I/DEBUG   (   30):     beddb508  00000004
I/DEBUG   (   30):     beddb50c  80e4d968  /data/data/com.pascal.lcltest/lib/lib
lclapp.so
I/DEBUG   (   30): #00 beddb510  00000004
I/DEBUG   (   30):     beddb514  80c7e16c  /data/data/com.pascal.lcltest/lib/lib
lclapp.so
I/DEBUG   (   30):     beddb518  48288fa0
I/DEBUG   (   30):     beddb51c  00000004
I/DEBUG   (   30):     beddb520  0000010b
I/DEBUG   (   30):     beddb524  000000e6
I/DEBUG   (   30):     beddb528  482ffd20
I/DEBUG   (   30):     beddb52c  beddb590  [stack]
I/DEBUG   (   30):     beddb530  00000000
I/DEBUG   (   30):     beddb534  00000000
I/DEBUG   (   30):     beddb538  00000000
I/DEBUG   (   30):     beddb53c  483001a0
I/DEBUG   (   30):     beddb540  beddb57c  [stack]
I/DEBUG   (   30):     beddb544  00000000
I/DEBUG   (   30):     beddb548  00000000
I/DEBUG   (   30):     beddb54c  80cd7f64  /data/data/com.pascal.lcltest/lib/lib
lclapp.so
I/DEBUG   (   30):     beddb550  4208b530
I/DEBUG   (   30):     beddb554  00000052
D/Zygote  (   32): Process 323 terminated by signal (11)
I/ActivityManager(   65): Process com.pascal.lcltest (pid 323) has died.
I/WindowManager(   65): WIN DEATH: Window{4632cac0 com.pascal.lcltest/com.pascal
.lcltest.LCLActivity paused=false}

Please Log in or Create an account to join the conversation.

"Could not load liblclapp.so" 11 years 4 months ago #4205

  • phil
  • phil's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 7
  • Thank you received: 0
I dont suppose someone can offer a link to an androidlcltest.apk that they have successfully built so I can check whether the issue is with the emulator or my building of the code?

Please Log in or Create an account to join the conversation.

"Could not load liblclapp.so" 11 years 4 months ago #4208

  • Aleksandar
  • Aleksandar's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 150
  • Thank you received: 31

scadden wrote: I dont suppose someone can offer a link to an androidlcltest.apk that they have successfully built so I can check whether the issue is with the emulator or my building of the code?


I found a complete article how to make SDL / OpenGL android application with Lazarus. It is written in Serbian, but you can use Google translate to read it in English. Google translation is not perfect, but it is readable. I suggest to check original untranslated article when it came to code in order to be sure that Google translate doesn't mess it up.

If there is a part of translation that is completely messed, send it here and I will translate it from Serbian to English. Please do not make to translate whole article. :)

You will notice that you need to make really simple java application that will load your library generated with Lazarus.

I suspect that you need to load library that you made with CT using some simple java application similar to this one.

There is complete Lazarus project as well as complete Eclipse project.

Hope this will help.

www.mycity.rs/3D-programiranje/Multiplat...moc-FPC-Lazarus.html

Please Log in or Create an account to join the conversation.

"Could not load liblclapp.so" 11 years 4 months ago #4209

  • phil
  • phil's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 7
  • Thank you received: 0
Thanks for that. The Androidlcltest compiles for many people (I have a version that works) and yes, it uses a java application to call it. It appears to be a problem with the latest SDK however. I will look at the article.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1