Re: [Lazarus] MariaDB gone away after long inactivities
On 2015/08/18 08:06 AM, Aradeonas wrote: I don't know much about disconnecting problem but I know you dont need to set transaction every time ,just this line work for others automatically : SQLConnection1.Transaction:=SQLTransaction1; So if I understand, for good practice I must not have many TSQLTransaction? Even if I got many TSQLQuery About disconnecting you can make procedure that reconnect to DB when it disconnected or put a timer and check connection some times and if it was disconnected or other problem try to reconnect and put a counter so if MariaDB gone away for always,turn your auto connect system to off. Regards, Ara -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] MariaDB gone away after long inactivities
Hi Folks, I got two procedures that are connected to MariaDB 5.6, My goal is if my application was launch for a long time, it must not lost the connection with my database and if the connection to the database was lost due to any reasons and restored (MariaDB running again), the procedure must still connect to the database without the application been restarted. I have initialized the connection to the database using TSQLConnection to avoided the client library to trough away the connection, PLEASE see below. procedure TdataModuleMySQL.createConnection; begin SQLConnection1 := TMySQL55Connection.Create(nil); SQLConnection1.HostName:='127.0.0.1'; SQLConnection1.DatabaseName:='first'; SQLConnection1.UserName:='erickom'; SQLConnection1.Password:='tux.'; end; procedure TdataModuleMySQL.startDatabase; begin //Start of connection createConnection; //Open the connection & transaction SQLConnection1.Connected:=True; SQLConnection1.Transaction:=SQLTransaction1; SQLTransaction1.DataBase:=SQLConnection1; end; I use the first procedure to INSERT data in the database via TLabeledEdit component and has been tested successfully , see below: procedure TfrmMySQLTest.bitBtnInsertClick(Sender: TObject); begin try dataModuleMySQL.startDatabase; //Start of execution statment dataModuleMySQL.queryAtInsert; dataModuleMySQL.SQLQuery1.SQL.Text:='INSERT INTO student (names, dob) VALUES (:getNAMES, :getDOB);'; dataModuleMySQL.SQLQuery1.Params.ParamByName('getNAMES').AsString:=lblEdtNames1.Text; dataModuleMySQL.SQLQuery1.Params.ParamByName('getDOB').AsString:=lblEdtDOB1.Text; //This lets you know via the label if you are connected or not. if dataModuleMySQL.SQLConnection1.Connected then begin lblStatus1.Caption:='Connected'; try //This starts the query which was created in the connection string dataModuleMySQL.SQLQuery1.ExecSQL; //Close the database dataModuleMySQL.stopDatabase; except showMessage('Execution of your query with error; APP can not continued. '); end; end; except lblStatus1.Caption:='Not Connected'; showMessage('Database Connection Error. The database may be shutdown or network issue.'); end; The second procedure is used to SELECT and display in the TDBGrid (Successfully done) but lost the connect after the database been shutdown or when the application been running for long without activities, see below: procedure TdataModuleMySQL.queryGrid; begin SQLQueryGrid.DataBase:=SQLConnection1; SQLQueryGrid.Transaction:=SQLTransactionGrid; DataSource1.DataSet:=SQLQueryGrid; SQLQueryGrid.SQL.Text:='SELECT * FROM student;'; end; procedure TfrmMySQLTest.btnGridClick(Sender: TObject); begin try dataModuleMySQL.startDatabase; //Start of execution statment dataModuleMySQL.queryGrid; DBGrid2.DataSource:=dataModuleMySQL.DataSource1; //This lets you know via the label if you are connected or not. if dataModuleMySQL.SQLConnection1.Connected then begin lblStatus3.Caption:='Connected'; //This will also pass the inormation through to the GRID //This starts the query which was created in the connection string try dataModuleMySQL.SQLQueryGrid.Open; except showMessage('Execution of your query with error; APP can not continued.'); end; end; except lblStatus3.Caption:='Not Connected..'; showMessage('Database Connection Error. The database may be shutdown or network issue.'); dataModuleMySQL.createConnection; end; end; I don't know if the datasource can be the problem or not? or it is a normal behave? Thank you in advance -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Can't load client library libmysql.dll
On 2015-07-13 23:46, K. P. wrote: Possibly confusion re. 32 and 64 bit versions of said DLL...? SORRY for not specifying the arch type. I run on Windows 7 64bit, and my MariaDB/MySQL 5.5.44 was installed with 64bit version. So I used the libmysql.dll version 5.5.44.0 it failed until I copy the libmysql.dll version 5.5.28.0 to the project working folder. This last version was install on the 32bit. You are right it should be the version issue. Thanks Date: Mon, 13 Jul 2015 23:26:21 +0200 From: eric...@metropolitancollege.ac.sz To: lazarus@lists.lazarus.freepascal.org Subject: [Lazarus] Can't load client library libmysql.dll Hi All, I have noticed that my application can't load the MySQL library if I used the libmysql.dll version 5.5.44.0 when I used TSQLConnection and TMySQL55Connection with MariaDB/MySQL 5.5.44. The client library that works is libmysql.dll version 5.5.28.0, an old version that I got for more than an year now. I used Lazarus 1.4.0 with FPC 2.6.4 Please what can be the problem? Thanks -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Can't load client library libmysql.dll
Hi All, I have noticed that my application can't load the MySQL library if I used the libmysql.dll version 5.5.44.0 when I used TSQLConnection and TMySQL55Connection with MariaDB/MySQL 5.5.44. The client library that works is libmysql.dll version 5.5.28.0, an old version that I got for more than an year now. I used Lazarus 1.4.0 with FPC 2.6.4 Please what can be the problem? Thanks -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Git Plug-in for Lazarus
On 03/07/2015 12:44, Graeme Geldenhuys wrote: On 2015-07-03 11:20, Eric Kom wrote: But fine I got a working git server. Huh? Git doesn't use a "server"... maybe you meant "repository"? Sorry. REPOSITORY I menat My question now is how can I ignore *.back file so that I don't push them in the remote repo? Two ways of doing that. 1. Edit the "/.git/info/exclude" and include whatever files or paths you want to ignore. This option is local to your setup, so if you share this repository, nobody else will have your ignored file options. 2. Create a "/.gitignore" file. The syntax for this file is the same as in option (1). It is recommended to also commit this file into your repository (though not a requirement). If you commit it and share this repository, then others will have the same files ignored. Thanks For more details see the Git help on the subject: $> git help gitignore My ".gitignore" file normally contains the following: [ .gitignore ]--- *.[oa] *.ppu *.lps *.compiled *.bak* *.exe *.cgi *.log units/x86_64-freebsd/* units/x86_64-linux/* -[ end ]--------- Regards, - Graeme - -- -- Kind Regards Eric Kom Senior IT Technician - Metropolitan Schools _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Git Plug-in for Lazarus
On 03/07/2015 11:37, Graeme Geldenhuys wrote: On 2015-07-03 09:32, Eric Kom wrote: Please anyone got an idea about Git Plug-in for Lazarus? I honestly think there is no need. Do yourself a huge favour and learn to use Git from the command line. The command line has ALL the features, doesn't get confused about the current state of the repository and is 100% consistent across all platforms. No GUI front-end comes close. I personally tried probably 20+ GUI front-ends and they all slowed me down, most are not cross-platform, and don't support all Git features. Normal day-to-day usage only requires you to know about 5 commands from the command line - that's not too much to ask from a software developer. I installed and configured Gitlab It is working fine. But if you really must launch git via the IDE, use the External Tool option in the IDE and launch gitk, or 'gui gui' from there. I was thinking about a plugin to use in Lazarus. But fine I got a working git server. My question now is how can I ignore *.back file so that I don't push them in the remote repo? Another alternative, is using something like Guake - it is a command prompt window that slides into view from the top of your desktop, and slides away when you are done. Ideal for running short or quick commands only when needed. https://plus.google.com/u/0/+SamuelLampa/posts/h6NYLj7d6Xf Regards, - Graeme - -- -- Kind Regards Eric Kom Senior IT Technician - Metropolitan Schools _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Git Plug-in for Lazarus
Good day all, Please anyone got an idea about Git Plug-in for Lazarus? -- -- Kind Regards Eric Kom Senior IT Technician - Metropolitan Schools _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Support for MariaDB 10.0
On 12/05/2015 10:03, leledumbo wrote: Any support for MariaDB 10.0 branch? client library? TMySQL56Connection can connect to MariaDB perfectly. Tested, and it works perfectly Thanks again -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Support-for-MariaDB-10-0-tp4042171p4042174.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- -- Kind Regards Eric Kom Senior IT Technician - Metropolitan Schools _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Support for MariaDB 10.0
Hi Folk, Any support for MariaDB 10.0 branch? client library? Thanks -- -- Kind Regards Eric Kom Senior IT Technician - Metropolitan Schools _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Starting Android Emulator for AVD NOT FOUND
Hi all, I'm new on Lazarus for Android I have followed this link: http://sourceforge.net/projects/laztoapk/files/Lazarus%20and%20Android.pdf/download I received this error when I started the AVD: Starting emulator for AVD 'test' creating window 0 0 231 384 FB::flushWindowSurfaceColorBuffer: window handle 0x4 not found FB: closeColorBuffer cb handle 0x3 not found I ran on Windows 7 Thank you -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Fatal: Can not find unit ButtonEdit. Check if package ButtonEditLaz is in the dependencies.
Hi all, Please I got a problem after I have switched from windows XP to windows 7 64bit, the unit ButtonEdit can be fund. After I have downloaded the package unit ButtonEdit from: https://github.com/derit/ButtonEdit/archive/master.zip I received the above error during compilation: C:\lazarus\components\ButtonEdit-master\ButtonEdit.pas(242,6) Fatal: Can't open include file "ButtonEditRes.lrs" Please assist -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] MariaDB Cluster with lazarus
Hi All, I would like to know if MariaDB Cluster version 5.5 and 10.0 can be connected trought a lazarus application? Thanks -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] OnBeforeSelection
On 4/19/2014 11:42 AM, Howard Page-Clark wrote: On 19/04/2014 02:03, Eric Kom wrote: Hi Dear; Please I'm looking for the *OnBeforeSelection *Event on the TDBGrid? I can only see the OnSelectEditor. It is a protected property, so to use it you must declare a descendant and make it public (or published). Thanks Howard -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] OnBeforeSelection
Hi Dear; Please I'm looking for the *OnBeforeSelection *Event on the TDBGrid? I can only see the OnSelectEditor. I'm using Lazarus revision 44626. Thanks -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] SQL function within SQL statement
On 11/12/2013 20:31, David Copeland wrote: Perhaps you could try "UCASE(capital) as capital" ... ooh! Thanks Dave Copeland. On 12/11/2013 01:16 PM, Eric Kom wrote: Hi all, Please I got small issue with lazarus on how to pass SQL statement with a function as above: SELECT city, UCASE(capital) FROM country; the capital column doesn't show on the DBGrid Thanks -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] SQL function within SQL statement
Hi all, Please I got small issue with lazarus on how to pass SQL statement with a function as above: SELECT city, UCASE(capital) FROM country; the capital column doesn't show on the DBGrid Thanks -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Fatal: Internal error 2012090607 want compiled bgrabitmap7.2
Hi Please I got the above error when trying to compile bgrabitmap7.2 as above: /home/erickom/fpcBuild/lazarus/components/bgrabitmap7.2/bgrabitmaptypes.pas(2789,1) Fatal: Internal error 2012090607 Thank you in advance -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Failed to compiled bgracontrols
Hi After I have compiled and installed bgrabitmap6.0 succefully, I failed to compiled bgracontrols-2.2. see below the errors: /usr/share/lazarus/1.2RC1/components/bgracontrols-2.2/bcfilters.pas(131,61) Error: Identifier not found "int32or64" /usr/share/lazarus/1.2RC1/components/bgracontrols-2.2/bcfilters.pas(132,23) Error: Identifier not found "int32or64" /usr/share/lazarus/1.2RC1/components/bgracontrols-2.2/bcfilters.pas(132,48) Error: Identifier not found "int32or64" /usr/share/lazarus/1.2RC1/components/bgracontrols-2.2/bcfilters.pas(132,74) Error: Identifier not found "int32or64" /usr/share/lazarus/1.2RC1/components/bgracontrols-2.2/bcfilters.pas(139,1) Fatal: There were 4 errors compiling module, stopping I have followed this wiki: http://wiki.freepascal.org/BGRAControls I am running on debian Thank you. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Compilation Error At revision 43291.
$svn up $make clean $make bigide FPC=/usr/local/lib/fpc/2.7.1/ppc386 .. Linking ../lazarus lazarus.pp(142,1) Warning: "crti.o" not found, this will probably cause a linking failure lazarus.pp(142,1) Warning: "crtn.o" not found, this will probably cause a linking failure /usr/bin/ld: warning: ../link.res contains output sections; did you forget -T? /usr/local/lib/fpc/2.7.1/units/i386-linux/cairo/cairo.o: In function `CAIRO_GOBJECT_TYPE_REGION_OVERLAP': /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1221: undefined reference to `cairo_gobject_context_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_device_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_pattern_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_surface_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_rectangle_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_scaled_font_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_font_face_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_font_options_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_rectangle_int_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_region_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_status_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_content_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_operator_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_antialias_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_fill_rule_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_line_cap_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_line_join_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_text_cluster_flags_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_font_slant_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_font_weight_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_subpixel_order_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_hint_style_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_hint_metrics_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_font_type_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_path_data_type_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_device_type_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_surface_type_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_format_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_pattern_type_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_extend_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_filter_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_region_overlap_get_type' lazarus.pp(142,1) Error: Error while linking lazarus.pp(142,1) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted make[2]: *** [lazarus] Error 1 make[2]: Leaving directory `/home/erickom/fpcBuild/lazarus/ide' make[1]: *** [bigide] Error 2 make[1]: Leaving directory `/home/erickom/fpcBuild/lazarus/ide' make:
[Lazarus] Compilation error At revision 43281.
$make clean $svn up $make bigide FPC=/usr/local/lib/fpc/2.7.1/ppc386 ... Compiling /home/erickom/fpcBuild/lazarus/debugger/breakpointsdlg.pp Compiling /home/erickom/fpcBuild/lazarus/debugger/breakpropertydlg.pas Compiling /home/erickom/fpcBuild/lazarus/debugger/breakpropertydlggroups.pas Compiling /home/erickom/fpcBuild/lazarus/debugger/localsdlg.pp Compiling /home/erickom/fpcBuild/lazarus/debugger/watchpropertydlg.pp Compiling /home/erickom/fpcBuild/lazarus/debugger/callstackdlg.pp Compiling /home/erickom/fpcBuild/lazarus/debugger/evaluatedlg.pp Compiling /home/erickom/fpcBuild/lazarus/debugger/registersdlg.pp Compiling /home/erickom/fpcBuild/lazarus/debugger/assemblerdlg.pp Compiling /home/erickom/fpcBuild/lazarus/debugger/debugoutputform.pp Compiling /home/erickom/fpcBuild/lazarus/debugger/exceptiondlg.pas Compiling /home/erickom/fpcBuild/lazarus/debugger/inspectdlg.pas Compiling /home/erickom/fpcBuild/lazarus/debugger/debugeventsform.pp Compiling /home/erickom/fpcBuild/lazarus/debugger/frames/debugger_eventlog_options.pas Compiling /home/erickom/fpcBuild/lazarus/debugger/feedbackdlg.pp Compiling /home/erickom/fpcBuild/lazarus/debugger/threaddlg.pp Compiling /home/erickom/fpcBuild/lazarus/debugger/historydlg.pp Compiling /home/erickom/fpcBuild/lazarus/debugger/gdbmidebugger.pp Compiling /home/erickom/fpcBuild/lazarus/debugger/gdbtypeinfo.pp Compiling /home/erickom/fpcBuild/lazarus/debugger/gdbmimiscclasses.pp Compiling ideminilibc.pas Compiling /home/erickom/fpcBuild/lazarus/debugger/gdbmidebuginstructions.pp gdbmidebugger.pp(8484,52) Warning: Symbol "GDBDisassemble" is deprecated Writing Resource String Table file: gdbmidebugger.rst Compiling /home/erickom/fpcBuild/lazarus/debugger/sshgdbmidebugger.pas Compiling /home/erickom/fpcBuild/lazarus/debugger/processdebugger.pp Compiling /home/erickom/fpcBuild/lazarus/debugger/processlist.pas processdebugger.pp(110,87) Warning: Symbol "CommandLine" is deprecated processdebugger.pp(121,14) Warning: Symbol "CommandLine" is deprecated Compiling /home/erickom/fpcBuild/lazarus/debugger/gdbmiserverdebugger.pas Writing Resource String Table file: gdbmiserverdebugger.rst Compiling /home/erickom/fpcBuild/lazarus/debugger/debugattachdialog.pas debugattachdialog.pas(92,21) Error: Identifier not found "TWinDbgApi" debugattachdialog.pas(92,39) Error: class identifier expected debugattachdialog.pas(92,73) Error: Identifier not found "TDBGRunningProcessInfoList" debugattachdialog.pas(113,32) Error: Incompatible type for arg no. 1: Got "Pointer", expected "" debugattachdialog.pas(125,37) Error: Incompatible type for arg no. 1: Got "TObjectList", expected "" debugattachdialog.pas(187,27) Error: Incompatible type for arg no. 1: Got "TObjectList", expected "" debugattachdialog.pas(204) Fatal: There were 6 errors compiling module, stopping Fatal: Compilation aborted make[2]: *** [lazarus] Error 1 make[2]: Leaving directory `/home/erickom/fpcBuild/lazarus/ide' make[1]: *** [bigide] Error 2 make[1]: Leaving directory `/home/erickom/fpcBuild/lazarus/ide' make: *** [idebig] Error 2 -- Kind Regards Eric Kom Senior IT Manager - Metropolitan Schools _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Compilation Error on trunk At revision 43275.
Compilation Error on trunk At revision 43275 as above. $make bigide FPC=/usr/local/lib/fpc/2.7.1/ppc386 Compiling resource ../units/i386-linux/gtk2/lazarus.or Linking ../lazarus lazarus.pp(142,1) Warning: "crti.o" not found, this will probably cause a linking failure lazarus.pp(142,1) Warning: "crtn.o" not found, this will probably cause a linking failure /usr/bin/ld: warning: ../link.res contains output sections; did you forget -T? /usr/local/lib/fpc/2.7.1/units/i386-linux/cairo/cairo.o: In function `CAIRO_GOBJECT_TYPE_REGION_OVERLAP': /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1221: undefined reference to `cairo_gobject_context_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_device_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_pattern_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_surface_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_rectangle_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_scaled_font_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_font_face_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_font_options_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_rectangle_int_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_region_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_status_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_content_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_operator_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_antialias_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_fill_rule_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_line_cap_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_line_join_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_text_cluster_flags_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_font_slant_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_font_weight_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_subpixel_order_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_hint_style_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_hint_metrics_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_font_type_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_path_data_type_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_device_type_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_surface_type_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_format_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_pattern_type_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_extend_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_filter_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_region_overlap_get_type' lazarus.pp(142,1) Error: Error while linking lazarus.pp(142,1) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted make[2]: *** [lazarus] Error 1 make[2]: Leaving directory `/home/erickom/fpcBuild/lazarus/ide' make[1]: *** [bigide] Error 2 make[1]: Leaving directory `/home/erickom/
[Lazarus] Compilation Error on trunk At revision 43275.
Compilation Error on trunk At revision 43275 as above. Compiling resource ../units/i386-linux/gtk2/lazarus.or Linking ../lazarus lazarus.pp(142,1) Warning: "crti.o" not found, this will probably cause a linking failure lazarus.pp(142,1) Warning: "crtn.o" not found, this will probably cause a linking failure /usr/bin/ld: warning: ../link.res contains output sections; did you forget -T? /usr/local/lib/fpc/2.7.1/units/i386-linux/cairo/cairo.o: In function `CAIRO_GOBJECT_TYPE_REGION_OVERLAP': /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1221: undefined reference to `cairo_gobject_context_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_device_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_pattern_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_surface_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_rectangle_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_scaled_font_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_font_face_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_font_options_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_rectangle_int_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_region_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_status_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_content_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_operator_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_antialias_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_fill_rule_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_line_cap_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_line_join_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_text_cluster_flags_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_font_slant_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_font_weight_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_subpixel_order_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_hint_style_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_hint_metrics_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_font_type_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_path_data_type_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_device_type_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_surface_type_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_format_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_pattern_type_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_extend_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_filter_get_type' /home/erickom/fpcBuild/fpc/packages/./cairo/src/cairo.pp:1222: undefined reference to `cairo_gobject_region_overlap_get_type' lazarus.pp(142,1) Error: Error while linking lazarus.pp(142,1) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted make[2]: *** [lazarus] Error 1 make[2]: Leaving directory `/home/erickom/fpcBuild/lazarus/ide' make[1]: *** [bigide] Error 2 make[1]: Leaving directory `/home/erickom/fpcBuild/lazarus/ide' make: *** [idebig] Error 2 -- Kind Regar
Re: [Lazarus] Compilation error At revision 42224
On 29/07/2013 10:48, Mattias Gaertner wrote: On Mon, 29 Jul 2013 10:12:16 +0200 Eric Kom wrote: $svn up $make clean $make bigide FPC=/usr/local/lib/fpc/2.7.1/ppc386 . main.pp(1062,53) Warning: Implicit string type conversion with potential data loss from "WideChar" to "AnsiString" main.pp(1063,69) Warning: Implicit string type conversion with potential data loss from "WideString" to "AnsiString" PPU Loading /home/erickom/fpcBuild/lazarus/components/cairocanvas/lib/i386-linux/cairocanvas.ppu PPU Source: cairocanvas.pas not found Recompiling CairoCanvas, checksum changed for LCLType cairocanvas.pas(71,12) Fatal: Can't find unit CairoCanvas used by OSPrinters Fatal: Compilation aborted make[2]: *** [lazarus] Error 1 make[2]: Leaving directory `/home/erickom/fpcBuild/lazarus/ide' make[1]: *** [bigide] Error 2 make[1]: Leaving directory `/home/erickom/fpcBuild/lazarus/ide' make: *** [idebig] Error 2 Fixed. Still occurring: main.pp(1062,53) Warning: Implicit string type conversion with potential data loss from "WideChar" to "AnsiString" main.pp(1063,69) Warning: Implicit string type conversion with potential data loss from "WideString" to "AnsiString" PPU Loading /home/erickom/fpcBuild/lazarus/components/cairocanvas/lib/i386-linux/cairocanvas.ppu PPU Source: cairocanvas.pas not found Recompiling CairoCanvas, checksum changed for LCLType cairocanvas.pas(71,12) Fatal: Can't find unit CairoCanvas used by OSPrinters Fatal: Compilation aborted make[2]: *** [lazarus] Error 1 make[2]: Leaving directory `/home/erickom/fpcBuild/lazarus/ide' make[1]: *** [bigide] Error 2 make[1]: Leaving directory `/home/erickom/fpcBuild/lazarus/ide' make: *** [idebig] Error 2 Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Kind Regards Eric Kom System Administrator & Programmer - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Compilation error At revision 42224
$svn up $make clean $make bigide FPC=/usr/local/lib/fpc/2.7.1/ppc386 . main.pp(1062,53) Warning: Implicit string type conversion with potential data loss from "WideChar" to "AnsiString" main.pp(1063,69) Warning: Implicit string type conversion with potential data loss from "WideString" to "AnsiString" PPU Loading /home/erickom/fpcBuild/lazarus/components/cairocanvas/lib/i386-linux/cairocanvas.ppu PPU Source: cairocanvas.pas not found Recompiling CairoCanvas, checksum changed for LCLType cairocanvas.pas(71,12) Fatal: Can't find unit CairoCanvas used by OSPrinters Fatal: Compilation aborted make[2]: *** [lazarus] Error 1 make[2]: Leaving directory `/home/erickom/fpcBuild/lazarus/ide' make[1]: *** [bigide] Error 2 make[1]: Leaving directory `/home/erickom/fpcBuild/lazarus/ide' make: *** [idebig] Error 2 -- Kind Regards Eric Kom System Administrator & Programmer - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] try finally exit
On 29/06/2013 19:58, Michael Van Canneyt wrote: On Sat, 29 Jun 2013, Benito van der Zander wrote: It supposed to be there already: http://bugs.freepascal.org/view.php?id=21711 I extended that with an explicit example, and added a description in the reference documentation for Exit. Thanks Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Kind Regards Eric Kom System Administrator & Programmer - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Library or Unit that can help to check network connectivity.
Good day Dear, Please I am currently looking for library/unit that I can use to check network connectivity. Hoping I will find a help. -- Kind Regards Eric Kom System Administrator & Programmer - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] SQLTransaction: Operation cannot be performed on an active transaction
On 06/06/2013 16:01, Eric Kom wrote: On 06/06/2013 15:17, Antonio Fortuny wrote: Hi all, I tried reviewed the code and commented the try...except statement for more debug: procedure TfrmMainWindow.bitBtn1Click(Sender: TObject); begin //try DataModuleConn.openConnection; DataModuleConn.MySQL55Conn.Transaction  := DataModuleConn.SQLTransaction; //DataModuleConn.MySQL55Conn.Transaction.Active:=False; DataModuleConn.SQLTransaction.DataBase:=DataModuleConn.MySQL55Conn; DataModuleConn.SQLQuery.DataBase:=DataModuleConn.MySQL55Conn; DataModuleConn.SQLQuery.Transaction:=DataModuleConn.SQLTransaction; DataModuleConn.SQLQuery.Active:=False; DataModuleConn.SQLQuery.SQL.Text:=''; DataModuleConn.Datasource.DataSet:=DataModuleConn.SQLQuery; DataModuleConn.Datasource.DataSet.Active:=False; //DBGrid1.DataSource.DataSet.Active:=False; DBGrid1.DataSource:=DataModuleConn.Datasource; DBNavigator.DataSource:=DataModuleConn.Datasource; if DataModuleConn.MySQL55Conn.Connected=True then begin frmMainWindow.memReports.Append(msgOpeningDB); frmMainWindow.memReports.Append(msgDBReady); end; if (cbbList1.Items[cbbList1.ItemIndex] = 'ALL') then begin  DataModuleConn.SQLQuery.SQL.Text:='SELECT gender, year, country FROM reiser'; end else if (cbbList1.Items[cbbList1.ItemIndex] = lisCountry1) then begin  DataModuleConn.SQLQuery.SQL.Text:='SELECT gender, year, country FROM reiser WHERE country = ''Dutch Republic'''; end else //(cbbList1.Items[cbbList1.ItemIndex] = lisCountry3) begin    DataModuleConn.SQLQuery.SQL.Text:='SELECT gender, year, country FROM reiser WHERE country = ''Holland'''; end; //DataModuleConn.SQLTransaction.StartTransaction; DataModuleConn.SQLQuery.Close; DataModuleConn.Datasource.DataSet.Active:=True; DataModuleConn.SQLQuery.Open;  //except  //  frmMainWindow.memReports.Append(ErrConnectionFailed);  //end; end; The first trigged for the procedure bitBtn1Click1 works fine, the second trigged give up, with the above error: Operation cannot be performed on an active dataset. Could you point out which line generates the error ? Thank you for your response No specific line has been reported. According to the error message, for another query to be executed, the Dataset must be turn to false so that previous query must be cancelled. As a matter of fact, there are too much DB related operations. For instance the first 9 lines after the one // Try should be moved somewhere in an independent method and called only once in some intialization routine. Secondly, the two next lines do exactle the same thing, only one of them should be removed DataModuleConn.Datasource.DataSet.Active:=True; < keep this one as more datasource independent DataModuleConn.SQLQuery.Open;       <-- this one can be removed This rearrangement should work provided the 9 preceeding lines have been moved somewhere else and executed at least once if DataModuleConn.SQLQuery.Active then    DataModuleConn.SQLQuery.Close;    if DataModuleConn.MySQL55Conn.Transaction.InTransaction then on the DataModuleConn.MySQL55Conn.Transaction.InTransaction, the InTransaction property/var its not reorganized by lazarus.       DataModuleConn.MySQL55Conn.Transaction.Commit; if DataModuleConn.MySQL55Conn.Connected=True then begin frmMainWindow.memReports.Append(msgOpeningDB); frmMainWindow.memReports.Append(msgDBReady); end; if (cbbList1.Items[cbbList1.ItemIndex] = 'ALL') then begin  DataModuleConn.SQLQuery.SQL.Text:='SELECT gender, year, country FROM reiser'; end else if (cbbList1.Items[cbbLi
Re: [Lazarus] SQLTransaction: Operation cannot be performed on an active transaction
gin    DataModuleConn.SQLQuery.SQL.Text:='SELECT gender, year, country FROM reiser WHERE country = ''Holland'''; end; DataModuleConn.SQLTransaction.StartTransaction; DataModuleConn.SQLQuery.Open; Antonio. Press OK to ignore and risk data corruption. Press Cancel to kill the program. I tried to close and open the Dataset on my procedure bitBtn1Click1. May you please assist me? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Antonio Fortuny Senior Software engineer 220, avenue de la Liberté L-4602 Niederkorn Tel.: +352 58 00 93 - 93 www.sitasoftware.lu -- _______ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Kind Regards Eric Kom System Administrator & Programmer - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] SQLTransaction: Operation cannot be performed on an active transaction
On 04/06/2013 10:19, Antonio Fortuny wrote: Le 04/06/2013 09:56, Eric Kom a écrit : Good day all; I am trying to set the Active property of TSQLTransaction to False so that I can avoid the above Read Error message: SQLTransaction: Operation cannot be performed on an active transaction The True value is currently set to True. Try SQLTransaction.Commit or SQLTransaction.RollBack instead, depending on the case. Afterwards you can do whatever you need with the transaction. Do not use the Retaining methods as they do not desactivate the transaction. If the underlying database is Firebird, use Commit preferably to RollBack unless the former job has to be really rollbacked. Thanks, I did changed to Commit and then caNone before it solved the error, another error message pop up saying Access Violation. Anyway, the problem was solved. The above code its giving me a problem; the SQLQuery do not changed according to the condition for exemple if the first condition matched, the second condition is still going to use the matching from the first and vice versa. else if (cbbList.Items[cbbList.ItemIndex] = lisList1) then begin DataModuleConn.SQLTransaction1.Active:=True; DataModuleConn.SQLQuery1.SQL.Text:='SELECT year, country, gender FROM reiser WHERE country = ''Dutch Republic'''; DBGrid1.DataSource.DataSet:=DataModuleConn.SQLQuery1; DBGrid1.DataSource:=DataModuleConn.Datasource; DBGrid1.DataSource.DataSet.Active:=True; //DataModuleConn.SQLTransaction1.Commit; DataModuleConn.SQLTransaction1.CommitRetaining; end else if (cbbList.Items[cbbList.ItemIndex] = lisList1) then begin DataModuleConn.SQLTransaction1.Active:=True; DataModuleConn.SQLQuery1.SQL.Text:='SELECT year, country, gender FROM reiser WHERE country = ''Holland'''; DBGrid1.DataSource.DataSet:=DataModuleConn.SQLQuery1; DBGrid1.DataSource:=DataModuleConn.Datasource; DBGrid1.DataSource.DataSet.Active:=True; //DataModuleConn.SQLTransaction1.Commit; DataModuleConn.SQLTransaction1.CommitRetaining; end; I have tried DataModuleConn.SQLTransaction1.Rollback also, still the same. Antonio. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Kind Regards Eric Kom System Administrator & Programmer - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] SQLTransaction: Operation cannot be performed on an active transaction
Good day all; I am trying to set the Active property of TSQLTransaction to False so that I can avoid the above Read Error message: SQLTransaction: Operation cannot be performed on an active transaction The True value is currently set to True. -- Kind Regards Eric Kom System Administrator & Programmer - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Difference between SQLQuery.SQL.Text & SQLQuery.SQL.Strings[]
Hi, SQLQuery.SQL.Text & SQLQuery.SQL.Strings[], They all property of type string. Since I can't get a documentation about SQLQuery.SQL.Strings[] property, please what is a difference between both? -- Kind Regards Eric Kom System Administrator & Programmer - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] New competition for Lazarus
On 01/06/2013 10:27, Zaher Dirkey wrote: 1 - First i hate forking projects it wast the efforts, split the team, while other team can work together with first one (i am not mentioning who give the reason for that splitting) 2 - PilotLogic, just feeling, they have plan to make it commercial (i don't know if it can be), but from here i smell the money :P the project is not even GPL or other open source licenses. They don't do it for science, just for money: http://www.pilotlogic.com/sitejoom/index.php/wiki/84-wiki/codetyphon-studio/72-codetyphon-about On Thu, May 30, 2013 at 1:58 PM, Graeme Geldenhuys mailto:gra...@geldenhuys.co.uk>> wrote: Hi, I just saw this thread. The PilotLogic guys (creators of the CodeTyphoon project) has finally decided to fork Lazarus IDE and go their own route. Here are some "early days" screenshots. http://www.pilotlogic.com/sitejoom/media/kunena/attachments/63/OpenIntiana64_2013-05-27.jpg http://www.pilotlogic.com/sitejoom/media/kunena/attachments/63/Screenshot_2013-05-28.jpg They plan to add multi-architecture / dual personalities (32-bit & 64-bit executables) on a single system, improved cross-compile support with easy switching and indicator, C/C++ support, support more platforms etc. For the full thread, here is the link. http://www.pilotlogic.com/sitejoom/index.php/forum/ct-lab-news/2509-ct-4-30-lab-new-ide?limitstart=0&start=24 Regards, - Graeme - -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org <mailto:Lazarus@lists.lazarus.freepascal.org> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- I am using last revision of Lazarus, FPC 2.6 on Windows XP SP3 Best Regards Zaher Dirkey -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Kind Regards Eric Kom System Administrator & Programmer - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Compilation failed At revision 41469.
On 30/05/2013 19:12, Mattias Gaertner wrote: On Thu, 30 May 2013 19:03:07 +0200 Eric Kom wrote: Hi, Compilation failed At revision 41469. Fixed. Thanks Mattias Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Kind Regards Eric Kom System Administrator & Programmer - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Compilation failed At revision 41469.
Hi, Compilation failed At revision 41469. $make bigide FPC=/usr/local/lib/fpc/2.7.1/ppc386 Free Pascal Compiler version 2.7.1 [2013/05/30] for i386 Copyright (c) 1993-2013 by Florian Klaempfl and others Target OS: Linux for i386 Compiling lazbuild.lpr lazbuild.lpr(922,37) Error: Wrong number of parameters specified for call to "ReadProject" lazbuild.lpr(1624) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted make[2]: *** [lazbuild] Error 1 make[2]: Leaving directory `/home/erickom/freePascal27/lazarus/ide' make[1]: *** [lazbuilder] Error 2 make[1]: Leaving directory `/home/erickom/freePascal27/lazarus/ide' make: *** [lazbuild] Error 2 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] No Change between revision 41445 and 41446
Hi, Nothing was Change between revision 41445 and 41446? -- Kind Regards Eric Kom System Administrator & Programmer - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Bug At revision 40931 during compilation
make bigide FPC=/usr/local/lib/fpc/2.7.1/ppc386 . . registersqldb.pas(106,3) Fatal: Can't find unit CodeCache used by registersqldb Fatal: Compilation aborted make[2]: *** [sqldblaz.ppu] Error 1 make[2]: Leaving directory `/home/erickom/freePascal27/lazarus/components/sqldb' make[1]: *** [bigide] Error 2 make[1]: Leaving directory `/home/erickom/freePascal27/lazarus/components' make: *** [bigidecomponents] Error 2 -- Kind Regards Eric Kom System Administrator & Programmer - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] requires the package "cairocanvas_pkg"
Good day, After updated and installed from trunk lazarus, some packages are not available during the designtime which is normal. Please see below the error message: The package lazreport can not be installed, because it requires the package "cairocanvas_pkg", which is a runtime only package. The above mentioned package was later compiled but not installed because I can't see it on packages/install/uninstall menu. please what can I do to reverse this? Thanks! -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Where to find qt/qt4 unit
Good day, Please how can I get qt4 unit in lazarus? -- Kind Regards Eric Kom System Administrator & Programmer - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] PPU Invalid Version 158
On 18/02/2013 21:44, Mattias Gaertner wrote: On Mon, 18 Feb 2013 21:38:31 +0200 Eric Kom wrote: On 18/02/2013 21:23, Mattias Gaertner wrote: On Mon, 18 Feb 2013 21:15:32 +0200 Eric Kom wrote: Hello all, Please How can I fix the above error shown during build/compile process: PPU Loading /usr/local/lib/fpc/2.7.1/units/i386-linux/rtl/system.ppu PPU Invalid Version 158 alllclunits.pp(0,0) Fatal: Can not find system used by alllclunits, ppu=/usr/local/lib/fpc/2.7.1/units/i386-linux/rtl/system.ppu What platform? Debian How did you install FPC and Lazarus? $ svn co http://svn.freepascal.org/svn/fpc/trunk fpc # aptitude install fpc $ export PP=/usr/bin/ppc386 $ make OVERRIDEVERSIONCHECK=1 NOGDB=1 OPT='-O- -gl -Xs-' all Where is the "make install" command? sorry but. I used the make install command after. $ svn co http://svn.freepascal.org/svn/lazarus/trunk lazarus $ make bigide FPC=/usr/local/lib/fpc/2.7.1/ppc386 You must create a ~/.fpc.cfg with the right -Fu unit paths. See your /etc/fpc.cfg as a start. yes I did configure the file Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Kind Regards Eric Kom System Administrator & Programmer - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] PPU Invalid Version 158
On 18/02/2013 21:23, Mattias Gaertner wrote: On Mon, 18 Feb 2013 21:15:32 +0200 Eric Kom wrote: Hello all, Please How can I fix the above error shown during build/compile process: PPU Loading /usr/local/lib/fpc/2.7.1/units/i386-linux/rtl/system.ppu PPU Invalid Version 158 alllclunits.pp(0,0) Fatal: Can not find system used by alllclunits, ppu=/usr/local/lib/fpc/2.7.1/units/i386-linux/rtl/system.ppu What platform? Debian How did you install FPC and Lazarus? $ svn co http://svn.freepascal.org/svn/fpc/trunk fpc # aptitude install fpc $ export PP=/usr/bin/ppc386 $ make OVERRIDEVERSIONCHECK=1 NOGDB=1 OPT='-O- -gl -Xs-' all $ svn co http://svn.freepascal.org/svn/lazarus/trunk lazarus $ make bigide FPC=/usr/local/lib/fpc/2.7.1/ppc386 Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Kind Regards Eric Kom System Administrator & Programmer - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] PPU Invalid Version 158
Hello all, Please How can I fix the above error shown during build/compile process: PPU Loading /usr/local/lib/fpc/2.7.1/units/i386-linux/rtl/system.ppu PPU Invalid Version 158 alllclunits.pp(0,0) Fatal: Can not find system used by alllclunits, ppu=/usr/local/lib/fpc/2.7.1/units/i386-linux/rtl/system.ppu -- Kind Regards Eric Kom System Administrator & Programmer - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] last svn trunk failed to compile
On 15/02/2013 12:39, Mattias Gaertner wrote: Eric Kom hat am 15. Februar 2013 um 11:36 geschrieben: Good day, After retrieved lazarus trunk from the svn; the compile process has failed: Free Pascal Compiler version 2.7.1 [2013/02/15] for i386 Copyright (c) 1993-2013 by Florian Klaempfl and others Target OS: Linux for i386 Compiling alllclunits.pp Compiling barchart.pp Compiling lclproc.pas Compiling fpcadds.pas Compiling lclstrconsts.pas Writing Resource String Table file: lclstrconsts.rst Compiling lcltype.pp Compiling ./widgetset/wsreferences.pp lclproc.pas(51,3) Error: Identifier not found "class" This has been fixed already. Please update your svn. Thanks, update and build was successful. Mattias lclproc.pas(51,3) Error: Error in type definition lclproc.pas(51,3) Fatal: Syntax error, ";" expected but "identifier PUBLIC" found Fatal: Compilation aborted make[1]: *** [alllclunits.ppu] Error 1 make[1]: Leaving directory `/home/erickom/freePascal/lazarus/lcl' make: *** [lazbuild] Error 2 -- Kind Regards Eric Kom System Administrator & Programmer - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends. / - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Kind Regards Eric Kom System Administrator & Programmer - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] last svn trunk failed to compile
Good day, After retrieved lazarus trunk from the svn; the compile process has failed: Free Pascal Compiler version 2.7.1 [2013/02/15] for i386 Copyright (c) 1993-2013 by Florian Klaempfl and others Target OS: Linux for i386 Compiling alllclunits.pp Compiling barchart.pp Compiling lclproc.pas Compiling fpcadds.pas Compiling lclstrconsts.pas Writing Resource String Table file: lclstrconsts.rst Compiling lcltype.pp Compiling ./widgetset/wsreferences.pp lclproc.pas(51,3) Error: Identifier not found "class" lclproc.pas(51,3) Error: Error in type definition lclproc.pas(51,3) Fatal: Syntax error, ";" expected but "identifier PUBLIC" found Fatal: Compilation aborted make[1]: *** [alllclunits.ppu] Error 1 make[1]: Leaving directory `/home/erickom/freePascal/lazarus/lcl' make: *** [lazbuild] Error 2 -- Kind Regards Eric Kom System Administrator & Programmer - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Failed to compiled lazarus-1.1-40285-20130213-src.tar.bz2
On 13/02/2013 23:51, Sven Barth wrote: On 13.02.2013 22:43, Eric Kom wrote: Hi all, After I have downloaded the tar lazarus-1.1-40285-20130213-src.tar.bz2 and untar it: $ make clean $ make bigide FPC=/usr/local/lib/fpc/2.7.1/ppc386 Update your 2.7.1 first. Thanks, It works Regards, Sven -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Kind Regards Eric Kom System Administrator & Programmer - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Failed to compiled lazarus-1.1-40285-20130213-src.tar.bz2
Hi all, After I have downloaded the tar lazarus-1.1-40285-20130213-src.tar.bz2 and untar it: $ make clean $ make bigide FPC=/usr/local/lib/fpc/2.7.1/ppc386 Failed the compiled: ... Compiling lazcanvas.pas Compiling lazregions.pas lazcanvas.pas(625,3) Note: Local variable "lx" not used lazcanvas.pas(625,7) Note: Local variable "ly" not used lazcanvas.pas(765,8) Error: identifier idents no member "StrikeThrough" lazcanvas.pas(765,31) Error: identifier idents no member "StrikeThrough" lazcanvas.pas(801) Fatal: There were 2 errors compiling module, stopping Fatal: Compilation aborted make[1]: *** [alllclunits.ppu] Error 1 make[1]: Leaving directory `/home/erickom/lazarus/lazarus/lcl' make: *** [lazbuild] Error 2 -- Kind Regards Eric Kom System Administrator & Programmer - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] TBitmap image from TBitBtn button didn’t display during run time.
Good day, I got a problem with a TBitmap image from TBitBtn button that didn’t display during run time. -- Kind Regards Eric Kom System Administrator & Programmer - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Reset of the TComboBox list
Hello All, Please it is possible to reset or reinitialize the values of the TComboBox list after it has been selected? -- Kind Regards Eric Kom System Administrator & Programmer - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] errors: Upper bound of case range is less than lower bound and duplicate case label
On 21/01/2013 21:11, Sven Barth wrote: On 21.01.2013 15:37, Flávio Etrusco wrote: On Mon, Jan 21, 2013 at 7:00 AM, Sven Barth wrote: Am 21.01.2013 04:54, schrieb Alexander Klenin: On Mon, Jan 21, 2013 at 4:43 AM, Sven Barth wrote: case gradeSelected of '12'..'12': tuitionFee := '14500.00'; ^ ^ This should be easy to spot... No, the error is in the line below. '8'..'11' : tuitionFee := '13500.00'; Note that strings are not numbers, so '8' > '11'. Also, '1' < '11' < '7' < '8', so case branch labels intersect, which is the reason for the second error. it works! after I have removed the single quote and converted gradeSelected from string to integer. Thanks for your contributions. Right... I forgot that this is a case of string -.- Regards, Sven Should case of string really allow ranges? THAT is an interesting question. Regards, Sven -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Kind Regards Eric Kom System Administrator & Programmer - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] errors: Upper bound of case range is less than lower bound and duplicate case label
On 20/01/2013 23:26, Mattias Gaertner wrote: On Sun, 20 Jan 2013 18:43:44 +0100 Sven Barth wrote: On 20.01.2013 18:40, Eric Kom wrote: Good afternoon all, Please after write the above procedure, I received the errors: Upper bound of case range is less than lower bound and duplicate case label procedure DisplayGrade(Sender: TObject); var grade: String; tuitionFee: String; gradeSelected: String; begin gradeSelected := cbbGradeList.Items[cbbGradeList.ItemIndex]; case gradeSelected of '12'..'12': tuitionFee := '14500.00'; ^ ^ This should be easy to spot... Maybe changing the message to "lower or equal" would help? I don't understand this error of lower bound and duplicate case label Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Kind Regards Eric Kom System Administrator & Programmer - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] errors: Upper bound of case range is less than lower bound and duplicate case label
Good afternoon all, Please after write the above procedure, I received the errors: Upper bound of case range is less than lower bound and duplicate case label procedure DisplayGrade(Sender: TObject); var grade: String; tuitionFee: String; gradeSelected: String; begin gradeSelected := cbbGradeList.Items[cbbGradeList.ItemIndex]; case gradeSelected of '12'..'12': tuitionFee := '14500.00'; '8'..'11' : tuitionFee := '13500.00'; '1'..'7' : tuitionFee := '8000.00'; else tuitionFee := '850.00'; end; end; -- Kind Regards Eric Kom System Administrator & Programmer - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Can't find unit process used by RegisterFCL during build process
Good day, Please I got this error during build process of lazarus trunk: erickom@lazarusTwo:~/lazarus/lazarus$ make bigide FPC=/usr/local/lib/fpc/2.7.1/ppc386 make -C packager/registration make[1]: Entering directory `/home/erickom/lazarus/lazarus/packager/registration' /bin/rm -f ../units/i386-linux/fcllaz.ppu /bin/mkdir -p ../units/i386-linux /usr/local/lib/fpc/2.7.1/ppc386 -MObjFPC -Scghi -O1 -g -gl -vewnhi -l -Fu. -Fu/usr/local/lib/fpc/2.7.1/units/i386-linux/rtl -FE. -FU../units/i386-linux -di386 fcllaz.pas Hint: Start of reading config file /etc/fpc.cfg Hint: End of reading config file /etc/fpc.cfg Free Pascal Compiler version 2.7.1 [2013/01/15] for i386 Copyright (c) 1993-2012 by Florian Klaempfl and others Target OS: Linux for i386 Compiling fcllaz.pas Compiling registerfcl.pas Compiling lazaruspackageintf.pas registerfcl.pas(45,22) Fatal: Can't find unit process used by RegisterFCL Fatal: Compilation aborted make[1]: *** [fcllaz.ppu] Error 1 make[1]: Leaving directory `/home/erickom/lazarus/lazarus/packager/registration' make: *** [registration] Error 2 -- Kind Regards Eric Kom System Administrator & Programmer - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to select Item from a TComboBox list and compare it
On 10/01/2013 18:49, Sven Barth wrote: Am 10.01.2013 17:11, schrieb Eric Kom: Good day, I wrote a procedure DisplayFeesList, please how can I read an Item from a TComboBox type list and then compare it to a string. procedure DisplayFeesList(Sender: TObject); begin if cbbBoarderType.Items.Text='Yes' then begin cbbFeesList.Clear; cbbFeesList.Enabled:=True; cbbFeesList.AddItem(32500, 35000); end; end; You mean the currently selected item? This works as follows: === source begin === if cbbBoarderType.Items[cbbBoarderType.ItemIndex] = 'Yes' then begin // ... end; === source end === Thanks its works, Regards, Sven -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Kind Regards Eric Kom System Administrator & Programmer - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] How to select Item from a TComboBox list and compare it
Good day, I wrote a procedure DisplayFeesList, please how can I read an Item from a TComboBox type list and then compare it to a string. procedure DisplayFeesList(Sender: TObject); begin if cbbBoarderType.Items.Text='Yes' then begin cbbFeesList.Clear; cbbFeesList.Enabled:=True; cbbFeesList.AddItem(32500, 35000); end; end; -- Kind Regards Eric Kom System Administrator & Programmer - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Version Info as statement in the *.lpr source file
On 20/12/2012 11:05, Mark Morgan Lloyd wrote: Eric Kom wrote: Good day, Please am use to pass version info in the project options and would like to know if it is possible to pass it directly from the *.lpr source file as literal string. Are you talking about the version of the compiler (and/or IDE and/or LCL) or of your program? And on which operating system? And what do you want to do with it: use it for conditional compilation or refer to it while the program's running? The version of my program. -- Kind Regards Eric Kom System Administrator & Programmer - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Version Info as statement in the *.lpr source file
Good day, Please am use to pass version info in the project options and would like to know if it is possible to pass it directly from the *.lpr source file as literal string. -- Kind Regards Eric Kom System Administrator & Programmer - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] How to build a separete unit file for db connection
Good day all, Please I want to build a separete unit file for db connection so that I can call the file in different file to avoid difference circular problem. Am used to create db connection with visual component on the form. Thanks Eric Kom - www.kom.org.za -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Fatal: Circular unit reference between units
On 21/11/2012 15:45, michael.vancann...@wisa.be wrote: On Wed, 21 Nov 2012, Eric Kom wrote: Good day all, Please I got a problem regarding units. To use components from unit1 called mainWindow, I included the header unit1 inside unit2 called loginScholarly. During build process, the above message occurred: loginscholarly.pas(19,42) Fatal: Circular unit reference between loginScholarly and mainWindow Well, you're not supposed to do this. Probably mainWindow already uses loginScholarly. In general, units should not use each other, it is bad design. Now, you can solve this by moving one of the units from the interface uses section to the implementation section. You'll have to decide which one. Thanks, it works. I butter use implementation section since it will give me hard work by creating another unit file at the moment. I will think about that in the next project In general, however, it is better to move common parts to a separate unit, and let both units use that third unit. Michael. Thanks -- Kind Regards Eric Kom System Administrator - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Kind Regards Eric Kom System Administrator - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Fatal: Circular unit reference between units
Good day all, Please I got a problem regarding units. To use components from unit1 called mainWindow, I included the header unit1 inside unit2 called loginScholarly. During build process, the above message occurred: loginscholarly.pas(19,42) Fatal: Circular unit reference between loginScholarly and mainWindow Thanks -- Kind Regards Eric Kom System Administrator - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] lazbarcodes: unsuccessfully compiled
Good day, I downloaded the tar file for lazbarcodes, after tried to compile lazbarcodes_runtimeonly.lpk file, the above error message occurred: lazbarcodes_runtimeonly.pas(10,3) Fatal: Can not find unit zint used by lazbarcodes_runtimeonly. Check if package lazbarcodes_runtimeonly is in the dependencies. The Zint unit is not found! How can I install the Zint package? Thank once -- Kind Regards Eric Kom System Administrator - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] SQL select problem
On 20/11/2012 15:41, Reinier Olislagers wrote: On 20-11-2012 13:47, Eric Kom wrote: the last usernameLogin field in the table as erickom and the first 2 ajm and ajm1. on the authentication form, when I entered erickom and its password, everything goes well, when I entered an unknown username everything goes well as well like 'Failed to connect using: ' + getUsername; but when I entered the 2 first usernames that are in the table (ajm & ajm1) its not responding as expected, the if condition jump after display the message Retrieving information for: ' + retUsername to Failed to connect using: ' + getUsername. Abnormal behave. Please view below my code and Thank in advance: if MySQL55.Connected=True then begin; //SQLQueryMySQL.SQL.Text := 'SELECT usernameLogin, passwordLogin, fullNameLogin FROM scholarly.login WHERE usernameLogin = '':getUsername'' AND passwordLogin = '':getPasswordHash'''; Apart from Luk's remarks, I wouldn't use quotes around those parameters in the WHERE clause. The parameters are meant to work around the quote problems. I'd focus on getting the code above fixed as it's much more elegant: it let's the DB engine focus on the query... I was trying to affect the variable value to a field. I did confuse them with the single quote whether they are 1, 2 or 3 Groete, Reinier -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Kind Regards Eric Kom System Administrator - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] SQL select problem
On 20/11/2012 15:20, Luk Vandelaer wrote: You don't leave the while loop when you found the correct user. Thanks again Luk, For each record there will be a showstring call processed. It should be something like: var found: boolean; found := false; while not SQLQueryMySQL.EOF and not found do begin //Retrieved data fields and assigned to a string variables retUsername := SQLQueryMySQL.Fields[0].AsString; retPassword := SQLQueryMySQL.Fields[1].AsString; found := (getUsername = retUsername) AND (getPasswordHash = retPassword); SQLQueryMySQL.Next; end; if found then begin retFullname := SQLQueryMySQL.Fields[2].AsString; ShowString('Retrieving information for: ' + retUsername); StatusBarLogin.Update; sleep(2000); ShowString('Connected to server as: ' + retUsername + ', known as ' + retFullname); end else ShowString('Failed to connect using: ' + getUsername); By putting the retFullname := SQLQueryMySQL.Fields[2].AsString; statement after the SQLQueryMySQL.Next; statement, this last statement makes the field fullname to jump to the next row, by selecting a wrong fullname for the credentials on check. anyway thanks again for your debugging. Luk -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Kind Regards Eric Kom System Administrator - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] SQL select problem
Good day all, I got 3 rows in the table login that I used as credentials for authenticate. the last usernameLogin field in the table as erickom and the first 2 ajm and ajm1. on the authentication form, when I entered erickom and its password, everything goes well, when I entered an unknown username everything goes well as well like 'Failed to connect using: ' + getUsername; but when I entered the 2 first usernames that are in the table (ajm & ajm1) its not responding as expected, the if condition jump after display the message Retrieving information for: ' + retUsername to Failed to connect using: ' + getUsername. Abnormal behave. Please view below my code and Thank in advance: if MySQL55.Connected=True then begin; //SQLQueryMySQL.SQL.Text := 'SELECT usernameLogin, passwordLogin, fullNameLogin FROM scholarly.login WHERE usernameLogin = '':getUsername'' AND passwordLogin = '':getPasswordHash'''; SQLQueryMySQL.SQL.Text := 'SELECT usernameLogin, passwordLogin, fullNameLogin FROM scholarly.login'; SQLTransactionMySQl.StartTransaction; SQLQueryMySQL.Open; while not SQLQueryMySQL.EOF do begin //Retrieved data fields and assigned to a string variables retUsername := SQLQueryMySQL.Fields[0].AsString; retPassword := SQLQueryMySQL.Fields[1].AsString; retFullname := SQLQueryMySQL.Fields[2].AsString; if (getUsername = retUsername) AND (getPasswordHash = retPassword) then begin ShowString('Retrieving information for: ' + retUsername); StatusBarLogin.Update; sleep(2000); ShowString('Connected to server as: ' + retUsername + ', known as ' + retFullname); end else ShowString('Failed to connect using: ' + getUsername); SQLQueryMySQL.Next; end; SQLQueryMySQL.Close; SQLTransactionMySQL.Commit; end; except on D: EDatabaseError do ShowString('Connection to database as failed, please check your network.'); end; -- Kind Regards Eric Kom System Administrator - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] sleep function don't passed before executing the next statement
On 19/11/2012 14:44, Martin wrote: On 19/11/2012 12:17, Eric Kom wrote: On 19/11/2012 13:07, Michael Schnell wrote: On 11/19/2012 11:01 AM, Eric Kom wrote: the Connection procedure is declared as a private This makes no difference at all. ("private" is just a visibility attribute and has no influence on the functionality whatsoever. Please read the docs on the Object Pascal language.) Please did know a link that can send me to Object Pascal Language guide? This isn't so much about object programming, but about event driven programming. Events are processed one by one. Your "Tfrmform1.Connection" is one event. All other events are only processed, when this returns/finishes. (or when you call Application.ProcessMessages) "StatusBar.SimpleText := 'My name is Tux'; " Does store the new caption, but not yet paint it. It triggers a paint event, that will be processed later. During the sleep no events are processed, so nothing is painted to the screen. You could call Application.ProcessMessages before the sleep. But *warning*, this can get messy. During a Application.ProcessMessages your event ("Tfrmform1.Connection") can be triggered and called again, like this: StatusBar.SimpleText := 'My name is Tux'; Application.ProcessMessages; StatusBar.SimpleText := 'My name is Tux'; Application.ProcessMessages // ... and maybe called again ... sleep(100); StatusBar.SimpleText := 'am ready'; sleep(100); StatusBar.SimpleText := 'am ready'; Thanks for all Martin, it's works StatusBar.SimpleText := 'My name is Tux'; StatusBar.Update; sleep(2000); StatusBar.SimpleText := 'am ready'; I will try the hard code also You can also try StatusBar.Update; This will (or should) do an immediate paint (do NOT call paint directly!) Also note: during a sleep your app does not react. If a user resizez the window, it will not paint. So if you put is longer sleeps, your app will become none responsive to the user. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Kind Regards Eric Kom System Administrator - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] sleep function don't passed before executing the next statement
On 19/11/2012 13:07, Michael Schnell wrote: On 11/19/2012 11:01 AM, Eric Kom wrote: the Connection procedure is declared as a private This makes no difference at all. ("private" is just a visibility attribute and has no influence on the functionality whatsoever. Please read the docs on the Object Pascal language.) Please did know a link that can send me to Object Pascal Language guide? -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Kind Regards Eric Kom System Administrator - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] sleep function don't passed before executing the next statement
On 19/11/2012 11:43, Michael Schnell wrote: On 11/19/2012 10:08 AM, Eric Kom wrote: after included the Crt library in my lazarus file, when I called the functions sleep() or delay(), the function do not execute the previous statement, pass and execute the next as below: StatusBar.SimpleText := 'My name is Tux'; sleep(100); StatusBar.SimpleText := 'am ready'; Using sleep in this way does not make sense at all. - Any GUI action (i.e. displaying changes) is blocked while the main is sleeping. - the GUI actions are performed by events and can will be performed at "some reasonable point in time" after the action is scheduled by the user program. the Connection procedure is declared as a private procedure Tfrmform1.Connection(Sender: TObject); begin StatusBar.SimpleText := 'My name is Tux'; sleep(100); StatusBar.SimpleText := 'am ready'; end; The purpose of sleep() is nothing but "allowing for other threads and processes to use the CPU for at least the given milliseconds". -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Kind Regards Eric Kom System Administrator - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] sleep function don't passed before executing the next statement
Good day, after included the Crt library in my lazarus file, when I called the functions sleep() or delay(), the function do not execute the previous statement, pass and execute the next as below: StatusBar.SimpleText := 'My name is Tux'; sleep(100); StatusBar.SimpleText := 'am ready'; -- Kind Regards Eric Kom System Administrator - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] How to assign a SQL field to a variable
Good day, After connected to the database and assign the SQL query to SQLQueryMySQL.SQL.Text and opened the query as follow: SQLQueryMySQL.SQL.Text := 'SELECT usernameLogin, passwordLogin, fullNameLogin FROM `tux`.`login`'; SQLQueryMySQL.Open; My question is, how do manage to assign a specific fields to a variables defined? -- Kind Regards Eric Kom System Administrator - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] How to assign a SQL field to a variable
Good day, After connected to the database and assign the SQL query to SQLQueryMySQL.SQL.Text and opened the query as follow: SQLQueryMySQL.SQL.Text := 'SELECT usernameLogin, passwordLogin, fullNameLogin FROM `tux`.`login`'; SQLQueryMySQL.Open; My question is, how do manage to assign a specific fields to a variables defined? -- Kind Regards Eric Kom System Administrator - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] How to assign a SQL field to a variable
Good day, After connected to the database and assign the SQL query to SQLQueryMySQL.SQL.Text and opened the query as follow: SQLQueryMySQL.SQL.Text := 'SELECT usernameLogin, passwordLogin, fullNameLogin FROM `tux`.`login`'; SQLQueryMySQL.Open; My question is, how do manage to assign a specific fields to a variables defined? -- Kind Regards Eric Kom System Administrator - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] lclclasses.pp(48, 25) Error: identifier not found: TComponent
Good day, Please I got a problem when trying to create a OnClick Event for TMenuItem. Below are the messages error: The component editor of class "TDefaultComponentEditor"has created the error: "Unable to find method. Please fix the error shown in the message window, which is normally below the source editor." - /home/erickom/fpcDevBuild/lazarus/lcl/lclclasses.pp(48,25) Error: identifier not found: TComponent -- Kind Regards Eric Kom System Administrator - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] how to build lazarus so that it support fpc2.7.1
On 10/11/2012 14:43, Eric Kom wrote: On 10/11/2012 14:25, Reinier Olislagers wrote: On 10-11-2012 13:10, Mattias Gaertner wrote: On Sat, 10 Nov 2012 12:40:57 +0200 Eric Kom wrote: On 10/11/2012 12:14, Mattias Gaertner wrote: On Sat, 10 Nov 2012 11:52:22 +0200 Eric Kom wrote: Thanks a lot, After ran the above command: $make clean bigide install PREFIX=/usr/local/share/fpc2.7/ PP=/usr/local/bin/fpc2.7/lib/fpc/2.7.1/ppc386 I received the above error message Can't find unit system used by fcllaz: You have to install fpc in the path defined by your /etc/fpc.cfg - it supports multiple fpc versions - or you have to write a separate config and pass that via the @ flag. @ Eric: what guide/instructions are you following? Perhaps there are some omissions/unclear bits that need to be fixed in those instructions? Am trying to set /etc/fpc.cfg file as suggested by Mattias. am using the link as a guide http://wiki.freepascal.org/Installing_Lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus Good morning all, after follow Mattias suggestion regarding the /etc/fpc.cfg file, the compiling process was successfully, want I tried to compile, I received this above fatal error message: Options changed, recompiling clean with -B PPU Loading /home/erickom/fpcDev20121110/lazarus/lcl/units/i386-linux/gtk2/interfaces.ppu PPU Invalid Version 153 project1.lpr(0,0) Fatal: Can not find Interfaces used by Project1, ppu=/home/erickom/fpcDev20121110/lazarus/lcl/units/i386-linux/gtk2/interfaces.ppu, package LCL Thanks -- Kind Regards Eric Kom System Administrator - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] how to build lazarus so that it support fpc2.7.1
On 10/11/2012 14:48, Reinier Olislagers wrote: On 10-11-2012 13:43, Eric Kom wrote: On 10/11/2012 14:25, Reinier Olislagers wrote: On 10-11-2012 13:10, Mattias Gaertner wrote: On Sat, 10 Nov 2012 12:40:57 +0200 Eric Kom wrote: On 10/11/2012 12:14, Mattias Gaertner wrote: On Sat, 10 Nov 2012 11:52:22 +0200 Eric Komwrote: Thanks a lot, After ran the above command: $make clean bigide install PREFIX=/usr/local/share/fpc2.7/ PP=/usr/local/bin/fpc2.7/lib/fpc/2.7.1/ppc386 I received the above error message Can't find unit system used by fcllaz: You have to install fpc in the path defined by your /etc/fpc.cfg - it supports multiple fpc versions - or you have to write a separate config and pass that via the @ flag. @ Eric: what guide/instructions are you following? Perhaps there are some omissions/unclear bits that need to be fixed in those instructions? Am trying to set /etc/fpc.cfg file as suggested by Mattias. am using the link as a guide http://wiki.freepascal.org/Installing_Lazarus ... and then presumably 2.1.2.2 Up to date source repository using SVN which contains some instructions to get FPC source from SVN ... and then 2.4 Installing Free Pascal under Linux/BSD manually which seems to leave out any mention of fpc.cfg... am new in lazarus and fpc, am trying to compile for trunk so that I can have a SQLdb support for myqsl5.5. I know that am confusing. I can imagine you're getting confused. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Kind Regards Eric Kom System Administrator - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] how to build lazarus so that it support fpc2.7.1
On 10/11/2012 14:25, Reinier Olislagers wrote: On 10-11-2012 13:10, Mattias Gaertner wrote: On Sat, 10 Nov 2012 12:40:57 +0200 Eric Kom wrote: On 10/11/2012 12:14, Mattias Gaertner wrote: On Sat, 10 Nov 2012 11:52:22 +0200 Eric Kom wrote: Thanks a lot, After ran the above command: $make clean bigide install PREFIX=/usr/local/share/fpc2.7/ PP=/usr/local/bin/fpc2.7/lib/fpc/2.7.1/ppc386 I received the above error message Can't find unit system used by fcllaz: You have to install fpc in the path defined by your /etc/fpc.cfg - it supports multiple fpc versions - or you have to write a separate config and pass that via the @ flag. @ Eric: what guide/instructions are you following? Perhaps there are some omissions/unclear bits that need to be fixed in those instructions? Am trying to set /etc/fpc.cfg file as suggested by Mattias. am using the link as a guide http://wiki.freepascal.org/Installing_Lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Kind Regards Eric Kom System Administrator - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] how to build lazarus so that it support fpc2.7.1
On 10/11/2012 12:14, Mattias Gaertner wrote: On Sat, 10 Nov 2012 11:52:22 +0200 Eric Kom wrote: Good day, Please after build fpc and lazarus from trunk successfully, the build process of lazarus it still using fpc2.6.0 instead of fpc2.7.1. my question is, how can I build lazarus so that it support fpc2.7.1? See below the build command for lazarus from trunk Pass the compiler with PP: make clean bigide install PREFIX=/usr/local/share/fpc2.7/ PP=/usr/lib/fpc/2.7.1/ppcx64 And change in the IDE options the compiler. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus Thanks a lot, After ran the above command: $make clean bigide install PREFIX=/usr/local/share/fpc2.7/ PP=/usr/local/bin/fpc2.7/lib/fpc/2.7.1/ppc386 I received the above error message Can't find unit system used by fcllaz: Free Pascal Compiler version 2.7.1 [2012/11/10] for i386 Copyright (c) 1993-2012 by Florian Klaempfl and others Target OS: Linux for i386 Compiling fcllaz.pas PPU Loading /usr/local/lib/fpc/2.7.1/units/i386-linux/rtl/system.ppu PPU Invalid Version 153 Fatal: Can't find unit system used by fcllaz Fatal: Compilation aborted make[1]: *** [fcllaz.ppu] Error 1 make[1]: Leaving directory `/home/erickom/fpcDev20121110/lazarus/packager/registration' make: *** [registration] Error 2 -- Kind Regards Eric Kom System Administrator - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] how to build lazarus so that it support fpc2.7.1
Good day, Please after build fpc and lazarus from trunk successfully, the build process of lazarus it still using fpc2.6.0 instead of fpc2.7.1. my question is, how can I build lazarus so that it support fpc2.7.1? See below the build command for lazarus from trunk $make clean bigide install PREFIX=/usr/local/share/fpc2.7/ Thanks -- Kind Regards Eric Kom System Administrator - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] FPC Source Error: directory not found
On 08/11/2012 18:17, Mark Morgan Lloyd wrote: Sven Barth wrote: Could ppcXXX return its build directory? Then provided this existed and perhaps subject to other consistency checks the IDE could suggest it as the default. So if I would send you a ppcross68k compiled on my development machine and you would then ask it for it's build directory it would return "/mnt/data/subversion/fpc-build". Would this help you in any way? I think not... (and this is exactly what would happen if you'd use a compiler provided through any package distribution, as you are not normally building from within "/usr/lib" or whatever. Exactly: that's a case where it wouldn't help so could fall back to something hardcoded. But for people who'd built locally from svn, from a numbered release or from a daily snapshot it would get it right most of the time. Of course, it wouldn't help weirdos like me who copy the sources to /usr/lib/fpc/x.x.x/fpcsrc, but I expect that I'm a minority in that. Thanks a lot for your support -- Kind Regards Eric Kom System Administrator - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] FPC Source Error: directory not found
On 08/11/2012 14:30, Mattias Gaertner wrote: Eric Kom hat am 8. November 2012 um 13:11 geschrieben: On 08/11/2012 13:39, Bernd wrote: 2012/11/8 Eric Kom: After changed the path to /usr/local/lib/fpc/2.7.1/ This is not the source directory. Judging from your previous pots you have compiled fpc from svn and sucessfully installed it. make install will only install the binaries and compiled units where they belong, it will not install the fpc source. That's make sense. But the good news is you don't actually need to install it into any special place, the svn folder where you checked out fpc trunk is perfectly ok already. Simply point Lazarus to the folder that contains the fpc sources from svn and Lazarus will find what it needs there. I pointed directly to the fpc/rtl/ directory, still the warning rtl directory not fund. rtl is just one sub folder of fpc. Point it to the fpc directory. Any suggestions how to improve the error message to make this more clear? Thanks a lot for your help everything is fine now Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Kind Regards Eric Kom System Administrator - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] FPC Source Error: directory not found
On 08/11/2012 13:39, Bernd wrote: 2012/11/8 Eric Kom: After changed the path to /usr/local/lib/fpc/2.7.1/ This is not the source directory. Judging from your previous pots you have compiled fpc from svn and sucessfully installed it. make install will only install the binaries and compiled units where they belong, it will not install the fpc source. That's make sense. But the good news is you don't actually need to install it into any special place, the svn folder where you checked out fpc trunk is perfectly ok already. Simply point Lazarus to the folder that contains the fpc sources from svn and Lazarus will find what it needs there. I pointed directly to the fpc/rtl/ directory, still the warning rtl directory not fund. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Kind Regards Eric Kom System Administrator - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] FPC Source Error: directory not found
On 08/11/2012 11:44, leledumbo wrote: Isn't it clear enough? The dialog expects you to have FPC source directory and it defaults to that popped-up value, which you could override with your own. After changed the path to /usr/local/lib/fpc/2.7.1/ I received a warning: Directory: /usr/local/lib/fpc/2.7.1/ Warning: directory rtl not found -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-FPC-Source-Error-directory-not-found-tp4027560p4027561.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Kind Regards Eric Kom System Administrator - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] FPC Source Error: directory not found
Good day, after compiled fpc and lazarus from the trunk branch, when I run the command ./lazarus, the configure lazarus IDE appears with the above error: FPC sources Directory: /usr/share/fpcsrc/2.7.1/ Error: directory not found Please I need your help, Thanks -- Kind Regards Eric Kom System Administrator - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] how to install fpc trunk
Good day, Please how can I install fpc trunk after have fetched from svn? -- Kind Regards Eric Kom System Administrator - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] fpc 2.7 and lazarus 1.1
Good day, Please it is possible to build lazarus with fpc 2.7? -- Kind Regards Eric Kom System Administrator - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Text moving from the bottom to the top
On 09/10/2012 19:14, Vincent Snijders wrote: 2012/10/9 Eric Kom: Good day, Please if any one know how or which property to use so that the text can move from the bottom to the top? Thank you in advance. Thanks again, may be I missed express my self, on the lazarus help menu, under submenu about, the tabSheet has a contributors names may be in the memo with read only mode moving from the bottom to left. my question is, which properties to change so that the text can move? See this thread: http://lists.lazarus.freepascal.org/pipermail/lazarus/2012-October/077072.html Vincent -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Kind Regards Eric Kom System Administrator - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Text moving from the bottom to the top
Good day, Please if any one know how or which property to use so that the text can move from the bottom to the top? Thank you in advance. -- Kind Regards Eric Kom System Administrator - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Text moving from the bottom to the top
Good day, Please if any one know how or which property to use so that the text can move from the bottom to the top? Thank you in advance. -- Kind Regards Eric Kom System Administrator - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] fpc version 2.6.1 source code
On 04/10/2012 15:10, Bernd wrote: 2012/10/4 Eric Kom: I never browse the lazarus source code from svn, let me clone and see. So ask you are saying the lazarus developer are already make a build script for .debs package inside the lazarus source directories? Yes. And I believe these are the exact same scripts that are also used to produce the debs on sourceforge, fpc, fpc-source and lazarus. alright thanks, The debs in the official Debian repository are built by someone else (someone from Debian) using a different method and I believe thats also the reason why the Debian debs are needlessly split into a myriad of separate packages while the ones resulting from the Lazarus build scripts are just fpc, fpc-source and lazarus. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Kind Regards Eric Kom System Administrator - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] fpc version 2.6.1 source code
On 04/10/2012 14:34, Bernd wrote: 2012/10/4 Eric Kom: Thats is the problem, I used to package for debian before, I will see what I can do There are script in one of the the lazarus directories that will build and package .debs for fpc and lazarus from your intallled version. So if you have a working fpc/lazarus installed locally you could try to invoke these build scripts to locally build binary .deb packages from the sources that you have from svn. I never browse the lazarus source code from svn, let me clone and see. So ask you are saying the lazarus developer are already make a build script for .debs package inside the lazarus source directories? Then you could either directly give these debs to other users (to manually install with dpkg -i) or use the reprepro tool to set up a debian repository with these debs and put the resulting directory structure on a webserver and others could add this url to their sources.list and use them with apt-get -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Kind Regards Eric Kom System Administrator - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] fpc version 2.6.1 source code
On 04/10/2012 14:18, Bernd wrote: 2012/10/4 Eric Kom: am a debian user, they is not lazarus 1.1 on debian, and the deb packages provide on lazarus project doesn't provide the version 1.1 with fpc above 2.6.0 so not support for mysql5.5 users The Debian/Ubuntu situation is very catastrophic at the moment. There is not even a Lazarus 1.0 package, not even in Debian experimental. I'm not sure if the Debian maintainer is no longer interested, I could not find any signs of life or anything, I fear if nobody does anything about it (it won't magically package itself and put itself into the repository without the help of a Debian maintainer who has write access there) we will be stuck with Lazarus 0.9.30 on Ubuntu for another year. Thats is the problem, I used to package for debian before, I will see what I can do -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Kind Regards Eric Kom System Administrator - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] fpc version 2.6.1 source code
On 04/10/2012 13:42, Bernd wrote: 2012/10/4 Eric Kom: Please am looking for the free pascal compiler version 2.6.1 for linux. 2.6.1 is ongoing development, so strictly speaking there is no definitive 2.6.1-version that will stay the same from now on, 2.6.1 is the branch that will once become stable 2.6.2 release. All versions from this branch currently carry the version number 2.6.1 but it will receive patches from time to time and the "2.6.1" from today will not be the same 2.6.1 from tomorrow. Thanks again, am a debian user, they is not lazarus 1.1 on debian, and the deb packages provide on lazarus project doesn't provide the version 1.1 with fpc above 2.6.0 so not support for mysql5.5 users But it still makes sense to use it, the way I recommend is to checkout the branch from svn: svn checkout http://svn.freepascal.org/svn/fpc/branches/fixes_2_6 fpc and then svn up from time to time or every time you see new commits coming to this branch. This is what many people do, this way you will always have the most recent fixes for the stable 2.6.x line of versions, its not as adventurous as being on the bleeding edge of on trunk all the time, no bad surprises or huge changes are expected to happen here, I am using it myself too. There also exist complete downloads of snapshots, see this website for some links and some more information: http://www.freepascal.org/develop.var -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Kind Regards Eric Kom System Administrator - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] fpc version 2.6.1 source code
Good day, Please am looking for the free pascal compiler version 2.6.1 for linux. -- Kind Regards Eric Kom System Administrator - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Error: Can not load PostgreSQL Client library "libpq.dll".
On 29/09/2012 10:33, Reinier Olislagers wrote: On 29-9-2012 10:09, Eric Kom wrote: Good day, Please I got a problem with libpq.dll library file, want I tried to select the Connected property to True, I received the Error: Can not load PostgreSQL client library "libpq.dll". Ckeck you installation. The library has been installed and copied to the project file. Have you copied all required dlls? I noticed some more dlls in such as libintl-8.dll, libiconv-2.dll and libeay32.dll the files libintl-8.dll, libiconv-2.dll are in the mingw folder already. and I copied the libeay32.dll file to the project folder. Are you using the right bitness (e.g. 32 bit dlls for 32 bit compiler (not OS), 64 bit for 64 bit)? am running on debian amd64, I installed virtualbox where I ran lazarus on windows XP 32bit. BTW, specifying Lazarus version (and bitness) can be helpful... the version is 1.1 Thanks Regards, Reinier -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Kind Regards Eric Kom System Administrator - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Error: Can not load PostgreSQL Client library "libpq.dll".
Good day, Please I got a problem with libpq.dll library file, want I tried to select the Connected property to True, I received the Error: Can not load PostgreSQL client library "libpq.dll". Ckeck you installation. The library has been installed and copied to the project file. -- Kind Regards Eric Kom System Administrator - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] PostgreSQL 9.1 supported by Lazarus 1.0?
Thanks for your prompt respond. Am very glad to know that postgresql9.1 and mysql5.5 are supported. I got existing DBs that am building Gui apps on top. Sent from Android Mobile Andrew Brunner wrote: >I've been using 9.1 in production for a while. > >-- >Andrew Brunner > >Aurawin LLC >512.574.6298 >http://aurawin.com/ > >Aurawin is a great new place to store, share, and enjoy your >photos, videos, music and more. > > >-- >___ >Lazarus mailing list >Lazarus@lists.lazarus.freepascal.org >http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] PostgreSQL 9.1 supported by Lazarus 1.0?
Good day, am new on lazarus but new on delphi pascal. I was looking for a cross-platform for pascal, great! mysql5.5 can be supported but if I may ask, postgresql9.1 can also be supported? -- Kind Regards Eric Kom System Administrator - Metropolitan College _ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends./ - \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 eric...@kom.za.net | eric...@metropolitancollege.co.za www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus