[Lazarus] on ARM Linux ,SoftFloat and EABI issues
Hi Florian and other friends I am involved in porting existing C code to Arm Linux for AT91SAM9263 Ek board with 340x220 display. I need to write lots of console kinda apps. I am using a qemu-system-arm emulated Armel Debian machine on a Debian x86 Lenny distro for writing code. I installed fpc-2.2.0.arm-linux.tar on the emulated linux. Which compiling a simple helloworld.pas , i get the classic error of System.o being EABI 0 while target is EABI 4. I have got the svn download of fpc, and trying to compile it in the emulated machine for ARM for the past 2 days. I have given :- make clean all ARCH=arm OPT=-CfSoft. Its compiling for quite long and finally comes to rest endlessly while compiling system.pp. Let me remind you that i am dont use a Cross compiler, but an emulated Arm machine. My boss and colleagues are 'C only' programmers . Doing all kinda harware access for embedded devices using C. They have developed pretty good successful apps using pure C without an OS. What i have been trying is to convice them to use Freepascal for the Application part, which is presently console Apps. The next stage is to develop X apps using Lazarus. But for these I need to get FPC working. Please help. regards Nataraj ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Postgres Dlls not found
On 5/29/08, Joost van der Sluis [EMAIL PROTECTED] wrote: You didn't mix up 64-bit and 32-bit dlls accidentally? Well I installed pgadmin3 on the machine and it runs. I copied ALL 18 dlls from the C:\Program Files\pgadminIII\ Directory into System32\ and, when I start my app it generates an error message asking for libpg.dll. ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Postgres Dlls not found
I don't know what more I can try. It doesn't make sense. Why should the laptop be able to run when the DLLs are copied to the system32 directory, yet the Desktop clients are generating an error message which says that the Postgres Client is not installed (libpq.dll). Could it be that the error message is misleading? Might it be something else which is tripping up the app? On 5/30/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On 5/29/08, Joost van der Sluis [EMAIL PROTECTED] wrote: You didn't mix up 64-bit and 32-bit dlls accidentally? Well I installed pgadmin3 on the machine and it runs. I copied ALL 18 dlls from the C:\Program Files\pgadminIII\ Directory into System32\ and, when I start my app it generates an error message asking for libpg.dll. ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Postgres Dlls not found
On Fri, 30 May 2008, [EMAIL PROTECTED] wrote: On 5/29/08, Joost van der Sluis [EMAIL PROTECTED] wrote: You didn't mix up 64-bit and 32-bit dlls accidentally? Well I installed pgadmin3 on the machine and it runs. I copied ALL 18 dlls from the C:\Program Files\pgadminIII\ Directory into System32\ and, when I start my app it generates an error message asking for libpg.dll. Try to copy the libraries in the directory of your application. The procedure to load the library uses a straight windows loadLibrary call, as can be seen from the following: Procedure InitialiseDllist; begin inc(RefCount); if RefCount = 1 then begin DllistLibraryHandle := loadlibrary(pqlib); if DllistLibraryHandle = nilhandle then begin RefCount := 0; Raise EInOutError.Create('Can not load PosgreSQL client. Is it installed? ('+pqlib+')'); end; So normally it should find it. Michael. ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Inactive Dataset
On Thu, 29 May 2008, Joost van der Sluis wrote: Op donderdag 29-05-2008 om 10:21 uur [tijdzone +0200], schreef Dave Coventry: Next step, removed the Reference in the Datasource property of the SQLQuery. It Works! Duh. That sounds logical. And I do aggree that this is very confusing. I already wanted to change that, but it's Delphi compatibility But maybe we can do something about that error message. Maybe we can detect this problem somewhat better I think that changing the error message to something like 'failed to open master datasource: '+E.Message would be better. Michael. ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] TSqlite3Connection apparently works with fpc 2.2.1 snapshot
Hello, I just tested (not extensively) and it seems that TSqlite3Connection works just fine with fpc 2.2.1 (TSQLScript and TSQLConnector compile and register fine, but since I don't know what they're for I've not tested them). Maybe the conditionals in registersqldb.pas should be adjusted? (don't know how though). Bye -- Luca Olivetti Wetron Automatización S.A. http://www.wetron.es/ Tel. +34 93 5883004 Fax +34 93 5883007 ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How big can DB transactions go?
On 29/05/2008, Michael Van Canneyt [EMAIL PROTECTED] wrote: I did a test once with 600.000 records in a single transaction. No problem. Thanks Michael, that's good to know. Try to switch off 'forced writes' in your firebird config file, that should speed up things. OK, I've done that and will try another huge insert to see how it performs. And increase the number of in memory pages of your server. The default setting is ridiculously low. I'm not familiar with tweaking Firebird, but hope to learn more about the internals and finer details of Firebird over the next few months. Could you be more specific as to what config setting you are referring to? There are a lot of settings in the firebird.conf file. Yesterday I left the test program running which inserted the remainder of the records. 460k master records and 10 times that in details records. It took 285 minutes on my P4 2.40GHz with 1 Gig memory. :) I believe the allocating of disk space was the major cause for the slowness. I'm going to empty that database tables and hopefully the actual db file doesn't shrink - then run the insert again to see how long it takes without the need to allocate disk space. hehe... This compares nothing against the 4-6Gig MS SQL Server databases we used in a UK job. Doing data conversion took 3.5 days non-stop on a quad processor with 8Gig memory and a mean RAID system. Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How big can DB transactions go?
On Fri, 30 May 2008, Graeme Geldenhuys wrote: On 29/05/2008, Michael Van Canneyt [EMAIL PROTECTED] wrote: I did a test once with 600.000 records in a single transaction. No problem. Thanks Michael, that's good to know. Try to switch off 'forced writes' in your firebird config file, that should speed up things. OK, I've done that and will try another huge insert to see how it performs. And increase the number of in memory pages of your server. The default setting is ridiculously low. I'm not familiar with tweaking Firebird, but hope to learn more about the internals and finer details of Firebird over the next few months. Could you be more specific as to what config setting you are referring to? There are a lot of settings in the firebird.conf file. DefaultDbCachePages = 2048 2048 pages is the default. To calculate the amount of memory, multiply with the page size (8, 16 or 32 Kb) I put this to 5 or so, for large databases. You may want to check MaxUnflushedWrites MaxUnflushedWriteTime as well. Yesterday I left the test program running which inserted the remainder of the records. 460k master records and 10 times that in details records. It took 285 minutes on my P4 2.40GHz with 1 Gig memory. :) I believe the allocating of disk space was the major cause for the slowness. I'm going to empty that database tables and hopefully the actual db file doesn't shrink - then run the insert again to see how long it takes without the need to allocate disk space. Normally it does not shrink. Only a backup-restore cycle will do that. Michael. ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Postgres Dlls not found
On 5/29/08, Jalal [EMAIL PROTECTED] wrote: I have only found these DLLs needed for a PostgreSQL client connection: libpq.dll libeay32.dll libiconv-2.dll libintl-2.dll comerr32.dll krb5_32.dll ssleay32.dll Of these, libiconv-2.dll is on neither my laptop, nor the client desktops, however, libiconv.dll is on both, typo? libintl-2.dll is not on the Desktop client, but it IS on my laptop as part of Inkscape. However, copying it to the Desktop does not help. libintl3.dll, is present, as part of the pgadmin3 installation listed below. comerr32.dll gssapi32.dll iconv.dll k5sprt32.dll krb5_32.dll libeay32.dll libiconv2.dll libintl3.dll libpq.dll libxml2.dll libxslt.dll msvcm80.dll msvcp80.dll msvcr71.dll msvcr80.dll pgaevent.dll ssleay32.dll zlib1.dll ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Postgres Dlls not found
[EMAIL PROTECTED] wrote: Why should the laptop be able to run when the DLLs are copied to the system32 directory, yet the Desktop clients are generating an error message which says that the Postgres Client is not installed (libpq.dll). The load can fail if libpg.dll or one of the dlls it uses does not exist on the PC. Try opening libpg.dll with http://www.dependencywalker.com/ and check that all the dlls it lists exist on the PC Greetings Søren ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Postgres Dlls not found
On 5/30/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Of these, libiconv-2.dll is on neither my laptop, nor the client desktops, however, libiconv.dll is on both, typo? Sorry, my turn to produce a typo, I meant, of course, libiconv2.dll ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How big can DB transactions go?
Le May 30, 2008 à 9:37 AM, Graeme Geldenhuys a écrit : On 29/05/2008, Michael Van Canneyt [EMAIL PROTECTED] wrote: I did a test once with 600.000 records in a single transaction. No problem. Thanks Michael, that's good to know. Transactions should be stored in memory. So it depends of your memory capacity. -- Damien Gerard [EMAIL PROTECTED] Intelligence is 10 million rules. -- Douglas Lenat ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TEST SQLITE
Op vrijdag 30-05-2008 om 01:01 uur [tijdzone +0200], schreef Chris37: @ Joost van der Sluis Ref: http://bugs.freepascal.org/view.php?id=11350 Hi, Thank but wich version of Lazarus could i download for tested your correction ? I think I was in time to make it into the snapshots of today or any later date. You can use a lazarus snapshot which contains fpc version 2.1.1 Joost. ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TSqlite3Connection apparently works with fpc 2.2.1 snapshot
Luca Olivetti schreef: Hello, I just tested (not extensively) and it seems that TSqlite3Connection works just fine with fpc 2.2.1 (TSQLScript and TSQLConnector compile and register fine, but since I don't know what they're for I've not tested them). At the time they were added to fpc 2.3.1, nowadays they are merged to fpc 2.2.1. Maybe the conditionals in registersqldb.pas should be adjusted? (don't know how though). Done. Vincent ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Carbon and TMemo/TEdit
I have in my app a TScrollBox (AutoScroll=True) with some controls created by hand as follow : E := TEdit.Create(nil); E.Parent := MyScrollBox; [...] Works fine under GTK2/Win32. However with Carbon TEdit and TMemo don't have a border and they are not properly drawn when scrolling in the TScrollBox. I try to make a new and simple app to reproduce it but using the IDE to create controls (Lazarus with the Carbon Widgetset) and all works well, at runtime such as designtime (except the control selects the whole text then deselect it when you click on it). Would the parameter `nil` (in `TEdit.Create(nil)`) be a problem with the Carbon WidgetSet ? Thanks. -- Damien Gerard [EMAIL PROTECTED] Intelligence is 10 million rules. -- Douglas Lenat ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] No cursor in Lazarus
Hello, Sometimes the cursor in Lazarus is gone, after a restart of the program, the cursor is back again. It's Lazarus version 0.9.24 beta from Ubuntu 8.04. Does somebody here knows a solution for this problem? With regards, Paul van der Vlis. -- http://www.vandervlis.nl/ ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Carbon: Simple component in a simple package with strange behavior
Hi all, Lately I've been trying to create a package with custom components, which works already on Lazarus Win32, but gets all kinds of errors on Mac OS X, so I created a package from scratch and try to isolate different problems. I created a new package and saved it as TestPackage.lpk, added a new component with TWinControl as ancestor type and named it TCommonTest, named the unit NewCtrls and saved the unit as newctrls.pas. I added a new requirement to the package, so that LCL also is required by the new package. I then manually added a new component to the unit named TComponentTest with TCommonTest as ancestor, and changed the register procedure to only register the last component. It compiles, and the component is installed, and the component is visible in the tab New Ctrls on Lazarus, which is compiled to Carbon. But when I try to drop the new component on a form (on a new and clean application) it fails saying Error moving component ComponentTest1:TComponentTest. The new component does not appear on the Object Inspector at first, but clicking on the component tree will make it appear, and I also can select the component on the form - but nothing is added to the unit source, and the application can't run because of Class TComponentTest not found, which naturally is caused by nothing was added to the units uses clause. Manually making the changes to the forms unit will cause the application to raise an exception with the message: (V)TCarbonWSWinControl.CreateHandle Error:Not implemented - unable to create Carbon win control for ComponentTest1:TComponentTest! Does a new component with an ancestor type of TWinControl need special handling, or is it impossible? Or am I doing something totally wrong? Thanks and best regards, Normann --- //The NewCtrls unit is simple and looks like this: unit NewCtrls; {$mode objfpc}{$H+} interface uses Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs; type TCommonTest = class(TWinControl) private protected public published end; TComponentTest = class(TCommonTest) private protected public published end; procedure Register; implementation procedure Register; begin RegisterComponents('New Ctrls',[TComponentTest]); end; end. --- //And the package unit looks like this: unit TestPackage; interface uses NewCtrls, LazarusPackageIntf; implementation procedure Register; begin RegisterUnit('NewCtrls', @NewCtrls.Register); end; initialization RegisterPackage('TestPackage', @Register); end. ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Svn update for Arm only
Hi I am using svn to download fpc sources. How do I compile the sources for ARCH ARM alone? How do I prevent downloading all other ARCH files in ~/fpc/rtl ? What could be the svn command to download only arm files? regards Nataraj ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] No cursor in Lazarus
Zitat von Mattias Gärtner [EMAIL PROTECTED]: Zitat von Paul van der Vlis [EMAIL PROTECTED]: Hello, Sometimes the cursor in Lazarus is gone, after a restart of the program, the cursor is back again. It's Lazarus version 0.9.24 beta from Ubuntu 8.04. Does somebody here knows a solution for this problem? I don't have the problem. But maybe: There is one case: When the cursor is scrolled out of the visible area. If this is possible depends on your editor settings. Here you can simply click with the mouse somewhere or pressing a cursor move key, like Ctrl-Pos1, Up, Down, Switch to another page and back? Mattias ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] 3rd party components
Hello, After compiling a 3rd party components, lazarus always claims that i can't find the files of the new components, however it does not happen on the components that arrive with lazarus itself. Any idea what should I do in order to make sure that the file location stored in Lazarus settings as well ? Thanks, Ido -- http://ik.homelinux.org/ ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] PostgreSQL database connection error
Thanks for your answer, but I do not know how to set up TSQLConnection.ExecuteDirect (..). TSQLConnnection components in the election, I can not find ExecuteDirect attributes. Can give me concrete steps ? I am still a novice Lazarus, thank you! -- 2008/5/30 Joost van der Sluis [EMAIL PROTECTED]: You should first set the client_encoding with 'TSQLConnection.ExecuteDirect('set client_encoding to ''gbk'');' Then you can open your query. (Note that you can only change the sql-statement of an query when it's closed) Joost. -- 我的'开源办公室': http://pengtu.net/ooo ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Carbon: Simple component in a simple package with strange behavior
Hi again, I moved up an ancestor type of TCustomControl, and it works better - it might be caused by the paint behavior on Carbon, I dunno, but it would be nice to know why :-) Regards, Normann -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bent Normann Olsen Sent: 30. maj 2008 12:20 To: 'General mailing list' Subject: [Lazarus] Carbon: Simple component in a simple package with strange behavior Hi all, Lately I've been trying to create a package with custom components, which works already on Lazarus Win32, but gets all kinds of errors on Mac OS X, so I created a package from scratch and try to isolate different problems. [snip] ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Carbon: Simple component in a simple package with strange behavior
On Fri, May 30, 2008 at 12:20 PM, Bent Normann Olsen [EMAIL PROTECTED] wrote: Hi all, Lately I've been trying to create a package with custom components, which works already on Lazarus Win32, but gets all kinds of errors on Mac OS X, so I created a package from scratch and try to isolate different problems. I created a new package and saved it as TestPackage.lpk, added a new component with TWinControl as ancestor type and named it TCommonTest, named the unit NewCtrls and saved the unit as newctrls.pas. I added a new requirement to the package, so that LCL also is required by the new package. I then manually added a new component to the unit named TComponentTest with TCommonTest as ancestor, and changed the register procedure to only register the last component. It compiles, and the component is installed, and the component is visible in the tab New Ctrls on Lazarus, which is compiled to Carbon. But when I try to drop the new component on a form (on a new and clean application) it fails saying Error moving component ComponentTest1:TComponentTest. The new component does not appear on the Object Inspector at first, but clicking on the component tree will make it appear, and I also can select the component on the form - but nothing is added to the unit source, and the application can't run because of Class TComponentTest not found, which naturally is caused by nothing was added to the units uses clause. Manually making the changes to the forms unit will cause the application to raise an exception with the message: (V)TCarbonWSWinControl.CreateHandle Error:Not implemented - unable to create Carbon win control for ComponentTest1:TComponentTest! Does a new component with an ancestor type of TWinControl need special handling, or is it impossible? Or am I doing something totally wrong? Hi, each TWinControl descendant needs to have implemented creation of underlying Carbon control. If you want to use generic TWinControl, you have to choose TCustomControl. Tom ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] 3rd party components
Zitat von ik [EMAIL PROTECTED]: Hello, After compiling a 3rd party components, lazarus always claims that i can't find the files of the new components, however it does not happen on the components that arrive with lazarus itself. Any idea what should I do in order to make sure that the file location stored in Lazarus settings as well ? Has the 3rd party components a package file (.lpk) and do you use it? What files can not be found? The .lpk or some units? How do you compile the package when it works? Is this a design time or run time package? Mattias ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Carbon and TMemo/TEdit
Le May 30, 2008 à 1:18 PM, Tom Gregorovic a écrit : On Fri, May 30, 2008 at 10:47 AM, Damien Gerard [EMAIL PROTECTED] wrote: I have in my app a TScrollBox (AutoScroll=True) with some controls created by hand as follow : E := TEdit.Create(nil); E.Parent := MyScrollBox; [...] Works fine under GTK2/Win32. However with Carbon TEdit and TMemo don't have a border and they are not properly drawn when scrolling in the TScrollBox. I try to make a new and simple app to reproduce it but using the IDE to create controls (Lazarus with the Carbon Widgetset) and all works well, at runtime such as designtime (except the control selects the whole text then deselect it when you click on it). Would the parameter `nil` (in `TEdit.Create(nil)`) be a problem with the Carbon WidgetSet ? Hi, I think the problem is in adjusting client area of TScrollBox after its content changes. I deal with this so long and have been not able to solve it so far. I forgot I am using anchors with those components. I just try, and Indeed it is related with the use of anchors -- Damien Gerard [EMAIL PROTECTED] Intelligence is 10 million rules. -- Douglas Lenat ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] No cursor in Lazarus
Graeme Geldenhuys schreef: On 30/05/2008, Mattias Gärtner [EMAIL PROTECTED] wrote: There is one case: When the cursor is scrolled out of the visible area. If this is possible depends on your editor settings. Here you can simply click with the mouse somewhere or pressing a cursor move key, like Ctrl-Pos1, Up, Down, I sometimes get in in the Code Templates edit window. I'm using Lazarus v0.9.25 r15115M i386-linux-gtk. Clicking the mouse or PgUp/PgDn makes no difference. I can type and see selections, but no cursor prompt. That's the same behaviour I see. Restarting the application helps, but clicking with the mouse in the window does not help. I can type and see selections but no prompt. With regards, Paul van der Vlis. -- http://www.vandervlis.nl/ ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] No cursor in Lazarus
I've had this happen to me several times over the last few days as well. I haven't been able to pin down a set of steps to repro it, though. But you're not alone. -SG -- Good news, everyone! Seth Grover ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Postgres Dlls not found
Soren, for a moment there I thought the Dependency Walker was the answer to my problems, but it appears that it is a snare and a delusion. It lists different DLLs as being missing on the working system and on the borked system. Some of the DLLs which are listed as present are not in either system. MSJAVA.DLL, for example is listed as present on the working system, but missing on the borked system, when it is present in niether. Nowhere is libpq.dll (or any of the other DLLs mentioned on this thread) listed by Dependancy Walker on either system. Is there a more reliable way of working out which DLLs are required by the program? I have wasted 2 days (and almost 2 nights) trying to figure out what is going on and am very close to giving up entirely. On 5/30/08, Søren Ager [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Why should the laptop be able to run when the DLLs are copied to the system32 directory, yet the Desktop clients are generating an error message which says that the Postgres Client is not installed (libpq.dll). The load can fail if libpg.dll or one of the dlls it uses does not exist on the PC. Try opening libpg.dll with http://www.dependencywalker.com/ and check that all the dlls it lists exist on the PC Greetings Søren ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Postgres Dlls not found
On Fri, 30 May 2008, [EMAIL PROTECTED] wrote: Soren, for a moment there I thought the Dependency Walker was the answer to my problems, but it appears that it is a snare and a delusion. It lists different DLLs as being missing on the working system and on the borked system. Some of the DLLs which are listed as present are not in either system. MSJAVA.DLL, for example is listed as present on the working system, but missing on the borked system, when it is present in niether. Nowhere is libpq.dll (or any of the other DLLs mentioned on this thread) listed by Dependancy Walker on either system. Is there a more reliable way of working out which DLLs are required by the program? If it is about the FPC program: no. The program loads the library dynamically. The best you can do is list the dependencies of libpq.dll, and make sure these are present on both systems. Michael. ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Bitmap animation component
Hi, I created a bitmap animation component for fpGUI. It works like the old Netscape spinning logo. One image with all the frames layout in in a horizontal position. It doesn't have much use, other that to take up some space on a form and entertain your users. :-) Does something like this exist for Lazarus? If not, I'll port the component with an example application. Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] New project type in Lazarus
Hi, I would like to create a new IDE Package that adds a new project type to the 'File | New' dialog. In the components directory there are a few examples of this for FPCUnit and fpWeb. What I'm not sure about is... Can that ide package automatically add a required (external - not part of FPC or Lazarus) package (fpgui in my case) to the new project being created? Any clues or example on how to do this? Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Carbon and TMemo/TEdit
Hello Damien, Friday, May 30, 2008, 10:47:57 AM, you wrote: DG I have in my app a TScrollBox (AutoScroll=True) with some controls DG created by hand as follow : DG E := TEdit.Create(nil); DG E.Parent := MyScrollBox; DG [...] DG Works fine under GTK2/Win32. However with Carbon TEdit and TMemo don't DG have a border and they are not properly drawn when scrolling in the DG TScrollBox. I do not have any kind of experience with Carbon, but controls to be used inside another objects should be added using InsertControl, do not ? Maybe I'm completly wrong... as usual :) -- Best regards, JoshyFun ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] New project type in Lazarus
On Fri, 30 May 2008, Graeme Geldenhuys wrote: Hi, I would like to create a new IDE Package that adds a new project type to the 'File | New' dialog. In the components directory there are a few examples of this for FPCUnit and fpWeb. What I'm not sure about is... Can that ide package automatically add a required (external - not part of FPC or Lazarus) package (fpgui in my case) to the new project being created? Any clues or example on how to do this? Yes, of course it can. See components/projecttemplates/idetemplateproject.pp: function TTemplateProjectDescriptor.InitProject(AProject: TLazProject) : TModalResult; begin AProject.AddPackageDependency('FCL'); AProject.AddPackageDependency('LCL'); AProject.Title:=FProjectName; end; Michael. ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Carbon and TMemo/TEdit
Le May 30, 2008 à 4:05 PM, JoshyFun a écrit : Hello Damien, Friday, May 30, 2008, 10:47:57 AM, you wrote: DG I have in my app a TScrollBox (AutoScroll=True) with some controls DG created by hand as follow : DG E := TEdit.Create(nil); DG E.Parent := MyScrollBox; DG [...] DG Works fine under GTK2/Win32. However with Carbon TEdit and TMemo don't DG have a border and they are not properly drawn when scrolling in the DG TScrollBox. I do not have any kind of experience with Carbon, but controls to be used inside another objects should be added using InsertControl, do not ? Maybe I'm completly wrong... as usual :) It seems it is useless. From procedure TControl.SetParent(NewParent: TWinControl); you can find this : if NewParent nil then NewParent.InsertControl(Self); Consequently E.Parent := Something should be enough. I don't think actually InsertControl should be used. -- Damien Gerard [EMAIL PROTECTED] Intelligence is 10 million rules. -- Douglas Lenat ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] 3rd party components
On Fri, May 30, 2008 at 5:37 PM, Mattias Gärtner [EMAIL PROTECTED] wrote: Zitat von ik [EMAIL PROTECTED]: On Fri, May 30, 2008 at 2:18 PM, Mattias Gärtner [EMAIL PROTECTED] wrote: Zitat von ik [EMAIL PROTECTED]: Hello, After compiling a 3rd party components, lazarus always claims that i can't find the files of the new components, however it does not happen on the components that arrive with lazarus itself. Any idea what should I do in order to make sure that the file location stored in Lazarus settings as well ? Has the 3rd party components a package file (.lpk) and do you use it? Yes, they all have a lpk files for runtime. I use Compile and Install, then it recompiles Lazarus, and restart it with a new version containing the new component(s). What files can not be found? The .lpk or some units? Usually units and include files. How do you compile the package when it works? Is this a design time or run time package? How did you test, that the units can not be found? I either try to use the component on a form, recompile Lazarus, or install another component (using a package). Then Lazarus tells me in a dialog box that a file x was not found. A new project will not use all installed IDE packages. You must put a component on a form or manually add the dependency to the project. Mattias ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus Ido -- http://ik.homelinux.org/ ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Carbon and TMemo/TEdit
On Fri, 30 May 2008 16:23:59 +0200 Damien Gerard [EMAIL PROTECTED] wrote: Le May 30, 2008 à 4:05 PM, JoshyFun a écrit : Hello Damien, Friday, May 30, 2008, 10:47:57 AM, you wrote: DG I have in my app a TScrollBox (AutoScroll=True) with some DG controls created by hand as follow : DG E := TEdit.Create(nil); DG E.Parent := MyScrollBox; DG [...] DG Works fine under GTK2/Win32. However with Carbon TEdit and DG TMemo don't DG have a border and they are not properly drawn when scrolling DG in the DG TScrollBox. I do not have any kind of experience with Carbon, but controls to be used inside another objects should be added using InsertControl, do not ? Maybe I'm completly wrong... as usual :) It seems it is useless. From procedure TControl.SetParent(NewParent: TWinControl); you can find this : if NewParent nil then NewParent.InsertControl(Self); Consequently E.Parent := Something should be enough. I don't think actually InsertControl should be used. Assigning 'Parent' is the normal way. Mattias ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TEST SQLITE
Yes, Look here: Click below for fpc and Lazarus snapshot Lazarus - full - fpc 2.2.0 win32 Lazarus-0.9.25-fpc-2.2.0-20080530-win32.exeftp://ftp.hu.freepascal.org/pub/lazarus/Lazarus-0.9.25-fpc-2.2.0-20080530-win32.exe Lazarus - full - fpc 2.2.1 win32 Lazarus-0.9.25-fpc-2.2.1-20080530-win32.exeftp://ftp.hu.freepascal.org/pub/lazarus/Lazarus-0.9.25-fpc-2.2.1-20080530-win32.exe -- 2008/5/31 Chris37 [EMAIL PROTECTED]: hi ! 2.1.1 ? -- 我的'开源办公室': http://pengtu.net/ooo ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] on ARM Linux ,SoftFloat and EABI issues
2008/5/30 Nataraj S Narayan [EMAIL PROTECTED]: Hi Florian and other friends I am involved in porting existing C code to Arm Linux for AT91SAM9263 Ek board with 340x220 display. I need to write lots of console kinda apps. I am using a qemu-system-arm emulated Armel Debian machine on a Debian x86 Lenny distro for writing code. I installed fpc-2.2.0.arm-linux.tar on the emulated linux. Which compiling a simple helloworld.pas , i get the classic error of System.o being EABI 0 while target is EABI 4. I have got the svn download of fpc, and trying to compile it in the emulated machine for ARM for the past 2 days. I have given :- make clean all ARCH=arm OPT=-CfSoft. the makefiles use CPU_TARGET, but this shouldn't be necessary when you're compiling natively (or inside an emulator, even). i'd recommend going the cross compile route (since i know that works with trunk). just compile binutils (./configure --target arm) and compile fpc with: make crossall CPU_TARGET=arm CROSSOPT=-CfSOFT you can use other envvars, too, just inspect the makefile if you're brave, or read the buildfaq for some good info. henry ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] PostgreSQL database connection error
Look ScreenPrint. 2008/5/30 peng [EMAIL PROTECTED]: Thanks for your answer, but I do not know how to set up TSQLConnection.ExecuteDirect (..). TSQLConnnection components in the election, I can not find ExecuteDirect attributes. Can give me concrete steps ? I am still a novice Lazarus, thank you! -- 2008/5/30 Joost van der Sluis [EMAIL PROTECTED]: You should first set the client_encoding with 'TSQLConnection.ExecuteDirect('set client_encoding to ''gbk'');' Then you can open your query. (Note that you can only change the sql-statement of an query when it's closed) Joost. -- 我的'开源办公室': http://pengtu.net/ooo attachment: Lazarus-Psql-encoding-err.png___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TEST SQLITE
Michael Van Canneyt a écrit : On Fri, 30 May 2008, Chris37 wrote: peng a écrit : Yes, Look here: Click below for fpc and Lazarus snapshot Lazarus - full - fpc 2.2.0 win32 Lazarus-0.9.25-fpc-2.2.0-20080530-win32.exe ftp://ftp.hu.freepascal.org/pub/lazarus/Lazarus-0.9.25-fpc-2.2.0-20080530-win32.exe Lazarus - full - fpc 2.2.1 win32 Lazarus-0.9.25-fpc-2.2.1-20080530-win32.exe ftp://ftp.hu.freepascal.org/pub/lazarus/Lazarus-0.9.25-fpc-2.2.1-20080530-win32.exe -- 2008/5/31 Chris37 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: hi ! 2.1.1 ? -- 我的'开源办公室': http://pengtu.net/ooo ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus Thank all but joost modification not implemented in Lazarus-0.9.25-fpc-2.2.1-20080530-win32.exe ftp://ftp.hu.freepascal.org/pub/lazarus/Lazarus-0.9.25-fpc-2.2.1-20080530-win32.exe I wait for this :) Another question svp ? With TConnection, how read fieldstype ? GetFielsTable send only fieldname in a TStrings You can't. You can do a select * from tablename where 1=0; that will give you an empty dataset and you can read all filenames, types and whatnot. All other methods are engine dependent. Michael. ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus Ok Michael ! thank ! ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus