[Lazarus] How to restore ignored exceptions in IDE?
I got the IDE ignore some exceptions and now I need to reenable their detection. How do I get them back? I am using 0.9.28.3. -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Revision 29689: /tags/lazarus_0_9_30
On 27 February 2011 20:04, Bernd Kreuss wrote: > Just seen this in the svn. Finally it is there :-) > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > Does this mean it will be appearing on the Lazarus Snapshots at http://www.hu.freepascal.org/lazarus/ soon? Hooray -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Size of program executable very big...
On 17 February 2011 21:43, Bo Berglund wrote: > On Thu, 17 Feb 2011 00:36:48 +0100, Michael Schneider > wrote: > > >Am Thursday 17 February 2011 00:21:25 schrieb Bo Berglund: > > > >> I had not looked at the size before but now I see that the test > >> executable is now 13 Mbytes! Is this normal? I would not have expected > >> this size considering that the program contains so little yet... > >> > > > >http://wiki.lazarus.freepascal.org/Size_Matters > > Trying to digest but very hard... > Isn't there a simpler setting in Lazarus that can switch on/off > optimization or debug data generation? > I guess that the exe is big because it contains debug stuff, but that > a single form created as a default project and where I added 10 > buttons, 3 spinedits, 1 combobox and 5 shapes as signal "lamps" plus a > couple of units with pretty straightforward object definitions and the > SdpoSerial component could turn out as a 13 Mb exe file is beyond my > grasp. > THe link above brings me to a page where big seems to start at 6 > Mb > > > 'strip --strip-all programname.exe' when you are ready to deliver. There are other optimizations that can be used in the code generation itself > -- > Bo Berglund > Developer in Sweden > > > -- > _______ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Unable to read project info file: project.lpi
On 17 February 2011 12:12, Vincent Snijders wrote: > 2011/2/17 Frank Church : > > > > Whenever I try to open a project I get this error: > > > > Unable to read project info file > > projectnamehere.lpi. > > > > version is 0.9.28.3. > > What revision do you use? While trying to fix compilation with fpc > 2.4.2 in 0.9.28.3, I broke this, I think. So if you want to use > 0.9.28.3, get a revision before r27745 > and use fpc 2.2.4 or maybe fpc 2.4.0. > > Version #: 0.9.28.3 beta FPC 2.4.0 SVN Revision: 26377 > Vincent > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Unable to read project info file: project.lpi
2011/2/17 Mattias Gaertner > > > > > Frank Church hat am 17. Februar 2011 um 11:59 > geschrieben: > > > > Whenever I try to open a project I get this error: > > Unable to read project info file > projectnamehere.lpi. > > version is 0.9.28.3. > > What could be the problem. The file is present in the directory. > > > Either there is a permission problem or the lpi file contains invalid xml. > > I improved the error message in the Lazarus svn version. > > Mattias > > > It must be invalid XML then. In any case I reverted the file to the last commit and it is working now. > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Unable to read project info file: project.lpi
Whenever I try to open a project I get this error: Unable to read project info file projectnamehere.lpi. version is 0.9.28.3. What could be the problem. The file is present in the directory. -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What is the future of NoGUI widget set?
On 26 January 2011 18:29, waldo kitty wrote: > On 1/26/2011 13:08, Frank Church wrote: > >> After having sparked a much longer thread than I expected, I need to get >> back to >> my problem, although it may belong in a different thread. >> >> Now in most case data modules expose interfaces that the GUI parts of the >> app >> call to get data. >> >> My problem now is the other way round, where the Data Module needs to >> connect >> with the GUI first, in that whether or not the GUI is running, the Data >> Module >> can make a call and send the data to it if it exists, but without having >> to >> compile in any GUI dependencies. >> > > in this case, i would consider a pipe (named or otherwise)... create the > pipe when the GUI unit starts up ... the data unit looks for the pipe... if > it does not exist, it does not attempt to communicate with the GUI part... > when the pipe comes into existence, then the data unit can start sending its > data into the pipe... > > seems workable ;) > > > Pipes are a new area for me, are there any Lazarus demos of their usage? > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What is the future of NoGUI widget set?
On 25 January 2011 06:45, Frank Church wrote: > > I am finding the NoGUI option useful in converting projects using > TDataModules to Linux, but there is some talk about phasing it out. > > Can anyone clarify the original purpose behind its existence and whether it > is problem free so long as no forms or controls are activated within the > App? > > > -- > Frank Church > > === > http://devblog.brahmancreations.com > After having sparked a much longer thread than I expected, I need to get back to my problem, although it may belong in a different thread. Now in most case data modules expose interfaces that the GUI parts of the app call to get data. My problem now is the other way round, where the Data Module needs to connect with the GUI first, in that whether or not the GUI is running, the Data Module can make a call and send the data to it if it exists, but without having to compile in any GUI dependencies. In effect I need the GUI to register something the Data Module or console app can use to notify the GUI in some way because I need to move to a model in which the GUI and Data Module/Console Program are running as separate apps. Is there some Lazarus way of accomplishing this? -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What is the future of NoGUI widget set?
On 26 January 2011 15:23, Felipe Monteiro de Carvalho < felipemonteiro.carva...@gmail.com> wrote: > On Wed, Jan 26, 2011 at 3:56 PM, Michael Schnell > wrote: > > In fact I did ask Martin and he did agree that I am allowed to offer his > > code to Lazarus, but I really consider it bad design and difficult to > > maintain to have multiple completely unsynced implementations of the same > > functionality in the same source code tree.(We did discuss this already > some > > years go.) > > Actually it is the opposite of what you are thinking. It's not a > matter of being allowed to share. This question is never present in > GPL/LGPL, sharing is always allowed. Not sharing is what might be > prohibited, depending on what use you make of this software. > > I think what Michael is saying is he doesn't want to make a gift of something which will lead you down a path of twisty turning winding passages all of which will lead you to nowhere quickly. It is the kind of code you don't want to attempt to unravel - better to start of with a clean slate. > -- > Felipe Monteiro de Carvalho > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What is the future of NoGUI widget set?
On 26 January 2011 10:19, Graeme Geldenhuys wrote: > Op 2011-01-26 11:37, Thorstein Beyer het geskryf: > > > ...because of potentially young talents who might join us in the future. > > :-) Well... if they are "talented", then hopefully they knew from the > start how to separate non-GUI code from GUI code in the first place, and > not rely on some Lazarus specific features to help them out with a > temporary fix. > > > Most new programmers introduction to programming don't involve concepts such as separating non GUI from GUI parts, a lot of tutorials don't focus on such 'industrial' 'engineering' issues. The person wants to program and see the output immediately and the beginner tutorials simply focus on that. Programming talent does not necessarily imply foreknowledge of programming organization. > > Regards, > - Graeme - > > -- > fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal > http://fpgui.sourceforge.net/ > > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What is the future of NoGUI widget set?
On 25 January 2011 06:45, Frank Church wrote: > > I am finding the NoGUI option useful in converting projects using > TDataModules to Linux, but there is some talk about phasing it out. > > Can anyone clarify the original purpose behind its existence and whether it > is problem free so long as no forms or controls are activated within the > App? > > As the original poster I have to say it serves my immediate need, of being able to gradually separate out the non GUI parts of an app and run them standalone. The data modules need to send the output to the GUI and I am now making the linking of the data modules with GUI conditional with preprocessor directives. I can't say I am familiar with the LCL structure, lazbuild etc, so I say let NoGUI remain to ease the reorganization of existing GUI apps. My main concern now is how the GUI part of an app can expose an interface to data modules that do not require the data module to link with GUI libraries. The first thing that comes to mind is to use internet sockets for the interprocess communication, but it feels rather awkward as the presence of the necessary ports cannot be guaranteed on any system. Is that where stuff like interfaces, COM, and CORBA etc come into play, or are there simpler alternatives? > -- > Frank Church > > === > http://devblog.brahmancreations.com > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Third party libraries in tiOPF package
I want to install tiOPF2, but it downloads some 3rd party libraries that are already installed in my IDE. I do not need to install the whole of tiOPF. My initial need is for TtiLog. Does the core tiOPF package require the 3rd party libraries to compile? >From the readme it appears I should be able to get by with tiOPF.lpk and possibly tiOPFLCL.lpk if I don't need design time components. Is that right? -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Warning: APPTYPE is not supported by the target OS
When I compile a Windows app in Linux, I get this message systemDM.lpr(2,2) Warning: APPTYPE is not supported by the target OS > What does it mean? -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] What is the future of NoGUI widget set?
I am finding the NoGUI option useful in converting projects using TDataModules to Linux, but there is some talk about phasing it out. Can anyone clarify the original purpose behind its existence and whether it is problem free so long as no forms or controls are activated within the App? -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Accessing MS SQLServer database from Lazarus/FPC?
On 21 January 2011 15:40, Bo Berglund wrote: > On Fri, 21 Jan 2011 13:14:15 +0100, Vincent Snijders > wrote: > > > >This is off topic, please use lazarus-other list. > > My question was why a database component that ships with *lazarus* > would not work with a perfectly legitimate SQL command (which we have > used for years in Delphi with ADO). > > I assumed at first that I was doing something illegal or so for > lazarus/fpc so I asked here. Did not think it would be off-topic. > > Is there a list of acceptable topics somewhere so one could check > before posting? > > To get back on topic: Quite a number of Lazarus components are not designed as a toolkit to serve a wide range of programmer needs. It is clear that a number of them are developed for the programmers own needs. Even if they are capable enough to serve your needs, those features may not be well documented. They turn out to be 'useful enough' for many others and are included in the Lazarus package. If sqldb cannot serve your needs, or that aspect is not well documented or lacks examples, try zeoslib. I have used zeoslib, which has been around for a long time, and I suspect it will be capable of what you want. PS. You can also check the forum for more sqldb examples. -- > > Bo Berglund > Developer in Sweden > > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Accessing MS SQLServer database from Lazarus/FPC?
On 20 January 2011 20:05, Graeme Geldenhuys wrote: > On 20 January 2011 20:28, Bo Berglund wrote: > >> > >>Use query.ExecSQL instead of query.Open even in Delphi! > > > > Not if the stored procedure returns a recordset > > And with this whole mess I would end by saying: And that is why you > will not see me ever use a Stored Procedure! 99.99% of the time they > contain business logic, which doesn't belong in the data layer of your > application in any case - you can't unit test that business logic. > > Just my 2¢ worth... > > > Apologies to Vincent, I just couldn't resist, I need to say that Stored Procedures in some cases are absolutely necessary, even for business logic. Sometimes you need to do a whole lot of processing, and if you have to drag all the data down a slow WAN link for processing, the app will fail miserably. When you need to poll the database every second for some events, it is much easier to do the processing server side and return the results. There is also the need to keep critical logic server side for security reasons. Have you ever viewed your apps strings at runtime to see how much of the programs SQL logic is exposed? You might even see the odd password there. Scary. > -- > Regards, > - Graeme - > > > ___ > fpGUI - a cross-platform Free Pascal GUI toolkit > http://fpgui.sourceforge.net > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Help: The system.ppu for this target was not found in the FPC binary directories.
On 19 January 2011 23:00, Mattias Gaertner wrote: > On Wed, 19 Jan 2011 21:14:40 + > Frank Church wrote: > > > I deleted Lazarus and recompiled it again, and when I start it I get this > > error. So far it appears to be working okay. > > What does it mean? > > Maybe you were unlucky and got a buggy IDE svn revision. > > > > When I recompiled I did not clear the configuration for the previous > > compilation, and it restarted with all the configuration files intact. > Could > > that have been the issue? > > Try Environment / Rescan FPC source directory. > > Thanks, that fixed it. > > > The project uses target OS=linux and CPU=i386. > > > The system.ppu for this target was not found in the FPC binary > directories. > > > > > > Make sure fpc is installed correctly for this target and the fpc.cfg > > > contains the right directories. > > > Mattias > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Help: The system.ppu for this target was not found in the FPC binary directories.
I deleted Lazarus and recompiled it again, and when I start it I get this error. So far it appears to be working okay. What does it mean? When I recompiled I did not clear the configuration for the previous compilation, and it restarted with all the configuration files intact. Could that have been the issue? The project uses target OS=linux and CPU=i386. > The system.ppu for this target was not found in the FPC binary directories. > > Make sure fpc is installed correctly for this target and the fpc.cfg > contains the right directories. > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus fails to start with "TWinControl.CreateWnd: The nogui widgetset does not support visual controls."
On 19 January 2011 16:43, Frank Church wrote: > > > On 19 January 2011 06:14, Vincent Snijders wrote: > >> 2011/1/19 Mattias Gaertner : >> >> Are there some steps the additional steps required in the Build All >> that I >> >> may have missed? >> > >> > You have to choose the nogui widgetset in the project's compiler >> > options and of course you must not use any unit that uses the gtk. >> >> Build all builds also the IDE with the nogui widgetset, that is not >> what you want and what is supported, the IDE needs a GUI. Building >> just the LCL with nogui is good and then you can try to compile your >> project. >> >> -- >> ___ >> Lazarus mailing list >> Lazarus@lists.lazarus.freepascal.org >> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus >> > > > I set NoGUI alone in the project options and it worked. > > Thanks. > > > As a side question - what does the NoGUI widgetset do, how does it work? Does it send all GUI related objects down some blackhole, or is the programmer supposed to ensure that no Forms and items placed on forms are included in the program? -- > Frank Church > > === > http://devblog.brahmancreations.com > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus fails to start with "TWinControl.CreateWnd: The nogui widgetset does not support visual controls."
On 19 January 2011 06:14, Vincent Snijders wrote: > 2011/1/19 Mattias Gaertner : > >> Are there some steps the additional steps required in the Build All that > I > >> may have missed? > > > > You have to choose the nogui widgetset in the project's compiler > > options and of course you must not use any unit that uses the gtk. > > Build all builds also the IDE with the nogui widgetset, that is not > what you want and what is supported, the IDE needs a GUI. Building > just the LCL with nogui is good and then you can try to compile your > project. > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > I set NoGUI alone in the project options and it worked. Thanks. -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus fails to start with "TWinControl.CreateWnd: The nogui widgetset does not support visual controls."
On 18 January 2011 21:24, Mattias Gaertner wrote: > On Tue, 18 Jan 2011 21:06:48 + > Frank Church wrote: > > > I rebuilt the IDE with NoGUI option, and after closing and restart > Lazarus > > it fails to open with the above message "TWinControl.CreateWnd: The nogui > > widgetset does not support visual controls", followed by a few others. > > > > Is there some way to get to revert to the original GTK2 with some command > > line based rebuilding? > > cd path/to/your/lazarus > ./lazbuild --build-ide= --ws=gtk2 > > You both responded 5 minutes too late. I just deleted the whole installation to recompile it and it should finish in a few minutes. It is currently doing a make install. In reference to my previous question does the persistence of the libgtk error imply that the NoGUI option failed to work properly, or could it be because the Build All did not entirely eliminate some included units? Are there some steps the additional steps required in the Build All that I may have missed? > Mattias > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Lazarus fails to start with "TWinControl.CreateWnd: The nogui widgetset does not support visual controls."
I rebuilt the IDE with NoGUI option, and after closing and restart Lazarus it fails to open with the above message "TWinControl.CreateWnd: The nogui widgetset does not support visual controls", followed by a few others. Is there some way to get to revert to the original GTK2 with some command line based rebuilding? -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Do data modules have GTK dependencies on Linux
2011/1/18 ik > 2011/1/18 Frank Church > >> >> I have converted a program that uses data modules to Linux and I am sure >> tthey don't use any graphics widgets, >> but I keep getting 'error while loading shared libraries: >> libgdk_pixbuf-2.0.so.0: cannot open shared object file: No such file or >> directory' when I try to run >> it on a server system without any form of graphics installed. >> >> Is there some way to check that no dependency on any kind of graphics >> interfaces exists in the project? >> > > It depends on your Linux distro, but why do you depends on GTK if you do > not require any GUI support ? > > >> >> It does not require GTK, I am using the NoGUI widgeset. The program was converted from Windows, but are I wonder if some of the files included in the uses sections are including GTK replacements for some of the stuff used by Windows. I have done a Build All in the IDE and converted it to NoGUI. Are the some other project settings I can use, rather than in the Enviromment menu? > >> >> -- >> Frank Church >> >> === >> http://devblog.brahmancreations.com >> >> -- >> ___ >> Lazarus mailing list >> Lazarus@lists.lazarus.freepascal.org >> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus >> >> > > Ido > LINESIP - Opening the source for communication > http://www.linesip.com > http://www.linesip.co.il > > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Do data modules have GTK dependencies on Linux
I have converted a program that uses data modules to Linux and I am sure tthey don't use any graphics widgets, but I keep getting 'error while loading shared libraries: libgdk_pixbuf-2.0.so.0: cannot open shared object file: No such file or directory' when I try to run it on a server system without any form of graphics installed. Is there some way to check that no dependency on any kind of graphics interfaces exists in the project? -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Are there some preprocessor values that can be set in the IDE for debugging, ie DEBUG et al?
Is there a preprocessor value that can be set in the IDE for debugging? eg. ifdef XX showmessage('y') endif, I am interested in options that can be ticked in the IDE dialogs rather than typed. -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Is there an svn command to find out the last commit affected a particular file?
On 2 January 2011 16:44, Henry Vermaak wrote: > 2011/1/2 Frank Church : > > > > Is there an option to filter display just the latest one? > > svn log -l 1 > > Henry > > This does exactly what is needed. Thanks > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] How do you set an event at runtime?
I need to create some databases at runtime which use same event handling code as a component created at design time. Is there some way to set the event handling property of a component at runtime? -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] new class dependency map generated
On 4 January 2011 17:33, Graeme Geldenhuys wrote: > 2011/1/4 Frank Church : > > > > It is an interesting image, but it is very dense and it looks like the > jpeg > > format has caused to lose a lot of detail. > > The text is blurred no matter how much you zoom in. > > Read the original message again, and scroll to the bottom of the message. > :) > > > You got me there [?] I saw it before but I thought it was something I must of pasted there accidentally. > -- > Regards, > - Graeme - > > > ___ > fpGUI - a cross-platform Free Pascal GUI toolkit > http://fpgui.sourceforge.net > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com <<330.gif>>-- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] new class dependency map generated
On 4 January 2011 13:59, Graeme Geldenhuys wrote: > Hi, > > I just generated a new class dependency map of the RTL and LCL. It gives a > nice overview of the relationships and explains a lot of the details. I > shared it online. Hopefully somebody else can also find some use out of it. > > > http://img222.imageshack.us/img222/7504/tes0001.jpg > > > > It is an interesting image, but it is very dense and it looks like the jpeg format has caused to lose a lot of detail. The text is blurred no matter how much you zoom in. It may be better to output it in some kind of vector format which allow zooming without losing detail. > > Regards, > - Graeme - > > > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Is there a tool to list all the string literals in your application?
2011/1/4 ik > On linux you have a command named "strings" > > $ strings > > Ido > > Is there some Lazarus/FPC related app to do that? I am interested in one that parses the source code rather than the executable. Can some development related utility find all the string literals and print out their line numbers? > LINESIP - Opening the source for communication > http://www.linesip.com > http://www.linesip.co.il > > > > > 2011/1/4 Frank Church > >> >> Is there a tool to list all the string literals in your application? >> >> I want to list all the strings in my app and save them in a file or look >> up table from which I can change them or translate them >> to a different language if necessary. >> >> Is there some app to do that? >> >> -- >> Frank Church >> >> === >> http://devblog.brahmancreations.com >> >> -- >> ___ >> Lazarus mailing list >> Lazarus@lists.lazarus.freepascal.org >> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus >> >> > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Is there a tool to list all the string literals in your application?
Is there a tool to list all the string literals in your application? I want to list all the strings in my app and save them in a file or look up table from which I can change them or translate them to a different language if necessary. Is there some app to do that? -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Is there an svn command to find out the last commit affected a particular file?
2011/1/2 ik > svn log > > Ido > LINESIP - Opening the source for communication > http://www.linesip.com > http://www.linesip.co.il > > > > Is there an option to filter display just the latest one? > > 2011/1/2 Frank Church > >> Is there an svn command to find out the last commit that affected a >> particular file? >> >> -- >> Frank Church >> >> === >> http://devblog.brahmancreations.com >> >> -- >> ___ >> Lazarus mailing list >> Lazarus@lists.lazarus.freepascal.org >> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus >> >> > > -- > _______ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Is there an svn command to find out the last commit affected a particular file?
2011/1/2 ik > svn log > > Ido > LINESIP - Opening the source for communication > http://www.linesip.com > http://www.linesip.co.il > > > > Thanks > > 2011/1/2 Frank Church > >> Is there an svn command to find out the last commit that affected a >> particular file? >> >> -- >> Frank Church >> >> === >> http://devblog.brahmancreations.com >> >> -- >> ___ >> Lazarus mailing list >> Lazarus@lists.lazarus.freepascal.org >> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus >> >> > > -- > _______ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Is there an svn command to find out the last commit affected a particular file?
Is there an svn command to find out the last commit that affected a particular file? -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus compile error
On 2 January 2011 10:37, Kjow wrote: > I just updated to latest lazarus/fpc svn and this is the compiling error: > > ... > ... > ... > Compiling messagedialogs.pp > Compiling resource units\i386-win32\messagedialogs.or > Linking .\messagedialogs.exe > 85 lines compiled, 0.7 sec , 1200960 bytes code, 287208 bytes data > C:/Develop/fpc/2.4.2/bin/i386-Win32/fpc.exe -gl > -Fu../lcl/units/i386-win32 -Fu../lcl/units/i386-win32/win32 > -Fu../components/synedit/units/i386-win32 > -Fu../components/codetools/units/i386-win32 -Fu. -FE. > -FUunits/i386-win32 -di386 notebk.pp > Free Pascal Compiler version 2.5.1 [2011/01/02] for i386 > Copyright (c) 1993-2010 by Florian Klaempfl > Target OS: Win32 for i386 > Compiling notebk.pp > Compiling notebku.pp > C:\Develop\lazarus\examples\notebku.pp(87,19) Error: Identifier not > found "PageCount" > C:\Develop\lazarus\examples\notebku.pp(104,19) Error: Identifier not > found "PageCount" > C:\Develop\lazarus\examples\notebku.pp(304,13) Error: identifier > idents no member "ShowTabs" > C:\Develop\lazarus\examples\notebku.pp(304,39) Error: identifier > idents no member "ShowTabs" > C:\Develop\lazarus\examples\notebku.pp(305,17) Error: identifier > idents no member "ShowTabs" > C:\Develop\lazarus\examples\notebku.pp(330,16) Error: identifier > idents no member "TabPosition" > C:\Develop\lazarus\examples\notebku.pp(331,16) Error: identifier > idents no member "TabPosition" > C:\Develop\lazarus\examples\notebku.pp(332,21) Error: identifier > idents no member "TabPosition" > C:\Develop\lazarus\examples\notebku.pp(333,16) Error: identifier > idents no member "TabPosition" > C:\Develop\lazarus\examples\notebku.pp(334,21) Error: identifier > idents no member "TabPosition" > C:\Develop\lazarus\examples\notebku.pp(335,16) Error: identifier > idents no member "TabPosition" > C:\Develop\lazarus\examples\notebku.pp(336,21) Error: identifier > idents no member "TabPosition" > C:\Develop\lazarus\examples\notebku.pp(337,16) Error: identifier > idents no member "TabPosition" > C:\Develop\lazarus\examples\notebku.pp(343) Fatal: There were 13 > errors compiling module, stopping > > > Although the command says C:/Develop/fpc/2.4.2/bin/i386-Win32/fpc.exe The compiler output is Free Pascal Compiler version 2.5.1 [2011/01/02] for i386 Is that what is should be. Do an "svnversion ." to find the exact commit. That will be more helpful. > Thanks, > Kjow > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Call for testing: Lazarus 0.9.31 debian packages
On 31 December 2010 21:57, Frank Church wrote: > > > On 31 December 2010 14:44, Vincent Snijders wrote: > >> 2010/12/31 Frank Church : >> > >> > >> > On 31 December 2010 13:32, Vincent Snijders > > >> > wrote: >> >> >> >> > Is the source code for it available? >> >> >> >> The source for what exactly. It is all in svn and there are source >> >> snapshots too, >> >> >> >> Vincent >> >> >> >> -- >> > >> > I mean for the source for creating the .deb package itself. >> > >> > I'm interested in how to create .deb packages, not just with >> Lazarus/FPC. >> > >> >> It is in svn, mainly in the debian directory is deb specific things. >> >> You can create a deb by executing make deb in the main lazarus directory. >> >> Vincent >> >> P.S. let's get back on the topic of this thread, did anybody test the >> debs created by me? >> >> > I am trying to install to by downloading the .deb.tar and using dpkg -i to > install them, but I am running into dependencies issues. > > Is there a way to get dpkg or apt to install .deb dependencies which have > been untarred into the same directory then refer to the package repositorys > for those that are not present? > > >> VIncent >> >> -- >> > After some googling I got it work. Here is the log screen. I am surprised to see it using fpc 2.4.2. I thought the 0.9.29 series depended on fpc 2.5.1. Are there some test programs for checking that all is as should be? There are some warnings about some missing dependencies at the end. login as: root Authenticating with public key "imported-openssh-key" Passphrase for key "imported-openssh-key": Linux hostname.server.net 2.6.32-22-generic #33-Ubuntu SMP Wed Apr 28 13:27:30 UTC 2010 i686 GNU/Linux Ubuntu 10.04 LTS Welcome to Ubuntu! * Documentation: https://help.ubuntu.com/ Ubuntu 10.04 LTS ip: 1 hostname : hostname.server.net Last login: Fri Dec 31 22:11:29 2010 from x.x.x.x r...@hostname:~# cd /usr/src/packages r...@hostname:/usr/src/packages# ls -l *deb -rw-r--r-- 1 1003 100312328 2010-11-11 22:14 fpc_2.4.2-0_all.deb -rw-r--r-- 1 1003 1003 2005824 2010-11-11 22:15 fp-compiler_2.4.2-0_i386.deb -rw-r--r-- 1 1003 1003 12898400 2010-11-11 22:19 fpc-source_2.4.2-0_all.deb -rw-r--r-- 1 1003 1003 1670214 2010-11-11 22:20 fp-docs_2.4.2-0_all.deb -rw-r--r-- 1 1003 1003 1259690 2010-11-11 22:20 fp-ide_2.4.2-0_i386.deb -rw-r--r-- 1 1003 1003 1327604 2010-11-11 22:21 fp-units-base_2.4.2-0_i386.deb -rw-r--r-- 1 1003 1003 1106406 2010-11-11 22:21 fp-units-db_2.4.2-0_i386.deb -rw-r--r-- 1 1003 1003 4758986 2010-11-11 22:23 fp-units-fcl_2.4.2-0_i386.deb -rw-r--r-- 1 1003 1003 471840 2010-11-11 22:23 fp-units-fv_2.4.2-0_i386.deb -rw-r--r-- 1 1003 1003 1031828 2010-11-11 22:24 fp-units-gfx_2.4.2-0_i386.deb -rw-r--r-- 1 1003 1003 335960 2010-11-11 22:24 fp-units-gnome1_2.4.2-0_i386.deb -rw-r--r-- 1 1003 1003 1533156 2010-11-11 22:24 fp-units-gtk2_2.4.2-0_i386.deb -rw-r--r-- 1 1003 1003 993844 2010-11-11 22:25 fp-units-gtk_2.4.2-0_i386.deb -rw-r--r-- 1 1003 1003 471672 2010-11-11 22:25 fp-units-i386_2.4.2-0_i386.deb -rw-r--r-- 1 1003 1003 457772 2010-11-11 22:25 fp-units-math_2.4.2-0_i386.deb -rw-r--r-- 1 1003 1003 1347288 2010-11-11 22:26 fp-units-misc_2.4.2-0_i386.deb -rw-r--r-- 1 1003 1003 240012 2010-11-11 22:26 fp-units-multimedia_2.4.2-0_i386.deb -rw-r--r-- 1 1003 1003 624402 2010-11-11 22:26 fp-units-net_2.4.2-0_i386.deb -rw-r--r-- 1 1003 1003 2151896 2010-11-11 22:27 fp-units-rtl_2.4.2-0_i386.deb -rw-r--r-- 1 1003 1003 3827572 2010-11-11 22:28 fp-utils_2.4.2-0_i386.deb -rw-r--r-- 1 1003 100316936 2010-12-31 05:31 lazarus-0.9.31_0.9.31-0-20101231_all.deb -rw-r--r-- 1 1003 1003 2831314 2010-12-31 05:32 lazarus-doc-0.9.31_0.9.31-0-20101231_all.deb -rw-r--r-- 1 1003 1003 5837048 2010-12-31 05:24 lazarus-ide-0.9.31_0.9.31-0-20101231_i386.deb -rw-r--r-- 1 1003 1003 5299824 2010-12-31 05:24 lazarus-ide-gtk2-0.9.31_0.9.31-0-20101231_i386.deb -rw-r--r-- 1 1003 100316738 2010-12-31 05:24 lazarus-ide-qt4-0.9.31_0.9.31-0-20101231_i386.deb -rw-r--r-- 1 1003 1003 14038638 2010-12-31 05:32 lazarus-src-0.9.31_0.9.31-0-20101231_all.deb -rw-r--r-- 1 1003 100316566 2010-12-31 05:24 lcl-0.9.31_0.9.31-0-20101231_i386.deb -rw-r--r-- 1 1003 1003 1489306 2010-12-31 05:25 lcl-gtk2-0.9.31_0.9.31-0-20101231_i386.deb -rw-r--r-- 1 1003 100346870 2010-12-31 05:25 lcl-nogui-0.9.31_0.9.31-0-20101231_i386.deb -rw-r--r-- 1 1003 100316606 2010-12-31 05:25 lcl-qt4-0.9.31_0.9.31-0-20101231_i386.deb -rw-r--r-- 1 1003 1003 36801964 2010-12-31 05:25 lcl-units-0.9.31_0.9.31-0-20101231_i386.deb -rw-r--r-- 1 1003 1003 4447966 2010-12-31 05:24 lcl-utils-0.9
Re: [Lazarus] Call for testing: Lazarus 0.9.31 debian packages
On 31 December 2010 14:44, Vincent Snijders wrote: > 2010/12/31 Frank Church : > > > > > > On 31 December 2010 13:32, Vincent Snijders > > wrote: > >> > >> > Is the source code for it available? > >> > >> The source for what exactly. It is all in svn and there are source > >> snapshots too, > >> > >> Vincent > >> > >> -- > > > > I mean for the source for creating the .deb package itself. > > > > I'm interested in how to create .deb packages, not just with Lazarus/FPC. > > > > It is in svn, mainly in the debian directory is deb specific things. > > You can create a deb by executing make deb in the main lazarus directory. > > Vincent > > P.S. let's get back on the topic of this thread, did anybody test the > debs created by me? > > I am trying to install to by downloading the .deb.tar and using dpkg -i to install them, but I am running into dependencies issues. Is there a way to get dpkg or apt to install .deb dependencies which have been untarred into the same directory then refer to the package repositorys for those that are not present? > VIncent > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Call for testing: Lazarus 0.9.31 debian packages
On 31 December 2010 13:32, Vincent Snijders wrote: > > Is the source code for it available? > > The source for what exactly. It is all in svn and there are source > snapshots too, > > Vincent > > -- > I mean for the source for creating the .deb package itself. I'm interested in how to create .deb packages, not just with Lazarus/FPC. > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] SVN user
On 29 December 2010 22:45, Graeme Geldenhuys wrote: > 2010/12/30 Flávio Etrusco : > > > > I regret Graeme is trying to "sell" git once again > > And yet again I'll I need to answer you as before. Fuck Off! > > > Temper, Graeme. You've got a supporter here. I am a git user, and I find it very useful when combined with a project management tool, which in my case is Redmine. There is nothing better than going to the Repository page in Redmine, clicking on a file, selecting 2 commits and seeing the changes between them, and for a lone developer it is very useful and important especially on long term projects. I have used subversion in the past, not much though, but I have taken to git much better. I think the main problem here how much time it takes a newcomer to ease himself into using a new set of tools, and it applies as much to a person moving to git to subversion (God forbid!! [?]) or vice versa. I;ve read that mercurial (hg) is even easier and more 'logical' than git. > > > -- > Regards, > - Graeme - > > > ___ > fpGUI - a cross-platform Free Pascal GUI toolkit > http://opensoft.homeip.net:8080/fpgui/ > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com <<32B.gif>>-- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Call for testing: Lazarus 0.9.31 debian packages
On 31 December 2010 09:17, Vincent Snijders wrote: > Hi, > > Yesterday some changes were made to the deb packaging. I would like to > know if anybody installed the Lazarus 0.9.31 deb packages today and if > there are any issues with them. > > You can download them from > http://www.hu.freepascal.org/lazarus/ > > 32 bits: > ftp://ftp.hu.freepascal.org/pub/lazarus/snapshots/lazarus-0.9.31.28842-20101231.i386.deb.tar > 64 bits: > ftp://ftp.hu.freepascal.org/pub/lazarus/snapshots/lazarus-0.9.31.28842-20101231.amd64.deb.tar > > If there are no problems, I will merge the changes to the fixes_0_9_30 > branch and update the lazarus-testing ubuntu repositiory for further > testing of the upcoming Lazarus 0.9.30 release. > > Vincent > > - Is the source code for it available? I will make some time to test it this weekend. > - > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] I desperately need some ideas of reducing edit, compile, debug cycle
On 26 November 2010 20:55, Martin wrote: > On 26/11/2010 19:56, Frank Church wrote: > >> >> One thing that has always gottem to me when using Delphi and now Lazarus >> is the tedious edit, compile, debug cycle. It has been growing worse of late >> that now I am beginning to dread the whole process any time I have to make >> some changes, especially when they are just minor GUI changes. >> > > > >> Quite simply I am thinking of a way to create the application in parts, so >> that the parts containing the new functionality can be developed separately >> as standalone programs, perhaps even console programs. >> >> This raises the question of how procedure parameters and results can be >> passed, and these are the options that have initially come to mind. >> >> 1. Find a way to automatically translate simple variables, record >> structures, or objects into text and pass them via the command line or >> pipes. Perhaps JSON, XML or simple name-value pairs can be used here. >> Designing the parameters as TPersistent objects that are streamed into text >> form may be a better option here. >> >> 2. Rather than using the command line, make them network services and pass >> the parameters that way, or may make them RESTful/XML-RPC with all the new >> webby stuff( I am getting into some of that stuff now) >> >> 3. Design them as DLLs initially - I suspect that will bring along a >> different set of problems. >> >> Once they are well tested I can incorporate them into the main >> executables. >> > > Yes splitting your project into parts is a good idea. Quite simple use > packages. > > Then you still have one application, you still can pass data around in the > normal pascal way. > > Each package can be tested with a small simple runner application, or even > better a fully automated testcase. > Testcase are especially useful, if you can extract the functional layer > from the visual layer. > > So instead of writing something big into TForm.SaveDocumentButtonClick, you > just have "TheDocument.Save" in there > => all functionality goes into a none visual object TheDocument (or > whatever it is in your case). > - this object takes instruction, if the user clicks something > - it can be asked what to display. > - it can be given callbacks, if it requires to notify the visual layer. > for example it can have "OnTitleChange" => which is linked to a method > changing the forms Caption (Title) > > > Martin > > > -- > Thanks for the reply, Martin. Are there some code examples which use this approach, especially the package based one? Will it also reduce the size of the debugging exe or speed up its creation? Sometimes I see only one file compiled, then it goes to the linking phase, but it doesn't seem to reduce the exe size or the speed of its creation. > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] I desperately need some ideas of reducing edit, compile, debug cycle
One thing that has always gottem to me when using Delphi and now Lazarus is the tedious edit, compile, debug cycle. It has been growing worse of late that now I am beginning to dread the whole process any time I have to make some changes, especially when they are just minor GUI changes. I have to wait for what is now approaching 60Mb of debugging enabled exes to be generated every time before debugging can start and I'm afraid I am beginning to show signs of an ADD. I tend to approach development with what I can do in the mean time whilst stuff is cooking. The problem is the is duration too long to be staring at the screen, and too short to give something else your attention before coming back to it. I guess for compiled languages ObjectPascal isn't bad, I believe it is even worse for C++ programmers. I may have to get a hex core CPU with 24Gb of RAM, and the fastest SSDs to make the process tolerable. Some hosting providers are doing them for circa €100 a month. Quite simply I am thinking of a way to create the application in parts, so that the parts containing the new functionality can be developed separately as standalone programs, perhaps even console programs. This raises the question of how procedure parameters and results can be passed, and these are the options that have initially come to mind. 1. Find a way to automatically translate simple variables, record structures, or objects into text and pass them via the command line or pipes. Perhaps JSON, XML or simple name-value pairs can be used here. Designing the parameters as TPersistent objects that are streamed into text form may be a better option here. 2. Rather than using the command line, make them network services and pass the parameters that way, or may make them RESTful/XML-RPC with all the new webby stuff( I am getting into some of that stuff now) 3. Design them as DLLs initially - I suspect that will bring along a different set of problems. Once they are well tested I can incorporate them into the main executables. I suspect that others have come across this problem before, with ObjectPascal and perhaps other languages and have found a way to mitigate the problem. If I have to do business as usual, will using stuff like interfaces help? I really need some help here or else I may have to resort to PHP(gasp!!) or even Java (bigger gasp!! shock!! horror!) or Zen (not the programming language) I'm of to stackoverflow and reddit for some more relief now. -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Is there a Lazarus component that allows setting of visual properties at runtime and saving them?
Is there a Lazarus component that allows setting of visual properties at runtime and saving them? I am thinking along the lines of the Object Debugger component by Marco Cantu -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How do you create some kind of type definition based on adding a set if identical functions to different objects with different ancestors?
On 17 November 2010 10:39, Frank Church wrote: > > I don't know whether interfaces are what I am looking for here. > > I am creating an object called TStateInfoSource which needs to display its > state using different objects, mainly a TForm, a TFrame, some future > TComponent based visual object and a web interface as yet undecided. > > eg, both the TForm, the TFrame and web object are to implement a function > called DisplayState in their own way. > > Is there some way to create some kind of type definition called a > TImplementsDisplayState so that TStateInfoSource can call the DisplayState > function of TImplementsDisplayState object it is associated with at > runtime? > > In effect the TImplementsDisplayState facility is added or associated with > existing objects, rather then having TForm, TFrame etc as its sub properties > or components. In this way the display code is implemented directly by the > form or frame, rather than having the TImplementsDisplayState object > manipulate the form or frame's elements directly. > > In effect is it possible to put a group of unrelated objects into the same > type definition by adding to them a set of identically defined functions? > > -- > Frank Church > > === > http://devblog.brahmancreations.com > I think interfaces are what I need here. I'm going to do some more reading. -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Does Lazarus support component templates?
On 18 November 2010 01:16, Frank Church wrote: > > Does Lazarus support component templates, like in > http://docwiki.embarcadero.com/RADStudio/en/Creating_and_using_component_templates_%28C%2B%2B%29 > ? > > I think I saw them on the menu some time ago, unless it was frames, or they > require a package I am missing. > > > -- > Frank Church > > === > http://devblog.brahmancreations.com > This question is feeling rather lonely, a Delphi example is here - http://delphi.about.com/library/howto/htcomptemplate.htm -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Should using frames result in duplicate name errors?
On 17 November 2010 20:22, Frank Church wrote: > > > On 17 November 2010 19:28, Mattias Gaertner wrote: > >> On Wed, 17 Nov 2010 17:45:01 +0000 >> Frank Church wrote: >> >> > I am trying to use frames to create the same element repeatedly on a >> form, >> > but when I copy them in the IDE or create them and set their parents at >> > runtime, I get duplicate name errors. Isn't Lazarus supposed to give >> them >> > different names. >> >> No. >> The name is needed for reference. >> >> >> > embFrame1 := TEmbBoothFrame.Create(self); >> > embFrame1.Parent := Panel10; >> > embFrame1.lblDestination.Caption := 'X'; >> > >> > embFrame2 := TEmbBoothFrame.Create(self); >> > embFrame2.Parent := Panel11; >> > embFrame2.lblDestination.Caption := 'Y'; >> > >> > The above code generates the error: >> > >> > Duplicate name: A component named EmbBoothFrame already exists. >> >> You can set a new name or set it to the empty name: >> embFrame1 := TEmbBoothFrame.Create(self); >> embFrame1.Name:=''; >> embFrame1.Parent := Panel11; >> embFrame1.lblDestination.Caption := 'Y'; >> >> >> > Is it possible to get it to set a new name at creation time? On closer >> look >> > it looks like the use of self means it is being attached to the form, >> would Application >> > work much better >> > >> > ie embFrame1 := TEmbBoothFrame.Create(Application)? >> > >> > I tested with Application and it works >> > >> > On the other hand it appears that when I add the frames from the IDE, >> the >> > duplicate name issue exists. >> > >> > Is it possible to pass the desired name to the Create function in this >> case? >> >> There is a complicated way. But I doubt you really need that. >> >> >> > Are frames the right thing for this or is it templates instead? But I >> can't >> > find templates in the IDE menu or the palette (Lazarus 0.9.28.3). >> >> What is 'this'? >> >> > Because it is the same frame being created from the IDE palette, is it > possible to have the child elements in the frame, having the same name, so > that at runtime if the parent frames have names such as Parent1, Parent2, > Parent3 it possible to write such code as Parent1.Label1.Caption, > Parent2.Label1.Caption etc , ie can Lazarus allow child elements to have > duplicate names at runtime so long as the parents have different names? > > I want to attach events to the child elements, but it seems I can only do > it runtime with the Application owning the objects, rather than the form, > which is why I am asking whether templates are better for this, rather than > frames. > > Templates were what I had in mind initially, http://delphi.about.com/library/howto/htcomptemplate.htm, but I can't find them in the IDE (Lazarus 0.9.28.3), Are they available in Lazarus? -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Should using frames result in duplicate name errors?
On 18 November 2010 09:41, Marc Weustink wrote: > Steve Smith wrote: > >> On Wed, 17 Nov 2010 17:45:01 + Frank Church >> wrote >> >> I am trying to use frames to create the same element repeatedly on a >>> >> form, >> >>> but when I copy them in the IDE or create them and set their parents >>> >> at >> >>> runtime, I get duplicate name errors. Isn't Lazarus supposed to give >>> >> them >> >>> different names. >>> >> >> How can Lazarus do it? You are entering code directly. If you use the IDE >> to add frames, Lazarus will do it for you. If you wish to do it in code >> CORRECTLY, do the following. >> >> embFrame1 := TEmbBoothFrame.Create(self); >> embFrame1.Name := 'embBoothFrame1'; >> embFrame1.Parent := Panel10; >> embFrame1.lblDestination.Caption := 'X'; >> >> embFrame2 := TEmbBoothFrame.Create(self); >> embFrame2.Name := 'embBoothFrame2'; >> embFrame2.Parent := Panel11; >> embFrame2.lblDestination.Caption := 'Y'; >> >> Alternatively, you can add code in the TEmbBoothFrame constructor yourself >> to build unique names. >> >> There is a routine somewhere to generate a unique name but I can't be >> bothered to search for it. >> > > BTW, if you onlt create components in code, you don't have to give it a > name. > > Marc > > > -- > _______ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > Templates were what I had in mind initially, http://delphi.about.com/library/howto/htcomptemplate.htm, but I can't find them in the IDE (Lazarus 0.9.28.3), Are they available in Lazarus. -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Does Lazarus support component templates?
Does Lazarus support component templates, like in http://docwiki.embarcadero.com/RADStudio/en/Creating_and_using_component_templates_%28C%2B%2B%29 ? I think I saw them on the menu some time ago, unless it was frames, or they require a package I am missing. -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Should using frames result in duplicate name errors?
On 17 November 2010 19:28, Mattias Gaertner wrote: > On Wed, 17 Nov 2010 17:45:01 + > Frank Church wrote: > > > I am trying to use frames to create the same element repeatedly on a > form, > > but when I copy them in the IDE or create them and set their parents at > > runtime, I get duplicate name errors. Isn't Lazarus supposed to give them > > different names. > > No. > The name is needed for reference. > > > > embFrame1 := TEmbBoothFrame.Create(self); > > embFrame1.Parent := Panel10; > > embFrame1.lblDestination.Caption := 'X'; > > > > embFrame2 := TEmbBoothFrame.Create(self); > > embFrame2.Parent := Panel11; > > embFrame2.lblDestination.Caption := 'Y'; > > > > The above code generates the error: > > > > Duplicate name: A component named EmbBoothFrame already exists. > > You can set a new name or set it to the empty name: > embFrame1 := TEmbBoothFrame.Create(self); > embFrame1.Name:=''; > embFrame1.Parent := Panel11; > embFrame1.lblDestination.Caption := 'Y'; > > > > Is it possible to get it to set a new name at creation time? On closer > look > > it looks like the use of self means it is being attached to the form, > would Application > > work much better > > > > ie embFrame1 := TEmbBoothFrame.Create(Application)? > > > > I tested with Application and it works > > > > On the other hand it appears that when I add the frames from the IDE, the > > duplicate name issue exists. > > > > Is it possible to pass the desired name to the Create function in this > case? > > There is a complicated way. But I doubt you really need that. > > > > Are frames the right thing for this or is it templates instead? But I > can't > > find templates in the IDE menu or the palette (Lazarus 0.9.28.3). > > What is 'this'? > > Because it is the same frame being created from the IDE palette, is it possible to have the child elements in the frame, having the same name, so that at runtime if the parent frames have names such as Parent1, Parent2, Parent3 it possible to write such code as Parent1.Label1.Caption, Parent2.Label1.Caption etc , ie can Lazarus allow child elements to have duplicate names at runtime so long as the parents have different names? I want to attach events to the child elements, but it seems I can only do it runtime with the Application owning the objects, rather than the form, which is why I am asking whether templates are better for this, rather than frames. Mattias > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Should using frames result in duplicate name errors?
I am trying to use frames to create the same element repeatedly on a form, but when I copy them in the IDE or create them and set their parents at runtime, I get duplicate name errors. Isn't Lazarus supposed to give them different names. embFrame1 := TEmbBoothFrame.Create(self); embFrame1.Parent := Panel10; embFrame1.lblDestination.Caption := 'X'; embFrame2 := TEmbBoothFrame.Create(self); embFrame2.Parent := Panel11; embFrame2.lblDestination.Caption := 'Y'; The above code generates the error: Duplicate name: A component named EmbBoothFrame already exists. Is it possible to get it to set a new name at creation time? On closer look it looks like the use of self means it is being attached to the form, would Application work much better ie embFrame1 := TEmbBoothFrame.Create(Application)? I tested with Application and it works On the other hand it appears that when I add the frames from the IDE, the duplicate name issue exists. Is it possible to pass the desired name to the Create function in this case? Are frames the right thing for this or is it templates instead? But I can't find templates in the IDE menu or the palette (Lazarus 0.9.28.3). -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] How do you create some kind of type definition based on adding a set if identical functions to different objects with different ancestors?
I don't know whether interfaces are what I am looking for here. I am creating an object called TStateInfoSource which needs to display its state using different objects, mainly a TForm, a TFrame, some future TComponent based visual object and a web interface as yet undecided. eg, both the TForm, the TFrame and web object are to implement a function called DisplayState in their own way. Is there some way to create some kind of type definition called a TImplementsDisplayState so that TStateInfoSource can call the DisplayState function of TImplementsDisplayState object it is associated with at runtime? In effect the TImplementsDisplayState facility is added or associated with existing objects, rather then having TForm, TFrame etc as its sub properties or components. In this way the display code is implemented directly by the form or frame, rather than having the TImplementsDisplayState object manipulate the form or frame's elements directly. In effect is it possible to put a group of unrelated objects into the same type definition by adding to them a set of identically defined functions? -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] When do I need a component rather than a plain object?
On 16 November 2010 10:32, Michael Van Canneyt wrote: > > > On Tue, 16 Nov 2010, Frank Church wrote: > > >> >> I realized the wisdom of Bo's approach to creating components at run-time >> and setting the properties in code only 2 days go. >> >> I overwrote some of my newer code with older code, and although I restored >> the *.pas from git, I forgot about the*.lfm where the SQL was stored. It >> was >> only hours later that I realized the the update code was in the components >> that I restored it. >> >> Initialzing non-visual components from form properties is an evil which is >> best avoided. >> > > I think your mileage may vary. I work with lots of custom components in > Delphi and Lazarus (in fact, I never use the 'standard' ones, always > descendants or third-party components, installed in the IDE). In 12 years, > I never experienced any of the problems you describe. > Not in Lazarus, not in Delphi. > > So I cannot say that my experience supports your conclusion. > > > It will be good if Lazarus can generate the source code to initialize >> components at the start of a program, rather than stream them in, >> hopefully >> in a future version. It makes revision control much easier, a lot more >> transparent. >> > > I am all for such a feature (to each his own, after all), but I don't think > it solves any real problems. You admitted you made a mistake in your VCS, > but you blame the lazarus way of doing for it. This is definitely not > logical to me. > > Michael. > > > I am not blaming Lazarus as such, as Delphi does the same, but when I do a diff of a .lfm file it is obvious to me that things would be much clearer from source code generated at runtime, rather than looking at the properties text in source. Runtime source code can also be formatted properly or even have an order of generation so stuff don't get move around much. It can even be generated in separate files, or as Graeme said in some private section of the file. Eg. when you move components around sometimes for the sake of accessing other components properties to change them, it creates a lot of noise in the diffs, as positions in most cases are irrelevant to a lot of components. Setting properties in code is fine, and some design IDE component can be used to generate the source code to initialize them at runtime. To be honest it is something I noticed some time ago, but never realized how hard it could hit if you made some error or forgot about something. Perhaps Graeme will permit the inclusion of that kind of facility into Lazarus in some future version, and component designers can include it in their component design. -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] When do I need a component rather than a plain object?
t; Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > I realized the wisdom of Bo's approach to creating components at run-time and setting the properties in code only 2 days go. I overwrote some of my newer code with older code, and although I restored the *.pas from git, I forgot about the*.lfm where the SQL was stored. It was only hours later that I realized the the update code was in the components that I restored it. Initialzing non-visual components from form properties is an evil which is best avoided. It will be good if Lazarus can generate the source code to initialize components at the start of a program, rather than stream them in, hopefully in a future version. It makes revision control much easier, a lot more transparent. -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] When do I need a component rather than a plain object?
Does TObject have all the capabilities of TComponent apart from things like streaming and being used from the IDE component palette? I want to create an object which has all the capabilities like getting and setting properties, and I want to know whether I need to inherit from TObject or from something further down the hierarchy. Another aspect is ownership. Does ownership require objects to be derived from TComponent? Is a TPersistent adequate if manipulating the object from the IDE isn't needed? Last but not the least, is the FreePascal TObject/TComponent system more or less the same as Delphi's, or are there some major differences? -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Logging class or some kind of writeln for Lazarus
Are there some FPC/Lazarus class for logging events? -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to jump to start of function
I knew something was not right, I was using search all the time to find procedures and kept wondering, why is this business so hard and troublesome and remembered that I must be missing something, this is not the way it should be!!. Thanks. On 21 October 2010 00:17, Frank Church wrote: > > Does Lazarus offer the ability to bring up a list of functions and jump to > a start of a function, like the function in gexperts used to? > > Surely something in CodeTools or some other IDE package must be able to. > > -- > Frank Church > > === > http://devblog.brahmancreations.com > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] How to jump to start of function
Does Lazarus offer the ability to bring up a list of functions and jump to a start of a function, like the function in gexperts used to? Surely something in CodeTools or some other IDE package must be able to. -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] How do you use codetools to declare new variables
I remember seeing in the docs where after creating a variable, some key press will jump to the var section of a procedure to insert that variable. Can someone remind me what it is? -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus Manager
On 5 October 2010 17:02, Kjow wrote: > 2010/10/4 Kjow : > > Here ( http://wiki.lazarus.freepascal.org/Lazarus_Manager ) I started > > Anyone tried it? > I see that there are 6 download at now. > > I have tried it on Windows 2008 and it worked - the only issue I had was having to reboot it in order to set the path as requested, I think that can be done without rebooting. You've probably got some extra homework with the batch file. Any way post Windows Vista the capability of the batch scripting has improved. > Kjow > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] tooltip debugger shows incorrect data
On 13 October 2010 15:35, Vincent Snijders wrote: > 2010/10/13 Frank Church : > > I posted this article - Observations on FreePascal and Lazarus > Development > > on my blog a few days ago, but because I haven't started any concrete > work > > I added the blog to: > > http://wiki.lazarus.freepascal.org/Lazarus_Documentation#Lazarus_related_blogs_and_websites > I hope you don't mind. > > I am okay with that, I had something like that in mind before. > Vincent > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] tooltip debugger shows incorrect data
2010/10/13 Graeme Geldenhuys > On 13 October 2010 12:57, Vincent Snijders wrote: > > > > But in fact they really don't work in complex cases as indexed string > > expression evaluation. > > Huh? Are you saying that rather simple code example is actually "complex"? > > > > You can not trust a debugger. You can trust output to the console > instead. > > Just in your world (or is that FPC and Lazarus's world) that it true. > Everybody else in every other programming language uses the debugger > output as correct - for debugging purposes none the less. > > I guess yet another example of why a native Object Pascal based > debugger is _required_ for FPC and Lazarus. > > I attached a Kylix 3 screenshot for your viewing pleasure. Just to > show that some debuggers can actually show the correct debug values > with that "complex" code example of mine. Sometimes I wonder if moving > to FPC and Lazarus was actually such a good choice. Lately I struggle > to silence the laugher from other developers using other languages and > toolset. :-( > > > @Graeme: I have to say that sometimes you make pointed criticisms which rub people the wrong way. I don't even know whether I have a place in the FreePascal community that entitles me to make such criticisms, and in a way I may be guilty of what I am accusing you of. I don't know much about the private and working lives of the developers of FPC/Lazarus, and how much time they can afford to give the project, unless perhaps it impacts upon their own paid work, and probably neither do you, so I wouldn't criticize them in anyway. I am more of a taker than a giver here, as are a lot of FPC/Lazarus users. I also don't know the issues which go into what they prioritize so I wouldn't criticize them on that. It is clear from your output you are a talented and committed contributor to the FPC/Lazarus community and perhaps you feel that others do not have the commitment nor the vision that you do, but I don't think this is the way to express yourself. There shouldn't be any "you" or "you guys" in Lazarus or any other volunteer project, nor should they be addressed in a mocking manner - there should only be "we" or "us". I posted this article - Observations on FreePascal and Lazarus Development<http://devblog.brahmancreations.com/content/observations-on-freepascal-and-lazarus-development>on my blog a few days ago, but because I haven't started any concrete work on it, nor do I know when I can make time for it in the near future, I decided not to publicise it, unlike Build Scripts<http://devblog.brahmancreations.com/content/build-scripts-for-installing-freepascal-and-lazarus-from-source>. If others come across it because they like the blog that would be good. A similar issue came up in this thread on the forums - http://www.lazarus.freepascal.org/index.php/topic,10693.0.html - where I kind of inserted by observations in a sidewise manner. Perhaps this drupal.org <http://drupal.org/node/897616> link may be of interest to you, but as a seasoned open source developer you must be familiar with the issues it addresses. As an aside, I know the debugger issue you raised and it can be easily sidestepped by creating some simple variables and assigning the contents of the expressions you want so they can show in the debugger - a few judicious IFDEFs are an easy workaround. Many times I know the issue will hit and I am often too lazy to do it upfront (hint, hint), even though I know it will save me sometime in the edit,compile,debug cycle. Much easier than charged comments. You should also realize that Lazarus does not have a great deal of commercial support as a lot of Delphi using companies are quite happy with it, even Delphi 7, and are not ready or interested to focus on the Linux space, unlike Ruby, Python, Scala and the other new fangled kids on the block. As I have been composing this reply, about 12 new replies have been made to this thread and I don't know how relevant it still is - here it is anyway. I am of to read them now. > -- > Regards, > - Graeme - > > > ___ > fpGUI - a cross-platform Free Pascal GUI toolkit > http://opensoft.homeip.net:8080/fpgui/ > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus setup file for Windows with FPC 2.4 or later?
On 11 October 2010 12:54, Bo Berglund wrote: > The installation available at SF > (http://sourceforge.net/projects/lazarus/files/) > actually installs Lazarus 0.9.28.2 and FPC 2.2.4 > > Are there any plans on making available a later Lazarus/FPC > combination for Windows? > > Using sudo apt-get install lazarus on Ubuntu gets an FPC version that > is 2.4.x something... > > > Check this thread at the mail archive for some tips., http://www.mail-archive.com/lazarus@lists.lazarus.freepascal.org/msg12854.html, it has worked pretty well for me. It differs from most of the examples in that it specifies the exact revision of both FPC and Lazarus to build, rather than the latest svn. For something Windows check the link below from the same thread http://www.mail-archive.com/lazarus@lists.lazarus.freepascal.org/msg13071.html Bo Berglund > > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Is the a subversion command to list changes to a file or directory you are interested in?
Is the a subversion command to list changes to a file or directory you are interested in? -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Error: Can't call the resource compiler "/usr/bin/fpcres", switching to external mode
On 6 October 2010 22:23, Mattias Gaertner wrote: > On Tue, 5 Oct 2010 23:43:35 +0100 > Frank Church wrote: > > > On 5 October 2010 03:58, Frank Church wrote: > > > > > I am trying to rebuild the IDE after installing new packages and I get > this > > > error message repeatedly. > > > > > > > /home/rchurch/.programs/lazarus/0.9.29/lazarus_0929_27548/share/lazarus/ide/lazarus.pp(127,1) > > > > > > Error: Can't call the resource compiler "/usr/bin/fpcres", switching to > > > external mode > > > > > > When I got this error before I raised the ulimit, but it doesn't appear > to > > > work now. > > > > > > -- > > > > > > > I was able to fix it after rebooting, and raising the ulimit. I'm not > sure > > whether both or only one of them fixed it. > > What did you raise with ulimit? > > Is this with fpc 2.4.0 or 2.5.1? > Have you tried fpc 2.5.1? > > I was working with 2.5.1 on Ubuntu 8.04, but I am not sure whether the reboot alone or the ulimit increase fixed it. The docs mentioned something about running Linux from a terminal, so after rebooting, I opened a terminal, raised the ulimit started Lazarus from there, rather than from the Gnome menu. > Mattias > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Build scripts for Freepascal and Lazarus compilation from source
On 3 October 2010 10:25, Frank Church wrote: > > I have posted an article and some code on some bash scripts I have > developed to install FPC and Lazarus from source at > http://devblog.brahmancreations.com/content/build-scripts-for-installing-freepascal-and-lazarus-from-source > . > > Any comments and tips are well come. > > Today I have add a few notes and comments to the script to help those new to FPC/Lazarus compilation and some of the Linux tools involved to understand what is going on. Regards > -- > Frank Church > > === > http://devblog.brahmancreations.com > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Non trivial fcl-web demos?
On 6 October 2010 10:29, Joost van der Sluis wrote: > On Mon, 2010-09-20 at 20:15 +0100, Frank Church wrote: > > > > Are there any non trivial fcl-web demos I can download to try out? > > Does there exist something like a 'non-trivial website demo'? Most > websites out there are trivial? > > Maybe somewhat late, but maybe look at http://www.lazarussupport.com. > Still trivial, imho. But maybe more what you want? > I can publish the code if you want to. > > It will be greatly appreciated if you do. I spent a some hours trying to use the original fcl-web in 09.28 rather than the new one in svn, and I couldn't get a database entry form working quickly enough. I turned to FreeSpider at http://motaz.freevar.com/freespider.htm, which was developed on the 0.9.26 foundation and even managed to switch the database over to zeoslib in a couple hours. Yet I suspect that fcl-web, even the original in 0.9.28 has more depth than FreeSpider, and produces smaller executables. It only lacks the documentation and examples to ease people into it. A demo just like the one with FreeSpider, one more database oriented, even the basic version in 0.9.28, it would go a long way to its take up. Joost > > > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Error: Can't call the resource compiler "/usr/bin/fpcres", switching to external mode
On 5 October 2010 03:58, Frank Church wrote: > I am trying to rebuild the IDE after installing new packages and I get this > error message repeatedly. > > /home/rchurch/.programs/lazarus/0.9.29/lazarus_0929_27548/share/lazarus/ide/lazarus.pp(127,1) > > Error: Can't call the resource compiler "/usr/bin/fpcres", switching to > external mode > > When I got this error before I raised the ulimit, but it doesn't appear to > work now. > > -- > I was able to fix it after rebooting, and raising the ulimit. I'm not sure whether both or only one of them fixed it. > Frank Church > > ======= > http://devblog.brahmancreations.com > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Error: Can't call the resource compiler "/usr/bin/fpcres", switching to external mode
I am trying to rebuild the IDE after installing new packages and I get this error message repeatedly. /home/rchurch/.programs/lazarus/0.9.29/lazarus_0929_27548/share/lazarus/ide/lazarus.pp(127,1) Error: Can't call the resource compiler "/usr/bin/fpcres", switching to external mode When I got this error before I raised the ulimit, but it doesn't appear to work now. -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Build scripts for Freepascal and Lazarus compilation from source
On 4 October 2010 14:11, Marcos Douglas wrote: > On Mon, Oct 4, 2010 at 9:51 AM, Kjow wrote: > > 2010/10/4 Marcos Douglas : > >> I think is good and I have interest... but you saw this link? > >> > http://wiki.lazarus.freepascal.org/Installing_Lazarus#Compiling.2Finstalling_FPC_and_Lazarus_from_Sources_of_SVN_.28Win32.29 > >> > >> This tutorial uses BAT files and it works too. > >> When I maded this tutorial, I wanted to do more simple I could. > >> > >> When I did this tutorial, I wanted to do it in the simplest way > >> possible. So I didn't put the commands for SVN and also did it in > >> pieces (to make it easier to understand). > >> > >> Maybe you could post your method on the wiki so that we could evaluate > >> the pros and cons ... What do you think? > > > > Seeing the link, many things are very similar (obviously); however I'm > > making a new wiki page where I will put my method (win+linux -> 1+2 > > scripts). > > Well, I am not an expert in BAT files and this was my first > contribuition to FreePascal ;-) but if you have a script with > interaction, is much better. > I would like to see your script. > > > My goal is to have a minimal interaction with the end-users (like I > > am), but if they want they can open, read/understand and personalize. > > So, at first I'm publishing only the scripts, and hereafter I will do > > a binary-multiplatform program that will make the same things, but > > more professionally :p > > If the installer will use the sources of SVN, then I have much > interest in this project! > > > One thing to note about svn is it is the bleeding edge. Compiling from svn may fail. How does the new user know which revision they are using? If some bugs creep into the packages and the new user has to recompile where will the knowledge of what revisions are okay come from? Compiling directly from svn without knowing which revisions are safe may only cause more confusion as errors will be hard to track down. Unless the Lazarus community keeps track of stable builds, and getting the installer to download only those, this approach will only cause problems for new users. You only have to read the forums and mailing list to see how a lot of users are afraid to upgrade from source because the methods described in the wikis and faqs overwrite their existing installations. I designed the script is with that issue in mind. The user can symlink to a 'safe' build if it proves 'stable' long enough for their purposes. > Marcos Douglas > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Build scripts for Freepascal and Lazarus compilation from source
On 4 October 2010 16:08, Marco van de Voort wrote: > On Sun, Oct 03, 2010 at 02:30:11PM +0100, Frank Church wrote: > > On 3 October 2010 13:23, Joshua Lim wrote: > > > > > Hi Frank, do you have something for Win32? Thanks. > > > > > > > > I don't have anything for Win32 yet, but it should be easy to convert. > You > > only have to look out for the Windows gotchas. I will have tackle in the > > near future, but I wouldn't want to keep you wating. > > > > Check Marco van de Voort's > > buildfaq<http://www.stack.nl/%7Emarcov/buildfaq.pdf>, > > Chapter 2.4. > > The wiki also has tips on compiling at > > > http://wiki.lazarus.freepascal.org/Installing_Lazarus#Compiling.2Finstalling_FPC_and_Lazarus_from_Sources_of_SVN_.28Win32.29 > > > > It is the type of article I don't like because you can learn a lot more > from > > a good well commented script with sensibly named variables (insert smug > > emoticon here) ;). > > That you didn't like reading it is clear, because when you would have read > it more attentively, I wouldn't be getting just a > > Error expanding embedded variable. > > when I tried to run your script :-) > > > This may be because since creating the article I have made changes directly online to the web page to make it easier to understand, rather than running the new changes and copying it back to the article. > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Does Lazarus/FPC have a process launcher for FastCGI?
On 4 October 2010 13:04, Michael Van Canneyt wrote: > > > On Mon, 4 Oct 2010, Frank Church wrote: > > On 4 October 2010 12:26, Michael Van Canneyt >> wrote: >> >> >>> >>> On Mon, 4 Oct 2010, Frank Church wrote: >>> >>> Does Lazarus/FPC have its own process launcher for FastCGI? >>> >>>> >>>> >>> Why would you need a process launcher ? >>> >>> >>> >>> This is a new area for me. When I check the nginx, this is what I see. >> >> 1. At boot time, an fcgi launcher is loaded as part of the /etc/init.d >> sequence >> >> 2. This fcgi launcher is linked with an ip:port combination or unix >> socket, >> and specifies a program which launches the web developers cgi script. >> > > Ok, but this is a gateway to spawn CGI programs through fastcgi. > For real FastCGI apps, you don't need this step. > > > >> 3. The nginx configuration that for virtual host is configured with the >> same >> ip:port or unix socket. When it reads file names matching the cgi spec it >> dispatches them to the fcgi launcher listening on the ip:port, and this >> launches the cgi with the program it is configured with. >> > > This must be done: define a location which will be dispatched to the > fastcgi > app. > > > >> >> e.g for php programs, php files are sent to the php5-cgi executable via >> this >> command >> >> #!/bin/sh >> /usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -u www-data -f /usr/bin/php5-cgi >> >> From the nature of your reply I assume that the Lazarus exe takes the >>> place >>> >> of the /usr/bin/php5-cgi. >> > > Yes. > > > >> I built the helloworld program and I am running it as a CGI. Should I >> assume >> that it is a FastCGI as well? >> > > No. Are the examples of webmodule fastcgi's in the demos? > > Michael. > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Does Lazarus/FPC have a process launcher for FastCGI?
On 4 October 2010 12:26, Michael Van Canneyt wrote: > > > On Mon, 4 Oct 2010, Frank Church wrote: > > Does Lazarus/FPC have its own process launcher for FastCGI? >> > > Why would you need a process launcher ? > > > This is a new area for me. When I check the nginx, this is what I see. 1. At boot time, an fcgi launcher is loaded as part of the /etc/init.d sequence 2. This fcgi launcher is linked with an ip:port combination or unix socket, and specifies a program which launches the web developers cgi script. 3. The nginx configuration that for virtual host is configured with the same ip:port or unix socket. When it reads file names matching the cgi spec it dispatches them to the fcgi launcher listening on the ip:port, and this launches the cgi with the program it is configured with. e.g for php programs, php files are sent to the php5-cgi executable via this command #!/bin/sh /usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -u www-data -f /usr/bin/php5-cgi >From the nature of your reply I assume that the Lazarus exe takes the place of the /usr/bin/php5-cgi. I built the helloworld program and I am running it as a CGI. Should I assume that it is a FastCGI as well? > >> I am going to try the existing scripts for nginx, but it looks like they >> use >> their FastCGI scripts to launch the Lazarus exe's as a CGI. >> > > Can you elaborate ? The webserver is supposed to start the CGI, and pass it > a TCP/IP port to listen on. That's it. > > Michael. > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Build scripts for Freepascal and Lazarus compilation from source
On 4 October 2010 11:18, Kjow wrote: > 2010/10/4 Frank Church : > > If you can make it fully configurable, so that c:\develop can be > > c:\%installdir%, specify which revision so that the download command will > be > > "svn -r %revision% http://svn.freepascal.org/fpc/trunk fpc_%revision%" > etc, > > it will be a lot more useful. > > I will make fully configurable when I "translate" it to a real > program, this batch is born to do what I need and batch scripting is > not very powerfull to do this things (for me) :) > > So, for the moment I don't think to improve it a lot more (maybe I'll > include some suggestions), but for me the "killer feature" will be the > real program. :) > > Batch or bash programs are real programs. I'd say use a batch file or some other script, and create a GUI interface to it. This GUI business is rather over done. You could try Pascal Script, thus have your Pascal cat and eat as well With my bash script all you simply specify the variables at the top and run it. Building a different revision is a simple matter of changing $FPC_REVISION or $LAZARUS_REVISION and Bob's your uncle. None of the existing stuff gets touched. The only shortcoming as I see it now is I have omitted to restore the $SYSTEM_FPC_COMPILER's original fpc.cfg to the home directory as .fpc.cfg, when I rebuild the compiler with its self. . > Regards, > Kjow > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Build scripts for Freepascal and Lazarus compilation from source
2010/10/4 Juha Manninen (gmail) > On Sunday 03 October 2010 12:25:50 Frank Church wrote: > > > I have posted an article and some code on some bash scripts I have > > > developed to install FPC and Lazarus from source at > > > > http://devblog.brahmancreations.com/content/build-scripts-for-installing-fr > > > eepascal-and-lazarus-from-source . > > > > > > Any comments and tips are well come. > > Why are FPC and Lazarus installed in a hidden directory (${HOMEDIR}/ > .programs/...)? > There is no real reason for that, I have created a visible symlink to it now. It is just that Linux creates too many visible folders in $HOME and I wanted it to be invisible. I realized the folly soon after and created the symlink rather than rename it and break a whole lot of existing stuff. > I was playing with an idea of a graphical installer. To make the > installation really easy and intuitive there should be a GUI. Besides > Lazarus itself makes WYSIWYG GUI design easy. The installation should be > brought to the same level. > > The installer would know the OS and recognize the Distro if running on > Linux. > > Then it would find the best way to install FPC. > > For windows it would download from SourceForge and install. > > For Mac something similar (Apple's developer tools must be installed > first!). > > For Linux it would check the distro's own package repo and offer to install > from there. Like: > > "yum install fpc" for Fedora and Redhat > > "zypper install fpc" for SuSe > > "rpm -i fpc" for other RPM distros > > "apt-get fpc" for Debian and Ununtu > > Other distros are derived from those so it would cover almost everything. > > If not found in a repo then it would download a package and install it. > > Then it would offer to install a binary version of Lazarus, or to download > the sources of a selected Lazarus version and build it. > > Installing many FPC and Lazarus versions and switching between them should > be supported. There are now some technical problems that prevent it but > those problems should be solved. > > Download and building the sources of Lazarus resembles the Gentoo Linux > style. > > It could actually be used for any program made with Lazarus. > > Juha > > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Build scripts for Freepascal and Lazarus compilation from source
On 4 October 2010 10:51, Kjow wrote: > 2010/10/3 Joshua Lim : > > Hi Frank, do you have something for Win32? Thanks. > > > > Frank Church wrote: > >> > >> I have posted an article and some code on some bash scripts I have > >> developed to install FPC and Lazarus from source at > >> > http://devblog.brahmancreations.com/content/build-scripts-for-installing-freepascal-and-lazarus-from-source > . > >> > >> Any comments and tips are well come. > >> > >> -- > >> Frank Church > > I made a win 7 batch that install, compile, update everything, > automatically. Double click on the file is the only action needed. > I will translate it to linux/ubuntu. > > It downloads the svn program, fpc 2.4.0 and latest fpc 2.5.1 (or 2.4.x > trunk editing a line)/lazarus/GLScene sources... > Install fpc/lazarus on c:\develop\ > > Launching it at the start of PC you can choise if you want to update > or exit (after 10sec it update automatically), > > If there is an interest, I can add a page in the official Lazarus wiki. > > It works well on both of my PC (desktop and notebook) with Win7, It > should work with other windows system. > > If you can make it fully configurable, so that c:\develop can be c:\%installdir%, specify which revision so that the download command will be "svn -r %revision% http://svn.freepascal.org/fpc/trunk fpc_%revision%" etc, it will be a lot more useful. > Regards, > Kjow > > PS I want to make a "real" program, instead a batch. Multiplatform > (Win+Linux), of course. > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Build scripts for Freepascal and Lazarus compilation from source
On 4 October 2010 00:26, Marcos Douglas wrote: > 2010/10/3 Frank Church : > > [snip] > > The wiki also has tips on compiling > > at > http://wiki.lazarus.freepascal.org/Installing_Lazarus#Compiling.2Finstalling_FPC_and_Lazarus_from_Sources_of_SVN_.28Win32.29 > > > > It is the type of article I don't like because you can learn a lot more > from > > a good well commented script with sensibly named variables (insert smug > > emoticon here) ;). > > I did this wiki and it is working very well for win32. > > I just want to say this, it is not directed at you as such, but it is a fault I find in many howtos and guides. A lot of howtos do not focus on structure, they operate on a very low level of abstraction. Howtos should be like functions or procedures. You state what the parameters or variables to the function are. The reader takes a look at the parameters to the function, and learns about the structure of that domain from the parameter names and the comments attached to them. A lot of the time those comments are not even necessary. The better parts of Lazarus and FPC are in subversion, and as the revisions constantly change it is important to label the builds properly and label the directories and settings locations properly which is why I created that script. It may appear to be overkill but I'd rather know where I am and what I am using at all times. Symlinks can be used to point the system's ie the one in /usr/lib,/usr/bin etc. In this case you still know what builds are being used by examining the symlinks. Building some of the revisions often fails which is why labelling them is so important. The reasons why Lazarus and FPC compilations fail, which is mostly due to incorrect fpc.cfg, lazarus executable, fpc/ppc386 executables, /fpcsrc directories, the settings etc are there reason why that script is the way it is. I spent hours unravelling them, and anyone who familiar with those issues will understand why I strove to get them right that way. I am also developing for Ubuntu 8.04, which is not up to date like later versions. I will probably comment it further to help newcomers understand its structure, and I would like those more familiar with the Lazarus/FPC compilation process to correct any errors or misunderstandings on my part. With respect to Win32 the buildfaq document has a sample batch file at 2.4.4 which illustrates my point, but does not go far enough. As an aside I think the noise level in howtos in the blogosphere and the internet in general is simply too high, and attention get's caught in trivia and boilerplate stuff. > Marcos Douglas > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Does Lazarus/FPC have a process launcher for FastCGI?
Does Lazarus/FPC have its own process launcher for FastCGI? I am going to try the existing scripts for nginx, but it looks like they use their FastCGI scripts to launch the Lazarus exe's as a CGI. /vfclists -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Build scripts for Freepascal and Lazarus compilation from source
On 3 October 2010 13:23, Joshua Lim wrote: > Hi Frank, do you have something for Win32? Thanks. > > I don't have anything for Win32 yet, but it should be easy to convert. You only have to look out for the Windows gotchas. I will have tackle in the near future, but I wouldn't want to keep you wating. Check Marco van de Voort's buildfaq<http://www.stack.nl/%7Emarcov/buildfaq.pdf>, Chapter 2.4. The wiki also has tips on compiling at http://wiki.lazarus.freepascal.org/Installing_Lazarus#Compiling.2Finstalling_FPC_and_Lazarus_from_Sources_of_SVN_.28Win32.29 It is the type of article I don't like because you can learn a lot more from a good well commented script with sensibly named variables (insert smug emoticon here) ;). There is some good information here too - Lazarus Support FAQ<http://www.lazarussupport.com/lazarus/Lazarus?section2=FAQ#How_do_I_compile_lazarus.3F> I think it can be translated straight as is to Windows, with some minor adjustment of path names. The important thing is to specify the actual location of the fpc compiler, rather than use the system installed on especially if you are going beyond the basic fpc 2.2.4/ lazarus 0.9.28 combo. Once you get an fpc 2.4.0 working, you can go on to an fpc 2.5.1 and things will be match easier then. Another important point is to make sure you have the fpc.cfg right for the compiler, which is why I always regenerate it for a compiler just before 'making' with it. Frank Church wrote: > >> >> I have posted an article and some code on some bash scripts I have >> developed to install FPC and Lazarus from source at >> http://devblog.brahmancreations.com/content/build-scripts-for-installing-freepascal-and-lazarus-from-source >> . >> >> Any comments and tips are well come. >> >> -- >> Frank Church >> > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How would you organize build directories for different versions?
On 29 September 2010 08:38, Mattias Gaertner wrote: > On Wed, 29 Sep 2010 06:59:02 +0100 > Frank Church wrote: > > > If you are using different Lazarus versions but with same components and > > packages, how would you organize separate build directories for the > > different versions, but same source location. > > > > eg. say I am using fpc 2.2.4/ lazarus 0.9.28, fpc 2.4.0 / lazarus 0.9.29 > and > > fpc 2.5.1/ lazarus 0.9.29 > > > > All though the package source files would be in one place (with necessary > > ifdefs for compiler and lazarus versions) I would like the units to go > into > > say lazarus_0928_224/components/package_name_dir, > lazarus0928240/components > > package_name_dir, lazarus0929251/components/package_name_dir. > > > > Would I have to configure that in the separate IDEs, or in the package > > source files themselves? > > There are many ways. > For example use one lazarus config directory for each version > combination and make all package output directories read only. Then the > IDE will put the ppu files into the config directory. > > > Can this be achieved via macros? For instance I have just posted a blog article on FPC/Lazarus compilaton at http://devblog.brahmancreations.com/content/build-scripts-for-installing-freepascal-and-lazarus-from-source, and what I want to do is to have the build_name variable as available to the IDE. e.g if a lazarus build is named lazarus_0920_27001, I would like to use a macro based on the package name as well as the lazarus build name, so the compiler knows that units for zeoslib for instance go to directory /components/lazarus_0920_27001/zeoslib. Even if the package sources must be modified that should be a minor problem. Surely something like that must be possible. I think it would also solve the problem of backporting packages made for fpc 2.5.1/lazarus 0.9.29 to the 0.9.28 and even the 0.9.26 series as it is extremely unlikely that they depend on language features only present in fpc 2.5.1. Delphi developers are still producing code compatible with Delphi 7. Delphi 7 still appears to be the reference platform for Delphi development. > Mattias > > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Build scripts for Freepascal and Lazarus compilation from source
I have posted an article and some code on some bash scripts I have developed to install FPC and Lazarus from source at http://devblog.brahmancreations.com/content/build-scripts-for-installing-freepascal-and-lazarus-from-source . Any comments and tips are well come. -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] using nginx with Lazarus/FPC web components
I am quite new to web development with Lazarus. Will fcl-web, freespider, webdesign programs work with nginx automatically? Is the configuration to switch from Apache to nginx quite straightforward, ie no recompilation of packages etc? -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] syslog facility in Lazarus
On 1 October 2010 07:33, Frank Church wrote: > when I seach google for syslog in Lazarus, I come across this page - > http://www.freepascal.org/packages/syslog.html - with this content, but > the code and the examples don't exist. > > Have they been removed? > > == > syslog > Syslog package > The systemlog contains a translation of the (linux) C system log interface. > It contains routines to add system logging to your application, and links to > the C library for the implementation of these routines. (View interface) > > There is an example called testlog which shows how the unit should be used. > > == > > > Thanks guys, I am beginning to tell the difference between the FCL and the LCL. I take it that FCL refers to packages and libraries that are independent of Lazarus, or the windowing or component related part of Lazarus? > -- > Frank Church > > ======= > http://devblog.brahmancreations.com > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] syslog facility in Lazarus
when I seach google for syslog in Lazarus, I come across this page - http://www.freepascal.org/packages/syslog.html - with this content, but the code and the examples don't exist. Have they been removed? == syslog Syslog package The systemlog contains a translation of the (linux) C system log interface. It contains routines to add system logging to your application, and links to the C library for the implementation of these routines. (View interface) There is an example called testlog which shows how the unit should be used. == -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Tool to convert components properties to Pascal source code.
On 27 September 2010 08:29, Antônio wrote: > Try this: > I have tried your example with this code object FPWebModule1: TFPWebModule1 OldCreateOrder = False Actions = < item Name = 'func1call' Default = True OnRequest = func1callRequest end> CreateSession = False Height = 300 HorizontalOffset = 290 VerticalOffset = 149 Width = 400 end FPWebModule1 := TFPWebModule1.Create(Application); with FPWebModule1 do begin OldCreateOrder := False; Actions := <; item; Name := 'func1call'; Default := True; OnRequest := func1callRequest; end>; CreateSession := False; Height := 300; HorizontalOffset := 290; VerticalOffset := 149; Width := 400; end; The Action property translates as: Actions := <; item; Name := 'func1call'; Default := True; OnRequest := func1callRequest; end>; Is this correct ObjectPascal code? > http://lazarusbrasil.org/LFM2Code.zip > > Antônio > > 2010/9/26 Mattias Gaertner : > > On Sun, 26 Sep 2010 16:05:08 +0100 > > Frank Church wrote: > > > >> Is there a tool that can take an .lfm file and generate the equivqlent > >> Pascol code to create it runtime? > > > > See examples/pascalstream/PascalStream1.lpi. > > > > It does not support DefineProperties, for example image data. > > > > Mattias > > > > -- > > ___ > > Lazarus mailing list > > Lazarus@lists.lazarus.freepascal.org > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > > > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] How would you organize build directories for different versions?
If you are using different Lazarus versions but with same components and packages, how would you organize separate build directories for the different versions, but same source location. eg. say I am using fpc 2.2.4/ lazarus 0.9.28, fpc 2.4.0 / lazarus 0.9.29 and fpc 2.5.1/ lazarus 0.9.29 All though the package source files would be in one place (with necessary ifdefs for compiler and lazarus versions) I would like the units to go into say lazarus_0928_224/components/package_name_dir, lazarus0928240/components package_name_dir, lazarus0929251/components/package_name_dir. Would I have to configure that in the separate IDEs, or in the package source files themselves? -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus and FPC versions for Ubuntu 10?
On 26 September 2010 22:55, ABorka wrote: > Hi, > > I would do a build of FPC and Lazarus from SVN trunk. > It works for me superbly and I don't have to worry about updates or keeping > up-to-date with FPC/Lazarus. > Nor waiting years for the latest packages to be updated and included in > Ubuntu. > The 2.5.1 trunk of FPC has a ton of new features and fixes/updates which I > need and use without a problem. > > Building FPC and Lazarus from SVN can be a little bit tricky until one gets > it right, but once you have it you will not look back. > > I can list my step by step install if you need (the first PITA item on the > list is to install the VMWare tools into your Ubuntu so you will have > copy/paste for the build process commands. This requires some kernel > sources, etc.). > > Can you do that please? I have just had a difficult time installing Lazarus and FPC from SVN. I succeeded but I am not sure what other flaws are lurking in the build. I dread to think what might happen next time I try it again, and I am sure I will have to. We could exchange some tips. > AB > > > On 9/26/2010 14:29, Bo Berglund wrote: > >> I have just installed Ubuntu 10.04.1 desktop in a VMWare virtual machine. >> I also did a full update of everything after the install. >> >> Now for Lazarus >> In the Synaptic Package Manager I see versions: >> Lazarus: 0.9.28.2-8ubuntu1 >> FPC: 2.4.0-2 >> >> I don't know if these are current or if there is another >> way to get the right versions. >> Please suggest the best way to proceed. >> >> -- >> Bo Berglund >> >> >> -- >> ___ >> Lazarus mailing list >> Lazarus@lists.lazarus.freepascal.org >> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus >> >> > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Is there a way to choose with fpc to use in lazarus command?
On 25 September 2010 23:04, Mattias Gaertner wrote: > On Sat, 25 Sep 2010 22:43:48 +0100 > Frank Church wrote: > > >[...] > > > > I am now get the dreaded "Fatal: Can't find unit Contnrs used by > x" > > > > error, yet it is located in > > > /packages/fcl-base/src/contnrs.pp > > > > > > The compiler searches the ppu. > > > The error message probably means the compiler found ppu files compiled > > > with a different version. Note: The Contnrs is just the first unit the > > > compiler misses. > > > Have you compiled lazarus with the new compiler? > > > > > > > > I am sure I did, because the latest svn needs to be compiled with fpc > 2.4.0. > > Good. > > > > I think I may have deleted the .o and.ppu file for contnrs because > googling > > indicated that they may be corrupted or something. > > I hope yo only deleted the 2.2.4 ppus, not the 2.4.0 ppu. > Do you have the 2.4.0 contnrs.ppu? > > > > When I pass the mouse over the file names, I get the popups showing the > file > > location correctly, except for contnrs. Does the IDE obtain the filename > > from the .o or .ppu files, or my scanning the source directory? > > The fpc source directories are special. > The IDE searches the contnrs.ppu in the ppu search path of the > compiler. If it finds it, it searches the source in the FPC source > directories. > > > > The contnrs file is in the /packages/fcl-base/src > > directory. Can the IDE locate them there? > > > > If I delete them can't Lazarus recompile them again? > > No. > The fpc ppu files are installed by you. > > I believe all the problems were the result of using an fpc 2.4.0 created by fpc 2.2.4 to compile Lazarus. I thought the make install PP=/new/fpc2.4.0 would work. But I had to recompile the new fpc 2.4.0 source tree using the new fpc 2.4.0 to get things to work. Is that the most likely reason for those errors? > Mattias > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Tool to convert components properties to Pascal source code.
Is there a tool that can take an .lfm file and generate the equivqlent Pascol code to create it runtime? -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Is there a way to choose with fpc to use in lazarus command?
On 25 September 2010 22:20, Mattias Gaertner wrote: > On Sat, 25 Sep 2010 21:48:27 +0100 > Frank Church wrote: > > > On 25 September 2010 21:30, Mattias Gaertner >wrote: > > > > > On Sat, 25 Sep 2010 21:13:32 +0100 > > > Frank Church wrote: > > > > > > > On 25 September 2010 20:58, Marcos Douglas wrote: > > > > > > > > > 2010/9/25 Frank Church : > > > > > > > > > > > > Is there a way to pass on the version of FPC you want to use with > > > > > > startlazarus or lazarus command? > > > > > > > > > > The configuration of Lazarus is created, at the first time, in > > > > > C:\Documents and Settings\\Application Data\lazarus\ > > > > > You can modify these files, manually, or you can use the IDE to > modify > > > > > them. > > > > > After, copy this folder to other place and use the parameter > > > > > --pcp= like this (on Windows): > > > > > > > > > > start lazarus --pcp=c:\your_config_folder > > > > > > > > > > > Is there a way it can be set in the fpc.cfg, and can the fpc.cfg > be > > > > > passed > > > > > > to ths lazarus command? > > > > > > > > > > You can use the enviroment variable PPC_CONFIG_PATH to set where is > > > > > the fpc.cfg file. > > > > > > > > > > > I have a 2.2.4 from repository and a 2.4.0 svn build and Lazarus > is > > > > > always > > > > > > reverting to the 2.2.4 version. > > > > > > > > > > I use FPC 2.5.1 and Laz 0.9.29. > > > > > > > > > > > > > > Can you set which ppc386 file to use in the fpc.cfg? > > > > > > No. The fpc.cfg is read by the ppc386. > > > > > > > > > > Is there a way to automatically generate the right fpc.cfg based on > which > > > > ppc386 your are using. Sven Barth has shown me a way to tell the fpc > > > which > > > > ppc386 to use, but I am looking for a way to set it in the IDE or in > the > > > > fpc.cfg > > > > > > What's wrong with > > > IDE menu / Environment / Options ... / Environment / > > > Files / compiler path > > > ? > > > > > > > Because the caption of the compiler path settings says "Compiler path > (e.g. > > fpc)" I thought it had to be set to the bin/fpc. > > The caption says fpc, because for most users the path to the fpc > executable is the best choice. > > > > It is now set to ppc386 > > > > I am now get the dreaded "Fatal: Can't find unit Contnrs used by x" > > error, yet it is located in > /packages/fcl-base/src/contnrs.pp > > The compiler searches the ppu. > The error message probably means the compiler found ppu files compiled > with a different version. Note: The Contnrs is just the first unit the > compiler misses. > Have you compiled lazarus with the new compiler? > > I am sure I did, because the latest svn needs to be compiled with fpc 2.4.0. I think I may have deleted the .o and.ppu file for contnrs because googling indicated that they may be corrupted or something. When I pass the mouse over the file names, I get the popups showing the file location correctly, except for contnrs. Does the IDE obtain the filename from the .o or .ppu files, or my scanning the source directory? The contnrs file is in the /packages/fcl-base/src directory. Can the IDE locate them there? If I delete them can't Lazarus recompile them again? Mattias > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Is there a way to choose with fpc to use in lazarus command?
On 25 September 2010 21:30, Mattias Gaertner wrote: > On Sat, 25 Sep 2010 21:13:32 +0100 > Frank Church wrote: > > > On 25 September 2010 20:58, Marcos Douglas wrote: > > > > > 2010/9/25 Frank Church : > > > > > > > > Is there a way to pass on the version of FPC you want to use with > > > > startlazarus or lazarus command? > > > > > > The configuration of Lazarus is created, at the first time, in > > > C:\Documents and Settings\\Application Data\lazarus\ > > > You can modify these files, manually, or you can use the IDE to modify > > > them. > > > After, copy this folder to other place and use the parameter > > > --pcp= like this (on Windows): > > > > > > start lazarus --pcp=c:\your_config_folder > > > > > > > Is there a way it can be set in the fpc.cfg, and can the fpc.cfg be > > > passed > > > > to ths lazarus command? > > > > > > You can use the enviroment variable PPC_CONFIG_PATH to set where is > > > the fpc.cfg file. > > > > > > > I have a 2.2.4 from repository and a 2.4.0 svn build and Lazarus is > > > always > > > > reverting to the 2.2.4 version. > > > > > > I use FPC 2.5.1 and Laz 0.9.29. > > > > > > > > Can you set which ppc386 file to use in the fpc.cfg? > > No. The fpc.cfg is read by the ppc386. > > > > Is there a way to automatically generate the right fpc.cfg based on which > > ppc386 your are using. Sven Barth has shown me a way to tell the fpc > which > > ppc386 to use, but I am looking for a way to set it in the IDE or in the > > fpc.cfg > > What's wrong with > IDE menu / Environment / Options ... / Environment / > Files / compiler path > ? > Because the caption of the compiler path settings says "Compiler path (e.g. fpc)" I thought it had to be set to the bin/fpc. It is now set to ppc386 I am now get the dreaded "Fatal: Can't find unit Contnrs used by x" error, yet it is located in /packages/fcl-base/src/contnrs.pp > Mattias > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Is there a way to choose with fpc to use in lazarus command?
On 25 September 2010 20:58, Marcos Douglas wrote: > 2010/9/25 Frank Church : > > > > Is there a way to pass on the version of FPC you want to use with > > startlazarus or lazarus command? > > The configuration of Lazarus is created, at the first time, in > C:\Documents and Settings\\Application Data\lazarus\ > You can modify these files, manually, or you can use the IDE to modify > them. > After, copy this folder to other place and use the parameter > --pcp= like this (on Windows): > > start lazarus --pcp=c:\your_config_folder > > > Is there a way it can be set in the fpc.cfg, and can the fpc.cfg be > passed > > to ths lazarus command? > > You can use the enviroment variable PPC_CONFIG_PATH to set where is > the fpc.cfg file. > > > I have a 2.2.4 from repository and a 2.4.0 svn build and Lazarus is > always > > reverting to the 2.2.4 version. > > I use FPC 2.5.1 and Laz 0.9.29. > > Can you set which ppc386 file to use in the fpc.cfg? Is there a way to automatically generate the right fpc.cfg based on which ppc386 your are using. Sven Barth has shown me a way to tell the fpc which ppc386 to use, but I am looking for a way to set it in the IDE or in the fpc.cfg > Marcos Douglas > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to pass path of fpc to make command, and some thoughts on Lazarus/FPC Installation.
On 25 September 2010 20:33, Sven Barth wrote: > On 24.09.2010 21:53, Frank Church wrote: > >> >> >> On 24 September 2010 16:45, Sven Barth > <mailto:pascaldra...@googlemail.com>> wrote: >>There should be a makeskel or similar binary in fpc240/bin/fpc which >>you can call to create a config skeleton (you might call it with -h >>to see its help). >> >> >> I think the command in question is 'samplecfg'. It also generates some >> fp.xxx files under ~/.fp/. I hope they are for the command line version. >> Could they possibly interfere with other versions of FreePascal I might >> be using? >> > > As I'm now on my Linux PC again, I checked that: it is makeskel in > ~/LazarusInstalls/fpc240/bin/makeskel. The help can be queried by using "-h" > or "--help" as parameter. > > makeskel has a whole lot of options but none of them mention fpc.cfg. Do you have a sample command? It appears to be some kind of xml generator. > FPC reads by default the configuration file from ~/.fpc.cfg (and > /etc/fpc.cfg, but I'm not using that one). So every FPC version will use > that file if it exists and you didn't tell it to exclude the default file > with "-n" (I forgot that below). > > But you can use the $fpcversion macros in the config file to "generalize" > that (might be usable with the "one prefix" configuration below). > > > I am working through you suggestions and I notice that the 2.4.0 >> specific files seem to be in a directory lib/fpc/2.4.0 under >> ~/LazarusInstalls/fpc240, which contains a 'share' and a 'bin' >> directory.'share' contains a 'doc/2.4.0' directory. >> >> Does that mean that the I could also use make install >> INSTALL_PREFIX='~/LazarusInstalls/fpc240' command to install all the fpc >> versions into the same directory without their executable's clashing? >> > > > > I take it that the 'bin' folder in the INSTALL_PREFIX contains utilities > > which can be shared among the different installations, and that the > > 'share' folder will also have different docs for the versions. > > > > Yes, the utilities in "bin" can be shared, but you need to make sure that > they are from the newest version you are using, because the compiler might > rely on them. > > And I just noticed: you can force "fpc" to look in a certain directory for > the compiler instead of relying on path: > > fpc -Xp~/LazarusInstalls/fpc240/lib/fpc/2.4.0 {other parameters} > > will search for the "ppc*" in the version 2.4.0 directory, while > > fpc -Xp~/LazarusInstalls/fpc240/lib/fpc/2.5.1 {other parameters} > I have tested this and it works but it does not accept the ~ . It needs the full path name, it also rather odd because it does not allow the use of a space between the option and the parameter. Can this be set in the Lazarus environment as well, for all projectsm and Lazarus IDE rebuilds? > > will search in the 2.5.1 directory > > > Regards, > Sven > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Is there a way to choose with fpc to use in lazarus command?
Is there a way to pass on the version of FPC you want to use with startlazarus or lazarus command? Is there a way it can be set in the fpc.cfg, and can the fpc.cfg be passed to ths lazarus command? I have a 2.2.4 from repository and a 2.4.0 svn build and Lazarus is always reverting to the 2.2.4 version. -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What is the cause of this fpcres error? It is on the path.
On 25 September 2010 07:56, zeljko wrote: > On Saturday 25 September 2010 02:07, Frank Church wrote: > > I am trying to compile the latest Lazarus trunk and I get this error. > > > > Compiling resource ../units/i386-linux/lazarus.or > > lazarus.pp(127,1) Error: Can't call the resource compiler > > "/home/rchurch/LazarusInstalls/fpc240/bin/fpcres", switching to external > > mode > > lazarus.pp(127,1) Fatal: There were 1 errors compiling module, stopping > > Probably ulimit bug which existed in 2.4.0. > Try from terminal something like ulimit -n 1024 and then rebuild laz from > that > term. > > Thanks it fixed my problem :) > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] What is the cause of this fpcres error? It is on the path.
I am trying to compile the latest Lazarus trunk and I get this error. Compiling resource ../units/i386-linux/lazarus.or lazarus.pp(127,1) Error: Can't call the resource compiler "/home/rchurch/LazarusInstalls/fpc240/bin/fpcres", switching to external mode lazarus.pp(127,1) Fatal: There were 1 errors compiling module, stopping -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to pass path of fpc to make command, and some thoughts on Lazarus/FPC Installation.
On 24 September 2010 16:45, Sven Barth wrote: > Am 24.09.2010 17:25, schrieb Frank Church: > > 1. The fpc executable is installed in ~/LazarusInstalls/fpc240/bin/fpc >> When I execute ~/LazarusInstalls/fpc240/bin/fpc, the first 3 lines of >> output say: >> >> Free Pascal Compiler version 2.2.4-3 [2009/06/03] for i386 >> Copyright (c) 1993-2008 by Florian Klaempfl >> /usr/lib/fpc/2.2.4/ppc386 [options] [options] >> >> Obviously fpc calls ppc386 that is in the path, perhaps there is no >> fpc.cfg available. >> >> > There might be a .fpc.cfg in ~/ from your 2.2.4, but the ppc386 might > indeed be called by using $PATH. You can check that by overriding it > temporaily by calling fpc in the following way (please adjust the paths if > necessary, I constructed them out of memory): > > PATH=~/LazarusInstalls/fpc240/lib/fpc/2.4.0 > ~/LazarusInstalls/fpc240/bin/fpc > > > So how I can create an fpc.cfg and pass it the fpc I just compiled? >> Couldn't the install script create a suitable fpc.cfg to match the >> installation directory? >> > > There should be a makeskel or similar binary in fpc240/bin/fpc which you > can call to create a config skeleton (you might call it with -h to see its > help). > > I think the command in question is 'samplecfg'. It also generates some fp.xxx files under ~/.fp/. I hope they are for the command line version. Could they possibly interfere with other versions of FreePascal I might be using? > You might also copy your 2.2.4 config file and change all occurences of > "/usr/lib/fpc/2.2.4" to "/home/???/LazarusInstalls/fpc240/lib/fpc/2.4.0". > > > >> 2. Onto Lazarus >> >> cd ~/LazarusBuilds >> svn checkout http://svn.freepascal.org/svn/lazarus/trunk lazarus27446 >> cd lazarus27446 >> >> make obviously fails here because I don't know the option of passing my >> shiny new fpc 2.4.0 to the make command. >> >> Is there an option for that, and are there other options to ensure that >> new compiler will only link >> with files from its subdirectories? >> >> There is also this hilarious bit in the README.txt that says. >> >> == >> Compilation: >> You don't need ./configure, just do >> >> []$ make clean all >> >> This will create the lazarus executable. Start it and enjoy. >> === >> >> What, doesn't even need FreePascal? >> >> There may be some legacy reasons why Lazarus/FPC doesn't use the >> ./configure approach, but at least a well documented bash script which >> allows you to set some variables before compilation would be very helpful. >> > > There is no legacy reason besides FPC simply not using it cause FPC doesn't > need it. > > You can pass the used compiler binary by adding > "FPC=~/LazarusInstalls/fpc240/lib/fpc/2.4.0/ppc386" to the "make" command > line (after "clean all"). Please note that you also need the ~/.fpc.cfg for > this to work. > > Note: You should(!) be able to use a different config file than > "~/.fpc.cfg" by passing "OPT=@/path/to/fpc.cfg" to the make command as well. > > > >> After all, the main idea of programming is never to use constants or >> literals where well documented >> variables will do >> > > Yes, but setting up different versions of FPC needs a bit of a creative > thinking process and I've yet to think of an easier way than using a "switch > script" ^^ > > I am working through you suggestions and I notice that the 2.4.0 specific files seem to be in a directory lib/fpc/2.4.0 under ~/LazarusInstalls/fpc240, which contains a 'share' and a 'bin' directory.'share' contains a 'doc/2.4.0' directory. Does that mean that the I could also use make install INSTALL_PREFIX='~/LazarusInstalls/fpc240' command to install all the fpc versions into the same directory without their executable's clashing? I take it that the 'bin' folder in the INSTALL_PREFIX contains utilities which can be shared among the different installations, and that the 'share' folder will also have different docs for the versions. > Regards, > Sven > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] How to pass path of fpc to make command, and some thoughts on Lazarus/FPC Installation.
I am trying to compile Lazarus from source using a different compiler and I have hit a snag. These are the steps followed so far, but I need to pass the path of the new fpc to the Lazarus make command. #create build and installation directories mkdir ~/LazarusBuilds mkdir ~/LazarusInstalls #fpc svn checkout http://svn.freepascal.org/svn/fpc/tags/release_2_4_0 fpc240 cd fpc240 make all PP=/usr/bin/fpc #use default fpc installed from Ubuntu package make install PP=/home/fchurch/LazarusBuilds/fpc240/compiler/ppc386 INSTALL_PREFIX=/home/fchurch/LazarusInstalls/fpc240 These are the issues I am having. 1. The fpc executable is installed in ~/LazarusInstalls/fpc240/bin/fpc When I execute ~/LazarusInstalls/fpc240/bin/fpc, the first 3 lines of output say: Free Pascal Compiler version 2.2.4-3 [2009/06/03] for i386 Copyright (c) 1993-2008 by Florian Klaempfl /usr/lib/fpc/2.2.4/ppc386 [options] [options] Obviously fpc calls ppc386 that is in the path, perhaps there is no fpc.cfg available. So how I can create an fpc.cfg and pass it the fpc I just compiled? Couldn't the install script create a suitable fpc.cfg to match the installation directory? 2. Onto Lazarus cd ~/LazarusBuilds svn checkout http://svn.freepascal.org/svn/lazarus/trunk lazarus27446 cd lazarus27446 make obviously fails here because I don't know the option of passing my shiny new fpc 2.4.0 to the make command. Is there an option for that, and are there other options to ensure that new compiler will only link with files from its subdirectories? There is also this hilarious bit in the README.txt that says. == Compilation: You don't need ./configure, just do []$ make clean all This will create the lazarus executable. Start it and enjoy. === What, doesn't even need FreePascal? There may be some legacy reasons why Lazarus/FPC doesn't use the ./configure approach, but at least a well documented bash script which allows you to set some variables before compilation would be very helpful. After all, the main idea of programming is never to use constants or literals where well documented variables will do /vfclists -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Where does installer place files?
I have fixed that part, I was looking in the wrong directory. When I run fpc I get - Free Pascal Compiler version 2.2.4-3 [2009/06/03] for i386 Why is it still saying version 2.2.4-3? Did I get the wrong one from subversion? On 24 September 2010 12:08, Frank Church wrote: > > > On 24 September 2010 12:02, Frank Church wrote: > >> >> I have just used the fpc package to install freepascal 2.4.0 from source >> in my home account, and I have done a make install PREFIX="" to install >> it to a folder of my choice, but I can't find locate the fpc executable >> there. >> >> There is a file named compiler/utils/fpc it gives a 2.2.4 version name, >> when I downloaded release_2.4.0 from svn. There doesn't appear to be a >> fpc.cfg file neither. >> >> >> I intend to use it compile Lazarus from trunk as well, but I can't see how > I can do that if I can't locate the executeable. I presume that make build > and make install are the commands for doing that? > >> >> >> -- >> Frank Church >> >> ======= >> http://devblog.brahmancreations.com >> > > > > -- > Frank Church > > === > http://devblog.brahmancreations.com > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Where does installer place files?
On 24 September 2010 12:02, Frank Church wrote: > > I have just used the fpc package to install freepascal 2.4.0 from source in > my home account, and I have done a make install PREFIX="" to install it > to a folder of my choice, but I can't find locate the fpc executable there. > > There is a file named compiler/utils/fpc it gives a 2.2.4 version name, > when I downloaded release_2.4.0 from svn. There doesn't appear to be a > fpc.cfg file neither. > > > I intend to use it compile Lazarus from trunk as well, but I can't see how I can do that if I can't locate the executeable. I presume that make build and make install are the commands for doing that? > > > -- > Frank Church > > === > http://devblog.brahmancreations.com > -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Where does installer place files?
I have just used the fpc package to install freepascal 2.4.0 from source in my home account, and I have done a make install PREFIX="" to install it to a folder of my choice, but I can't find locate the fpc executable there. There is a file named compiler/utils/fpc it gives a 2.2.4 version name, when I downloaded release_2.4.0 from svn. There doesn't appear to be a fpc.cfg file neither. -- Frank Church === http://devblog.brahmancreations.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus