Re: [Lazarus] Android LCL example with 2.7.1

2013-03-08 Thread leledumbo
Lazarus 1.1 r40503 FPC 2.7.1 r23704, both my app and androidlcl example crashes with this: I/lclapp ( 738): [FORMS.PP] ExceptionOccurred I/lclapp ( 738): Sender=EIntOverflow I/lclapp ( 738): Exception=Arithmetic overflow I/lclapp ( 738): Stack trace: I/lclapp ( 738): $46AC306C

Re: [Lazarus] Android LCL example with 2.7.1

2013-03-07 Thread Sven Barth
Am 07.03.2013 07:25, schrieb Mattias Gaertner: On Thu, 7 Mar 2013 07:07:07 +0100 Sven Barth pascaldra...@googlemail.com wrote: Am 06.03.2013 23:53 schrieb Mattias Gaertner nc-gaert...@netcologne.de: On Wed, 06 Mar 2013 15:48:43 +0100 Sven Barth pascaldra...@googlemail.com wrote: Hello

Re: [Lazarus] Android LCL example with 2.7.1

2013-03-07 Thread Sven Barth
Am 06.03.2013 23:28, schrieb leledumbo: Nice news Sven, so now I can drop the hacked 2.5.1? Exactly. Just follow the instructions at http://wiki.freepascal.org/Android to generate a 2.7.1 compiler for arm-android (of course with a bit of /dev/brain0 applied ;) ). Also possible is

Re: [Lazarus] Android LCL example with 2.7.1

2013-03-07 Thread Samuel Herzog
Hello, any estimate when the Lazarus daily snapshots will contain fpc 2.7.1. Regards, Sam Von: Sven Barth pascaldra...@googlemail.com An: lazarus@lists.lazarus.freepascal.org Gesendet: 9:35 Donnerstag, 7.März 2013 Betreff: Re: [Lazarus] Android LCL example

Re: [Lazarus] Android LCL example with 2.7.1

2013-03-07 Thread Felipe Monteiro de Carvalho
But why is -CpARMV6 a problem? It is correct. The default is ARMv4 which is not supported by Android, so we change it to ARMv6. Looks like a compiler bug or change in the code generator? Also, was the default changed? More details should appear by finding the exact assembler instruction which

Re: [Lazarus] Android LCL example with 2.7.1

2013-03-07 Thread Dejan Boras
Think it's a problem because the android emu up to android 2.3 (api level 9) uses ARMv5, not ARMv6. On Thu, Mar 7, 2013 at 12:33 PM, Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: But why is -CpARMV6 a problem? It is correct. The default is ARMv4 which is not supported

Re: [Lazarus] Android LCL example with 2.7.1

2013-03-07 Thread Felipe Monteiro de Carvalho
On Thu, Mar 7, 2013 at 9:05 AM, Dejan Boras de.jean.7...@gmail.com wrote: Think it's a problem because the android emu up to android 2.3 (api level 9) uses ARMv5, not ARMv6. ARMv5 and v6 are nearly identical and I´ve never seen a real device that uses ARMv5, all low end use v6. Also I tested

Re: [Lazarus] Android LCL example with 2.7.1

2013-03-07 Thread Sven Barth
Am 07.03.2013 12:33, schrieb Felipe Monteiro de Carvalho: But why is -CpARMV6 a problem? It is correct. The default is ARMv4 which is not supported by Android, so we change it to ARMv6. Looks like a compiler bug or change in the code generator? Also, was the default changed? The default for

[Lazarus] Android LCL example with 2.7.1

2013-03-06 Thread Sven Barth
Hello together! I've managed to run the Android LCL example compiled with the arm-android port of 2.7.1 on the Android emulator (API version 8) with default settings (no -Cparmv6). What is important though is that in the lcl.lpk the following code in the Conditionals is removed (line 49)

Re: [Lazarus] Android LCL example with 2.7.1

2013-03-06 Thread leledumbo
Nice news Sven, so now I can drop the hacked 2.5.1? -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Android-LCL-example-with-2-7-1-tp4029697p4029702.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. --

Re: [Lazarus] Android LCL example with 2.7.1

2013-03-06 Thread Mattias Gaertner
On Wed, 06 Mar 2013 15:48:43 +0100 Sven Barth pascaldra...@googlemail.com wrote: Hello together! I've managed to run the Android LCL example compiled with the arm-android port of 2.7.1 on the Android emulator (API version 8) with default settings (no -Cparmv6). What is important though is

Re: [Lazarus] Android LCL example with 2.7.1

2013-03-06 Thread Sven Barth
Am 06.03.2013 23:53 schrieb Mattias Gaertner nc-gaert...@netcologne.de: On Wed, 06 Mar 2013 15:48:43 +0100 Sven Barth pascaldra...@googlemail.com wrote: Hello together! I've managed to run the Android LCL example compiled with the arm-android port of 2.7.1 on the Android emulator (API

Re: [Lazarus] Android LCL example with 2.7.1

2013-03-06 Thread Mattias Gaertner
On Thu, 7 Mar 2013 07:07:07 +0100 Sven Barth pascaldra...@googlemail.com wrote: Am 06.03.2013 23:53 schrieb Mattias Gaertner nc-gaert...@netcologne.de: On Wed, 06 Mar 2013 15:48:43 +0100 Sven Barth pascaldra...@googlemail.com wrote: Hello together! I've managed to run the