Re: [fpc-devel] New FPC JVM snapshot: Android support

2011-12-20 Thread Jonas Maebe
On 20 Dec 2011, at 11:23, Mattias Gaertner wrote: On Tue, 20 Dec 2011 11:12:12 +0100 Jonas Maebe wrote: Looking over the Lazarus commit log, I noticed a small error on that page: the directive for pointer arithmetic is called {$pointermath on/ off}, not {$modeswitch cs_pointermath} (corre

Re: [fpc-devel] New FPC JVM snapshot: Android support

2011-12-20 Thread Mattias Gaertner
On Tue, 20 Dec 2011 11:12:12 +0100 Jonas Maebe wrote: > > On 20 Dec 2011, at 10:05, Sven Barth wrote: > > > You also might want to read this: > > http://wiki.freepascal.org/FPC_JVM/Language#New_language_features > > Looking over the Lazarus commit log, I noticed a small error on that > page

Re: [fpc-devel] New FPC JVM snapshot: Android support

2011-12-20 Thread Jonas Maebe
On 20 Dec 2011, at 10:05, Sven Barth wrote: You also might want to read this: http://wiki.freepascal.org/FPC_JVM/Language#New_language_features Looking over the Lazarus commit log, I noticed a small error on that page: the directive for pointer arithmetic is called {$pointermath on/ off},

Re: [fpc-devel] New FPC JVM snapshot: Android support

2011-12-20 Thread Sven Barth
Am 20.12.2011 09:53, schrieb Mattias Gaertner: On Tue, 20 Dec 2011 12:51:29 +0400 Alexander Shishkin wrote: 20.12.2011 4:00, Paul Ishenin пишет: 18.12.2011 20:45, Jonas Maebe wrote: And final fields. Final methods can't be overriden in the descendants. But what are final fields for? It

Re: [fpc-devel] New FPC JVM snapshot: Android support

2011-12-20 Thread Mattias Gaertner
On Tue, 20 Dec 2011 12:51:29 +0400 Alexander Shishkin wrote: > 20.12.2011 4:00, Paul Ishenin пишет: > > 18.12.2011 20:45, Jonas Maebe wrote: > > > >> And final fields. > > > > Final methods can't be overriden in the descendants. But what are final > > fields for? > > > > > It`s something like wri

Re: [fpc-devel] New FPC JVM snapshot: Android support

2011-12-20 Thread Alexander Shishkin
20.12.2011 4:00, Paul Ishenin пишет: 18.12.2011 20:45, Jonas Maebe wrote: And final fields. Final methods can't be overriden in the descendants. But what are final fields for? Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.fre

Re: [fpc-devel] New FPC JVM snapshot: Android support

2011-12-20 Thread Sven Barth
Am 20.12.2011 01:00, schrieb Paul Ishenin: 18.12.2011 20:45, Jonas Maebe wrote: And final fields. Final methods can't be overriden in the descendants. But what are final fields for? AFAIK final fields can only be assigned once in the constructor (or in the declaration of which the code is

Re: [fpc-devel] New FPC JVM snapshot: Android support

2011-12-19 Thread Paul Ishenin
20.12.2011 10:47, Felipe Monteiro de Carvalho пишет: On Tue, Dec 20, 2011 at 1:00 AM, Paul Ishenin wrote: Final methods can't be overriden in the descendants. But what are final fields for? I think they are the way to write a constant in Java. Because they have no procedural elements, they ne

Re: [fpc-devel] New FPC JVM snapshot: Android support

2011-12-19 Thread Felipe Monteiro de Carvalho
On Tue, Dec 20, 2011 at 1:00 AM, Paul Ishenin wrote: > Final methods can't be overriden in the descendants. But what are final > fields for? I think they are the way to write a constant in Java. Because they have no procedural elements, they need to work around with class elements to do everythin

Re: [fpc-devel] New FPC JVM snapshot: Android support

2011-12-19 Thread Paul Ishenin
18.12.2011 20:45, Jonas Maebe wrote: And final fields. Final methods can't be overriden in the descendants. But what are final fields for? Best regards, Paul Ishenin ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepasca

Re: [fpc-devel] New FPC JVM snapshot: Android support

2011-12-19 Thread Paul Ishenin
20.12.2011 7:00, Mattias Gaertner пишет: On Sun, 18 Dec 2011 13:45:07 +0100 Jonas Maebe wrote: On 18 Dec 2011, at 13:22, Sven Barth wrote: [...] Yes, that was indeed a bit complicated, but this way I might be able to use the JVM compiler in Lazarus easily for the creation of Android applica

Re: [fpc-devel] New FPC JVM snapshot: Android support

2011-12-19 Thread Mattias Gaertner
On Sun, 18 Dec 2011 13:45:07 +0100 Jonas Maebe wrote: > > On 18 Dec 2011, at 13:22, Sven Barth wrote: >[...] > > Yes, that was indeed a bit complicated, but this way I might be able to use > > the JVM compiler in Lazarus easily for the creation of Android application > > (though Lazarus first n

Re: [fpc-devel] New FPC JVM snapshot: Android support

2011-12-18 Thread Maxim Ganetsky
18.12.2011 16:45, Jonas Maebe пишет: On 18 Dec 2011, at 13:22, Sven Barth wrote: On 18.12.2011 00:01, Jonas Maebe wrote: Only the makefiles relevant to the JVM target have been regenerated. If "make clean" with CPU_TARGET=jvm tries to clean the utils directory, that's an error in the main

Re: [fpc-devel] New FPC JVM snapshot: Android support

2011-12-18 Thread Jonas Maebe
On 18 Dec 2011, at 13:22, Sven Barth wrote: > On 18.12.2011 00:01, Jonas Maebe wrote: >> >> Only the makefiles relevant to the JVM target have been regenerated. If >> "make clean" with CPU_TARGET=jvm tries to clean the utils directory, that's >> an error in the main Makefile I have to fix. >

Re: [fpc-devel] New FPC JVM snapshot: Android support

2011-12-18 Thread Sven Barth
On 18.12.2011 00:01, Jonas Maebe wrote: On 17 Dec 2011, at 20:25, Sven Barth wrote: Btw: can it be that not all Makefiles have been regenerated? I issued a "make clean" with cpu and os set to jvm and android respectively and in $fpcdir/utils the process complained that jvm-android is not sup

Re: [fpc-devel] New FPC JVM snapshot: Android support

2011-12-17 Thread Jonas Maebe
On 17 Dec 2011, at 20:25, Sven Barth wrote: > Btw: can it be that not all Makefiles have been regenerated? I issued a "make > clean" with cpu and os set to jvm and android respectively and in > $fpcdir/utils the process complained that jvm-android is not supported. I > compiled fpcmake and reg

Re: [fpc-devel] New FPC JVM snapshot: Android support

2011-12-17 Thread Sven Barth
On 17.12.2011 17:51, Jonas Maebe wrote: On 17 Dec 2011, at 16:15, Sven Barth wrote: So, I have now tested your new snapshot (nice that "make" finally works in the top level ^^) and I've got the same error as before. The error occurs when I try to instantiate a custom class of mine that imple

Re: [fpc-devel] New FPC JVM snapshot: Android support

2011-12-17 Thread Jonas Maebe
On 17 Dec 2011, at 16:15, Sven Barth wrote: > So, I have now tested your new snapshot (nice that "make" finally works in > the top level ^^) and I've got the same error as before. > The error occurs when I try to instantiate a custom class of mine that > implements an (inner) interface from the

Re: [fpc-devel] New FPC JVM snapshot: Android support

2011-12-17 Thread Sven Barth
On 12.12.2011 19:50, Jonas Maebe wrote: Hi, A new FPC JVM snapshot has been put online at http://wiki.freepascal.org/FPC_JVM The main new feature is full fledged support for Android/Dalvik, including a Pascal translation of the Android SDK classes. To compile for Android rather than for the J

Re: [fpc-devel] New FPC JVM snapshot: Android support

2011-12-13 Thread ik
On Tue, Dec 13, 2011 at 02:57, Mattias Gaertner wrote: > On Mon, 12 Dec 2011 22:04:55 +0200 > ik wrote: > > > On Mon, Dec 12, 2011 at 21:58, Andrew Haines wrote: > > > > > On 12/12/11 14:55, ik wrote: > > > > I'm trying to build it from the svn repo: > > > > http://svn.freepascal.org/svn/fpc/bra

Re: [fpc-devel] New FPC JVM snapshot: Android support

2011-12-12 Thread Mattias Gaertner
On Mon, 12 Dec 2011 22:04:55 +0200 ik wrote: > On Mon, Dec 12, 2011 at 21:58, Andrew Haines wrote: > > > On 12/12/11 14:55, ik wrote: > > > I'm trying to build it from the svn repo: > > > http://svn.freepascal.org/svn/fpc/branches/jvmbackend/ . > > > I get the following error: > > > > > > -

Re: [fpc-devel] New FPC JVM snapshot: Android support

2011-12-12 Thread Sven Barth
Am 12.12.2011 21:21 schrieb "Jonas Maebe" : > > > On 12 Dec 2011, at 21:15, Sven Barth wrote: > > > I have continued to work on this as well three or four weeks ago, but I got > > stuck with a ClassDefNotFoundException when implementing a test application > > and tried to find out were the error wa

Re: [fpc-devel] New FPC JVM snapshot: Android support

2011-12-12 Thread Jonas Maebe
On 12 Dec 2011, at 21:15, Sven Barth wrote: > I have continued to work on this as well three or four weeks ago, but I got > stuck with a ClassDefNotFoundException when implementing a test application > and tried to find out were the error was. Most FPC code will depend on the RTL, so make sure t

Re: [fpc-devel] New FPC JVM snapshot: Android support

2011-12-12 Thread ik
On Mon, Dec 12, 2011 at 22:12, Jonas Maebe wrote: > > On 12 Dec 2011, at 21:04, ik wrote: > > > On Mon, Dec 12, 2011 at 21:58, Andrew Haines wrote: > > > >> On 12/12/11 14:55, ik wrote: > >>> make[1]: -iVSPTPSOTO: Command not found > >> > >> I've seen these messages before when fpc or ppc386/ppcx

Re: [fpc-devel] New FPC JVM snapshot: Android support

2011-12-12 Thread Sven Barth
Am 12.12.2011 19:50 schrieb "Jonas Maebe" : > The main new feature is full fledged support for Android/Dalvik, including a Pascal translation of the Android SDK classes. To compile for Android rather than for the Java VM, simply use the -Tandroid command line parameter. The compiler will still gene

Re: [fpc-devel] New FPC JVM snapshot: Android support

2011-12-12 Thread Jonas Maebe
On 12 Dec 2011, at 21:04, ik wrote: > On Mon, Dec 12, 2011 at 21:58, Andrew Haines wrote: > >> On 12/12/11 14:55, ik wrote: >>> make[1]: -iVSPTPSOTO: Command not found >> >> I've seen these messages before when fpc or ppc386/ppcx64 is not in the >> $PATH >> > > $ whereis ppcx64 > ppcx64: /us

Re: [fpc-devel] New FPC JVM snapshot: Android support

2011-12-12 Thread ik
On Mon, Dec 12, 2011 at 21:58, Andrew Haines wrote: > On 12/12/11 14:55, ik wrote: > > I'm trying to build it from the svn repo: > > http://svn.freepascal.org/svn/fpc/branches/jvmbackend/ . > > I get the following error: > > > > - > > $ make CROSSOPT="-O2 -g" CPU_TARGET=jv

Re: [fpc-devel] New FPC JVM snapshot: Android support

2011-12-12 Thread Andrew Haines
On 12/12/11 14:55, ik wrote: > I'm trying to build it from the svn repo: > http://svn.freepascal.org/svn/fpc/branches/jvmbackend/ . > I get the following error: > > - > $ make CROSSOPT="-O2 -g" CPU_TARGET=jvm OS_TARGET=java all > make: -iVSPTPSOTO: Command not found > make:

Re: [fpc-devel] New FPC JVM snapshot: Android support

2011-12-12 Thread ik
I'm trying to build it from the svn repo: http://svn.freepascal.org/svn/fpc/branches/jvmbackend/ . I get the following error: - $ make CROSSOPT="-O2 -g" CPU_TARGET=jvm OS_TARGET=java all make: -iVSPTPSOTO: Command not found make: -iSP: Command not found make: -iTP: Command

Re: [fpc-devel] New FPC JVM snapshot: Android support

2011-12-12 Thread Andrew Haines
On 12/12/11 13:50, Jonas Maebe wrote: > Hi, > > A new FPC JVM snapshot has been put online at > http://wiki.freepascal.org/FPC_JVM > > The main new feature is full fledged support for Android/Dalvik, including a > Pascal translation of the Android SDK classes. To compile for Android rather > t

[fpc-devel] New FPC JVM snapshot: Android support

2011-12-12 Thread Jonas Maebe
Hi, A new FPC JVM snapshot has been put online at http://wiki.freepascal.org/FPC_JVM The main new feature is full fledged support for Android/Dalvik, including a Pascal translation of the Android SDK classes. To compile for Android rather than for the Java VM, simply use the -Tandroid command l