Recent

Author Topic: we should maybe bundle/concentrate our work? laztoapk and android module wizard.  (Read 29387 times)

truetom

  • Jr. Member
  • **
  • Posts: 72
    • http://sourceforge.net/projects/laz4android/
Hello!

I look at the logcat,It's crashes code:
I/DEBUG   ( 1055): pid: 1562, tid: 1562  >>> com.pascal.lcltest <<<

I/DEBUG   ( 1055): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 614c540e

I/DEBUG   ( 1055):  r0 4669e4a0  r1 0000006c  r2 000000d4  r3 614c540f

I/DEBUG   ( 1055):  r4 00000041  r5 00000089  r6 bead5498  r7 4428c550

I/DEBUG   ( 1055):  r8 bead53ec  r9 4428c544  10 0000ac30  fp bead5034

I/DEBUG   ( 1055):  ip bead5038  sp bead4fe0  lr 809c7850  pc 614c540e  cpsr 20000030

I/DEBUG   ( 1055):  d0  418000003f800000  d1  0000000000000000

I/DEBUG   ( 1055):  d2  3f8000003f800000  d3  410000003f800000

I/DEBUG   ( 1055):  d4  4080000000000000  d5  4160000049b00000

I/DEBUG   ( 1055):  d6  40800000c1100000  d7  000000003f800000

I/DEBUG   ( 1055):  d8  0000000000000000  d9  0000000000000000

I/DEBUG   ( 1055):  d10 0000000000000000  d11 0000000000000000

I/DEBUG   ( 1055):  d12 0000000000000000  d13 0000000000000000

I/DEBUG   ( 1055):  d14 0000000000000000  d15 0000000000000000

I/DEBUG   ( 1055):  d16 000000010028ad88  d17 c053000000000000

I/DEBUG   ( 1055):  d18 0000000000000000  d19 0000000000000000

I/DEBUG   ( 1055):  d20 3ff0000000000000  d21 8000000000000000

I/DEBUG   ( 1055):  d22 0000000000000000  d23 00ff000000000000

I/DEBUG   ( 1055):  d24 00ff000000000000  d25 00ff000000000000

I/DEBUG   ( 1055):  d26 0001000100010001  d27 0001000100010001

I/DEBUG   ( 1055):  d28 0001000100010001  d29 3ff0000000000000

I/DEBUG   ( 1055):  d30 0000000000000000  d31 3ff0000000000000

I/DEBUG   ( 1055):  scr 60000012

I/DEBUG   ( 1055):

I/DEBUG   ( 1055):          #00  pc 614c540e 

I/DEBUG   ( 1055):          #01  lr 809c7850  /data/data/com.pascal.lcltest/lib/liblclapp.so

I/DEBUG   ( 1055):

I/DEBUG   ( 1055): code around pc:

I/DEBUG   ( 1055): 614c53ec ffffffff ffffffff ffffffff ffffffff

I/DEBUG   ( 1055): 614c53fc ffffffff ffffffff ffffffff ffffffff

I/DEBUG   ( 1055): 614c540c ffffffff ffffffff ffffffff ffffffff

I/DEBUG   ( 1055): 614c541c ffffffff ffffffff ffffffff ffffffff

I/DEBUG   ( 1055): 614c542c ffffffff ffffffff ffffffff ffffffff

I/DEBUG   ( 1055):

I/DEBUG   ( 1055): code around lr:

I/DEBUG   ( 1055): 809c7830 e590003c e51b2044 e51b1040 e51b303c

I/DEBUG   ( 1055): 809c7840 e593303c e5933000 e5933068 e12fff33

I/DEBUG   ( 1055): 809c7850 e3500000 0a00001b e51b0040 e3500000

I/DEBUG   ( 1055): 809c7860 ba000018 e51b003c e1a01000 e5911000

I/DEBUG   ( 1055): 809c7870 e59110b0 e12fff31 e51b1040 e1510000

I/DEBUG   ( 1055):

I/DEBUG   ( 1055): stack:

I/DEBUG   ( 1055):     bead4fa0  ffff6464 

I/DEBUG   ( 1055):     bead4fa4  46726d20 

I/DEBUG   ( 1055):     bead4fa8  bead5004 

I/DEBUG   ( 1055):     bead4fac  bead4fb8 

I/DEBUG   ( 1055):     bead4fb0  80a15798  /data/data/com.pascal.lcltest/lib/liblclapp.so

I/DEBUG   ( 1055):     bead4fb4  80a13448  /data/data/com.pascal.lcltest/lib/liblclapp.so

I/DEBUG   ( 1055):     bead4fb8  00000040 

I/DEBUG   ( 1055):     bead4fbc  00000004 

I/DEBUG   ( 1055):     bead4fc0  bead5498 

I/DEBUG   ( 1055):     bead4fc4  4428c550 

I/DEBUG   ( 1055):     bead4fc8  bead504c 

I/DEBUG   ( 1055):     bead4fcc  466c1260 

I/DEBUG   ( 1055):     bead4fd0  00000000 

I/DEBUG   ( 1055):     bead4fd4  00000000 

I/DEBUG   ( 1055):     bead4fd8  466b161c 

I/DEBUG   ( 1055):     bead4fdc  80bf5634  /data/data/com.pascal.lcltest/lib/liblclapp.so

I/DEBUG   ( 1055): #00 bead4fe0  00000004 

I/DEBUG   ( 1055):     bead4fe4  80906bc4  /data/data/com.pascal.lcltest/lib/liblclapp.so

I/DEBUG   ( 1055):     bead4fe8  466affa0 

I/DEBUG   ( 1055):     bead4fec  00000004 

I/DEBUG   ( 1055):     bead4ff0  000000d4 

I/DEBUG   ( 1055):     bead4ff4  0000006c 

I/DEBUG   ( 1055):     bead4ff8  46726d20 

I/DEBUG   ( 1055):     bead4ffc  bead5060 

I/DEBUG   ( 1055):     bead5000  00000000 

I/DEBUG   ( 1055):     bead5004  00000000 

I/DEBUG   ( 1055):     bead5008  00000000 

I/DEBUG   ( 1055):     bead500c  467271a0 

I/DEBUG   ( 1055):     bead5010  bead504c 

I/DEBUG   ( 1055):     bead5014  00000000 

I/DEBUG   ( 1055):     bead5018  00000000 

I/DEBUG   ( 1055):     bead501c  8099901c  /data/data/com.pascal.lcltest/lib/liblclapp.so

I/DEBUG   ( 1055):     bead5020  00000000 

I/DEBUG   ( 1055):     bead5024  00000041 

I/BootReceiver( 1088): Copying /data/tombstones/tombstone_06 to DropBox (SYSTEM_TOMBSTONE)

E/InputDispatcher( 1088): channel '40727358 com.pascal.lcltest/com.pascal.lcltest.LCLActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x8

E/InputDispatcher( 1088): channel '40727358 com.pascal.lcltest/com.pascal.lcltest.LCLActivity (server)' ~ Channel is unrecoverably broken and will be disposed!

I/WindowManager( 1088): WIN DEATH: Window{40727358 com.pascal.lcltest/com.pascal.lcltest.LCLActivity paused=false}

I/ActivityManager( 1088): Process com.pascal.lcltest (pid 1562) has died.

D/Zygote  ( 1057): Process 1562 terminated by signal (11)

Can you help me?

Thanks and best regards!

laz4android : a Lazarus for Android Package.
http://sourceforge.net/projects/laz4android/

DelphiFreak

  • Full Member
  • ***
  • Posts: 246
    • Fresh sound.
Hi,

I have no idea. Sorry. I guess there is either something wrong in newer fpc version or some compiler options need to be changed.

I think the only way to find out is to go back to an older fpc revision (by svn) and then try again. This could give a hint what causes this trouble.

Regards,
Sam
Linux Mint 19.1, Lazarus 2.0, Windows 7&10, Delphi 7, Delphi 10.3 Rio

DelphiFreak

  • Full Member
  • ***
  • Posts: 246
    • Fresh sound.
Hi,
I spent some hour's to find the problem but with no success.

The only thing I found out.

If I take the fpc folder from laz4android 41139, then it works. If I take the fpc folder from laz4android 43585 then it does not work.

Sam
Linux Mint 19.1, Lazarus 2.0, Windows 7&10, Delphi 7, Delphi 10.3 Rio

DelphiFreak

  • Full Member
  • ***
  • Posts: 246
    • Fresh sound.
I have opened a bug report in the bugracker.


http://bugs.freepascal.org/view.php?id=25686
Linux Mint 19.1, Lazarus 2.0, Windows 7&10, Delphi 7, Delphi 10.3 Rio

DelphiFreak

  • Full Member
  • ***
  • Posts: 246
    • Fresh sound.
I have updated my setup and tutorial.

http://sourceforge.net/projects/laztoapk/files/?source=navbar

But I had to go back to laz4android 41139  because I could not make apps with laz4android 43585.

Linux Mint 19.1, Lazarus 2.0, Windows 7&10, Delphi 7, Delphi 10.3 Rio

DelphiFreak

  • Full Member
  • ***
  • Posts: 246
    • Fresh sound.
Hello truetom,

leslie found the problem.

His solution works. See here:
http://www.pilotlogic.com/sitejoom/index.php/forum/android/2708-app-launches-and-then-dies-the-moment-you-click?start=10#5349

I will try to send a svn-patch to author of the customdrawn-library.

Regards,
Sam
Linux Mint 19.1, Lazarus 2.0, Windows 7&10, Delphi 7, Delphi 10.3 Rio

truetom

  • Jr. Member
  • **
  • Posts: 72
    • http://sourceforge.net/projects/laz4android/
Hello DelphiFreak!

Thank you and leslie fixed this problem!

I will fixed my laz4android-43585 and re-upload to the sf.net.

Thanks and best regards!
laz4android : a Lazarus for Android Package.
http://sourceforge.net/projects/laz4android/

truetom

  • Jr. Member
  • **
  • Posts: 72
    • http://sourceforge.net/projects/laz4android/
Hello,
I have upload new laz4android1.3-43585-FPC2.7.1-New.7z and laz4android1.3-43585-FPC2.7.1-New.exe to the sf.net.
link:http://sourceforge.net/projects/laz4android/files/?source=navbar

Thanks and best regards!
laz4android : a Lazarus for Android Package.
http://sourceforge.net/projects/laz4android/

Kamau

  • Jr. Member
  • **
  • Posts: 67
  • Old Delphi programmer
truetom,

Thank you for all your work and effort with laztoapk and laz4android.

I downloaded the most current laztoapk and when installing I let the installer download sdk, ndk and laz4android.

The laz4android is compiled and installed. The sdk,zip and ndk.zip are not unzipped, but I did that myself just in C:\laztoapk\donwloads\sdk and C:\laztoakp\downloads\ndk

I did this on a fresh installation of XP-Pro. I also installed Java jdk-7u25-windows-i586.

Issue #1

Now I would have expected that this would have satisfied the laztoapk, but obviously there are some files missing because I get the error message:

No build-tools found in SDK-path <C:\laztoapk\downloads\sdk\android-sdk-windows\build-toold\> Did you install the android SDK and setup the correct SDK-path?

SDK Manager reports that SDK Tools are installed.

In the laztoapk screen the two drop down boxes on the left report:

"No NDK platfom found"

"No SDK Build-Tools found"

JDK path seems to be in order.

What am I overlooking here?

Issue #2

When starting the IDE and writing a very simple program in laz4android and trying to compile it for "Target OS = android" and "Target CPU family = arm" I get the following error when compiling:

gtk2\gtk2int.pas(36,6) Fatal: Can't find unit XLib used by Gtk2Int

Your advice would be highly appreciated.

Regards

Kamau