[fpc-pascal] Re: Supported FPC revision to compile jvmbackend port
> 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 from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FPCUnit without Lazarus
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 this is the bottleneck of working with freepascal on linux. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Re: FPCUnit without Lazarus
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 is now OK. When I read the documentation I didn't understand the runner was a separated executable: an application built specially to test my program. I thought all the code needed to test my program would be in my test unit. I was able to create, to register the tests, but not to run then. I was searching something to run in FPCUnit and FPCRegister. All the code required to run my test would be in the initialization of my test unit. When compiling my application I would do: program MyApp; uses MyUnit, {$ifdef tst} MyUnitTest; {$endif} And I call: fpc MyApp.pas -dtest. According to this idea, the runner would be my own application called with certain commandline options. Yes, in my first reading, I do not understand it. Now I can see the adopted model is best. I don't need to mix the code of my application with test code. "{$ifdef ...}" is not required. In brief, all my problem was that I could understand that I have a runner and I will need to compile it each time I create a new project. Solved my interpretation issues, now I am coming back to the tests. Thank you very much for the attention! Regards, Luciano Em 08-01-2012 00:14, leledumbo escreveu: FPCUnit is part of FCL and it doesn't require LCL. Of course if you install via packages under Lazarus components folder, it would depend on Lazarus parts (e.g, LCL), esp. for the runner. Open fpc/packages/fcl-fpcunit/src/demo for a pure FPC example. Or http://free-pascal-general.1045716.n5.nabble.com/file/n5128730/fpcunit.pdf here for the documentation. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/FPCUnit-without-Lazarus-tp5128696p5128730.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FPCUnit without Lazarus
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 that I need FileUtils and Clipboard. But When it comes, I will think about. Until there, FPC is complete for me. Em 08-01-2012 10:06, Rainer Stratmann escreveu: 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 this is the bottleneck of working with freepascal on linux. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Re: FPCUnit without Lazarus
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 dependent? If you go there and do a fpc -Fu../../exampletests testrunner it will compile. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Re: FPCUnit without Lazarus
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 (I have not tested it and thus I'm just guessing based on the unit's code): program mytestrunner; uses consoletestrunner, // this is the unit copied from Lazarus testunit1, // these are your test units testunit2; begin with TTestRunner.Create do try Run; finally Free; end; end; Your tests then register themselves to the testsuite in the initialization section of their unit. Regards, Sven On 08.01.2012 13:13, Luciano de Souza wrote: 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 is now OK. When I read the documentation I didn't understand the runner was a separated executable: an application built specially to test my program. I thought all the code needed to test my program would be in my test unit. I was able to create, to register the tests, but not to run then. I was searching something to run in FPCUnit and FPCRegister. All the code required to run my test would be in the initialization of my test unit. When compiling my application I would do: program MyApp; uses MyUnit, {$ifdef tst} MyUnitTest; {$endif} And I call: fpc MyApp.pas -dtest. According to this idea, the runner would be my own application called with certain commandline options. Yes, in my first reading, I do not understand it. Now I can see the adopted model is best. I don't need to mix the code of my application with test code. "{$ifdef ...}" is not required. In brief, all my problem was that I could understand that I have a runner and I will need to compile it each time I create a new project. Solved my interpretation issues, now I am coming back to the tests. Thank you very much for the attention! Regards, Luciano Em 08-01-2012 00:14, leledumbo escreveu: FPCUnit is part of FCL and it doesn't require LCL. Of course if you install via packages under Lazarus components folder, it would depend on Lazarus parts (e.g, LCL), esp. for the runner. Open fpc/packages/fcl-fpcunit/src/demo for a pure FPC example. Or http://free-pascal-general.1045716.n5.nabble.com/file/n5128730/fpcunit.pdf here for the documentation. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/FPCUnit-without-Lazarus-tp5128696p5128730.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FPCUnit without Lazarus
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 some time discussed here and in my opinion this is the bottleneck of working with freepascal on linux. This is why I don't use the packages provided by my distribution (though I just noticed that ArchLinux already provides 2.6.0 :) ), but install them manually either by the *.tar installer provided with each release or through "make install" if I'm working with a dev version. And I also have a nice system to switch between versions easily ;) Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FPCUnit without Lazarus
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: "sudo apt-get install > >> -f". > >> > >> ... > >> > >> ... > >> > >> ... > > > > This was already some time discussed here and in my opinion this is the > > bottleneck of working with freepascal on linux. > > This is why I don't use the packages provided by my distribution (though > I just noticed that ArchLinux already provides 2.6.0 :) ), but install > them manually either by the *.tar installer provided with each release > or through "make install" if I'm working with a dev version. And I also > have a nice system to switch between versions easily ;) > > Regards, > Sven > > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal I tried ArchLinux, but stopped when this distribution wants to be configured manually. User-friendlyness is also the bottleneck of Linux. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FPCUnit without Lazarus
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: "sudo dpkg -i *". It fails, so: "sudo apt-get install -f". ... ... ... This was already some time discussed here and in my opinion this is the bottleneck of working with freepascal on linux. This is why I don't use the packages provided by my distribution (though I just noticed that ArchLinux already provides 2.6.0 :) ), but install them manually either by the *.tar installer provided with each release or through "make install" if I'm working with a dev version. And I also have a nice system to switch between versions easily ;) Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal I tried ArchLinux, but stopped when this distribution wants to be configured manually. User-friendlyness is also the bottleneck of Linux. I personally prefer this "manual configuration" to that provided by distros like Ubuntu and such. My nearly 7 year old laptop runs much faster with Arch than it did with Kubuntu (which was my first Linux distro I fully used) as only those applications, services etc are running that I truly need (and I don't use any desktop manager, only a slim window manager ^^) Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FPCUnit without Lazarus
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. You must simply give me some time to actually do this move. So please, patience, it will be done, and you will not need Lazarus. Michael. On Sat, 7 Jan 2012, Luciano de Souza wrote: Hello listers, I have really appreciated the organized tests that FPCUnit allows. It's really a very good feature, but for me, it hasn't been to use it. For some while, I have writen an e-mail saying I could not run some example. The problem was that I don't use Lazarus, but only FPC. I am blind, so for me LCL doesn't make sense. In spite of that, I had to instal Lazarus because FPCUnit has a LCL dependence. I would like to use FPCUnit without install Lazarus, but perhaps it was not possible. If I bring FPCUnits modules to my folder, they require other modules and the other modules seem to require more modules. Without Lazarus installed, I could not run it. The problem has become more severe becouse my Windows has failed. As I have Ubuntu 10.10, I decided to install everything here. FPC was installed, but Lazarus... I have problems of broken packages. I try to install with apt-get, but the repository has an old version only compatible with FPC 2.4.0. 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". Well, I could not install it. But, I would really prefer not to install Lazarus. So I want an advice. As FPCUnit has no visual components, I could not understand why LCL units are required. But the important is: How to run FPCUnit without Lazarus? Is it possible? Regards, Luciano ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FPCUnit without Lazarus
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 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. You must simply give me some time to actually do this move. So please, patience, it will be done, and you will not need Lazarus. Michael. On Sat, 7 Jan 2012, Luciano de Souza wrote: Hello listers, I have really appreciated the organized tests that FPCUnit allows. It's really a very good feature, but for me, it hasn't been to use it. For some while, I have writen an e-mail saying I could not run some example. The problem was that I don't use Lazarus, but only FPC. I am blind, so for me LCL doesn't make sense. In spite of that, I had to instal Lazarus because FPCUnit has a LCL dependence. I would like to use FPCUnit without install Lazarus, but perhaps it was not possible. If I bring FPCUnits modules to my folder, they require other modules and the other modules seem to require more modules. Without Lazarus installed, I could not run it. The problem has become more severe becouse my Windows has failed. As I have Ubuntu 10.10, I decided to install everything here. FPC was installed, but Lazarus... I have problems of broken packages. I try to install with apt-get, but the repository has an old version only compatible with FPC 2.4.0. 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". Well, I could not install it. But, I would really prefer not to install Lazarus. So I want an advice. As FPCUnit has no visual components, I could not understand why LCL units are required. But the important is: How to run FPCUnit without Lazarus? Is it possible? Regards, Luciano ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FPCUnit without Lazarus
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 http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FPCUnit without Lazarus
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 create my tests. But being everything in FPC, it would be better, becouse after installling FPC, the feature is ready to use. I am using the application runner, not the unit ConsoleRunner, but, it's enough to run everything. Thank you for the attention and congratulations for your work. Regards, Luciano Em 08-01-2012 13:31, Michael Van Canneyt escreveu: 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 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. You must simply give me some time to actually do this move. So please, patience, it will be done, and you will not need Lazarus. Michael. On Sat, 7 Jan 2012, Luciano de Souza wrote: Hello listers, I have really appreciated the organized tests that FPCUnit allows. It's really a very good feature, but for me, it hasn't been to use it. For some while, I have writen an e-mail saying I could not run some example. The problem was that I don't use Lazarus, but only FPC. I am blind, so for me LCL doesn't make sense. In spite of that, I had to instal Lazarus because FPCUnit has a LCL dependence. I would like to use FPCUnit without install Lazarus, but perhaps it was not possible. If I bring FPCUnits modules to my folder, they require other modules and the other modules seem to require more modules. Without Lazarus installed, I could not run it. The problem has become more severe becouse my Windows has failed. As I have Ubuntu 10.10, I decided to install everything here. FPC was installed, but Lazarus... I have problems of broken packages. I try to install with apt-get, but the repository has an old version only compatible with FPC 2.4.0. 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". Well, I could not install it. But, I would really prefer not to install Lazarus. So I want an advice. As FPCUnit has no visual components, I could not understand why LCL units are required. But the important is: How to run FPCUnit without Lazarus? Is it possible? Regards, Luciano ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Some questions regarding jvmbackend port
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 in "Building the compiler and RTL" section it says: "Execute the following command in the top level directory of the checked out sources" which in turn would execute the top-level makefile, right? The fact is that I can only compile through this top-level makefile, compiling directly from each directory (i.e. compiler, rtl, utils) doesn't work, the makefile doesn't understand jvm-java/jvm-android target. In "Building the fpcjres utility": Again "Run the following command in the top level directory of the checked out sources", however running "make all" doesn't build anything from utils directory, it builds ppc386 and rtl though. For this one, I must cd to utils/fpcres manually and execute the command from there (the previous "make all" is required, because it's used to compile fpc(j)res). Using simple script, I can now install everything to the normal fpc binary/library tree. 2. Execution I try a simple hello world program: uses jdk15; begin jlsystem.fout.println('hello, world'); end. Executing ppcjvm -vt hello.pas gives: ... // unimportant lines Assembling program Searching file /bin/jvm-java/jasmin.jar... not found Searching file /bin/jvm-java/JASMIN.JAR... not found Searching file /usr/lib/fpc/2.7.1/jasmin.jar... not found Searching file /usr/lib/fpc/2.7.1/JASMIN.JAR... not found Searching file /usr/local/sbin/jasmin.jar... not found Searching file /usr/local/sbin/JASMIN.JAR... not found Searching file /usr/local/bin/jasmin.jar... not found Searching file /usr/local/bin/JASMIN.JAR... not found Searching file /usr/sbin/jasmin.jar... not found Searching file /usr/sbin/JASMIN.JAR... not found Searching file /usr/bin/jasmin.jar... found Using assembler: /usr/bin/jasmin.jar // <-- yep, assembler found Searching file /bin/jvm-java/jvm-java-java... not found Searching file /bin/jvm-java/JVM-JAVA-JAVA... not found Searching file /usr/lib/fpc/2.7.1/jvm-java-java... not found Searching file /usr/lib/fpc/2.7.1/JVM-JAVA-JAVA... not found Searching file /usr/local/sbin/jvm-java-java... not found Searching file /usr/local/sbin/JVM-JAVA-JAVA... not found Searching file /usr/local/bin/jvm-java-java... not found Searching file /usr/local/bin/JVM-JAVA-JAVA... not found Searching file /usr/sbin/jvm-java-java... not found Searching file /usr/sbin/JVM-JAVA-JAVA... not found Searching file /usr/bin/jvm-java-java... not found Searching file /usr/bin/JVM-JAVA-JAVA... not found Searching file /sbin/jvm-java-java... not found Searching file /sbin/JVM-JAVA-JAVA... not found Searching file /bin/jvm-java-java... not found Searching file /bin/JVM-JAVA-JAVA... not found Searching file /usr/games/jvm-java-java... not found Searching file /usr/games/JVM-JAVA-JAVA... not found Error: Assembler jvm-java-java not found, switching to external assembling // <-- eh? Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted The assembler used is supposed to be jasmin.jar, right? So what is this jvm-java-java for? If it's for executing jasmin, it should be plain java and I already have it installed and tested. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Some-questions-regarding-jvmbackend-port-tp5129886p5129886.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Re: Some questions regarding jvmbackend port
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 archive at Nabble.com. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Some questions regarding jvmbackend port
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 supported using the top-level makefile" yet in "Building the compiler and RTL" section it says: "Execute the following command in the top level directory of the checked out sources" It seems that the first paragraph wasn't updated when the second one was changed. The variant with the top level makefile is the correct one. Assembling program Searching file /bin/jvm-java/jasmin.jar... not found Searching file /bin/jvm-java/JASMIN.JAR... not found Searching file /usr/lib/fpc/2.7.1/jasmin.jar... not found Searching file /usr/lib/fpc/2.7.1/JASMIN.JAR... not found Searching file /usr/local/sbin/jasmin.jar... not found Searching file /usr/local/sbin/JASMIN.JAR... not found Searching file /usr/local/bin/jasmin.jar... not found Searching file /usr/local/bin/JASMIN.JAR... not found Searching file /usr/sbin/jasmin.jar... not found Searching file /usr/sbin/JASMIN.JAR... not found Searching file /usr/bin/jasmin.jar... found Using assembler: /usr/bin/jasmin.jar //<-- yep, assembler found Searching file /bin/jvm-java/jvm-java-java... not found Searching file /bin/jvm-java/JVM-JAVA-JAVA... not found Searching file /usr/lib/fpc/2.7.1/jvm-java-java... not found Searching file /usr/lib/fpc/2.7.1/JVM-JAVA-JAVA... not found Searching file /usr/local/sbin/jvm-java-java... not found Searching file /usr/local/sbin/JVM-JAVA-JAVA... not found Searching file /usr/local/bin/jvm-java-java... not found Searching file /usr/local/bin/JVM-JAVA-JAVA... not found Searching file /usr/sbin/jvm-java-java... not found Searching file /usr/sbin/JVM-JAVA-JAVA... not found Searching file /usr/bin/jvm-java-java... not found Searching file /usr/bin/JVM-JAVA-JAVA... not found Searching file /sbin/jvm-java-java... not found Searching file /sbin/JVM-JAVA-JAVA... not found Searching file /bin/jvm-java-java... not found Searching file /bin/JVM-JAVA-JAVA... not found Searching file /usr/games/jvm-java-java... not found Searching file /usr/games/JVM-JAVA-JAVA... not found Error: Assembler jvm-java-java not found, switching to external assembling //<-- eh? Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted The assembler used is supposed to be jasmin.jar, right? So what is this jvm-java-java for? If it's for executing jasmin, it should be plain java and I already have it installed and tested. 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 #IFDEF CROSSCOMPILING or similar together with "-XP..."). Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Re: Some questions regarding jvmbackend port
> 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 #IFDEF CROSSCOMPILING or similar together with "-XP..."). Just as I thought, it must be something with -XP. I forgot to add #IFNDEF CPUJVM around that option. Thanks. -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Some-questions-regarding-jvmbackend-port-tp5129886p5130062.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Some questions regarding jvmbackend port
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 and RTL" section it says: >> >> "Execute the following command in the top level directory of the checked out >> sources" > > It seems that the first paragraph wasn't updated when the second one was > changed. The variant with the top level makefile is the correct one. I've fixed the wiki article. Jonas___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Re: Some questions regarding jvmbackend port
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.1045716.n5.nabble.com/Some-questions-regarding-jvmbackend-port-tp5129886p5130153.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Re: Some questions regarding jvmbackend port
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-style generics are a Java-language-level feature (they work via type-erasure at the language level) that does not exist in FPC. The FPC JVM port enables compiling Pascal code into Java bytecode. It does not add Java language features to the Object Pascal language (except to the extent required for interoperability with Java bytecode). You simply have to use them like in the Java language before JDK 1.5: by typecasting the return values (which are JLObject) into JLInteger. Jonas___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal