Re: [fpc-pascal] Re: Some questions regarding jvmbackend port

2012-01-08 Thread Jonas Maebe
On 09 Jan 2012, at 00:12, leledumbo wrote: > Since the title is still valid, I'd like ask about the usage of java > collections in generic style. For instance java.util.ArrayList. How can I > construct JUArrayList with Integer constraint as in Java? > > e.g.: ArrayList a = new ArrayList; Java-s

[fpc-pascal] Re: Some questions regarding jvmbackend port

2012-01-08 Thread leledumbo
Since the title is still valid, I'd like ask about the usage of java collections in generic style. For instance java.util.ArrayList. How can I construct JUArrayList with Integer constraint as in Java? e.g.: ArrayList a = new ArrayList; -- View this message in context: http://free-pascal-general

Re: [fpc-pascal] Some questions regarding jvmbackend port

2012-01-08 Thread Jonas Maebe
On 08 Jan 2012, at 21:26, Sven Barth wrote: > On 08.01.2012 21:03, leledumbo wrote: >> 1. The wiki instruction >> >> The first paragraph says: >> >> "Building the JVM compiler, RTL and utilities is currently not yet supported >> using the top-level makefile" >> >> yet in "Building the compiler

[fpc-pascal] Re: Some questions regarding jvmbackend port

2012-01-08 Thread leledumbo
> Pass "-XP " (without the quotes, but with the space after the parameter) to the compiler, then it will not prepend "jvm-java-" to the java binary. You might also want to check your fpc.cfg as there it might add the cpu-os-prefix unconditionally if it detects a crosscompilation (check for #IFD

Re: [fpc-pascal] Some questions regarding jvmbackend port

2012-01-08 Thread Sven Barth
On 08.01.2012 21:03, leledumbo wrote: I finally managed to compile the latest revision of jvmbackend port, however I've got some problems during compilation and execution: 1. The wiki instruction The first paragraph says: "Building the JVM compiler, RTL and utilities is currently not yet suppo

[fpc-pascal] Re: Some questions regarding jvmbackend port

2012-01-08 Thread leledumbo
Additional info: assembling the resulting .j manually and execute the resulting .class works though -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Some-questions-regarding-jvmbackend-port-tp5129886p5129888.html Sent from the Free Pascal - General mailing list ar

[fpc-pascal] Some questions regarding jvmbackend port

2012-01-08 Thread leledumbo
I finally managed to compile the latest revision of jvmbackend port, however I've got some problems during compilation and execution: 1. The wiki instruction The first paragraph says: "Building the JVM compiler, RTL and utilities is currently not yet supported using the top-level makefile" yet

Re: [fpc-pascal] FPCUnit without Lazarus

2012-01-08 Thread Luciano de Souza
Michael, In a exemple folder ConsoleRunner inside FPC, I found something like TestRunner.pp. It's something like the ConsoleRunner of Lazarus Components. I added my unit in this application and after compiling, I could run my tests. I am really entusiastic with FPCUnit. It's really easy to c

Re: [fpc-pascal] FPCUnit without Lazarus

2012-01-08 Thread Sven Barth
On 08.01.2012 16:31, Michael Van Canneyt wrote: Follow-up: I moved consoletestrunner unit to fcl. Revision 20010. That was quite some time you needed there: 8 minutes. :P Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org ht

Re: [fpc-pascal] FPCUnit without Lazarus

2012-01-08 Thread Michael Van Canneyt
Follow-up: I moved consoletestrunner unit to fcl. Revision 20010. Michael. On Sun, 8 Jan 2012, Michael Van Canneyt wrote: Hello, After your previous mails about this, I have discussed this with Vincent Snijders, the author of the console runner class. The console runner class of the LCL

Re: [fpc-pascal] FPCUnit without Lazarus

2012-01-08 Thread Michael Van Canneyt
Hello, After your previous mails about this, I have discussed this with Vincent Snijders, the author of the console runner class. The console runner class of the LCL does not really have any dependencies on the LCL, only on FCL. So, it will be moved to the FCL, Vincent has agreed to this. Yo

Re: [fpc-pascal] FPCUnit without Lazarus

2012-01-08 Thread Sven Barth
On 08.01.2012 13:49, Rainer Stratmann wrote: Am Sunday 08 January 2012 13:35:49 schrieb Sven Barth: On 08.01.2012 13:06, Rainer Stratmann wrote: Am Sunday 08 January 2012 02:17:29 schrieb Luciano de Souza: I have downloaded a Lazarus deb package compatible with FPC 2.4.4. I try to install with

Re: [fpc-pascal] FPCUnit without Lazarus

2012-01-08 Thread Rainer Stratmann
Am Sunday 08 January 2012 13:35:49 schrieb Sven Barth: > On 08.01.2012 13:06, Rainer Stratmann wrote: > > Am Sunday 08 January 2012 02:17:29 schrieb Luciano de Souza: > >> I have downloaded a Lazarus deb package compatible with FPC 2.4.4. I try > >> to install with: "sudo dpkg -i *". It fails, so:

Re: [fpc-pascal] FPCUnit without Lazarus

2012-01-08 Thread Sven Barth
On 08.01.2012 13:06, Rainer Stratmann wrote: Am Sunday 08 January 2012 02:17:29 schrieb Luciano de Souza: I have downloaded a Lazarus deb package compatible with FPC 2.4.4. I try to install with: "sudo dpkg -i *". It fails, so: "sudo apt-get install -f". ... ... ... This was already s

Re: [fpc-pascal] Re: FPCUnit without Lazarus

2012-01-08 Thread Sven Barth
The unit consoletestrunner from $lazarusdir/components/fpcunit/console might still be useful to you, because it allows writting the testresults to the console. The unit has NO dependencies to the LCL, so you can simply copy it and compile it along with your tests. Normally you use it like this

Re: [fpc-pascal] Re: FPCUnit without Lazarus

2012-01-08 Thread Marco van de Voort
In our previous episode, Luciano de Souza said: > Now, I understand. FPCUnit and FPCRegistry do not have LCL dependences. > What depends on LCL is the runner called Console Runner. This name make > me confused! In package/fcl-fpcunit/src/demo/consolerunner there is a runner that is not LCL depe

Re: [fpc-pascal] FPCUnit without Lazarus

2012-01-08 Thread Luciano de Souza
Perhaps, the issue has no a happy end for all, but for me, that don't use Lazarus and I won't have to do it due FPCUnit, everything is fortunatelly OK. It would be unconfortable to install many megabytes to use almost nothing. Now, I am happy with Freepascal. In the future, it's not impossible

Re: [fpc-pascal] Re: FPCUnit without Lazarus

2012-01-08 Thread Luciano de Souza
Now, I understand. FPCUnit and FPCRegistry do not have LCL dependences. What depends on LCL is the runner called Console Runner. This name make me confused! I ahve alredy read the documentation, but I could not understand. Perhaps, perhaps my weak english... Well, the fact is that everything i

Re: [fpc-pascal] FPCUnit without Lazarus

2012-01-08 Thread Rainer Stratmann
Am Sunday 08 January 2012 02:17:29 schrieb Luciano de Souza: > I have downloaded a Lazarus deb package compatible with FPC 2.4.4. I try > to install with: "sudo dpkg -i *". It fails, so: "sudo apt-get install -f". > ... > ... > ... This was already some time discussed here and in my opinion thi

[fpc-pascal] Re: Supported FPC revision to compile jvmbackend port

2012-01-08 Thread leledumbo
> The same as always: the latest release. As of January 1st, 2012, that means 2.6.0 OK, I finally have a reason to use stable release... -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Supported-FPC-revision-to-compile-jvmbackend-port-tp5127717p5129054.html Sent