[lazarus] htmlhelp1 example patch
Checking the htmlhelp1.lpi example I found an error, I don't know how to apply a patch so I tried to create one. I attached it. Once applied the patch also the oncreate event should be removed by the form. Without this patch the example does not work, applying it the example works both on windows and linux. let me know if the patch is correct or if there are other ways to apply and create patches. andrea *** *** 65,71 Edit2: TEdit; HTMLBrowserHelpViewer1: THTMLBrowserHelpViewer; HTMLHelpDatabase1: THTMLHelpDatabase; - procedure FormCreate(Sender: TObject); procedure HelpButtonClick(Sender: TObject); private { private declarations } --- 65,70 *** *** 86,94 ShowHelpOrErrorForKeyword('','HTML/index.html'); end; - procedure TForm1.FormCreate(Sender: TObject); - begin - HTMLHelpDatabase1.BaseURL:='/usr'; end; initialization --- 85,88
[lazarus] checkoptions bug
Dear all, if I build a simple console application, just created by lazarus and I run it using the -help option I get this error: project1 -help exception at : Invalid option at position 1: "e". Both in windows and linux. The result is given by: ErrorMsg:=CheckOptions('h','help'); While HasOption('h','help') interpret correctly the long option -help. Best regards, Andrea _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] can't find libc
shit. I missed it. Thank you. Vincent Snijders ha scritto: Andrea Mauri schreef: I tried the -vt option, looking at the messages I found that all the units are searched in /usr/lib/fpc/2.2.0/ and subdirectory but never in the fpc source directory I have set in the lazarus environment options that is (/home/myhome/programmi/lazarus/fpcsrc/fpc-2.2.0/) Lazarus is able to find all the units (system.ppu etc) that are located in /usr/lib/fpc/2.2.0/ but in that directory there isn't any libc.pp or libc.ppu Did you install: ftp://ftp.freepascal.org/fpc/dist/i386-linux-2.2.0/deb/fp-units-i386_2.2.0-1_i386.deb Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives -- Andrea Mauri PhD student - Chemical Sciences Milano Chemometrics and QSAR Research Group Department of Environmental Sciences University of Milano-Bicocca P.zza della Scienza, 1 20126 Milano - Italy Tel: ++39 02 64482801 mailto:[EMAIL PROTECTED] http://www.disat.unimib.it/chm/ _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] can't find libc
I tried the -vt option, looking at the messages I found that all the units are searched in /usr/lib/fpc/2.2.0/ and subdirectory but never in the fpc source directory I have set in the lazarus environment options that is (/home/myhome/programmi/lazarus/fpcsrc/fpc-2.2.0/) Lazarus is able to find all the units (system.ppu etc) that are located in /usr/lib/fpc/2.2.0/ but in that directory there isn't any libc.pp or libc.ppu Why lazarus doesn't look into the fpc sources directory I have set? What the sudo apt-get install build-essential do? Anyway I just want to get the MAC address of eth0, and the information about the user info (username and so on), if it is possible to do it with Unix unit, well, it's better. Thank you, Andrea Mattias Gaertner ha scritto: On Mon, 29 Oct 2007 12:09:05 +0100 Andrea Mauri <[EMAIL PROTECTED]> wrote: Dear All, I just installed fpc (2.2) and lazarus (svn) on an Ubuntu linux machine (i386). I added to the uses clause libc but when I try to compile it I got the error message libc not found. Libc is in the fpc source directory in: /rtl/netwlibc/ and in /packages/base/libc/ But also manually adding it to my project the compiler doesn't find it. What can I do? Compile with -vt (compiler options > messages). Then compile again and right click on messages window and save all messages to a file. Explore the file. It is on my todo list to let the IDE explore this output automatically. Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives -- Andrea Mauri PhD student - Chemical Sciences Milano Chemometrics and QSAR Research Group Department of Environmental Sciences University of Milano-Bicocca P.zza della Scienza, 1 20126 Milano - Italy Tel: ++39 02 64482801 mailto:[EMAIL PROTECTED] http://www.disat.unimib.it/chm/ _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] can't find libc
Dear All, I just installed fpc (2.2) and lazarus (svn) on an Ubuntu linux machine (i386). I added to the uses clause libc but when I try to compile it I got the error message libc not found. Libc is in the fpc source directory in: /rtl/netwlibc/ and in /packages/base/libc/ But also manually adding it to my project the compiler doesn't find it. What can I do? Thanks, Andrea _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Ubuntu and UIB
Solved. It was a problem related to a conflict between libpthread.so.0 and libpthread.so.20. I don't know exactly how I solved the problem. I made a lot of trials. Removing and reinstalling those libraries. andrea Andrea Mauri wrote: Where I have to check if defines UseCthreads? And why on FC6 UIB works correctly and not on Ubuntu 7.04? About threads, when I rebuild lazarus I got these messages: Free Pascal Compiler version 2.0.4 [2007/02/02] for i386 Copyright (c) 1993-2006 by Florian Klaempfl Target OS: Linux for i386 Compiling lazarus.pp Linking ../lazarus */usr/bin/ld: warning: libpthread.so.0, needed by /usr/bin/../lib/librt.so, may conflict with libpthread.so.20* 165 Lines compiled, 68.4 sec make[2]: Leaving directory `/home/giacca/programmi/lazarus/ide' make[1]: Leaving directory `/home/giacca/programmi/lazarus/ide' make: Leaving directory `/home/giacca/programmi/lazarus' "Esegui build dell'IDE" completed andrea Vincent Snijders wrote: Does the UIB package define UseCthreads in its usage options? This was missing in the past. Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives -- Andrea Mauri PhD student - Chemical Sciences Milano Chemometrics and QSAR Research Group Department of Environmental Sciences University of Milano-Bicocca P.zza della Scienza, 1 20126 Milano - Italy Tel: ++39 02 64482801 mailto:[EMAIL PROTECTED] http://www.disat.unimib.it/chm/
Re: [lazarus] Ubuntu and UIB
Where I have to check if defines UseCthreads? And why on FC6 UIB works correctly and not on Ubuntu 7.04? About threads, when I rebuild lazarus I got these messages: Free Pascal Compiler version 2.0.4 [2007/02/02] for i386 Copyright (c) 1993-2006 by Florian Klaempfl Target OS: Linux for i386 Compiling lazarus.pp Linking ../lazarus */usr/bin/ld: warning: libpthread.so.0, needed by /usr/bin/../lib/librt.so, may conflict with libpthread.so.20* 165 Lines compiled, 68.4 sec make[2]: Leaving directory `/home/giacca/programmi/lazarus/ide' make[1]: Leaving directory `/home/giacca/programmi/lazarus/ide' make: Leaving directory `/home/giacca/programmi/lazarus' "Esegui build dell'IDE" completed andrea Vincent Snijders wrote: Does the UIB package define UseCthreads in its usage options? This was missing in the past. Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Ubuntu and UIB
Where I have to try to add those? I added in the project source: program Project1; {$mode objfpc}{$H+} * {$linklib c} {$linklib pthread} * uses {$IFDEF UNIX}{$IFDEF UseCThreads} cthreads, {$ENDIF}{$ENDIF} Interfaces, // this includes the LCL widgetset Forms { add your units here }, Unit1, UIBLaz; begin Application.Initialize; Application.CreateForm(TForm1, Form1); Application.Run; end. But nothing was changed. The messages are the same as before. andrea Michael Van Canneyt wrote: On Wed, 16 May 2007, Andrea Mauri wrote: I installed fpc and lazarus on Ubuntu. fpc using apt lazarus, last svn In my project I use UIB to access to a firebird DB. I used UIB (2.1) both on windows and linux (FC6). And it works fine. On Ubuntu I installed without any problem UIB but if I put a JvUIBDataset on a form and try to compile the project I got an error. I pasted the messages at the bottom of this e-mail. The same project, one form with a JvUIBdataset is compiled without any problem on fedora. Any hint? Try adding {$linklib c} {$linklib pthread} To the program file. Looks like the thread stuff is not found. Michael. Andrea messages: Hint: Start of reading config file /etc/fpc.cfg Hint: End of reading config file /etc/fpc.cfg Free Pascal Compiler version 2.0.4 [2007/02/02] for i386 Copyright (c) 1993-2006 by Florian Klaempfl Target OS: Linux for i386 Compiling /tmp/project1.lpr Compiling unit1.pas Linking /tmp/project1 /usr/lib/fpc/2.0.4/units/i386-linux/fcl/syncobjs.o: In function `SYNCOBJS_TEVENTOBJECT_$__CREATE$POINTER$BOOLEAN$BOOLEAN$ANSISTRING$$TEVENTOBJECT': syncobjs.pp:(.text+0x334): undefined reference to `sem_init' /usr/lib/fpc/2.0.4/units/i386-linux/fcl/syncobjs.o: In function `SYNCOBJS_TEVENTOBJECT_$__DESTROY': syncobjs.pp:(.text+0x3a4): undefined reference to `sem_destroy' /usr/lib/fpc/2.0.4/units/i386-linux/fcl/syncobjs.o: In function `SYNCOBJS_TEVENTOBJECT_$__RESETEVENT': syncobjs.pp:(.text+0x3f3): undefined reference to `sem_trywait' /usr/lib/fpc/2.0.4/units/i386-linux/fcl/syncobjs.o: In function `SYNCOBJS_TEVENTOBJECT_$__SETEVENT': syncobjs.pp:(.text+0x44f): undefined reference to `sem_getvalue' syncobjs.pp:(.text+0x464): undefined reference to `sem_post' /usr/lib/fpc/2.0.4/units/i386-linux/fcl/syncobjs.o: In function `SYNCOBJS_TEVENTOBJECT_$__WAITFOR$LONGWORD$$TWAITRESULT': syncobjs.pp:(.text+0x4b7): undefined reference to `sem_wait' syncobjs.pp:(.text+0x503): undefined reference to `sem_post' project1.lpr(17,1) Error: Error while linking /usr/lib/fpc/2.0.4/units/i386-linux/fcl/syncobjs.o: In function `SYNCOBJS_TEVENTOBJECT_$__CREATE$POINTER$BOOLEAN$BOOLEAN$ANSISTRING$$TEVENTOBJECT': syncobjs.pp:(.text+0x334): undefined reference to `sem_init' /usr/lib/fpc/2.0.4/units/i386-linux/fcl/syncobjs.o: In function `SYNCOBJS_TEVENTOBJECT_$__DESTROY': syncobjs.pp:(.text+0x3a4): undefined reference to `sem_destroy' /usr/lib/fpc/2.0.4/units/i386-linux/fcl/syncobjs.o: In function `SYNCOBJS_TEVENTOBJECT_$__RESETEVENT': syncobjs.pp:(.text+0x3f3): undefined reference to `sem_trywait' /usr/lib/fpc/2.0.4/units/i386-linux/fcl/syncobjs.o: In function `SYNCOBJS_TEVENTOBJECT_$__SETEVENT': syncobjs.pp:(.text+0x44f): undefined reference to `sem_getvalue' syncobjs.pp:(.text+0x464): undefined reference to `sem_post' /usr/lib/fpc/2.0.4/units/i386-linux/fcl/syncobjs.o: In function `SYNCOBJS_TEVENTOBJECT_$__WAITFOR$LONGWORD$$TWAITRESULT': syncobjs.pp:(.text+0x4b7): undefined reference to `sem_wait' syncobjs.pp:(.text+0x503): undefined reference to `sem_post' project1.lpr(17,1) Error: Error while linking _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives -- Andrea Mauri PhD student - Chemical Sciences Milano Chemometrics and QSAR Research Group Department of Environmental Sciences University of Milano-Bicocca P.zza della Scienza, 1 20126 Milano - Italy Tel: ++39 02 64482801 mailto:[EMAIL PROTECTED] http://www.disat.unimib.it/chm/
[lazarus] Ubuntu and UIB
I installed fpc and lazarus on Ubuntu. fpc using apt lazarus, last svn In my project I use UIB to access to a firebird DB. I used UIB (2.1) both on windows and linux (FC6). And it works fine. On Ubuntu I installed without any problem UIB but if I put a JvUIBDataset on a form and try to compile the project I got an error. I pasted the messages at the bottom of this e-mail. The same project, one form with a JvUIBdataset is compiled without any problem on fedora. Any hint? Andrea messages: Hint: Start of reading config file /etc/fpc.cfg Hint: End of reading config file /etc/fpc.cfg Free Pascal Compiler version 2.0.4 [2007/02/02] for i386 Copyright (c) 1993-2006 by Florian Klaempfl Target OS: Linux for i386 Compiling /tmp/project1.lpr Compiling unit1.pas Linking /tmp/project1 /usr/lib/fpc/2.0.4/units/i386-linux/fcl/syncobjs.o: In function `SYNCOBJS_TEVENTOBJECT_$__CREATE$POINTER$BOOLEAN$BOOLEAN$ANSISTRING$$TEVENTOBJECT': syncobjs.pp:(.text+0x334): undefined reference to `sem_init' /usr/lib/fpc/2.0.4/units/i386-linux/fcl/syncobjs.o: In function `SYNCOBJS_TEVENTOBJECT_$__DESTROY': syncobjs.pp:(.text+0x3a4): undefined reference to `sem_destroy' /usr/lib/fpc/2.0.4/units/i386-linux/fcl/syncobjs.o: In function `SYNCOBJS_TEVENTOBJECT_$__RESETEVENT': syncobjs.pp:(.text+0x3f3): undefined reference to `sem_trywait' /usr/lib/fpc/2.0.4/units/i386-linux/fcl/syncobjs.o: In function `SYNCOBJS_TEVENTOBJECT_$__SETEVENT': syncobjs.pp:(.text+0x44f): undefined reference to `sem_getvalue' syncobjs.pp:(.text+0x464): undefined reference to `sem_post' /usr/lib/fpc/2.0.4/units/i386-linux/fcl/syncobjs.o: In function `SYNCOBJS_TEVENTOBJECT_$__WAITFOR$LONGWORD$$TWAITRESULT': syncobjs.pp:(.text+0x4b7): undefined reference to `sem_wait' syncobjs.pp:(.text+0x503): undefined reference to `sem_post' project1.lpr(17,1) Error: Error while linking /usr/lib/fpc/2.0.4/units/i386-linux/fcl/syncobjs.o: In function `SYNCOBJS_TEVENTOBJECT_$__CREATE$POINTER$BOOLEAN$BOOLEAN$ANSISTRING$$TEVENTOBJECT': syncobjs.pp:(.text+0x334): undefined reference to `sem_init' /usr/lib/fpc/2.0.4/units/i386-linux/fcl/syncobjs.o: In function `SYNCOBJS_TEVENTOBJECT_$__DESTROY': syncobjs.pp:(.text+0x3a4): undefined reference to `sem_destroy' /usr/lib/fpc/2.0.4/units/i386-linux/fcl/syncobjs.o: In function `SYNCOBJS_TEVENTOBJECT_$__RESETEVENT': syncobjs.pp:(.text+0x3f3): undefined reference to `sem_trywait' /usr/lib/fpc/2.0.4/units/i386-linux/fcl/syncobjs.o: In function `SYNCOBJS_TEVENTOBJECT_$__SETEVENT': syncobjs.pp:(.text+0x44f): undefined reference to `sem_getvalue' syncobjs.pp:(.text+0x464): undefined reference to `sem_post' /usr/lib/fpc/2.0.4/units/i386-linux/fcl/syncobjs.o: In function `SYNCOBJS_TEVENTOBJECT_$__WAITFOR$LONGWORD$$TWAITRESULT': syncobjs.pp:(.text+0x4b7): undefined reference to `sem_wait' syncobjs.pp:(.text+0x503): undefined reference to `sem_post' project1.lpr(17,1) Error: Error while linking
Re: [lazarus] TDBgrid float: bug?
How can I access the DisplayFormat property? I can see it only in the object inspector and not by code: DBGrid1.Columns[0] .displayformat Doesn't exist. a. Jesus Reyes wrote: --- Andrea Mauri <[EMAIL PROTECTED]> escribió: Dear all, I have some problems with TDBgrid and float values. Firebird database. I have a table with two fields. One field is a (FIELD_FLOAT) FLOAT and the other DOUBLE PRECISION (FIELD_DOUBLE). I tried some inserts and I show the table using DBGrid. If I exec this: insert into TABLE1 (FIELD_FLOAT, FIELD_DOUBLE) values (0.15, 9.11) In the DBgrid I see: FLOAT field: 0.15005960464 DOUBLE field: 9.109 In delphi I see the same as in lazarus for the float field but for the double I see correctly 9.11 I think that there are some problems with significant digits. I tried to explore the code of TDBgrid ut I was not able to understand it. I am a newbie. Any help, suggestion? a. Dbgrid only handles strings, conversion from numeric fields is done through TField.AsString, so is not surprising that you didn't find anything in dbgrid. I think this needs to be checked in fcl-db, but there is an easy solution, add custom columns to your dbgrid and for the column holding your float fields set an appropiated DisplayFormat, for example #,###.00 or something, the format mask string should is described in formafloat function: http://freepascal.org/docs-html/rtl/sysutils/formatfloat.html Jesus Reyes A. __ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ¡gratis! Regístrate ya - http://correo.yahoo.com.mx/ _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives -- Andrea Mauri PhD student - Chemical Sciences Milano Chemometrics and QSAR Research Group Department of Environmental Sciences University of Milano-Bicocca P.zza della Scienza, 1 20126 Milano - Italy Tel: ++39 02 64482801 mailto:[EMAIL PROTECTED] http://www.disat.unimib.it/chm/
Re: [lazarus] TDBgrid float: bug?
I am checking the displayformat property. Checking it I found in DBGrids unit: procedure TColumn.Assign(Source: TPersistent); begin if Source is TColumn then begin //DebugLn('Assigning TColumn[',dbgs(Index),'] a TColumn') Collection.BeginUpdate; try inherited Assign(Source); FieldName := TColumn(Source).FieldName; * DisplayFormat := TColumn(Source).FieldName;* ValueChecked := TColumn(Source).ValueChecked; ValueUnchecked := TColumn(Source).ValueUnchecked; finally Collection.EndUpdate; end; end else inherited Assign(Source); end; Bug? a. Jesus Reyes wrote: --- Andrea Mauri <[EMAIL PROTECTED]> escribió: Dear all, I have some problems with TDBgrid and float values. Firebird database. I have a table with two fields. One field is a (FIELD_FLOAT) FLOAT and the other DOUBLE PRECISION (FIELD_DOUBLE). I tried some inserts and I show the table using DBGrid. If I exec this: insert into TABLE1 (FIELD_FLOAT, FIELD_DOUBLE) values (0.15, 9.11) In the DBgrid I see: FLOAT field: 0.15005960464 DOUBLE field: 9.109 In delphi I see the same as in lazarus for the float field but for the double I see correctly 9.11 I think that there are some problems with significant digits. I tried to explore the code of TDBgrid ut I was not able to understand it. I am a newbie. Any help, suggestion? a. Dbgrid only handles strings, conversion from numeric fields is done through TField.AsString, so is not surprising that you didn't find anything in dbgrid. I think this needs to be checked in fcl-db, but there is an easy solution, add custom columns to your dbgrid and for the column holding your float fields set an appropiated DisplayFormat, for example #,###.00 or something, the format mask string should is described in formafloat function: http://freepascal.org/docs-html/rtl/sysutils/formatfloat.html Jesus Reyes A. __ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ¡gratis! Regístrate ya - http://correo.yahoo.com.mx/ _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives -- Andrea Mauri PhD student - Chemical Sciences Milano Chemometrics and QSAR Research Group Department of Environmental Sciences University of Milano-Bicocca P.zza della Scienza, 1 20126 Milano - Italy Tel: ++39 02 64482801 mailto:[EMAIL PROTECTED] http://www.disat.unimib.it/chm/
Re: [lazarus] TDBgrid float: bug?
Using numeric field type the results is the same as for double insert into TABLE1 (FIELD_FLOAT, FIELD_DOUBLE, FIELD_NUMERIC) values (0.15, 9.11) In the DBgrid I see: FLOAT field: 0.15005960464 DOUBLE field: 9.109 NUMERIC(12,2) field: 9.109 It is a formatting problem. I will try with displayformat a. Pieter Valentijn wrote: Use numeric(12,2) or what ever to create a numeric field with set decimal. Met vriendelijke groet, Pieter Valentijn Delphidreams http://www.delphidreams.nl -Oorspronkelijk bericht- Van: Andrea Mauri [mailto:[EMAIL PROTECTED] Verzonden: dinsdag 8 mei 2007 17:33 Aan: lazarus@miraclec.com Onderwerp: [lazarus] TDBgrid float: bug? Dear all, I have some problems with TDBgrid and float values. Firebird database. I have a table with two fields. One field is a (FIELD_FLOAT) FLOAT and the other DOUBLE PRECISION (FIELD_DOUBLE). I tried some inserts and I show the table using DBGrid. If I exec this: insert into TABLE1 (FIELD_FLOAT, FIELD_DOUBLE) values (0.15, 9.11) In the DBgrid I see: FLOAT field: 0.15005960464 DOUBLE field: 9.109 In delphi I see the same as in lazarus for the float field but for the double I see correctly 9.11 I think that there are some problems with significant digits. I tried to explore the code of TDBgrid ut I was not able to understand it. I am a newbie. Any help, suggestion? a. _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives -- Andrea Mauri PhD student - Chemical Sciences Milano Chemometrics and QSAR Research Group Department of Environmental Sciences University of Milano-Bicocca P.zza della Scienza, 1 20126 Milano - Italy Tel: ++39 02 64482801 mailto:[EMAIL PROTECTED] http://www.disat.unimib.it/chm/ _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] TDBgrid float: bug?
Dear all, I have some problems with TDBgrid and float values. Firebird database. I have a table with two fields. One field is a (FIELD_FLOAT) FLOAT and the other DOUBLE PRECISION (FIELD_DOUBLE). I tried some inserts and I show the table using DBGrid. If I exec this: insert into TABLE1 (FIELD_FLOAT, FIELD_DOUBLE) values (0.15, 9.11) In the DBgrid I see: FLOAT field: 0.15005960464 DOUBLE field: 9.109 In delphi I see the same as in lazarus for the float field but for the double I see correctly 9.11 I think that there are some problems with significant digits. I tried to explore the code of TDBgrid ut I was not able to understand it. I am a newbie. Any help, suggestion? a. _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] create DB runtime
I found createdb in UIB but not in sqldb connection component. I tried it and it works properly. Thanks, a. Joost van der Sluis wrote: On Thu, 2007-04-26 at 14:13 +0200, Andrea Mauri wrote: Hi, it is possible to create a database at runtime using sqldb? How can I do it? Use AConnection.CreateDB(...) Joost _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives -- Andrea Mauri PhD student - Chemical Sciences Milano Chemometrics and QSAR Research Group Department of Environmental Sciences University of Milano-Bicocca P.zza della Scienza, 1 20126 Milano - Italy Tel: ++39 02 64482801 mailto:[EMAIL PROTECTED] http://www.disat.unimib.it/chm/
Re: [lazarus] SQLquery
I tested the queries with SQLdb (doesn't work) UIB (work) FBLIB (work) ZeosLib (work) Maybe is a problem relate to the number of columns because if I submit a query like this: select D1.D1_IDDESCVALUE1, D2.D2_IDDESCVALUE2 from DESCVALUES1 D1 left join DESCVALUES2 D2 on D1.D1_IDDESCVALUE1 = D2.D2_IDDESCVALUE2 instead of select * from DESCVALUES1 D1 left join DESCVALUES2 D2 on D1.D1_IDDESCVALUE1 = D2.D2_IDDESCVALUE2 it works properly also with SQLdb. a. Andrea Mauri wrote: Ok, a brief explanation. I am developing a software for molecular descriptors calculation. For every molecules I have to calculate thousands of descriptors. These descriptors are divided in blocks. During the calculation I would like to store the calculated descriptors in a database, embedded, I chose firebird but actually I am working on a not embedded IB6 database. For every block I create a table, every table has tens of columns, each column is a molecular descriptor. All the fields are float. Every row is a molecule. I create the table at runtime. After the suggestions of raistware and bram I changed the tables structure using unique field names. Two create statements are at the bottom of this mail. There are more then 20 tables, every table with tens of columns. After the calculation I would like to show the calculated descriptors to the user. So I join the tables. If I join the empty tables TSQLquery works properly, if the tables are not empty I got the error: incorrect values within sqlda structure I get this error with TSQLquery but not using zeos component. With zeos components I have other problems (slowness and the obtained fields are not float). The query could be a query with a join of 20 or more tables. Here an example with only two tables: select * from DESCVALUES1 D1 left join DESCVALUES2 D2 on D1.D1_IDDESCVALUE1 = D2.D2_IDDESCVALUE2 The complete error message is: (ibDescriptors is the TIBconnection). I am using Interbase 6. ibDescriptors: Fetch - Dynamic SQL error - SQL error code= -804 - incorrect values within sqlda structure I also need to use select statement with explicit fields and not with *. Just another question a bit out of this thread, is it possible to create the DB at runtime? I am not able to do that. Thanks, a. CREATE TABLE DESCVALUES1 (D1_IDDESCVALUE1 INTEGER NOT NULL , D1_DESCVALUE1 FLOAT, D1_DESCVALUE2 FLOAT, D1_DESCVALUE3 FLOAT, D1_DESCVALUE4 FLOAT, D1_DESCVALUE5 FLOAT, D1_DESCVALUE6 FLOAT, D1_DESCVALUE7 FLOAT, D1_DESCVALUE8 FLOAT, D1_DESCVALUE9 FLOAT, D1_DESCVALUE10 FLOAT, D1_DESCVALUE11 FLOAT, D1_DESCVALUE12 FLOAT, D1_DESCVALUE13 FLOAT, D1_DESCVALUE14 FLOAT, D1_DESCVALUE15 FLOAT, D1_DESCVALUE16 FLOAT, D1_DESCVALUE17 FLOAT, D1_DESCVALUE18 FLOAT, D1_DESCVALUE19 FLOAT, D1_DESCVALUE20 FLOAT, D1_DESCVALUE21 FLOAT, D1_DESCVALUE22 FLOAT, D1_DESCVALUE23 FLOAT, D1_DESCVALUE24 FLOAT, D1_DESCVALUE25 FLOAT, D1_DESCVALUE26 FLOAT, D1_DESCVALUE27 FLOAT, D1_DESCVALUE28 FLOAT, D1_DESCVALUE29 FLOAT, D1_DESCVALUE30 FLOAT, D1_DESCVALUE31 FLOAT, D1_DESCVALUE32 FLOAT, D1_DESCVALUE33 FLOAT, D1_DESCVALUE34 FLOAT, D1_DESCVALUE35 FLOAT, D1_DESCVALUE36 FLOAT, D1_DESCVALUE37 FLOAT, D1_DESCVALUE38 FLOAT, D1_DESCVALUE39 FLOAT, D1_DESCVALUE40 FLOAT, D1_DESCVALUE41 FLOAT, D1_DESCVALUE42 FLOAT, D1_DESCVALUE4! 3 FLOAT, D1_DESCVALUE44 FLOAT, D1_DESCVALUE45 FLOAT, D1_DESCVALUE46 FLOAT, D1_DESCVALUE47 FLOAT, D1_DESCVALUE48 FLOAT); CREATE TABLE DESCVALUES2 (D2_IDDESCVALUE2 INTEGER NOT NULL , D2_DESCVALUE1 FLOAT, D2_DESCVALUE2 FLOAT, D2_DESCVALUE3 FLOAT, D2_DESCVALUE4 FLOAT, D2_DESCVALUE5 FLOAT, D2_DESCVALUE6 FLOAT, D2_DESCVALUE7 FLOAT, D2_DESCVALUE8 FLOAT, D2_DESCVALUE9 FLOAT, D2_DESCVALUE10 FLOAT, D2_DESCVALUE11 FLOAT, D2_DESCVALUE12 FLOAT, D2_DESCVALUE13 FLOAT, D2_DESCVALUE14 FLOAT, D2_DESCVALUE15 FLOAT, D2_DESCVALUE16 FLOAT, D2_DESCVALUE17 FLOAT, D2_DESCVALUE18 FLOAT, D2_DESCVALUE19 FLOAT, D2_DESCVALUE20 FLOAT, D2_DESCVALUE21 FLOAT, D2_DESCVALUE22 FLOAT, D2_DESCVALUE23 FLOAT, D2_DESCVALUE24 FLOAT, D2_DESCVALUE25 FLOAT, D2_DESCVALUE26 FLOAT, D2_DESCVALUE27 FLOAT, D2_DESCVALUE28 FLOAT, D2_DESCVALUE29 FLOAT, D2_DESCVALUE30 FLOAT, D2_DESCVALUE31 FLOAT, D2_DESCVALUE32 FLOAT, D2_DESCVALUE33 FLOAT, D2_DESCVALUE34 FLOAT, D2_DESCVALUE35 FLOAT, D2_DESCVALUE36 FLOAT, D2_DESCVALUE37 FLOAT, D2_DESCVALUE38 FLOAT, D2_DESCVALUE39 FLOAT, D2_DESCVALUE40 FLOAT, D2_DESCVALUE41 FLOAT, D2_DESCVALUE42 FLOAT, D2_DESCVALUE4! 3 FLOAT, D2_DESCVALUE44 FLOAT, D2_DESCVALUE45 FLOAT, D2_DESCVALUE46 FLOAT, D2_DESCVALUE47 FLOAT, D2_DESCVALUE48 FLOAT, D2_DESCVALUE49 FLOAT, D2_DESCVALUE50 FLOAT, D2_DESCVALUE51 FLOAT, D2_DESCVALUE52 FLOAT, D2_DESCVALUE53 FLOAT, D2_DESCVALUE54 FLOAT, D2_DESCVALUE55 FLOAT, D2_DESCVALUE56 FLOAT, D2_DESCVALUE57 FLOAT, D2_DESCVALUE58 FLOAT, D2_DESCVALUE59 FLOAT, D2_DESCVALUE60 FLOAT, D2_DESCVALUE61 FLOAT, D2_DESCVALUE62 FLOAT, D2_DESCVALUE63 FLOAT, D2_DESCVALUE64 FLOAT, D2_DESCVALUE65 FLOAT, D2_DESCVALUE66 FLOAT, D2_DESCVALUE67 FLOAT, D2_DESCVALUE68
Re: [lazarus] SQLquery
, D2_DESCVALUE91 F T, D2_DESCVALUE95 FLOAT, D2_DESCVALUE96 FLOAT, D2_DESCVALUE97 FLOAT, D2_DESCVALUE98 FLOAT, D2_DESCVALUE99 FLOAT, D2_DESCVALUE100 FLOAT, D2_DESCVALUE101 FLOAT, D2_DESCVALUE102 FLOAT, D2_DESCVALUE103 FLOAT, D2_DESCVALUE104 FLOAT, D2_DESCVALUE105 FLOAT, D2_DESCVALUE106 FLOAT, D2_DESCVALUE107 FLOAT, D2_DESCVALUE108 FLOAT, D2_DESCVALUE109 FLOAT, D2_DESCVALUE110 FLOAT, D2_DESCVALUE111 FLOAT, D2_DESCVALUE112 FLOAT, D2_DESCVALUE113 FLOAT, D2_DESCVALUE114 FLOAT, D2_DESCVALUE115 FLOAT, D2_DESCVALUE116 FLOAT, D2_DESCVALUE117 FLOAT, D2_DESCVALUE118 FLOAT, D2_DESCVALUE119 FLOAT); Joost van der Sluis wrote: Can you post the structure of those two tables. (Their create- statement?) On Thu, 2007-05-03 at 16:50 +0200, Andrea Mauri wrote: incorrect values within sqlda structure I got this error only if the DB is not empty, if the DB is empty the query opens properly. I tested the same query with a SQL manager and using zeos components. In both cases it works properly. I build the query at runtime, it collects tens of float fields from different tables and joined them. -- Andrea Mauri PhD student - Chemical Sciences Milano Chemometrics and QSAR Research Group Department of Environmental Sciences University of Milano-Bicocca P.zza della Scienza, 1 20126 Milano - Italy Tel: ++39 02 64482801 mailto:[EMAIL PROTECTED] http://www.disat.unimib.it/chm/ _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] SQLquery
thanks raistware, I solved my first problem with sqlquery. Now I get: incorrect values within sqlda structure I got this error only if the DB is not empty, if the DB is empty the query opens properly. I tested the same query with a SQL manager and using zeos components. In both cases it works properly. I build the query at runtime, it collects tens of float fields from different tables and joined them. Is ths a Tsqlquery bug? andrea Raistware wrote: Hi Andrea, try this: select T1.ID as T1_ID, T1.FIELD1 as T1_FIELD1, T2.ID as T2_ID, T2.FIELD1 as T2_FIELD1 from TABLE1 T1 left join TABLE2 T2 on T1.ID = T2.ID It's not a bug, I think. Andrea Mauri escribió: Dear all, I am using TSQLquery with a TIBconnection to an interbase database. I have a query like this: select T1.ID, T1.FIELD1, T2.ID, T2.FIELD1 from TABLE1 T1 left join TABLE2 T2 on T1.ID = T2.ID If I use this query with TSQL query I get an error duplicate fieldname ID Why? If I commit the same query using a SQL manager I don't get the error an the query works properly. Is it a bug? Any help? Andrea _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives -- Andrea Mauri PhD student - Chemical Sciences Milano Chemometrics and QSAR Research Group Department of Environmental Sciences University of Milano-Bicocca P.zza della Scienza, 1 20126 Milano - Italy Tel: ++39 02 64482801 mailto:[EMAIL PROTECTED] http://www.disat.unimib.it/chm/ _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] SQLquery
Thanks. Now I don't get the previous error but another one: incorrect values within sqlda structure I will try to find a solution. a. Raistware wrote: Hi Andrea, try this: select T1.ID as T1_ID, T1.FIELD1 as T1_FIELD1, T2.ID as T2_ID, T2.FIELD1 as T2_FIELD1 from TABLE1 T1 left join TABLE2 T2 on T1.ID = T2.ID It's not a bug, I think. Andrea Mauri escribió: Dear all, I am using TSQLquery with a TIBconnection to an interbase database. I have a query like this: select T1.ID, T1.FIELD1, T2.ID, T2.FIELD1 from TABLE1 T1 left join TABLE2 T2 on T1.ID = T2.ID If I use this query with TSQL query I get an error duplicate fieldname ID Why? If I commit the same query using a SQL manager I don't get the error an the query works properly. Is it a bug? Any help? Andrea _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives -- Andrea Mauri PhD student - Chemical Sciences Milano Chemometrics and QSAR Research Group Department of Environmental Sciences University of Milano-Bicocca P.zza della Scienza, 1 20126 Milano - Italy Tel: ++39 02 64482801 mailto:[EMAIL PROTECTED] http://www.disat.unimib.it/chm/ _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] SQLquery
Dear all, I am using TSQLquery with a TIBconnection to an interbase database. I have a query like this: select T1.ID, T1.FIELD1, T2.ID, T2.FIELD1 from TABLE1 T1 left join TABLE2 T2 on T1.ID = T2.ID If I use this query with TSQL query I get an error duplicate fieldname ID Why? If I commit the same query using a SQL manager I don't get the error an the query works properly. Is it a bug? Any help? Andrea _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] cannot find -lgds
Actually my problem is that I am not able to install firebird on FC6. Any hint? a. Graeme Geldenhuys wrote: On 4/26/07, Andrea Mauri <[EMAIL PROTECTED]> wrote: I found the problem. I tried to install Interbaselaz package but actually I have not installed firebird yet. That would help... :-) G. _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] cannot find -lgds
I found the problem. I tried to install Interbaselaz package but actually I have not installed firebird yet. Bye, Andrea Andrea Mauri wrote: Hi, compiling lazarus svn on Fedora core 6 (fpc 2.0.4) I get: /usr/bin/ld cannot find -lgds some libraries are missing? andrea -- Andrea Mauri PhD student - Chemical Sciences Milano Chemometrics and QSAR Research Group Department of Environmental Sciences University of Milano-Bicocca P.zza della Scienza, 1 20126 Milano - Italy Tel: ++39 02 64482801 mailto:[EMAIL PROTECTED] http://www.disat.unimib.it/chm/ _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] create DB runtime
Hi, it is possible to create a database at runtime using sqldb? How can I do it? Thanks, Andrea -- Andrea Mauri PhD student - Chemical Sciences Milano Chemometrics and QSAR Research Group Department of Environmental Sciences University of Milano-Bicocca P.zza della Scienza, 1 20126 Milano - Italy Tel: ++39 02 64482801 mailto:[EMAIL PROTECTED] http://www.disat.unimib.it/chm/ _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] cannot find -lgds
Hi, compiling lazarus svn on Fedora core 6 (fpc 2.0.4) I get: /usr/bin/ld cannot find -lgds some libraries are missing? andrea -- Andrea Mauri PhD student - Chemical Sciences Milano Chemometrics and QSAR Research Group Department of Environmental Sciences University of Milano-Bicocca P.zza della Scienza, 1 20126 Milano - Italy Tel: ++39 02 64482801 mailto:[EMAIL PROTECTED] http://www.disat.unimib.it/chm/ _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] read big file and store info
Dear all. I need to read big text file and store the starting position and length of blocks that are present in this file. I have text file with a tag that identifies the beginning of a text block (this tag in the example is "- start -") and a tag that identifies where my block finish (i.e. "- stop -"). I don't know how long these text blocks are, they could be also of one single line, and I don't know how many of these blocks there are in a single file, could be one or thousands. I would like to read my file one time and then store the start position and the length of every block in order to access rapidly and directly to each block. Once stored start and length I would like to read each block directly and store the text lines to a TStringList. These files could be huge ( 1 Gb) so I would like to read one time and then access directly to a defined block. i.e. my file are like this - start - first block of a lot of characters and a lot of lines - stop - - start - second block of a lot of characters and a lot of lines - stop - ... - start - n-th block of a lot of characters and a lot of lines - stop - Any suggestion? andrea _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Re: GExperts + Source formatter
I have seen it. I don't know if it works under linux. I never used it. I think the URL is: http://jedicodeformat.sourceforge.net/ andrea Graeme Geldenhuys wrote: On 3/16/07, Roozbeh GHolizadeh <[EMAIL PROTECTED]> wrote: i always used jcl code formatter,it was nice one too.also opensource. Does it work under Linux? Do you have a URL for that? _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] lazarus saves every time I compile
thank you to everyone. actually I think that I am not able yet to work with the IDE implementing something. But I hope that I will acquire some skills in order to help the lazarus development team in some way. andrea Mattias Gaertner wrote: On Tue, 6 Feb 2007 17:36:16 +0100 "Felipe Monteiro de Carvalho" <[EMAIL PROTECTED]> wrote: On 2/6/07, Andrea Mauri <[EMAIL PROTECTED]> wrote: ok, thank you for the explanation. I will consider it during my project developing. but it is not possible to use in some way the backup files in order to restore the saved files? That doesn't seam a nice way to do things. Maybe you could write a IDE plugin which adds another compile button that works like you want. Or implement a svn plugin. Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives -- Andrea Mauri PhD student - Chemical Sciences Milano Chemometrics and QSAR Research Group Department of Environmental Sciences University of Milano-Bicocca P.zza della Scienza, 1 20126 Milano - Italy Tel: ++39 02 64482801 mailto:[EMAIL PROTECTED]
Re: [lazarus] lazarus saves every time I compile
ok, thank you for the explanation. I will consider it during my project developing. but it is not possible to use in some way the backup files in order to restore the saved files? thanks, andrea Vincent Snijders wrote: Andrea Mauri schreef: Ok in order to compile it needs to save my project but look at this example: I open an existing project, a very simple console application: program project1; {$mode objfpc}{$H+} uses {$IFDEF UNIX}{$IFDEF UseCThreads} cthreads, {$ENDIF}{$ENDIF} Classes { add your units here }; begin end. Then I modify it: program project1; {$mode objfpc}{$H+} uses {$IFDEF UNIX}{$IFDEF UseCThreads} cthreads, {$ENDIF}{$ENDIF} Classes { add your units here }; begin * writeln('Hello world!');* end. I compile it and I close lazarus. Lazarus doesn't ask me anything. I open again my project and I have the second version while I want the first one because I never said to lazarus to save my modified project. By giving the order to compile, you implicitly give the order to save. If I perform the same steps in Delphi when I close my project Delphi asks me if I want to save my project and if I say 'no' when I open my project again I have the first version of my project. Delphi can compile from files kept in memory, Lazarus cannot. My "problem" is, I have a big project, with many units, I make a lot of modifications daily, I want to test if everything works as I want, so I compile my project many times in a day. I don't want that lazarus saves my project every time I compile it and I don't want to make a manual backup of my project every time I modify it. I want that lazarus saves my project only if I decide to save it and not if I compile it. That is not possible. If you don't save your changes, your unchanged file will be compiled. Is it not possible to have the same behavior as in Delphi? At this moment, no. Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives -- Andrea Mauri PhD student - Chemical Sciences Milano Chemometrics and QSAR Research Group Department of Environmental Sciences University of Milano-Bicocca P.zza della Scienza, 1 20126 Milano - Italy Tel: ++39 02 64482801 mailto:[EMAIL PROTECTED] _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] lazarus saves every time I compile
Ok in order to compile it needs to save my project but look at this example: I open an existing project, a very simple console application: program project1; {$mode objfpc}{$H+} uses {$IFDEF UNIX}{$IFDEF UseCThreads} cthreads, {$ENDIF}{$ENDIF} Classes { add your units here }; begin end. Then I modify it: program project1; {$mode objfpc}{$H+} uses {$IFDEF UNIX}{$IFDEF UseCThreads} cthreads, {$ENDIF}{$ENDIF} Classes { add your units here }; begin * writeln('Hello world!');* end. I compile it and I close lazarus. Lazarus doesn't ask me anything. I open again my project and I have the second version while I want the first one because I never said to lazarus to save my modified project. If I perform the same steps in Delphi when I close my project Delphi asks me if I want to save my project and if I say 'no' when I open my project again I have the first version of my project. My "problem" is, I have a big project, with many units, I make a lot of modifications daily, I want to test if everything works as I want, so I compile my project many times in a day. I don't want that lazarus saves my project every time I compile it and I don't want to make a manual backup of my project every time I modify it. I want that lazarus saves my project only if I decide to save it and not if I compile it. Is it not possible to have the same behavior as in Delphi? Thank you, andrea Vincent Snijders wrote: Andrea Mauri schreef: Lazarus saves my project every time I compile it. Yes, it must do that, otherwise the compiler cannot compile it. The compiler must access to the files on disk. I open an existing project, I modify it, I compile it, So all modifications are saved. I close the project without saving it and saying to lazarus, when it asks me, that I don't want to save. The project is saved anyway with the modifications. What modifications? Lazarus last svn on winxp. I'm doing something wrong? I don't know. Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives -- Andrea Mauri PhD student - Chemical Sciences Milano Chemometrics and QSAR Research Group Department of Environmental Sciences University of Milano-Bicocca P.zza della Scienza, 1 20126 Milano - Italy Tel: ++39 02 64482801 mailto:[EMAIL PROTECTED]
[lazarus] lazarus saves every time I compile
Lazarus saves my project every time I compile it. I open an existing project, I modify it, I compile it, I close the project without saving it and saying to lazarus, when it asks me, that I don't want to save. The project is saved anyway with the modifications. Lazarus last svn on winxp. I'm doing something wrong? andrea _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] TFormStorage
thanks andrea Mattias Gaertner wrote: On Tue, 21 Nov 2006 09:52:00 +0100 Andrea Mauri <[EMAIL PROTECTED]> wrote: Hi, When I put a TFormStorage on a form (last SVN) an error occurs. Error Creating Component: error creating TFormStorage A TFormStorage is an abstract base class. Use TXMLPropStorage or TINIPropStorage instead. Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] deploy an application
You can use 'ldd ', it will show you a list of all linked libraries. It depends on the LCL-Interface, you use. If you choosed GTK1, then the GTK1 libs are needed. Most of the libs listed there are on mostly all Linux distributations out there. I compiled my app on Fedora and tested on Ubuntu. After ldd myapp I obtained on Ubuntu that only one library was missing: libgdk_pixbuf.so.2 but I wasn't able to install with sudo apt-get install libgdk_pixbuf.so.2 it said that libgdk_pixbuf.so.2 doesn't exist. Finally I found libgdk-pixbuf2 and installed it. Now myapp works fine but if I check the dependencies with ldd it finds libgdk_pixbuf.so.2. Why? Which is the difference, why it said that libgdk_pixbuf.so.2 is missing but the only lib I can find is libgdk-pixbuf2? I would like to deploy only the binary file and not the source. Which is the best way in order to do that? RPM? Tarball? Both and more. A Debian-package would be also nice for Debian users and an Ebuild would be nice for Gentoo users. RPM is the prefered type for Red Hat and SuSE users. I will check for Debian and Gentoo. I have to deploy all the required libraries? The users can install the missing libraries by his own? Most package systems support dependency-lists. You can add the appropriate libs to this list. But if I make a tarball I have to put in the tarball also the appropriate libs or I can say in some way which libs are needed in order to run myapp? How can I use the tarball in order to write a Debian package or a Gentoo ebuild? thanks again. a. There is a tutorial where I can find this kind of information? I read "Deploy your application tutorial" but I didn't find any information about the required libraries if I decide that I don't want to use RPM. An on which Linux distribution works the RPM? RPM would work on allmost every Linux distribution, if the appropriate tools are installed there. But I would not install a RPM directly on my Gentoo system. I would extract the files and install them manually or write a simple ebuild for it. The best way I think should be a tarball. You could write then a Debian package or a Gentoo ebuild, which use this tarball to install your program. -- Albert
[lazarus] deploy an application
Hi to all, I build a little application that I would like to deploy by the web. I compiled both on Windows and Linux. For the Windows application I used InnoSetup, I deploy only the exe file. I need to deploy some libraries too? And for Linux? How can I know which libraries my application needs in order to work properly? I would like to deploy only the binary file and not the source. Which is the best way in order to do that? RPM? Tarball? I have to deploy all the required libraries? The users can install the missing libraries by his own? There is a tutorial where I can find this kind of information? I read "Deploy your application tutorial" but I didn't find any information about the required libraries if I decide that I don't want to use RPM. An on which Linux distribution works the RPM? Thanks in advance, Andrea _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] FBLib or Zeos?
Hi to all, I'm starting the development of an application that will use a Firebird DB. Using Delphi I've always used the Interbase components to connect to the IB DB. I would like to implement this application in Lazarus using Firebird. I have to choose between FBlib components and Zeos. Which one I have to choose? There are some guidelines in order to choose FBLib or Zeos? Thanks a lot, Andrea _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] TAB width
Hi, I would like to set the TAB widths to 2 characters. I set it in the editor options to 2 I also set the block indent to 2. But when I press the TAB character in the editor the cursor doesn't move of two but it stops when it finds a space in the previous lines. It's a feature? How can I set a movement of 2 characters when I press the TAB? Thanks, Andrea -- Andrea Mauri PhD student - Chemical Sciences Milano Chemometrics and QSAR Research Group Department of Environmental Sciences University of Milano-Bicocca P.zza della Scienza, 1 20126 Milano - Italy Tel: ++39 02 64482801 mailto:[EMAIL PROTECTED] _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] GLScene package
Hi to all, I've installed lazarus (SVN) on my Fedora Core 5 pc. I'm trying to install the GLScene package (I've already installed it on my windows 2000 pc). I found two problems, the first one is that in the cvs repository all the subdir included in the Source directory are in lowercase but GLScene package try to find them in the correspondent uppercase directory (Source/base (CVS dir) Source/Base (GLScene package dir). I changed the compiler options for GLScene package in order to look in the lowercase directories. Now the compilation of GLScene package works but when I rebuild the IDE it said fatal error can't find unit opengl1x. opengl1x is in the Source/base dir and this path is correctly set in the compiler options of the GLScene package. I tried to add this directory also in the compiler options of the IDE but it doesn't work, still the same error. I've already installed the opengl package of lazarus. What could be the problem? Thanks, andrea _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] cannot find -IGLU
thank you, fixed. a. Christian U. wrote: install mesa devel librarys or your native opengl devel libs - Original Message - From: "Andrea Mauri" <[EMAIL PROTECTED]> To: Sent: Tuesday, March 28, 2006 2:23 PM Subject: [lazarus] cannot find -IGLU While rebuilding lazarus on Fedora 5 an error occurs while linking: /usr/bin/ld: cannot find -IGLU How can I solve this problem? Thanks, Andrea _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] cannot find -IGLU
While rebuilding lazarus on Fedora 5 an error occurs while linking: /usr/bin/ld: cannot find -IGLU How can I solve this problem? Thanks, Andrea _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] VitrualTreeView
I use VirtualTreeView (CVS) with lazarus (SVN) and it works. (Win XP). Andrea Razvan Adrian Bogdan wrote: I have an older version of this component from one month ago, then it was unusable, i managed to install it but it had serious painting bugs, i will try again hopefully with more luck this time, TreeView also has some bugs but the what makes this component so useful is probably it's speed and flexibility, getting it to work would be great :) On 2/19/06, Darius Blaszijk <[EMAIL PROTECTED]> wrote: Is anybody using VirtualTreeView? I've been trying to install the stable reelease and CVS version but on both accounts I get a "compile error" (this is the actual messag without anything else) and the package is left out for Lazarus to compile. Haven't looked into it deeper yet, thought I would ask first. Darius _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives -- Andrea Mauri PhD student - Chemical Sciences Milano Chemometrics and QSAR Research Group Department of Environmental Sciences University of Milano-Bicocca P.zza della Scienza, 1 20126 Milano - Italy Tel: ++39 02 64482801 mailto:[EMAIL PROTECTED]
Re: [lazarus] VirtualTree
Ok, I added Types in the uses units of Virtualtrees.pas and in Virtualstringtree.pas units and now lazarus compile correctly the virtualtreeview package. Thanks a lot, Andrea Vincent Snijders wrote: Andrea Mauri wrote: I downloaded the last lazarus SVN and the last CVS virtualtreeview. When I rebuild lazarus it still says: Error Identifier not found "TSize" in: function GetBorderDimensions: TSize; I didn't found the TSize declaration in the unit or in any other unit. Andrea TSize used to be in the LCLType unit, but since last night the LCL uses the TSize declaration from the types unit. See http://www.freepascal.org/cgi-bin/viewcvs.cgi/trunk/rtl/objpas/types.pp?sortby=file&view=markup at line 90. Hope this helps, Vincent. _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives -- Andrea Mauri PhD student - Chemical Sciences Milano Chemometrics and QSAR Research Group Department of Environmental Sciences University of Milano-Bicocca P.zza della Scienza, 1 20126 Milano - Italy Tel: ++39 02 64482801 mailto:[EMAIL PROTECTED] _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] VirtualTree
I downloaded the last lazarus SVN and the last CVS virtualtreeview. When I rebuild lazarus it still says: Error Identifier not found "TSize" in: function GetBorderDimensions: TSize; I didn't found the TSize declaration in the unit or in any other unit. Andrea Vincent Snijders wrote: Andrea Mauri wrote: I have another problem with VirtualTreeView with the last SVN, lazarus can't rebuild because in the VirtualTrees.pas it uses TSize that cannot be found. TSize is in the types unit. Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives -- Andrea Mauri PhD student - Chemical Sciences Milano Chemometrics and QSAR Research Group Department of Environmental Sciences University of Milano-Bicocca P.zza della Scienza, 1 20126 Milano - Italy Tel: ++39 02 64482801 mailto:[EMAIL PROTECTED] _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] VirtualTree
I have another problem with VirtualTreeView with the last SVN, lazarus can't rebuild because in the VirtualTrees.pas it uses TSize that cannot be found. Thanks, andrea Christian U. wrote: It works already use version from CVS - Original Message - From: Andrea Mauri To: lazarus@miraclec.com Sent: Wednesday, February 01, 2006 4:56 PM Subject: Re: [lazarus] VirtualTree Micha Nelissen wrote: On Mon, 30 Jan 2006 17:21:15 +0100 Marc Weustink <[EMAIL PROTECTED]> wrote: Andrea Mauri wrote: but it is commented in the lmessages.pp unit: //CM_PARENTFONTCHANGED= CM_BASE + 8; // LCL doesn't send or receive Anyone could help me? We commented it out to see if any 3rd party tool would use it. You just found out. And there should be a virtual method like ParentFontChanged providing the same functionality. Micha So, what I have to do to make VirtualTreeView works properly? a. -- Andrea Mauri PhD student - Chemical Sciences Milano Chemometrics and QSAR Research Group Department of Environmental Sciences University of Milano-Bicocca P.zza della Scienza, 1 20126 Milano - Italy Tel: ++39 02 64482801 mailto:[EMAIL PROTECTED]
Re: [lazarus] VirtualTree
I use winXp and tortoise svn that I use to update lazarus but how can i download the SVN of the virtualtreeview. Thaks, Andrea Christian U. wrote: It works already use version from CVS - Original Message - From: Andrea Mauri To: lazarus@miraclec.com Sent: Wednesday, February 01, 2006 4:56 PM Subject: Re: [lazarus] VirtualTree Micha Nelissen wrote: On Mon, 30 Jan 2006 17:21:15 +0100 Marc Weustink <[EMAIL PROTECTED]> wrote: Andrea Mauri wrote: but it is commented in the lmessages.pp unit: //CM_PARENTFONTCHANGED= CM_BASE + 8; // LCL doesn't send or receive Anyone could help me? We commented it out to see if any 3rd party tool would use it. You just found out. And there should be a virtual method like ParentFontChanged providing the same functionality. Micha So, what I have to do to make VirtualTreeView works properly? a. -- Andrea Mauri PhD student - Chemical Sciences Milano Chemometrics and QSAR Research Group Department of Environmental Sciences University of Milano-Bicocca P.zza della Scienza, 1 20126 Milano - Italy Tel: ++39 02 64482801 mailto:[EMAIL PROTECTED]
[lazarus] lazarus components
In internet I found a lot of tutorial on how to write components in delphi. I found also a tutorial that explain how to convert delphi component for lazarus. I would like to try to write components with lazarus, there is a wiki page or a tutorial to do that? Can I follow the tutorial dedicated to delphi also for lazarus? Which are the main differences? Thanks, Andrea _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] VirtualTree
Micha Nelissen wrote: On Mon, 30 Jan 2006 17:21:15 +0100 Marc Weustink <[EMAIL PROTECTED]> wrote: Andrea Mauri wrote: but it is commented in the lmessages.pp unit: //CM_PARENTFONTCHANGED= CM_BASE + 8; // LCL doesn't send or receive Anyone could help me? We commented it out to see if any 3rd party tool would use it. You just found out. And there should be a virtual method like ParentFontChanged providing the same functionality. Micha So, what I have to do to make VirtualTreeView works properly? a.
[lazarus] VirtualTree
Hi, I downloaded the last svn vesion of Lazarus (WinXP) with tortoisesvn. I've installed VirtaulTree in my Lazarus IDE some weeks ago, it worked but now it doesn't work, building Lazarus it says that CM_PARENTFONTCHANGE is not defined. I saw that in the vtheader.inc it VirtualTree uses CM_PARENTFONTCHANGE but it is commented in the lmessages.pp unit: //CM_PARENTFONTCHANGED= CM_BASE + 8; // LCL doesn't send or receive Anyone could help me? Thanks, Andrea _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Re: Can't rebuild lazarus
Thanks, I set the correct path to the make file for FPC. Now everything works. a. Felipe Monteiro de Carvalho wrote: Andrea Mauri wrote: I also tried to rebuild lazarus but it gives me 1511 errors during make. I tried /make clean all /and it gives me 1511 error. A lot of command syntax error. Do you have Delphi installed? Looks like you are using Borland Make to compile Lazarus. Type just "make" on the command line to see what make you are using. You need to use the make program witch comes with Free Pascal. Felipe _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Can't rebuild lazarus
I downloaded the last lazarus via svn. (Windows XP). I also installed fpc 2.0.2. Now I can't compile any projects (Can't find unit interfaces) I checked the fpc directory in the environment options and it is correct, also the fpc source. I also tried to rebuild lazarus but it gives me 1511 errors during make. I tried make clean all and it gives me 1511 error. A lot of command syntax error. What can I do to solve it? Thanks, Andrea
[lazarus] Synapse SMTP
Hi all, anyone has used Synapse to send mail using TLS? Where can I find some tips? I looked at the help but there isn't enough information. Thanks a lot, Andrea _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] MAC address
Very helpful. Thank you. a. _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] MAC address
I would like to convert a delphi/kylix project in lazarus project. In the kylix project there is also a function that checks the MAC address: ethernet:= 'eth0'; i:= socket(AF_INET, 2, 0) ; if not i < 0 then begin StrPLCopy(@f.ifrn_name, ethernet, IFNAMSIZ); if not ioctl(i,SIOCGIFHWADDR,@f) < 0 then begin m := @f.ifru_dstaddr.sa_data; // MAC FmtStr(MAC,'%.2x:%.2x:%.2x:%.2x:%.2x:%.2x', [Byte(m[0]), Byte(m[1]), Byte(m[2]), Byte(m[3]), Byte(m[4]), Byte(m[5])]); end; end; There is a way to do it also with lazarus/fpc? Thanks, Andrea _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives