From donald at ziesig.org Fri Jun 1 21:03:15 2018 From: donald at ziesig.org (Donald Ziesig) Date: Fri, 1 Jun 2018 15:03:15 -0400 Subject: [Lazarus] Trying to install Lazarus with fpc setup for debugging its libraries. Message-ID: <55e84bb8-41ed-6ba7-dcbb-e7d7c900d77e@ziesig.org> I needed to compile fpc and the rtl and fpl libraries for debugging so I downloaded the sources from SourceForge. I built fpc from the sources (with -gl flag for debugging - it runs) using the instructions in (modified for 3.0.4): *http://wiki.freepascal.org/Installing_Lazarus#Installing_Free_Pascal_from_source_under_Linux.2FBSD* which fpc *fpc is /usr/local/bin/fpc** **fpc is /usr/bin/fpc** * I can't install Lazarus from either: ll lazarus* *-rw-rw-r-- 1 donz donz 88M May 30 14:47 lazarus-project_1.8.4-0_amd64.deb** **-rw-rw-r-- 1 donz donz 88M Jun  1 14:30 lazarus-project_1.8.4-0_amd64 (1).deb* The package installer say: *Error: Dependency is not satisifiable: fpc(=3.0.4)|fp-compiler(=3.0.4)* When I start fpc it says: fpc -i *Free Pascal Compiler version 3.0.4** ** **Compiler date      : 2018/05/31** **Compiler CPU target: x86_64** ** **Supported targets (targets marked with '{*}' are under development):** **  Linux: Linux for x86-64** **  FreeBSD: FreeBSD for x86-64** **  Win64: Win64 for x64** **  Darwin: Darwin for x86_64** **  solaris: Solaris for x86-64 {*}** **  OpenBSD: OpenBSD for x86-64 {*}** **  NetBSD: NetBSD for x86-64 {*}** **  DragonFly: DragonFly for x86-64* etc. /usr/local/bin/fpc -i *Free Pascal Compiler version 3.0.4** ** **Compiler date      : 2018/05/31** **Compiler CPU target: x86_64** ** **Supported targets (targets marked with '{*}' are under development):** **  Linux: Linux for x86-64** **  FreeBSD: FreeBSD for x86-64** **  Win64: Win64 for x64** **  Darwin: Darwin for x86_64** **  solaris: Solaris for x86-64 {*}** **  OpenBSD: OpenBSD for x86-64 {*}** **  NetBSD: NetBSD for x86-64 {*}** **  DragonFly: DragonFly for x86-64** * /usr/bin/fpc -i *Free Pascal Compiler version 3.0.4** ** **Compiler date      : 2018/05/31** **Compiler CPU target: x86_64** ** **Supported targets (targets marked with '{*}' are under development):** **  Linux: Linux for x86-64** **  FreeBSD: FreeBSD for x86-64** **  Win64: Win64 for x64** **  Darwin: Darwin for x86_64** **  solaris: Solaris for x86-64 {*}** **  OpenBSD: OpenBSD for x86-64 {*}** **  NetBSD: NetBSD for x86-64 {*}** **  DragonFly: DragonFly for x86-64** * I'm using Linux Mint 18.3. ** Why doesn't the installer recognize fpc?  Where does it look for it?  What am I missing? Thanks, Don -------------- next part -------------- An HTML attachment was scrubbed... URL: From luca at wetron.es Fri Jun 1 21:41:14 2018 From: luca at wetron.es (Luca Olivetti) Date: Fri, 1 Jun 2018 21:41:14 +0200 Subject: [Lazarus] Trying to install Lazarus with fpc setup for debugging its libraries. In-Reply-To: <55e84bb8-41ed-6ba7-dcbb-e7d7c900d77e@ziesig.org> References: <55e84bb8-41ed-6ba7-dcbb-e7d7c900d77e@ziesig.org> Message-ID: El 01/06/18 a les 21:03, Donald Ziesig via Lazarus ha escrit: > > Why doesn't the installer recognize fpc?  Where does it look for it? > What am I missing? Because it's looking in the database of packages installed via the package manager. Since you installed fpc from source it's not counted as installed, hence it cannot satisfy the dependency. My apt-fu isn't strong enough to suggest a workaround (try searching "apt ignore dependencies"), but I'd say it would be better to install lazarus too from source. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 From mse00000 at gmail.com Sat Jun 2 07:05:09 2018 From: mse00000 at gmail.com (Martin Schreiber) Date: Sat, 2 Jun 2018 07:05:09 +0200 Subject: [Lazarus] Trying to install Lazarus with fpc setup for debugging its libraries. In-Reply-To: <55e84bb8-41ed-6ba7-dcbb-e7d7c900d77e@ziesig.org> References: <55e84bb8-41ed-6ba7-dcbb-e7d7c900d77e@ziesig.org> Message-ID: <201806020705.09456.mse00000@gmail.com> On Friday 01 June 2018 21:03:15 Donald Ziesig via Lazarus wrote: > I needed to compile fpc and the rtl and fpl libraries for debugging so I > downloaded the sources from SourceForge. > > I built fpc from the sources (with -gl flag for debugging - it runs) Please don't forget -O-. Martin From Special at Joepgen.com Sun Jun 3 17:37:21 2018 From: Special at Joepgen.com (Joe) Date: Sun, 3 Jun 2018 17:37:21 +0200 Subject: [Lazarus] Lazarus and Lazarus Apps unreliable over Teamviewer Message-ID: <1014ad3a-668b-049c-a2db-8df1721f1cb9@Joepgen.com> Remote client is Teamviewer 13.2.3629 under Win 10 (64), Remote Server is Teamviewer 13.1.1548H under Raspbian Stretch on a Pi 3B+. Both machine is set to Keyboard Layot German. From the windows machine, I start Lazarus 1.8.4 (FPC 3.0.4, SVN-Rev 58021) on the Pi and open the code editor. Then I try to type AltGr+.. combination characters like Vertical bar, Euro-Sign, At-Sign, Backslash, braces and brackets. Sometimes the typed chars appear in the code editor window, sometimes they don't. Often (not always) it seems to depend how quick I release the AltGr key. The same unreliable input behaviour I see with Lazarus generated executables containing SynEdit components, when I try to type into them. Similar problem: See thread "Lazarus still not usable with VNC under Raspbian" and issue 0030544 in the lazarus bugtracker. --  Joe From aaa5500 at ya.ru Sun Jun 3 22:48:31 2018 From: aaa5500 at ya.ru (AlexeyT) Date: Sun, 3 Jun 2018 23:48:31 +0300 Subject: [Lazarus] TApplication.DoubleBuffered Message-ID:   TApplicationType = (     atDefault,     // The widgetset will attempt to auto-detect the device type     atDesktop,     // For common desktops and notebooks   TApplicationExceptionDlg = (     aedOkCancelDialog,  // Exception handler window will be a dialog with Ok/Cancel buttons     aedOkMessageBox     // Exception handler window will be a simple message box so its logical to name new TApplicationDoubleBuffered values with "adb" prefix. -- Regards, Alexey From lazarus at kluug.net Sun Jun 3 22:56:33 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Sun, 3 Jun 2018 22:56:33 +0200 Subject: [Lazarus] TApplication.DoubleBuffered In-Reply-To: References: Message-ID: On 03.06.2018 22:48, AlexeyT via Lazarus wrote: > TApplicationType = ( >     atDefault,     // The widgetset will attempt to auto-detect the > device type >     atDesktop,     // For common desktops and notebooks > >   TApplicationExceptionDlg = ( >     aedOkCancelDialog,  // Exception handler window will be a dialog > with Ok/Cancel buttons >     aedOkMessageBox     // Exception handler window will be a simple > message box > > so its logical to name new TApplicationDoubleBuffered values with > "adb" prefix. You are right, I changed it. Ondrej From larrydalton71 at gmail.com Sun Jun 3 23:14:45 2018 From: larrydalton71 at gmail.com (Larry Dalton) Date: Sun, 3 Jun 2018 17:14:45 -0400 Subject: [Lazarus] TMysql57Connection won't connect to localhost In-Reply-To: <5b0f150c.1c69fb81.bc2bf.340c@mx.google.com> References: <5b0f150c.1c69fb81.bc2bf.340c@mx.google.com> Message-ID: The error message reads :Project MoneyProject raised exception class:'ESQLDatabaseError' with message:'CreateConnection:Server Connect Failed." On Wed, May 30, 2018 at 5:18 PM, larrydalton71 wrote: > Michael, am I missing an email? The only question I found was 'what was > the error message?'. Thanks, Larry > > > > Sent from my Verizon, Samsung Galaxy smartphone > > -------- Original message -------- > From: Michael Van Canneyt via Lazarus > Date: 5/30/18 14:50 (GMT-05:00) > To: larrydalton71 via Lazarus > Cc: Michael Van Canneyt > Subject: Re: [Lazarus] TMysql57Connection won't connect to localhost > > > Please take a look at my reply for questions that need to be answered > before > we can further help you. > > Michael. > > On Wed, 30 May 2018, larrydalton71 via Lazarus wrote: > > > So what settings do I need to use? > > > > > > Sent from my Verizon, Samsung Galaxy smartphone > > -------- Original message --------From: wkitty42--- via Lazarus < > lazarus at lists.lazarus-ide.org> Date: 5/30/18 12:59 (GMT-05:00) To: > lazarus at lists.lazarus-ide.org Cc: wkitty42 at windstream.net Subject: Re: > [Lazarus] TMysql57Connection won't connect to localhost > > On 05/29/2018 10:52 PM, larrydalton71 via Lazarus wrote: > >> How does TMysql57Connection know how to connect to the server if there > is no > >> hostname defined? > > > > > > because if there's no host name it will try using a unix socket defined > for the > > server... that /is/ local but not localhost and not using tcp/ip > networking > > protocols... it is another way to connect to a server running on the > same machine... > > > > > > -- > > NOTE: No off-list assistance is given without prior approval. > > *Please keep mailing list traffic on the list unless* > > *a signed and pre-paid contract is in effect with us.* > > -- > > _______________________________________________ > > Lazarus mailing list > > Lazarus at lists.lazarus-ide.org > > https://lists.lazarus-ide.org/listinfo/lazarus > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sysrpl at gmail.com Mon Jun 4 00:21:28 2018 From: sysrpl at gmail.com (Anthony Walter) Date: Sun, 3 Jun 2018 18:21:28 -0400 Subject: [Lazarus] Shell Controls Package Released Message-ID: I am happy to release to you the sources to my shell controls package. This package provides a set of Pascal controls and functions related to replicating different parts of Microsoft Windows Explorer program in your own native Pascal applications. Overview video here: https://cache.getlazarus.org/videos/shlctrls.mp4 Manual is online here: https://www.codebot.org/shell Key controls include a Vista style breadcrumb bar with drop down menus for navigating through folder and files. It also includes fairly complete shell view and shell tree view controls which might be more feature filled than whatever comes with Lazarus. I'm not sure because I haven't used them (the Lazarus versions). Source code is released under the GPL 3.0 license and can be downloaded from this this location: https://cache.getlazarus.org/archives/shlctrls.zip Please note: This package was originally created in Delphi, and as it is currently it will not build in Lazarus due to differences between the LCL and the VCL. If anyone cares to, you have my full blessing to convert it to work with the LCL, but please understand it will only ever work on Windows. -------------- next part -------------- An HTML attachment was scrubbed... URL: From md at delfire.net Mon Jun 4 03:48:55 2018 From: md at delfire.net (Marcos Douglas B. Santos) Date: Sun, 3 Jun 2018 22:48:55 -0300 Subject: [Lazarus] CGI Application do not enable Run (F9) button Message-ID: I've just clicked in New>CGI Application to create a new project and the Run(F9) button is disabled. However, If I choose FastCGI instead, the button stay enabled. Is this a bug or a kind of restriction? Best regards, Marcos Douglas -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at freepascal.org Mon Jun 4 07:54:45 2018 From: michael at freepascal.org (Michael Van Canneyt) Date: Mon, 4 Jun 2018 07:54:45 +0200 (CEST) Subject: [Lazarus] CGI Application do not enable Run (F9) button In-Reply-To: References: Message-ID: On Sun, 3 Jun 2018, Marcos Douglas B. Santos via Lazarus wrote: > I've just clicked in New>CGI Application to create a new project and the > Run(F9) button is disabled. > However, If I choose FastCGI instead, the button stay enabled. > > Is this a bug or a kind of restriction? You cannot run a CGI program in the IDE. It expects a server environment. If you attempt to run it in the IDE, you'll get an error 'no REQUEST_METHOD passed from server' or something like it. Michael. From sysrpl at gmail.com Mon Jun 4 12:57:00 2018 From: sysrpl at gmail.com (Anthony Walter) Date: Mon, 4 Jun 2018 06:57:00 -0400 Subject: [Lazarus] Shell Controls Package Released In-Reply-To: References: Message-ID: Some people have noted that a library should be released as LGPL, and I've updated the original package to change to that license. I've also published the contents of the zip file with the modified license to gitlab at this location: https://gitlab.com/sysrpl/codebot.shell My blog also has an entry updated from my original post: https://www.codebot.org/delphi/?doc=9613 By the way, if it's worth anything, the demo runs fine on Linux wine with no problems what so ever. -------------- next part -------------- An HTML attachment was scrubbed... URL: From md at delfire.net Mon Jun 4 15:03:06 2018 From: md at delfire.net (Marcos Douglas B. Santos) Date: Mon, 4 Jun 2018 10:03:06 -0300 Subject: [Lazarus] CGI Application do not enable Run (F9) button In-Reply-To: References: Message-ID: On Mon, Jun 4, 2018 at 2:54 AM, Michael Van Canneyt via Lazarus wrote: > > > On Sun, 3 Jun 2018, Marcos Douglas B. Santos via Lazarus wrote: > >> I've just clicked in New>CGI Application to create a new project and the >> Run(F9) button is disabled. >> However, If I choose FastCGI instead, the button stay enabled. >> >> Is this a bug or a kind of restriction? > > > You cannot run a CGI program in the IDE. It expects a server environment. > If you attempt to run it in the IDE, you'll get an error 'no REQUEST_METHOD > passed from server' or something like it. Hey Michael, thanks. But my intention was to code an example showing how we can change between CGI and Standalone using directives. I've used FastCGI choice instead. I'm still curious: how disable the button in IDE? Best regards, Marcos Douglas From nc-gaertnma at netcologne.de Mon Jun 4 15:15:33 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Mon, 4 Jun 2018 15:15:33 +0200 Subject: [Lazarus] CGI Application do not enable Run (F9) button In-Reply-To: References: Message-ID: <20180604151533.2164806b@limapholos.matflo.wg> On Mon, 4 Jun 2018 10:03:06 -0300 "Marcos Douglas B. Santos via Lazarus" wrote: >[...] > >> I've just clicked in New>CGI Application to create a new project and the > >> Run(F9) button is disabled. >[...] > I'm still curious: how disable the button in IDE? You can disable Project / Project Options / Miscellaneous / Project is runnable. Mattias From md at delfire.net Mon Jun 4 15:35:49 2018 From: md at delfire.net (Marcos Douglas B. Santos) Date: Mon, 4 Jun 2018 10:35:49 -0300 Subject: [Lazarus] CGI Application do not enable Run (F9) button In-Reply-To: <20180604151533.2164806b@limapholos.matflo.wg> References: <20180604151533.2164806b@limapholos.matflo.wg> Message-ID: On Mon, Jun 4, 2018 at 10:15 AM, Mattias Gaertner via Lazarus wrote: > On Mon, 4 Jun 2018 10:03:06 -0300 > "Marcos Douglas B. Santos via Lazarus" > wrote: > >>[...] >> >> I've just clicked in New>CGI Application to create a new project and the >> >> Run(F9) button is disabled. >>[...] >> I'm still curious: how disable the button in IDE? > > You can disable > Project / Project Options / Miscellaneous / Project is > runnable. That's it. Thank you. Marcos Douglas From larrydalton71 at gmail.com Tue Jun 5 04:55:16 2018 From: larrydalton71 at gmail.com (Larry Dalton) Date: Mon, 4 Jun 2018 22:55:16 -0400 Subject: [Lazarus] can't connect to Mysql database using TMysql57connection Message-ID: error code Debugger Exception Notification Project Moneyproject raised exception class 'ESQLDatabaseError ' with message 'Server Connect Failed'. Lazarus version: lazarus-project_1.8.2-0_amd64.deb fpc_3.0.4-2_amd64.deb fpc-src_3.0.4-2_amd64.deb settings for TMysql57Connection named CreateConnectionz' Charset blank database name bankofamerica Hostname blank (also tried Hostname localhost) KeepConnection logevents set on default setting loginprompt false options [] Params blank password is set and correct port 0 role blank SkipLibrary verson false tag 0 transaction CreateTransaction user root. Help! Operating system Linux Mint 17.2 Cinnamon phpmyadmin - Version information: 4.8.0.1, latest stable version: 4.8.1 Web Server - Apache - Database client version: libmysql - mysqlnd 5.0.12-dev - 20150407 - $Id: 38fea24f2847fa7519001be390c98ae0acafe387 $ - PHP extension: mysqli[image: Documentation] curl[image: Documentation] mbstring[image: Documentation] - PHP version: 7.1.17 Database Server - Server: Localhost via UNIX socket - Server type: MySQL - Server connection: SSL is not being used [image: Documentation] - Server version: 5.7.22 - MySQL Community Server (GPL) - Protocol version: 10 - User: root at localhost - Server charset: UTF-8 Unicode (utf8) -------------- next part -------------- An HTML attachment was scrubbed... URL: From dec12 at avidsoft.com.hk Tue Jun 5 05:37:27 2018 From: dec12 at avidsoft.com.hk (Dennis) Date: Tue, 5 Jun 2018 11:37:27 +0800 Subject: [Lazarus] when a form is shown modal, it blocked the timer from firing Message-ID: I noticed when I aForm.showModal, the timer event seem to stop firing. Is there anyway I can keep the timer event firing even when I show modal a form? I noticed that if I Application.MessgeBox, it does not block the timer event but that message box behaves just like a showmodal form. Why is there a difference? Dennis -------------- next part -------------- An HTML attachment was scrubbed... URL: From leledumbo_cool at yahoo.co.id Tue Jun 5 06:41:44 2018 From: leledumbo_cool at yahoo.co.id (leledumbo) Date: Mon, 4 Jun 2018 21:41:44 -0700 (MST) Subject: [Lazarus] can't connect to Mysql database using TMysql57connection In-Reply-To: References: Message-ID: <1528173704034-0.post@n3.nabble.com> > Project Moneyproject raised exception class 'ESQLDatabaseError ' with message > 'Server Connect Failed'. Check installed libmysql client version. -- Sent from: http://free-pascal-lazarus.989080.n3.nabble.com/ From michael at freepascal.org Tue Jun 5 07:55:26 2018 From: michael at freepascal.org (Michael Van Canneyt) Date: Tue, 5 Jun 2018 07:55:26 +0200 (CEST) Subject: [Lazarus] can't connect to Mysql database using TMysql57connection In-Reply-To: <1528173704034-0.post@n3.nabble.com> References: <1528173704034-0.post@n3.nabble.com> Message-ID: On Mon, 4 Jun 2018, leledumbo via Lazarus wrote: >> Project Moneyproject raised exception class 'ESQLDatabaseError ' with > message >> 'Server Connect Failed'. > > Check installed libmysql client version. The error he gets is the error fpc raises when mysql_connect() fails. So I think it is something else. However, to test this, Larry, can you please please test on the command line, on the machine where lazarus is running: mysql If you see: Client does not support authentication protocol requested by server; consider upgrading MySQL client then you'll know what to do additionally, can you test what you get with: mysql -u root -p yourpassword -D bankofamerica Considering you are using a bitnami install, phpadmin may be configured with some extra parameters. Michael. From jmlandmesser at gmx.de Tue Jun 5 10:10:09 2018 From: jmlandmesser at gmx.de (Landmesser John) Date: Tue, 5 Jun 2018 10:10:09 +0200 Subject: [Lazarus] How to get the FileName of an url like https://drive.google.com/open?id=1OUfrbeMBYeL0q9DCGBx9rkESSw8SgCPT Message-ID: <6f2546c1-3399-ac89-6de1-856fcda2d0dc@gmx.de> do i need google api for that and how is the unit called in lazarus? thanks for tipps! From jmlandmesser at gmx.de Tue Jun 5 10:24:47 2018 From: jmlandmesser at gmx.de (Landmesser John) Date: Tue, 5 Jun 2018 10:24:47 +0200 Subject: [Lazarus] How to get the FileName of an url like https://drive.google.com/open?id=1OUfrbeMBYeL0q9DCGBx9rkESSw8SgCPT In-Reply-To: <6f2546c1-3399-ac89-6de1-856fcda2d0dc@gmx.de> References: <6f2546c1-3399-ac89-6de1-856fcda2d0dc@gmx.de> Message-ID: <4717417b-3ea6-b0eb-c58c-dc70516f1655@gmx.de> found lazgoogleapi package, must be in there?!! Am 05.06.2018 um 10:10 schrieb Landmesser John via Lazarus: > do i need google api for that and how is the unit called in lazarus? > > thanks for tipps! > From larrydalton71 at gmail.com Tue Jun 5 12:42:20 2018 From: larrydalton71 at gmail.com (Larry Dalton) Date: Tue, 5 Jun 2018 06:42:20 -0400 Subject: [Lazarus] can't connect to Mysql database using TMysql57connection In-Reply-To: References: <1528173704034-0.post@n3.nabble.com> Message-ID: running mysql in terminal gets ERROR 1045 (28000): Access denied for user 'larry'@'localhost' (using password: NO) running mysql -u root Ricky2013 -D bankofamerica get ERROR 1698 (28000): Access denied for user 'root'@'localhost' apparently it is using a different password? or case? On Tue, Jun 5, 2018 at 1:55 AM, Michael Van Canneyt via Lazarus < lazarus at lists.lazarus-ide.org> wrote: > > > On Mon, 4 Jun 2018, leledumbo via Lazarus wrote: > > Project Moneyproject raised exception class 'ESQLDatabaseError ' with >>> >> message >> >>> 'Server Connect Failed'. >>> >> >> Check installed libmysql client version. >> > > The error he gets is the error fpc raises when mysql_connect() fails. > So I think it is something else. > > However, to test this, Larry, can you please please test on the command > line, on the machine where lazarus is running: > > mysql > > If you see: > Client does not support authentication protocol requested > by server; consider upgrading MySQL client > > then you'll know what to do > > additionally, can you test what you get with: > > mysql -u root -p yourpassword -D bankofamerica > > Considering you are using a bitnami install, phpadmin may be configured > with some extra parameters. > > Michael. > > -- > _______________________________________________ > Lazarus mailing list > Lazarus at lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus > -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at freepascal.org Tue Jun 5 13:02:23 2018 From: michael at freepascal.org (Michael Van Canneyt) Date: Tue, 5 Jun 2018 13:02:23 +0200 (CEST) Subject: [Lazarus] can't connect to Mysql database using TMysql57connection In-Reply-To: References: <1528173704034-0.post@n3.nabble.com> Message-ID: On Tue, 5 Jun 2018, Larry Dalton via Lazarus wrote: > running mysql in terminal gets ERROR 1045 (28000): Access denied for user > 'larry'@'localhost' (using password: NO) > > running mysql -u root Ricky2013 -D bankofamerica get ERROR 1698 (28000): > Access denied for user 'root'@'localhost' > > apparently it is using a different password? or case? Could very well be. MySQL is case sensitive where you don't expect it, and case insensitive where you don't expect it either... :) My conclusion - after all this - is that this is not a FPC error, but a configuration problem on your machine. How to debug this is described on: https://dev.mysql.com/doc/refman/5.7/en/problems-connecting.html What I can do from the FPC side is to attempt to get a more informative/detailed connection error code from the MYSQL server. Michael. > > > On Tue, Jun 5, 2018 at 1:55 AM, Michael Van Canneyt via Lazarus < > lazarus at lists.lazarus-ide.org> wrote: > >> >> >> On Mon, 4 Jun 2018, leledumbo via Lazarus wrote: >> >> Project Moneyproject raised exception class 'ESQLDatabaseError ' with >>>> >>> message >>> >>>> 'Server Connect Failed'. >>>> >>> >>> Check installed libmysql client version. >>> >> >> The error he gets is the error fpc raises when mysql_connect() fails. >> So I think it is something else. >> >> However, to test this, Larry, can you please please test on the command >> line, on the machine where lazarus is running: >> >> mysql >> >> If you see: >> Client does not support authentication protocol requested >> by server; consider upgrading MySQL client >> >> then you'll know what to do >> >> additionally, can you test what you get with: >> >> mysql -u root -p yourpassword -D bankofamerica >> >> Considering you are using a bitnami install, phpadmin may be configured >> with some extra parameters. >> >> Michael. >> >> -- >> _______________________________________________ >> Lazarus mailing list >> Lazarus at lists.lazarus-ide.org >> https://lists.lazarus-ide.org/listinfo/lazarus >> > From doug at moosemail.net Tue Jun 5 16:15:53 2018 From: doug at moosemail.net (DougC) Date: Tue, 05 Jun 2018 10:15:53 -0400 Subject: [Lazarus] Google geocoding API help Message-ID: <163d04dda3a.123de1ef615274.4466607040426356074@moosemail.net> I'm working through how to obtain LAT/LONG for street addresses in the USA and just found GMLib at http://www.cadetill.com/gmlib/ This library is more than I need but I'm working my way through the source to find what I need. In the meantime I'm asking if anyone knows of a simple how-to or demo or example of just sending a street address through the Goggle API and just getting back LAT and LONG values. No mapping involved - I'll do that later. Doug C. -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at freepascal.org Tue Jun 5 22:17:22 2018 From: michael at freepascal.org (Michael Van Canneyt) Date: Tue, 5 Jun 2018 22:17:22 +0200 (CEST) Subject: [Lazarus] SetSysColors Message-ID: Hello, If I execute the following at the start of the program: uses lcltype, lclintf, graphics; Procedure sc; Var el : Integer; col : Integer; P1,P2 : PInteger; begin Col:=ColorToRGB(clRed); el:=COLOR_WINDOW; P1:=@el; p2:=@col; SetSysColors(1,P1,p2); end; I would expect that the window color is red, and all windows which have clDefault or clWindow as color become red. No such thing happened. I tried setting some other colors, but to no avail. Is this supposed to work ? Aside from the question whether it is supposed to work, why is the signature of this call using 2 untyped const parameters ? If I look at https://msdn.microsoft.com/en-us/library/windows/desktop/ms724940(v=vs.85).aspx it clearly uses (typed) pointers. Michael. From leledumbo_cool at yahoo.co.id Fri Jun 8 03:11:25 2018 From: leledumbo_cool at yahoo.co.id (leledumbo) Date: Thu, 7 Jun 2018 18:11:25 -0700 (MST) Subject: [Lazarus] Google geocoding API help In-Reply-To: <163d04dda3a.123de1ef615274.4466607040426356074@moosemail.net> References: <163d04dda3a.123de1ef615274.4466607040426356074@moosemail.net> Message-ID: <1528420285719-0.post@n3.nabble.com> > In the meantime I'm asking if anyone knows of a simple how-to or demo or example of just sending a street address through the Goggle API and just getting back LAT and LONG values {$H+} uses fphttpclient, fpjson, jsonparser; var Address: String; AddressData,LocationData: TJSONObject; begin Write('Enter an address: '); ReadLn(Address); AddressData := TJSONObject(GetJSON(TFPHTTPClient.SimpleGet('https://maps.googleapis.com/maps/api/geocode/json?address=' + Address + '&key=well, you have to use your own key, it is not free unfortunately'))); LocationData := TJSONObject(AddressData.FindPath('results[0].geometry.location')); WriteLn('Latitude : ',LocationData.Floats['lat']:1:16); WriteLn('Longitude: ',LocationData.Floats['lng']:1:16); end. No error checking is intended, I'll leave that up to you. Get your API key here: https://developers.google.com/maps/documentation/geocoding/get-api-key -- Sent from: http://free-pascal-lazarus.989080.n3.nabble.com/ From larrydalton71 at gmail.com Fri Jun 8 05:07:16 2018 From: larrydalton71 at gmail.com (larrydalton71) Date: Thu, 07 Jun 2018 23:07:16 -0400 Subject: [Lazarus] can't connect to Mysql database using TMysql57connection In-Reply-To: Message-ID: <5b19f2e8.1c69fb81.a641b.3a93@mx.google.com> Thanks for the help, both of you. After I corrected the mysql installation, it worked. To hook up the Mysql57connection, enter 127.0 0.1 as the hostname to access the UNIX socket. Sent from my Verizon, Samsung Galaxy smartphone -------- Original message --------From: Michael Van Canneyt via Lazarus Date: 6/5/18 07:02 (GMT-05:00) To: Larry Dalton via Lazarus Cc: Michael Van Canneyt Subject: Re: [Lazarus] can't connect to Mysql database using TMysql57connection On Tue, 5 Jun 2018, Larry Dalton via Lazarus wrote: > running mysql in terminal gets ERROR 1045 (28000): Access denied for user > 'larry'@'localhost' (using password: NO) > > running mysql -u root Ricky2013 -D bankofamerica get ERROR 1698 (28000): > Access denied for user 'root'@'localhost' > > apparently it is using a different password? or case? Could very well be. MySQL is case sensitive where you don't expect it, and case insensitive where you don't expect it either... :) My conclusion - after all this - is that this is not a FPC error, but a configuration problem on your machine. How to debug this is described on: https://dev.mysql.com/doc/refman/5.7/en/problems-connecting.html What I can do from the FPC side is to attempt to get a more informative/detailed connection error code from the MYSQL server. Michael. > > > On Tue, Jun 5, 2018 at 1:55 AM, Michael Van Canneyt via Lazarus < > lazarus at lists.lazarus-ide.org> wrote: > >> >> >> On Mon, 4 Jun 2018, leledumbo via Lazarus wrote: >> >> Project Moneyproject raised exception class 'ESQLDatabaseError ' with >>>> >>> message >>> >>>> 'Server Connect Failed'. >>>> >>> >>> Check installed libmysql client version. >>> >> >> The error he gets is the error fpc raises when mysql_connect() fails. >> So I think it is something else. >> >> However, to test this, Larry, can you please please test on the command >> line, on the machine where lazarus is running: >> >> mysql >> >> If you see: >> Client does not support authentication protocol requested >> by server; consider upgrading MySQL client >> >> then you'll know what to do >> >> additionally, can you test what you get with: >> >> mysql -u root -p yourpassword -D bankofamerica >> >> Considering you are using a bitnami install, phpadmin may be configured >> with some extra parameters. >> >> Michael. >> >> -- >> _______________________________________________ >> Lazarus mailing list >> Lazarus at lists.lazarus-ide.org >> https://lists.lazarus-ide.org/listinfo/lazarus >> > -- _______________________________________________ Lazarus mailing list Lazarus at lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus -------------- next part -------------- An HTML attachment was scrubbed... URL: From nc-gaertnma at netcologne.de Fri Jun 8 07:03:55 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Fri, 8 Jun 2018 07:03:55 +0200 Subject: [Lazarus] when a form is shown modal, it blocked the timer from firing In-Reply-To: References: Message-ID: <20180608070355.3afd4ff7@limapholos.matflo.wg> On Tue, 5 Jun 2018 11:37:27 +0800 Dennis via Lazarus wrote: > I noticed when I aForm.showModal, the timer event seem to stop firing. Here it fires. What platform? Can you create a small example? Mattias From bo.berglund at gmail.com Fri Jun 8 10:31:01 2018 From: bo.berglund at gmail.com (Bo Berglund) Date: Fri, 08 Jun 2018 10:31:01 +0200 Subject: [Lazarus] Can Lazarus 1.8 import Delphi XE5 project from dproj file? Message-ID: I am checking if it is possible to convert a few projects from Delphi XE5 to FPC/Lazarus. The first such project (the simplest of the set) uses just standard Delphi functions and is designed for Win32 only, It is defined in a dproj file so now I wonder if Lazarus is able to import a D-XE5 project using the dproj file, or do I have to create a new blank Lazarus project and manually copy over the file list into the Lazarus project file? If so what is the proper project settings for such? Apart from standard Delphi stuff there are a few simple components we have used, for example to implement logging functions. But then there is also a software protection dongle component which uses calls to a dongle driver. We have written the component code ourselves but it uses an obj file from the dongle maker to implement the driver calls. Can such an obj file be integrated into a Win32 Lazarus/Fpc project? And how can I tell Lazarus not to try to build a 64 bit program? I installed Lazarus/FPC from a downloaded installer instead of building from sources as I always do on Linux. Turns out that what is built are 64 bit programs. Is there a way to tell it to build 32 bit instead? I have never before cross-compiled anything using FPC if this is what is needed... -- Bo Berglund Developer in Sweden From lazarus at kluug.net Fri Jun 8 10:32:57 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Fri, 8 Jun 2018 10:32:57 +0200 Subject: [Lazarus] Can Lazarus 1.8 import Delphi XE5 project from dproj file? In-Reply-To: References: Message-ID: On 08.06.2018 10:31, Bo Berglund via Lazarus wrote: > And how can I tell Lazarus not to try to build a 64 bit program? If you want to go the simple way, install the 32bit Lazarus installer. Ondrej From bo.berglund at gmail.com Fri Jun 8 10:39:09 2018 From: bo.berglund at gmail.com (Bo Berglund) Date: Fri, 08 Jun 2018 10:39:09 +0200 Subject: [Lazarus] Can Lazarus 1.8 import Delphi XE5 project from dproj file? References: Message-ID: On Fri, 8 Jun 2018 10:32:57 +0200, Ondrej Pokorny via Lazarus wrote: >On 08.06.2018 10:31, Bo Berglund via Lazarus wrote: >> And how can I tell Lazarus not to try to build a 64 bit program? > >If you want to go the simple way, install the 32bit Lazarus installer. > >Ondrej Can I have both at the same time, i.e. c:\programs\Lazarus1.8 (existing, 64 bit) and c:\programs\Lazarus1.8_32? I am assuming that the dongle obj file will not work in a 64 bit lazarus program, right? THe obj is rather old and predates the 64 bit Windows. -- Bo Berglund Developer in Sweden From lazarus at kluug.net Fri Jun 8 10:44:11 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Fri, 8 Jun 2018 10:44:11 +0200 Subject: [Lazarus] Can Lazarus 1.8 import Delphi XE5 project from dproj file? In-Reply-To: References: Message-ID: <5f67aff0-8361-480c-391c-33a5e9199eb6@kluug.net> On 08.06.2018 10:39, Bo Berglund via Lazarus wrote: > On Fri, 8 Jun 2018 10:32:57 +0200, Ondrej Pokorny via Lazarus > wrote: > >> On 08.06.2018 10:31, Bo Berglund via Lazarus wrote: >>> And how can I tell Lazarus not to try to build a 64 bit program? >> If you want to go the simple way, install the 32bit Lazarus installer. >> >> Ondrej > Can I have both at the same time, i.e. c:\programs\Lazarus1.8 > (existing, 64 bit) and c:\programs\Lazarus1.8_32? Yes, of course. But if you want to build both 64bit and 32bit programs, you'll be better off with a cross compiling solution. Ondrej From bo.berglund at gmail.com Fri Jun 8 10:51:05 2018 From: bo.berglund at gmail.com (Bo Berglund) Date: Fri, 08 Jun 2018 10:51:05 +0200 Subject: [Lazarus] Can Lazarus 1.8 import Delphi XE5 project from dproj file? References: <5f67aff0-8361-480c-391c-33a5e9199eb6@kluug.net> Message-ID: On Fri, 8 Jun 2018 10:44:11 +0200, Ondrej Pokorny via Lazarus wrote: >Yes, of course. But if you want to build both 64bit and 32bit programs, >you'll be better off with a cross compiling solution. > Does this mean for example using Lazarus 1.8.4 win64 and tell it somehow to use the fpc 32 or 64 bit compiler depending on project or for single project dual target? -- Bo Berglund Developer in Sweden From bo.berglund at gmail.com Fri Jun 8 10:57:46 2018 From: bo.berglund at gmail.com (Bo Berglund) Date: Fri, 08 Jun 2018 10:57:46 +0200 Subject: [Lazarus] Can Lazarus 1.8 import Delphi XE5 project from dproj file? References: Message-ID: On Fri, 08 Jun 2018 10:31:01 +0200, Bo Berglund via Lazarus wrote: >I wonder if Lazarus is able to import a D-XE5 project using the dproj file Well, I installed Lazarus 1.8.4 win32 and then I went to Tools/Delphi Conversion and found that the only file type it handles is the *.dpr, so the *.dproj is not possible it seems.... -- Bo Berglund Developer in Sweden From dec12 at avidsoft.com.hk Fri Jun 8 16:12:09 2018 From: dec12 at avidsoft.com.hk (Dennis) Date: Fri, 8 Jun 2018 22:12:09 +0800 Subject: [Lazarus] when a form is shown modal, it blocked the timer from firing In-Reply-To: <20180608070355.3afd4ff7@limapholos.matflo.wg> References: <20180608070355.3afd4ff7@limapholos.matflo.wg> Message-ID: <365e47d2-c189-d3fc-bc7a-a712123a12d1@avidsoft.com.hk> Mattias Gaertner via Lazarus wrote: > On Tue, 5 Jun 2018 11:37:27 +0800 > Dennis via Lazarus wrote: > >> I noticed when I aForm.showModal, the timer event seem to stop firing. > Here it fires. What platform? > Can you create a small example? > > Mattias My platform is Windows 7 64 bit. I will create a sample later. Thanks. Dennis From bo.berglund at gmail.com Fri Jun 8 19:05:46 2018 From: bo.berglund at gmail.com (Bo Berglund) Date: Fri, 08 Jun 2018 19:05:46 +0200 Subject: [Lazarus] Converting a component package Delphi->Lazarus using built-in converter? Message-ID: <9sclhdp0udbhn96p8i7g8mhvvobkm8ku70@4ax.com> As part of an effort to port a Delphi program to FPC/Lazarus I have tried to install a custom package of components we use with Delphi from D7 to XE5 into Lazarus 1.8.4 win32. I started by using the menu function: Tool/Delphi Conversion/Convert Delphi Package After navigating to the dpk file in the components source dir Lazarus thought quickly and then popped up the dialog for package handling, but no hint on what to do next.... So I tried the Compile button and it worked for a short while, again with no feedback and was back on the same dialog. Next I tried the "Use" combo-button and selected subfunction "Install" since I want these custom component which are used in many of our Delphi programs to be available in Lazarus too. But now there was a message: "The package does not have any "Register" procedure, which typically means, it does not provide any IDE add-on. Installing it will probably only increase the size of the IDE and may even make it unstable" Hint: If you want to use a package in your project, use the "Add to project" menu item." Now what? My alternatives are: "Install it, I like the fat." or "Cancel" This Delphi package is a collection of some 20 components and all of them have Register procedures inside of each source file. Is it not possible to collect together a number of components into a package for easy installation in Lazarus? This is our practice in Delphi since 2002 or so... Or is it just the converter that is havíng problems? -- Bo Berglund Developer in Sweden From leledumbo_cool at yahoo.co.id Fri Jun 8 19:17:00 2018 From: leledumbo_cool at yahoo.co.id (leledumbo) Date: Fri, 8 Jun 2018 10:17:00 -0700 (MST) Subject: [Lazarus] Converting a component package Delphi->Lazarus using built-in converter? In-Reply-To: <9sclhdp0udbhn96p8i7g8mhvvobkm8ku70@4ax.com> References: <9sclhdp0udbhn96p8i7g8mhvvobkm8ku70@4ax.com> Message-ID: <1528478220601-0.post@n3.nabble.com> > Or is it just the converter that is havíng problems? In the package dialog, check "Register unit" for units containing Register procedure. I didn't remember the last time I converted a Delphi package, but it could be that the converter doesn't detect Register properly. -- Sent from: http://free-pascal-lazarus.989080.n3.nabble.com/ From bo.berglund at gmail.com Fri Jun 8 20:08:02 2018 From: bo.berglund at gmail.com (Bo Berglund) Date: Fri, 08 Jun 2018 20:08:02 +0200 Subject: [Lazarus] Converting a component package Delphi->Lazarus using built-in converter? References: <9sclhdp0udbhn96p8i7g8mhvvobkm8ku70@4ax.com> <1528478220601-0.post@n3.nabble.com> Message-ID: <2qglhdde0ej95gcjdc2s0ttr77kk0l8fsl@4ax.com> On Fri, 8 Jun 2018 10:17:00 -0700 (MST), leledumbo via Lazarus wrote: >> Or is it just the converter that is havíng problems? > >In the package dialog, check "Register unit" for units containing Register >procedure. I didn't remember the last time I converted a Delphi package, but >it could be that the converter doesn't detect Register properly. > I tried another approach, i.e. not using the converter at all. Instead I tried creating a new package and then I have added manually the main source files for the different components into the package files collection. I also added required package LCL and removed required package FCL. Then I tried compiling and for the first few components all I had to do was add an {$IFDEF DELPHI} bracket around some Delphi version checking code and they compiled. I also added this to the top of each component source file: {$IFDEF FPC} {$MODE DELPHI} {$ENDIF} (I don't know if this is required on all source files or if there is a master setting that enforces MODE DELPHI for the whole package). But now I have run into a stop in one component, which is actually a descendant of TListView where we have simplified usage by adding some modified defaults and a few methods. No I am getting errors I don't understand here: procedure TEasyListView.DoColumnSort; var SortStyle: TColumnSortStyle; begin if ViewStyle <> vsReport then Exit; if not FColumnSorting then Exit; case ColumnSortStyle[ActiveSortColumn] of ssString: CustomSort(@SortByStringProc, FSortColumn); ssInteger: CustomSort(@SortByIntegerProc, FSortColumn); ssFloat: CustomSort(@SortByFloatProc, FSortColumn); ssImageIndex: CustomSort(@SortByImageIndexProc, FSortColumn); ssCustom: begin if Assigned(FOnColumnSortCompare) then begin UColumnSortCompare := FOnColumnSortCompare; CustomSort(@SortByCustomProc, FSortColumn); UColumnSortCompare := nil; end; end; ssNone: ; // Do nothing end; end; On every line mentioning CustomSort there is an error: Error: Identifier not found "CustomSort" CustomSort is an identifier in the parent TListView unless I am mistaken. This error never appeared in Delphi... Any ideas? Did I start this new package in the wrong way? I simply used Package/NewPackage to bring up the dialogs.... -- Bo Berglund Developer in Sweden From werner.pamler at freenet.de Sat Jun 9 11:27:11 2018 From: werner.pamler at freenet.de (Werner Pamler) Date: Sat, 9 Jun 2018 11:27:11 +0200 Subject: [Lazarus] Converting a component package Delphi->Lazarus using built-in converter? In-Reply-To: <2qglhdde0ej95gcjdc2s0ttr77kk0l8fsl@4ax.com> References: <9sclhdp0udbhn96p8i7g8mhvvobkm8ku70@4ax.com> <1528478220601-0.post@n3.nabble.com> <2qglhdde0ej95gcjdc2s0ttr77kk0l8fsl@4ax.com> Message-ID: Am 08.06.2018 um 20:08 schrieb Bo Berglund via Lazarus: > On Fri, 8 Jun 2018 10:17:00 -0700 (MST), leledumbo via Lazarus > wrote: > >>> Or is it just the converter that is havíng problems? >> In the package dialog, check "Register unit" for units containing Register >> procedure. I didn't remember the last time I converted a Delphi package, but >> it could be that the converter doesn't detect Register properly. >> > I tried another approach, i.e. not using the converter at all. > Instead I tried creating a new package and then I have added manually > the main source files for the different components into the package > files collection. > I also added required package LCL and removed required package FCL. > > Then I tried compiling and for the first few components all I had to > do was add an {$IFDEF DELPHI} bracket around some Delphi version > checking code and they compiled. > I also added this to the top of each component source file: > {$IFDEF FPC} > {$MODE DELPHI} > {$ENDIF} > (I don't know if this is required on all source files or if there is a > master setting that enforces MODE DELPHI for the whole package). > > But now I have run into a stop in one component, which is actually a > descendant of TListView where we have simplified usage by adding some > modified defaults and a few methods. > No I am getting errors I don't understand here: > > procedure TEasyListView.DoColumnSort; > var > SortStyle: TColumnSortStyle; > begin > if ViewStyle <> vsReport then Exit; > if not FColumnSorting then Exit; > case ColumnSortStyle[ActiveSortColumn] of > ssString: CustomSort(@SortByStringProc, FSortColumn); > ssInteger: CustomSort(@SortByIntegerProc, FSortColumn); > ssFloat: CustomSort(@SortByFloatProc, FSortColumn); > ssImageIndex: CustomSort(@SortByImageIndexProc, FSortColumn); > ssCustom: begin > if Assigned(FOnColumnSortCompare) then > begin > UColumnSortCompare := FOnColumnSortCompare; > CustomSort(@SortByCustomProc, FSortColumn); > UColumnSortCompare := nil; > end; > end; > ssNone: ; // Do nothing > end; > end; > > On every line mentioning CustomSort there is an error: > Error: Identifier not found "CustomSort" Are the '@' correct? I thought you are in mode DELPHI. > Did I start this new package in the wrong way? I simply used > Package/NewPackage to bring up the dialogs.... I think this is correct. I converted a lot of Delphi packages this way, without the converter - it gives me more control of what is happening. From nc-gaertnma at netcologne.de Sat Jun 9 11:39:28 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Sat, 9 Jun 2018 11:39:28 +0200 Subject: [Lazarus] Converting a component package Delphi->Lazarus using built-in converter? In-Reply-To: <2qglhdde0ej95gcjdc2s0ttr77kk0l8fsl@4ax.com> References: <9sclhdp0udbhn96p8i7g8mhvvobkm8ku70@4ax.com> <1528478220601-0.post@n3.nabble.com> <2qglhdde0ej95gcjdc2s0ttr77kk0l8fsl@4ax.com> Message-ID: <20180609113928.23a24752@limapholos.matflo.wg> On Fri, 08 Jun 2018 20:08:02 +0200 Bo Berglund via Lazarus wrote: >[...] > Then I tried compiling and for the first few components all I had to > do was add an {$IFDEF DELPHI} bracket around some Delphi version > checking code and they compiled. > I also added this to the top of each component source file: > {$IFDEF FPC} > {$MODE DELPHI} > {$ENDIF} > (I don't know if this is required on all source files or if there is a > master setting that enforces MODE DELPHI for the whole package). Package / Options / Compiler Options/ Parsing / Syntax Mode Mattias From aaa5500 at ya.ru Sat Jun 9 14:44:26 2018 From: aaa5500 at ya.ru (AlexeyT) Date: Sat, 9 Jun 2018 15:44:26 +0300 Subject: [Lazarus] JCF fails on modile NN.mmm Message-ID: JCF gives error window on such a module, AG.Logs.pas (unit AG.Logs). Its known issue? -- Regards, Alexey From bo.berglund at gmail.com Sat Jun 9 17:19:01 2018 From: bo.berglund at gmail.com (Bo Berglund) Date: Sat, 09 Jun 2018 17:19:01 +0200 Subject: [Lazarus] Converting a component package Delphi->Lazarus using built-in converter? References: <9sclhdp0udbhn96p8i7g8mhvvobkm8ku70@4ax.com> <1528478220601-0.post@n3.nabble.com> <2qglhdde0ej95gcjdc2s0ttr77kk0l8fsl@4ax.com> <20180609113928.23a24752@limapholos.matflo.wg> Message-ID: <04rnhdtmormn9r65bkohpvqo0t93q2oklk@4ax.com> On Sat, 9 Jun 2018 11:39:28 +0200, Mattias Gaertner via Lazarus wrote: >On Fri, 08 Jun 2018 20:08:02 +0200 >Bo Berglund via Lazarus wrote: > >>[...] >> Then I tried compiling and for the first few components all I had to >> do was add an {$IFDEF DELPHI} bracket around some Delphi version >> checking code and they compiled. >> I also added this to the top of each component source file: >> {$IFDEF FPC} >> {$MODE DELPHI} >> {$ENDIF} >> (I don't know if this is required on all source files or if there is a >> master setting that enforces MODE DELPHI for the whole package). > >Package / Options / Compiler Options/ Parsing / Syntax Mode > I found the combobox, which was set to "Object Pascal -default..." and changed to Delphi (-MDelphi) But when I then click the compile button it stops at the same place with the same errors... We have used this TListView descendant since May 1998 and the ColumnSorting method was added Nov 2005. It has been used in Delphi since Delphi 3 up until Delphi XE5, where we are now. The reason for the errors really must have something to do with how the source is treated with FPC/Lazarus as opposed to Delphi, but what can it be? The CustomSort it complains about might exist in a used unit in Delphi but not in Lazarus for example? CustomSort seems to be part of the Delphi VCL: http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/delphivclwin32/ComCtrls_TCustomListView_CustomSort.html Is it not available in the Lazarus library? -- Bo Berglund Developer in Sweden From bo.berglund at gmail.com Sat Jun 9 17:21:10 2018 From: bo.berglund at gmail.com (Bo Berglund) Date: Sat, 09 Jun 2018 17:21:10 +0200 Subject: [Lazarus] Converting a component package Delphi->Lazarus using built-in converter? References: <9sclhdp0udbhn96p8i7g8mhvvobkm8ku70@4ax.com> <1528478220601-0.post@n3.nabble.com> <2qglhdde0ej95gcjdc2s0ttr77kk0l8fsl@4ax.com> Message-ID: On Sat, 9 Jun 2018 11:27:11 +0200, Werner Pamler via Lazarus wrote: >> Did I start this new package in the wrong way? I simply used >> Package/NewPackage to bring up the dialogs.... > >I think this is correct. I converted a lot of Delphi packages this way, >without the converter - it gives me more control of what is happening. I thought so too, but then I might not set the correct Lazarus options? I am not doing this very often, usually I am just working on smaller projects started from scratch in Lazarus... -- Bo Berglund Developer in Sweden From bo.berglund at gmail.com Sat Jun 9 17:47:53 2018 From: bo.berglund at gmail.com (Bo Berglund) Date: Sat, 09 Jun 2018 17:47:53 +0200 Subject: [Lazarus] Converting a component package Delphi->Lazarus using built-in converter? References: <9sclhdp0udbhn96p8i7g8mhvvobkm8ku70@4ax.com> <1528478220601-0.post@n3.nabble.com> <2qglhdde0ej95gcjdc2s0ttr77kk0l8fsl@4ax.com> <20180609113928.23a24752@limapholos.matflo.wg> <04rnhdtmormn9r65bkohpvqo0t93q2oklk@4ax.com> Message-ID: On Sat, 09 Jun 2018 17:19:01 +0200, Bo Berglund via Lazarus wrote: >The CustomSort it complains about might exist in a used unit in Delphi >but not in Lazarus for example? I opened Delphi 2007 and dropped an EasyListview object onto the form so I could trace this CustomSort method. If I use the "find declaration" command on the CustomSort that Lazarus errors out on I am moved over to this code inside ComCtrls: function TCustomListView.CustomSort(SortProc: TLVCompare; lParam: Longint): Boolean; begin Result := False; if HandleAllocated then begin if not Assigned(SortProc) then SortProc := @DefaultListViewSort; Result := ListView_SortItems(Handle, SortProc, lParam); end; end; So it seems like my Lazarus package is missing some reference to the equivalent of ComCtrls when I create the package from scratch. Surely something I have not done or such, but what could it be? Does ComCtrls exist also in Lazarus? -- Bo Berglund Developer in Sweden From nc-gaertnma at netcologne.de Sat Jun 9 17:50:43 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Sat, 9 Jun 2018 17:50:43 +0200 Subject: [Lazarus] Converting a component package Delphi->Lazarus using built-in converter? In-Reply-To: <2qglhdde0ej95gcjdc2s0ttr77kk0l8fsl@4ax.com> References: <9sclhdp0udbhn96p8i7g8mhvvobkm8ku70@4ax.com> <1528478220601-0.post@n3.nabble.com> <2qglhdde0ej95gcjdc2s0ttr77kk0l8fsl@4ax.com> Message-ID: <20180609175043.7d176089@limapholos.matflo.wg> On Fri, 08 Jun 2018 20:08:02 +0200 Bo Berglund via Lazarus wrote: > On Fri, 8 Jun 2018 10:17:00 -0700 (MST), leledumbo via Lazarus >[...] > procedure TEasyListView.DoColumnSort; > var > SortStyle: TColumnSortStyle; > begin > if ViewStyle <> vsReport then Exit; > if not FColumnSorting then Exit; > case ColumnSortStyle[ActiveSortColumn] of > ssString: CustomSort(@SortByStringProc, FSortColumn); > ssInteger: CustomSort(@SortByIntegerProc, FSortColumn); > ssFloat: CustomSort(@SortByFloatProc, FSortColumn); > ssImageIndex: CustomSort(@SortByImageIndexProc, FSortColumn); > ssCustom: begin > if Assigned(FOnColumnSortCompare) then > begin > UColumnSortCompare := FOnColumnSortCompare; > CustomSort(@SortByCustomProc, FSortColumn); > UColumnSortCompare := nil; > end; > end; > ssNone: ; // Do nothing > end; > end; > > On every line mentioning CustomSort there is an error: > Error: Identifier not found "CustomSort" > > CustomSort is an identifier in the parent TListView unless I am > mistaken. This error never appeared in Delphi... > > Any ideas? TCustomListView.CustomSort exists in LCL as well. Check the declaration of SortByStringProc: function SortByStringProc(Item1, Item2: TListItem; AOptionalParam: PtrInt): Integer; stdcall; Mattias From bo.berglund at gmail.com Sat Jun 9 18:18:21 2018 From: bo.berglund at gmail.com (Bo Berglund) Date: Sat, 09 Jun 2018 18:18:21 +0200 Subject: [Lazarus] Converting a component package Delphi->Lazarus using built-in converter? References: <9sclhdp0udbhn96p8i7g8mhvvobkm8ku70@4ax.com> <1528478220601-0.post@n3.nabble.com> <2qglhdde0ej95gcjdc2s0ttr77kk0l8fsl@4ax.com> <20180609175043.7d176089@limapholos.matflo.wg> Message-ID: <01vnhdpqg46oedkpm5s64013lvkefhivs4@4ax.com> On Sat, 9 Jun 2018 17:50:43 +0200, Mattias Gaertner via Lazarus wrote: >TCustomListView.CustomSort exists in LCL as well. >Check the declaration of SortByStringProc: > >function SortByStringProc(Item1, Item2: TListItem; >AOptionalParam: PtrInt): Integer; stdcall; > But why does it then not find it? I found a bugtracker entry here: https://bugs.freepascal.org/view.php?id=8536 And it says it was solved by Zeljan Rikalo on 2017-10-17 Is it not (yet) part of the Lazarus/FPC release? I am using Lazarus 1.8.4 bundled with FPC 3.0.4 (svn rev 57972) (win32 version) on Windows7 X64 Now I have found a problem in another unit too, in this case it cannot find the StartsText function in StrUtils. Is this another slight incompatibility between Delphi and Lazarus? -- Bo Berglund Developer in Sweden From werner.pamler at freenet.de Sat Jun 9 19:08:23 2018 From: werner.pamler at freenet.de (Werner Pamler) Date: Sat, 9 Jun 2018 19:08:23 +0200 Subject: [Lazarus] Converting a component package Delphi->Lazarus using built-in converter? In-Reply-To: References: <9sclhdp0udbhn96p8i7g8mhvvobkm8ku70@4ax.com> <1528478220601-0.post@n3.nabble.com> <2qglhdde0ej95gcjdc2s0ttr77kk0l8fsl@4ax.com> Message-ID: <5a3f1a6c-a7da-ea2f-4ced-abc33c3b2216@freenet.de> Is this MustangPeak's EasyListView https://github.com/TurboPack/MustangpeakEasyListview)? I was trying to convert it myself, but did not even get this far. I got lost in the dependence on another package which did not want to resolve - very windows-specific stuff. If it is a non-closed packaged by somebody else, or if it is an older version of MustangPeak's EasyListView why don't you pack the files needed into a zip and attach it to? From bo.berglund at gmail.com Sat Jun 9 21:43:20 2018 From: bo.berglund at gmail.com (Bo Berglund) Date: Sat, 09 Jun 2018 21:43:20 +0200 Subject: [Lazarus] Converting a component package Delphi->Lazarus using built-in converter? References: <9sclhdp0udbhn96p8i7g8mhvvobkm8ku70@4ax.com> <1528478220601-0.post@n3.nabble.com> <2qglhdde0ej95gcjdc2s0ttr77kk0l8fsl@4ax.com> <5a3f1a6c-a7da-ea2f-4ced-abc33c3b2216@freenet.de> Message-ID: <6abohd9vk33frg59b2bj1vsvd2isplodcr@4ax.com> On Sat, 9 Jun 2018 19:08:23 +0200, Werner Pamler via Lazarus wrote: >Is this MustangPeak's EasyListView >https://github.com/TurboPack/MustangpeakEasyListview)? I was trying to >convert it myself, but did not even get this far. I got lost in the >dependence on another package which did not want to resolve - very >windows-specific stuff. If it is a non-closed packaged by somebody else, >or if it is an older version of MustangPeak's EasyListView why don't you >pack the files needed into a zip and attach it to? No, it is an internal design by a developer that got fed up with the strange defaults and behaviour of the original TListView. It happened back in 1998 (for Delphi 3 at the time). It has been added to ever since with new features so it is hard to port the applications needing this to FPC/Lazarus if it cannot be also converted. -- Bo Berglund Developer in Sweden From bo.berglund at gmail.com Sun Jun 10 09:54:34 2018 From: bo.berglund at gmail.com (Bo Berglund) Date: Sun, 10 Jun 2018 09:54:34 +0200 Subject: [Lazarus] Converting a component package Delphi->Lazarus using built-in converter? References: <9sclhdp0udbhn96p8i7g8mhvvobkm8ku70@4ax.com> <1528478220601-0.post@n3.nabble.com> <2qglhdde0ej95gcjdc2s0ttr77kk0l8fsl@4ax.com> Message-ID: On Fri, 08 Jun 2018 20:08:02 +0200, Bo Berglund via Lazarus wrote: >On every line mentioning CustomSort there is an error: >Error: Identifier not found "CustomSort" > >CustomSort is an identifier in the parent TListView unless I am >mistaken. This error never appeared in Delphi... FYI: I got off-list help by Werner Pamler to find the problem in the EasyListView component. It turns out that CustomSort is *not* available in FPC/Lazarus release 3.0.4/1.8.4, it was added to trunk only a month or so back. With Werner's help I edited the comctrl.pp and comctrl.inc files to include the patches that solves the problem and then rebuilt Lazarus. After this the CustomSort problem disappeared and the EasyListView component compiled without errors. Now I have problems installing the package instead because when I select install it pops up a warning message saying that the package does not have a Register procedure, which is strange since every constituent component file has a register method. How do I add a *package* Register method? And will it place the components in the package on an IDE tab? -- Bo Berglund Developer in Sweden From bo.berglund at gmail.com Sun Jun 10 09:56:48 2018 From: bo.berglund at gmail.com (Bo Berglund) Date: Sun, 10 Jun 2018 09:56:48 +0200 Subject: [Lazarus] Converting a component package Delphi->Lazarus using built-in converter? References: <9sclhdp0udbhn96p8i7g8mhvvobkm8ku70@4ax.com> <1528478220601-0.post@n3.nabble.com> <2qglhdde0ej95gcjdc2s0ttr77kk0l8fsl@4ax.com> Message-ID: On Sun, 10 Jun 2018 09:54:34 +0200, Bo Berglund via Lazarus wrote: >With Werner's help I edited the comctrl.pp and comctrl.inc files to Sory, typo! I actually edited the comctrls.pp and customlistview.inc files! -- Bo Berglund Developer in Sweden From bo.berglund at gmail.com Sun Jun 10 10:08:31 2018 From: bo.berglund at gmail.com (Bo Berglund) Date: Sun, 10 Jun 2018 10:08:31 +0200 Subject: [Lazarus] Converting a component package Delphi->Lazarus using built-in converter? - comctrls.pp.patch.zip (0/1) References: <9sclhdp0udbhn96p8i7g8mhvvobkm8ku70@4ax.com> <1528478220601-0.post@n3.nabble.com> <2qglhdde0ej95gcjdc2s0ttr77kk0l8fsl@4ax.com> Message-ID: <7tmphd9b0rs9c67vqrmeqa78959a6krl8e@4ax.com> On Sun, 10 Jun 2018 09:56:48 +0200, Bo Berglund via Lazarus wrote: >On Sun, 10 Jun 2018 09:54:34 +0200, Bo Berglund via Lazarus > wrote: > >>With Werner's help I edited the comctrl.pp and comctrl.inc files to > >Sorry, typo! >I actually edited the comctrls.pp and customlistview.inc files! > I am attaching a zipfile with the patches I applied to the two files lcl/comctrls.pp lcl/include/customlistview.inc in the current distribution of Lazarus 1.8.4. -- Bo Berglund Developer in Sweden From bo.berglund at gmail.com Sun Jun 10 10:08:32 2018 From: bo.berglund at gmail.com (Bo Berglund) Date: Sun, 10 Jun 2018 10:08:32 +0200 Subject: [Lazarus] Converting a component package Delphi->Lazarus using built-in converter? - comctrls.pp.patch.zip (1/1) References: <9sclhdp0udbhn96p8i7g8mhvvobkm8ku70@4ax.com> <1528478220601-0.post@n3.nabble.com> <2qglhdde0ej95gcjdc2s0ttr77kk0l8fsl@4ax.com> Message-ID: <04nphd15qpduaee34r2mlft8ucfuea90va@4ax.com> begin 644 comctrls.pp.patch.zip M4$L#!!0``@`(`#U0RDR:L"0LT````&L!```1````8V]M8W1R;',N<'`N<&%T M8VAUD%L+ at D`0A=\#_\,\*OC0FI=4"DP0A""AJ,=8;"M!75G'_]]L91>HE[/+ M0 M;#IMX'7!%6\B*%#E+5H1D(J+4-#CJ>1U'1L3-IL3:!8RF\1YT`"R=.A1-ENI M\)@1+OIH$/\R?8%TK.L%G+D^&\V=DJ4X#32`]A\JO-Z_]&;RC!TQ-(1V/%\M MG>7YE.4%KW;C`N!=P$RT%@3YJOI_$RLI:\%;BK\!4$L#!!0``@`(``Q0RDQ9 M)MT38`,``!D+```8````8W5S=&]M;&ES='9I97JBAR\4!66M9HO<[E[SN[Z\NN at 20/ MY0';Z[F<.3-G8'C6"XR&0;V%3(OX[9R!:C>LZHS#6WW.9K:B] M5]^O*:8"FK%KLORCD!@6DCUA<=&K;IXD3Q at ND".IH5D'\^U1^2^CK-5D6,Z:D:FHM37,L!8 MOYR*%)_\-P[/U(:X"I-W)UDA%%S`P#0%\(FIIEU\O9Y+)-1,;'0)=`$F((YY MLLE;#K73CT2D',><9ZM$87JLV5.QXD6*'1LLU+D,HC)/T/3;9\CL&,M1=R*1 M4M262CY7MP9)IR8#+FE9^6J%-KLZL$'PIW:[;8R;G7#$53`>>=EK)5CHF+;S M>W0>>&I1M4"U3F,2!&C'YU*]8A54GWR^<=AG[KC,)Y ML16ER3S#955H67>D:]'>H.V:OC4W>NY`9.3Z$0N1V1A',?AET$ MWA13C\GO0'??2)2F7).E2)26K?:0>/FZIM6A?TB+ at .7U_5(6V.;/&>[#-)Z` MGO%'08/?:PW['F?NQJP7@`4V6SO_)MJ9ZKGV=6F%WT0D1DEPA^3RWRAU*PA+ M&3Lazarus using built-in converter? In-Reply-To: References: <9sclhdp0udbhn96p8i7g8mhvvobkm8ku70@4ax.com> <1528478220601-0.post@n3.nabble.com> <2qglhdde0ej95gcjdc2s0ttr77kk0l8fsl@4ax.com> Message-ID: <20180610102807.1aa67346@limapholos.matflo.wg> On Sun, 10 Jun 2018 09:54:34 +0200 Bo Berglund via Lazarus wrote: >[...] > How do I add a *package* Register method? And will it place the > components in the package on an IDE tab? http://wiki.lazarus.freepascal.org/IDE_Window:_Package_Editor Click for each such unit 'Register unit' Mattias From bo.berglund at gmail.com Sun Jun 10 12:37:32 2018 From: bo.berglund at gmail.com (Bo Berglund) Date: Sun, 10 Jun 2018 12:37:32 +0200 Subject: [Lazarus] Using a component OBJ file in Lazarus? Message-ID: When converting components to Lazarus (see separate thread) I have encountered a problem for a component that interfaces to a software protection dongle. My component files (pas) need to reference a unit + an obj file from the dongle maker. In the maker's pas file is this: IMPLEMENTATION USES Windows; {$L SPROMEPS.OBJ} { LINK WITH THE SUPERPRO OBJECT FILE } The Spromeps.obj file is located in the same directory as the source files and in package manager I have added the main component source file and checked that it compiles without errors. OK. When the component source file was added PM asked if the path to the file should be added to the search path, so I expected it to be known... But when I command PM to install the package and it asks to rebuild Lazarus this happens: Build IDE: Exit code 2, Errors: 1, Warnings: 2 lazarus.pp(161,1) Warning: Object SPROMEPS.OBJ not found, Linking may fail ! lazarus.pp(161,1) Warning: Object SPROMEPS.OBJ not found, Linking may fail ! lazarus.pp(161,1) Error: Can't open object file: SPROMEPS.OBJ I tried to add the obj file to the files for the package but it did not change anything. I also tried Package/Options/Compiler options/Paths and added the path to the component to Libraries But it caused the same error on Lazarus rebuild... So how do I tell Lazarus that this file is available? -- Bo Berglund Developer in Sweden From nc-gaertnma at netcologne.de Sun Jun 10 12:58:42 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Sun, 10 Jun 2018 12:58:42 +0200 Subject: [Lazarus] Using a component OBJ file in Lazarus? In-Reply-To: References: Message-ID: <20180610125842.2b48ee56@limapholos.matflo.wg> On Sun, 10 Jun 2018 12:37:32 +0200 Bo Berglund via Lazarus wrote: > When converting components to Lazarus (see separate thread) I have > encountered a problem for a component that interfaces to a software > protection dongle. > My component files (pas) need to reference a unit + an obj file from > the dongle maker. In the maker's pas file is this: > > IMPLEMENTATION > USES > Windows; > {$L SPROMEPS.OBJ} { LINK WITH THE SUPERPRO OBJECT FILE } > > The Spromeps.obj file is located in the same directory as the source > files and in package manager I have added the main component source > file and checked that it compiles without errors. OK. Your package must inherit an object search path. Package editor / Options / Package Options / Add path to dependent packages / Object Add '$(PkgDir)' without quotes. > When the component source file was added PM asked if the path to the > file should be added to the search path, so I expected it to be > known... Pascal sources and object files have different search paths. Mattias From bo.berglund at gmail.com Sun Jun 10 14:15:06 2018 From: bo.berglund at gmail.com (Bo Berglund) Date: Sun, 10 Jun 2018 14:15:06 +0200 Subject: [Lazarus] Using a component OBJ file in Lazarus? References: <20180610125842.2b48ee56@limapholos.matflo.wg> Message-ID: <1o4qhd9116u9vv40rej92jic3aau1t10qt@4ax.com> On Sun, 10 Jun 2018 12:58:42 +0200, Mattias Gaertner via Lazarus wrote: >Your package must inherit an object search path. > >Package editor / Options / Package Options / Add path to dependent >packages / Object > >Add '$(PkgDir)' without quotes. > I did this literally as you wrote. So my Package options Object box contains the text $(PkgDir) It does not work, Lazarus does not find the obj file anyway. So next I tried: $(PkgDir)\..\Sentinel This time it passed the previous error only to arrive at: lazarus.pp(161,1) Error: Illegal COFF Magic while reading D:\Engineering\Projects\Subversion\EI\CMPFPC\Sentinel\SPROMEPS.OBJ Does this mean that the OBJ file that has worked for more than 15 yesra on different versions of Delphi is somehow of a format not acceptable by Lazarus? What is COFF Magic? -- Bo Berglund Developer in Sweden From nc-gaertnma at netcologne.de Sun Jun 10 14:59:11 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Sun, 10 Jun 2018 14:59:11 +0200 Subject: [Lazarus] Using a component OBJ file in Lazarus? In-Reply-To: <1o4qhd9116u9vv40rej92jic3aau1t10qt@4ax.com> References: <20180610125842.2b48ee56@limapholos.matflo.wg> <1o4qhd9116u9vv40rej92jic3aau1t10qt@4ax.com> Message-ID: <20180610145911.4a5bbfc5@limapholos.matflo.wg> On Sun, 10 Jun 2018 14:15:06 +0200 Bo Berglund via Lazarus wrote: > On Sun, 10 Jun 2018 12:58:42 +0200, Mattias Gaertner via Lazarus > wrote: > > >Your package must inherit an object search path. > > > >Package editor / Options / Package Options / Add path to dependent > >packages / Object > > > >Add '$(PkgDir)' without quotes. > > > > I did this literally as you wrote. So my Package options Object box > contains the text $(PkgDir) > > It does not work, Lazarus does not find the obj file anyway. > > So next I tried: > $(PkgDir)\..\Sentinel Glad you figured that out. I don't know your setup (yet). > This time it passed the previous error only to arrive at: > > lazarus.pp(161,1) Error: Illegal COFF Magic while reading > D:\Engineering\Projects\Subversion\EI\CMPFPC\Sentinel\SPROMEPS.OBJ > > Does this mean that the OBJ file that has worked for more than 15 > yesra on different versions of Delphi is somehow of a format not > acceptable by Lazarus? > > What is COFF Magic? Find out the format of your obj file and then find a converter to COFF format, which fpc require. Maybe objconv can be used for that. I never tried. Mattias From bo.berglund at gmail.com Sun Jun 10 15:11:14 2018 From: bo.berglund at gmail.com (Bo Berglund) Date: Sun, 10 Jun 2018 15:11:14 +0200 Subject: [Lazarus] Using a component OBJ file in Lazarus? References: <20180610125842.2b48ee56@limapholos.matflo.wg> <1o4qhd9116u9vv40rej92jic3aau1t10qt@4ax.com> <20180610145911.4a5bbfc5@limapholos.matflo.wg> Message-ID: <898qhddb0a82k0n8584qdf0p16akcdci2l@4ax.com> On Sun, 10 Jun 2018 14:59:11 +0200, Mattias Gaertner via Lazarus wrote: >Find out the format of your obj file and then find a converter to COFF >format, which fpc require. Maybe objconv can be used for that. I never >tried. Meanwhile I found an old post in the lazarus forum: https://forum.lazarus.freepascal.org/index.php?topic=30324.0 It directed me to objconv, so I have tried to use it but even though it brings me somewhat further I have banged my head aginst this now: Compile package customcmpfpc 0.0: Success Build IDE: Exit code 2, Errors: 23 lazarus.pp(161,1) Error: Undefined symbol: SPROMEPS_$$_RNBOSPROFORMATPACKET$RB_SPRO_APIPACKET_PTR$WORD$$WORD .... lazarus.pp(161,1) Error: Undefined symbol: SPROMEPS_$$_RNBOSPROQUERY$RB_SPRO_APIPACKET_PTR$WORD$POINTER$POINTER$POINTER$WORD$$WORD lazarus.pp(161,1) Error: Undefined symbol: GetVersion .... lazarus.pp(161,1) Error: Undefined symbol: CreateFileA I will have to systemize my tests later tonight and try every possible permutation of objconv arguments.... -- Bo Berglund Developer in Sweden From mschnell at lumino.de Mon Jun 11 10:13:21 2018 From: mschnell at lumino.de (Michael Schnell) Date: Mon, 11 Jun 2018 10:13:21 +0200 Subject: [Lazarus] Converting a component package Delphi->Lazarus using built-in converter? In-Reply-To: <9sclhdp0udbhn96p8i7g8mhvvobkm8ku70@4ax.com> References: <9sclhdp0udbhn96p8i7g8mhvvobkm8ku70@4ax.com> Message-ID: <6f4fb3ec-9063-29e4-1bd1-660d5d510d3f@lumino.de> On 08.06.2018 19:05, Bo Berglund via Lazarus wrote: > This Delphi package is a collection of some 20 components and all of > them have Register procedures inside of each source file. Are those really IDE-relevant packages (showing up in the visual component selection ) ? If not, they might be just Delphi "Runtime Packages" (a special kind of DLLs that can be attached by Delphi executables). The concept of "Runtime Packages" is not (yet) supported by FPC/Lazarus. That is why the IDE needs to be recompiled when installing a package that provides visual components. -Michael From mschnell at lumino.de Mon Jun 11 10:23:44 2018 From: mschnell at lumino.de (Michael Schnell) Date: Mon, 11 Jun 2018 10:23:44 +0200 Subject: [Lazarus] Using a component OBJ file in Lazarus? In-Reply-To: <898qhddb0a82k0n8584qdf0p16akcdci2l@4ax.com> References: <20180610125842.2b48ee56@limapholos.matflo.wg> <1o4qhd9116u9vv40rej92jic3aau1t10qt@4ax.com> <20180610145911.4a5bbfc5@limapholos.matflo.wg> <898qhddb0a82k0n8584qdf0p16akcdci2l@4ax.com> Message-ID: <8c2f8ddd-41fc-ae11-3c27-000a9e728824@lumino.de> On 10.06.2018 15:11, Bo Berglund via Lazarus wrote: > ... Build IDE: Exit code 2, Errors: 23 ... You want to compile some 3rd party Dongle code in the IDE ? That is more than weired ! -Michael From luca at wetron.es Mon Jun 11 11:14:24 2018 From: luca at wetron.es (Luca Olivetti) Date: Mon, 11 Jun 2018 11:14:24 +0200 Subject: [Lazarus] spinedit issue with qt5 Message-ID: <93635791-64cf-a59e-ed07-0694856ca058@wetron.es> Lazarus 1.8.4, FPC 3.0.4, x86_64-linux-qt5 In a spinedit, if I set maxvalue and minvalue to 0, the spinedit doesn't work with the qt5 widgetset. I see that in qtswsspin.pp if (ACustomFloatSpinEdit.MaxValue > ACustomFloatSpinEdit.MinValue) then begin ASpinWidget.setMinimum(ACustomFloatSpinEdit.MinValue); ASpinWidget.setMaximum(ACustomFloatSpinEdit.MaxValue); end else begin ASpinWidget.setMinimum(-MaxDouble); ASpinWidget.setMaximum(MaxDouble); end; so at first sight it seems it should work, but the implementation of setMinimum and setMaximum is procedure TQtSpinBox.setMinimum(const v: Double); begin QSpinBox_setMinimum(QSpinBoxH(Widget), round(v)); end; procedure TQtSpinBox.setMaximum(const v: Double); begin QSpinBox_setMaximum(QSpinBoxH(Widget), round(v)); end; and, while round(-MaxDouble) works, round(MaxDouble) silently fails (linux/x64, it gives an FPE exception under win32). There's no such problem with gtk2 because the underlying widget is floating point based. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 From luca at wetron.es Mon Jun 11 11:30:07 2018 From: luca at wetron.es (Luca Olivetti) Date: Mon, 11 Jun 2018 11:30:07 +0200 Subject: [Lazarus] spinedit issue with qt5 In-Reply-To: <93635791-64cf-a59e-ed07-0694856ca058@wetron.es> References: <93635791-64cf-a59e-ed07-0694856ca058@wetron.es> Message-ID: El 11/06/18 a les 11:14, Luca Olivetti via Lazarus ha escrit: > Lazarus 1.8.4, FPC 3.0.4, x86_64-linux-qt5 > > In a spinedit, if I set maxvalue and minvalue to 0, the spinedit doesn't > work with the qt5 widgetset. > > I see that in qtswsspin.pp > >     if (ACustomFloatSpinEdit.MaxValue > ACustomFloatSpinEdit.MinValue) > then >     begin >       ASpinWidget.setMinimum(ACustomFloatSpinEdit.MinValue); >       ASpinWidget.setMaximum(ACustomFloatSpinEdit.MaxValue); >     end >     else >     begin >       ASpinWidget.setMinimum(-MaxDouble); >       ASpinWidget.setMaximum(MaxDouble); >     end; > I changed that to if (ACustomFloatSpinEdit.MaxValue > ACustomFloatSpinEdit.MinValue) then begin ASpinWidget.setMinimum(ACustomFloatSpinEdit.MinValue); ASpinWidget.setMaximum(ACustomFloatSpinEdit.MaxValue); end else begin if ASpinWidget is TQtFloatSpinBox then begin ASpinWidget.setMinimum(-MaxDouble); ASpinWidget.setMaximum(MaxDouble); end else begin ASpinWidget.setMinimum(-$7fffffffffffffff); ASpinWidget.setMaximum($7fffffffffffffff); end; end; > > so at first sight it seems it should work, but the implementation of > setMinimum and setMaximum is > > > procedure TQtSpinBox.setMinimum(const v: Double); > begin >   QSpinBox_setMinimum(QSpinBoxH(Widget), round(v)); > end; > > procedure TQtSpinBox.setMaximum(const v: Double); > begin >   QSpinBox_setMaximum(QSpinBoxH(Widget), round(v)); > end; > > > > and, while round(-MaxDouble) works, round(MaxDouble) silently fails > (linux/x64, it gives an FPE exception under win32). > > There's no such problem with gtk2 because the underlying widget is > floating point based. > > > Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 From luca at wetron.es Mon Jun 11 11:43:23 2018 From: luca at wetron.es (Luca Olivetti) Date: Mon, 11 Jun 2018 11:43:23 +0200 Subject: [Lazarus] spinedit issue with qt5 In-Reply-To: References: <93635791-64cf-a59e-ed07-0694856ca058@wetron.es> Message-ID: <9882bc53-fc6f-0d50-793c-5f0b694e9ce8@wetron.es> El 11/06/18 a les 11:30, Luca Olivetti via Lazarus ha escrit: > I changed that to > >     if (ACustomFloatSpinEdit.MaxValue > ACustomFloatSpinEdit.MinValue) > then >     begin >       ASpinWidget.setMinimum(ACustomFloatSpinEdit.MinValue); >       ASpinWidget.setMaximum(ACustomFloatSpinEdit.MaxValue); >     end >     else >     begin >       if ASpinWidget is TQtFloatSpinBox then >       begin >         ASpinWidget.setMinimum(-MaxDouble); >         ASpinWidget.setMaximum(MaxDouble); >       end else >       begin >         ASpinWidget.setMinimum(-$7fffffffffffffff); >         ASpinWidget.setMaximum($7fffffffffffffff); >       end; >     end; > And it still fails :-( If I use -MaxInt and MaxInt it works (albeit with a reduced range) Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 From zeljko at holobit.net Mon Jun 11 11:49:06 2018 From: zeljko at holobit.net (zeljko) Date: Mon, 11 Jun 2018 11:49:06 +0200 Subject: [Lazarus] spinedit issue with qt5 In-Reply-To: <9882bc53-fc6f-0d50-793c-5f0b694e9ce8@wetron.es> References: <93635791-64cf-a59e-ed07-0694856ca058@wetron.es> <9882bc53-fc6f-0d50-793c-5f0b694e9ce8@wetron.es> Message-ID: <0c032394-5b4b-637d-0133-62ae343f1531@holobit.net> On 11.06.2018 11:43, Luca Olivetti via Lazarus wrote: > El 11/06/18 a les 11:30, Luca Olivetti via Lazarus ha escrit: > >> I changed that to >> >>      if (ACustomFloatSpinEdit.MaxValue > >> ACustomFloatSpinEdit.MinValue) then >>      begin >>        ASpinWidget.setMinimum(ACustomFloatSpinEdit.MinValue); >>        ASpinWidget.setMaximum(ACustomFloatSpinEdit.MaxValue); >>      end >>      else >>      begin >>        if ASpinWidget is TQtFloatSpinBox then >>        begin >>          ASpinWidget.setMinimum(-MaxDouble); >>          ASpinWidget.setMaximum(MaxDouble); >>        end else >>        begin >>          ASpinWidget.setMinimum(-$7fffffffffffffff); >>          ASpinWidget.setMaximum($7fffffffffffffff); >>        end; >>      end; >> > And it still fails :-( > If I use -MaxInt and MaxInt it works (albeit with a reduced range) > Please open an issue and attach example project. zeljko From luca at wetron.es Mon Jun 11 12:02:24 2018 From: luca at wetron.es (Luca Olivetti) Date: Mon, 11 Jun 2018 12:02:24 +0200 Subject: [Lazarus] spinedit issue with qt5 In-Reply-To: <9882bc53-fc6f-0d50-793c-5f0b694e9ce8@wetron.es> References: <93635791-64cf-a59e-ed07-0694856ca058@wetron.es> <9882bc53-fc6f-0d50-793c-5f0b694e9ce8@wetron.es> Message-ID: <9aebd251-24bd-408a-d624-bffafd1b5f9c@wetron.es> El 11/06/18 a les 11:43, Luca Olivetti via Lazarus ha escrit: > El 11/06/18 a les 11:30, Luca Olivetti via Lazarus ha escrit: > >> I changed that to >> >>      if (ACustomFloatSpinEdit.MaxValue > >> ACustomFloatSpinEdit.MinValue) then >>      begin >>        ASpinWidget.setMinimum(ACustomFloatSpinEdit.MinValue); >>        ASpinWidget.setMaximum(ACustomFloatSpinEdit.MaxValue); >>      end >>      else >>      begin >>        if ASpinWidget is TQtFloatSpinBox then >>        begin >>          ASpinWidget.setMinimum(-MaxDouble); >>          ASpinWidget.setMaximum(MaxDouble); >>        end else >>        begin >>          ASpinWidget.setMinimum(-$7fffffffffffffff); >>          ASpinWidget.setMaximum($7fffffffffffffff); >>        end; >>      end; >> > And it still fails :-( > If I use -MaxInt and MaxInt it works (albeit with a reduced range) Ok, QSpinBox_setMinimum/setMaximum accept an integer parameter, so -MaxInt and MaxInt is the correct range. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 From luca at wetron.es Mon Jun 11 13:12:48 2018 From: luca at wetron.es (Luca Olivetti) Date: Mon, 11 Jun 2018 13:12:48 +0200 Subject: [Lazarus] spinedit issue with qt5 In-Reply-To: <0c032394-5b4b-637d-0133-62ae343f1531@holobit.net> References: <93635791-64cf-a59e-ed07-0694856ca058@wetron.es> <9882bc53-fc6f-0d50-793c-5f0b694e9ce8@wetron.es> <0c032394-5b4b-637d-0133-62ae343f1531@holobit.net> Message-ID: <93af83ac-0f1c-eb56-4d87-a9560b8b183a@wetron.es> El 11/06/18 a les 11:49, zeljko ha escrit: > On 11.06.2018 11:43, Luca Olivetti via Lazarus wrote: >> El 11/06/18 a les 11:30, Luca Olivetti via Lazarus ha escrit: >> >>> I changed that to >>> >>>      if (ACustomFloatSpinEdit.MaxValue > >>> ACustomFloatSpinEdit.MinValue) then >>>      begin >>>        ASpinWidget.setMinimum(ACustomFloatSpinEdit.MinValue); >>>        ASpinWidget.setMaximum(ACustomFloatSpinEdit.MaxValue); >>>      end >>>      else >>>      begin >>>        if ASpinWidget is TQtFloatSpinBox then >>>        begin >>>          ASpinWidget.setMinimum(-MaxDouble); >>>          ASpinWidget.setMaximum(MaxDouble); >>>        end else >>>        begin >>>          ASpinWidget.setMinimum(-$7fffffffffffffff); >>>          ASpinWidget.setMaximum($7fffffffffffffff); >>>        end; >>>      end; >>> >> And it still fails :-( >> If I use -MaxInt and MaxInt it works (albeit with a reduced range) >> > > Please open an issue and attach example project. Done https://bugs.freepascal.org/view.php?id=33850 Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 From aaa5500 at ya.ru Mon Jun 11 16:57:37 2018 From: aaa5500 at ya.ru (AlexeyT) Date: Mon, 11 Jun 2018 17:57:37 +0300 Subject: [Lazarus] SynEdit lexer dont hilite & char Message-ID: MartinFb, are you sure & char must not be hilited as .,:= etc? it's black here. procedure TRTBSource.SaveToFile(&File:string); var   Data:TStrings; begin Data:=TStringList.Create; Data.Text:=Text; Data.SaveToFile(&File); FreeAndNil(Data); end; -- Regards, Alexey From lazarus at mfriebe.de Mon Jun 11 20:32:59 2018 From: lazarus at mfriebe.de (Martin Frb) Date: Mon, 11 Jun 2018 20:32:59 +0200 Subject: [Lazarus] SynEdit lexer dont hilite & char In-Reply-To: References: Message-ID: <43f1af17-ce18-a264-f903-f8be04730078@mfriebe.de> On 11/06/2018 16:57, AlexeyT via Lazarus wrote: > MartinFb, are you sure & char must not be hilited as .,:= etc? it's > black here. The & has 2 uses in fpc &101  an octal number &word  escape the "word" the latter makes only sense, if "word" is a reserved keyword. It allows you to do   var &type: integer; "type" being a reserved word can normally not be used in this way. But the & allows this. So &type is an identifier same as FooBar. Hence the & is not highlighted. > > procedure TRTBSource.SaveToFile(&File:string); > var >   Data:TStrings; > begin > Data:=TStringList.Create; > Data.Text:=Text; > Data.SaveToFile(&File); > FreeAndNil(Data); > end; > From bo.berglund at gmail.com Mon Jun 11 21:03:14 2018 From: bo.berglund at gmail.com (Bo Berglund) Date: Mon, 11 Jun 2018 21:03:14 +0200 Subject: [Lazarus] Using a component OBJ file in Lazarus? References: <20180610125842.2b48ee56@limapholos.matflo.wg> <1o4qhd9116u9vv40rej92jic3aau1t10qt@4ax.com> <20180610145911.4a5bbfc5@limapholos.matflo.wg> <898qhddb0a82k0n8584qdf0p16akcdci2l@4ax.com> <8c2f8ddd-41fc-ae11-3c27-000a9e728824@lumino.de> Message-ID: On Mon, 11 Jun 2018 10:23:44 +0200, Michael Schnell via Lazarus wrote: >On 10.06.2018 15:11, Bo Berglund via Lazarus wrote: >> ... Build IDE: Exit code 2, Errors: 23 ... > >You want to compile some 3rd party Dongle code in the IDE ? > >That is more than weired ! > Sorry, I don't really know what you mean here... What is the reason for this comment? Unlike Delphi it seems like when one wants to add components to the development IDE palette in Lazarus one has actually to *rebuild* the IDE, there seems to be no otehr way... We have analysis software (developed in Delphi) that we sell and it is protected by the dongle. Now I was looking at migrating our code to Lazarus/FPC and in that process I had to also convert the custom components used in our code to Lazarus. I managed to do so (with help from some people here) save for 2 components, one is a TRichEdit derivative, which I think is not really used, and the other is this dongle interface. Now, for historical reasons, the dongle code was implemented as a Delphi component contained in a component package in Delphi, so that is why I am struggling to convert it. However late last night I ran across an earlier attempt I had at this about 3 years ago. In the leftover files on my disk I found a Lazarus application that can actually interface with the dongle! I also found a batch file that processed the SPROMEPS.OBJ file to produce a COFF file (using objconv) for use in this test. So I tried to copy this apparently working COFF file to my package conversion project and edited the calling code to use this. But when I tried installing the package I got the exact same errors and Lazarus would not rebuild. When I examined the main dongle file I noticed that I had earlier modified it so it is not a component file anymore, just an ordinary class definition file. So now the plan is to take this modified class file and use it in the migrated project without the component paradigm and see what happens... -- Bo Berglund Developer in Sweden From nc-gaertnma at netcologne.de Mon Jun 11 23:17:30 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Mon, 11 Jun 2018 23:17:30 +0200 Subject: [Lazarus] Using a component OBJ file in Lazarus? In-Reply-To: References: <20180610125842.2b48ee56@limapholos.matflo.wg> <1o4qhd9116u9vv40rej92jic3aau1t10qt@4ax.com> <20180610145911.4a5bbfc5@limapholos.matflo.wg> <898qhddb0a82k0n8584qdf0p16akcdci2l@4ax.com> <8c2f8ddd-41fc-ae11-3c27-000a9e728824@lumino.de> Message-ID: <20180611231730.55f7f68b@limapholos.matflo.wg> On Mon, 11 Jun 2018 21:03:14 +0200 Bo Berglund via Lazarus wrote: > On Mon, 11 Jun 2018 10:23:44 +0200, Michael Schnell via Lazarus > wrote: > > >On 10.06.2018 15:11, Bo Berglund via Lazarus wrote: > >> ... Build IDE: Exit code 2, Errors: 23 ... > > > >You want to compile some 3rd party Dongle code in the IDE ? > > > >That is more than weired ! > > > > Sorry, I don't really know what you mean here... > What is the reason for this comment? > Unlike Delphi it seems like when one wants to add components to the > development IDE palette in Lazarus one has actually to *rebuild* the > IDE, there seems to be no otehr way... Yes. But you don't need to 'install' every package. Only those with actual IDE code. Since your package contains Register procedures it probably has design time stuff. Mattias From bo.berglund at gmail.com Tue Jun 12 00:08:42 2018 From: bo.berglund at gmail.com (Bo Berglund) Date: Tue, 12 Jun 2018 00:08:42 +0200 Subject: [Lazarus] Using a component OBJ file in Lazarus? References: <20180610125842.2b48ee56@limapholos.matflo.wg> <1o4qhd9116u9vv40rej92jic3aau1t10qt@4ax.com> <20180610145911.4a5bbfc5@limapholos.matflo.wg> <898qhddb0a82k0n8584qdf0p16akcdci2l@4ax.com> <8c2f8ddd-41fc-ae11-3c27-000a9e728824@lumino.de> <20180611231730.55f7f68b@limapholos.matflo.wg> Message-ID: <51sthd10i5b7sbs6jd9920r3hn1p8krop8@4ax.com> On Mon, 11 Jun 2018 23:17:30 +0200, Mattias Gaertner via Lazarus wrote: >On Mon, 11 Jun 2018 21:03:14 +0200 >Bo Berglund via Lazarus wrote: > >> On Mon, 11 Jun 2018 10:23:44 +0200, Michael Schnell via Lazarus >> wrote: >> >> >On 10.06.2018 15:11, Bo Berglund via Lazarus wrote: >> >> ... Build IDE: Exit code 2, Errors: 23 ... >> > >> >You want to compile some 3rd party Dongle code in the IDE ? >> > >> >That is more than weired ! >> > >> >> Sorry, I don't really know what you mean here... >> What is the reason for this comment? >> Unlike Delphi it seems like when one wants to add components to the >> development IDE palette in Lazarus one has actually to *rebuild* the >> IDE, there seems to be no otehr way... > >Yes. But you don't need to 'install' every package. Only those with >actual IDE code. In this case with IDE code do you mean it contains a GUI visible part that can be manipulated inside Lazarus (like a listbox for example)? THere is no such thing. When dropped on a form only the icon shows up and it is invisible in the running program. >Since your package contains Register procedures it probably has >design time stuff. I don't know what counts as "design time stuff"... There is no GUI stuff in the unit at all. But it can be dropped on a form just like a Dialog component can. Then it is possible to manipulate the published properties of the component in the Delphi Object Inspector. And there is one event handler OnKeyAlarm that can be implemented via the Events tab in Object Inspector. If this counts as "design time stuff" then it has. I mentioned the 3-year old de-componentified version of the source file I found in an experimental folder on my hard disk. This has been stripped of the component parts (like the Register method), but it has the same set of public and published properties as the original. So if I manage to port the least complex of the analysis programs I will use the dongle class file rather than the component. The strange thing is that the included library (COFF file) seems to work in Lazarus in this use case, but not when trying to install as a component.... -- Bo Berglund Developer in Sweden From list2010 at BrenemanLabs.com Tue Jun 12 00:40:50 2018 From: list2010 at BrenemanLabs.com (Paul Breneman) Date: Mon, 11 Jun 2018 18:40:50 -0400 Subject: [Lazarus] Using a component OBJ file in Lazarus? In-Reply-To: References: <20180610125842.2b48ee56@limapholos.matflo.wg> <1o4qhd9116u9vv40rej92jic3aau1t10qt@4ax.com> <20180610145911.4a5bbfc5@limapholos.matflo.wg> <898qhddb0a82k0n8584qdf0p16akcdci2l@4ax.com> <8c2f8ddd-41fc-ae11-3c27-000a9e728824@lumino.de> Message-ID: <0675627b-53de-6513-d848-21bf9c58158b@BrenemanLabs.com> On 06/11/2018 03:03 PM, Bo Berglund via Lazarus wrote: > On Mon, 11 Jun 2018 10:23:44 +0200, Michael Schnell via Lazarus > wrote: > >> On 10.06.2018 15:11, Bo Berglund via Lazarus wrote: >>> ... Build IDE: Exit code 2, Errors: 23 ... >> >> You want to compile some 3rd party Dongle code in the IDE ? >> >> That is more than weired ! >> > > Sorry, I don't really know what you mean here... > What is the reason for this comment? > Unlike Delphi it seems like when one wants to add components to the > development IDE palette in Lazarus one has actually to *rebuild* the > IDE, there seems to be no otehr way... > > > We have analysis software (developed in Delphi) that we sell and it is > protected by the dongle. I am converting data acquisition software to Lazarus that uses the same dongle: http://forum.lazarus-ide.org/index.php/topic,40040.0.html Can I hire you Bo? From nc-gaertnma at netcologne.de Tue Jun 12 00:46:03 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Tue, 12 Jun 2018 00:46:03 +0200 Subject: [Lazarus] Using a component OBJ file in Lazarus? In-Reply-To: <51sthd10i5b7sbs6jd9920r3hn1p8krop8@4ax.com> References: <20180610125842.2b48ee56@limapholos.matflo.wg> <1o4qhd9116u9vv40rej92jic3aau1t10qt@4ax.com> <20180610145911.4a5bbfc5@limapholos.matflo.wg> <898qhddb0a82k0n8584qdf0p16akcdci2l@4ax.com> <8c2f8ddd-41fc-ae11-3c27-000a9e728824@lumino.de> <20180611231730.55f7f68b@limapholos.matflo.wg> <51sthd10i5b7sbs6jd9920r3hn1p8krop8@4ax.com> Message-ID: <20180612004603.37471b82@limapholos.matflo.wg> On Tue, 12 Jun 2018 00:08:42 +0200 Bo Berglund via Lazarus wrote: >[...] > >Since your package contains Register procedures it probably has > >design time stuff. > > I don't know what counts as "design time stuff"... > There is no GUI stuff in the unit at all. But it can be dropped on a > form just like a Dialog component can. Then it is possible to > manipulate the published properties of the component in the Delphi > Object Inspector. > And there is one event handler OnKeyAlarm that can be implemented via > the Events tab in Object Inspector. > > If this counts as "design time stuff" then it has. Yes. Mattias From mschnell at lumino.de Tue Jun 12 10:36:57 2018 From: mschnell at lumino.de (Michael Schnell) Date: Tue, 12 Jun 2018 10:36:57 +0200 Subject: [Lazarus] Using a component OBJ file in Lazarus? In-Reply-To: References: <20180610125842.2b48ee56@limapholos.matflo.wg> <1o4qhd9116u9vv40rej92jic3aau1t10qt@4ax.com> <20180610145911.4a5bbfc5@limapholos.matflo.wg> <898qhddb0a82k0n8584qdf0p16akcdci2l@4ax.com> <8c2f8ddd-41fc-ae11-3c27-000a9e728824@lumino.de> Message-ID: <2e26971a-27e8-c130-0a80-504fe550ee29@lumino.de> On 11.06.2018 21:03, Bo Berglund via Lazarus wrote: > On Mon, 11 Jun 2018 10:23:44 +0200, Michael Schnell via Lazarus wrote: > > > You want to compile some 3rd party Dongle code in the IDE ? > > That is more than weired ! > > Sorry, I don't really know what you mean here... > What is the reason for this comment? > Unlike Delphi it seems like when one wants to add components to the > development IDE palette in Lazarus one has actually to *rebuild* the > IDE, there seems to be no otehr way... > As fpc/Lazarus dos not (yet) provide run time packages, and IMHO it will ask for major problems when compiling the Lazarus IDE to contain the Dongle code, I suppose your best option is to replace the Dongle .OBJ file by a small pascal function and use this to build your package to allow it for compiling the IDE (providing the design time stuff) and the user program (providing the run time stuff). Now you need to "fake" the runtime package behavior by doing the said small pascal function in a way that it dynamically (not in the startup code !) loads and then uses a dll . The dll would be done in a way that it just forwards the call to the functions provided by Dongle .OBJ to same, and statically links to it. -Michael From pascaldragon at googlemail.com Tue Jun 12 11:30:14 2018 From: pascaldragon at googlemail.com (Sven Barth) Date: Tue, 12 Jun 2018 11:30:14 +0200 Subject: [Lazarus] Using a component OBJ file in Lazarus? In-Reply-To: <2e26971a-27e8-c130-0a80-504fe550ee29@lumino.de> References: <20180610125842.2b48ee56@limapholos.matflo.wg> <1o4qhd9116u9vv40rej92jic3aau1t10qt@4ax.com> <20180610145911.4a5bbfc5@limapholos.matflo.wg> <898qhddb0a82k0n8584qdf0p16akcdci2l@4ax.com> <8c2f8ddd-41fc-ae11-3c27-000a9e728824@lumino.de> <2e26971a-27e8-c130-0a80-504fe550ee29@lumino.de> Message-ID: Michael Schnell via Lazarus schrieb am Di., 12. Juni 2018, 10:37: > > On 11.06.2018 21:03, Bo Berglund via Lazarus wrote: > > On Mon, 11 Jun 2018 10:23:44 +0200, Michael Schnell via Lazarus < > lazarus at lists.lazarus-ide.org> wrote: > > > > > > You want to compile some 3rd party Dongle code in the IDE ? > > > > That is more than weired ! > > > > Sorry, I don't really know what you mean here... > > What is the reason for this comment? > > Unlike Delphi it seems like when one wants to add components to the > > development IDE palette in Lazarus one has actually to *rebuild* the > > IDE, there seems to be no otehr way... > > > > As fpc/Lazarus dos not (yet) provide run time packages, and IMHO it will > ask for major problems when compiling the Lazarus IDE to contain the > Dongle code, I suppose your best option is to replace the Dongle .OBJ > file by a small pascal function and use this to build your package to > allow it for compiling the IDE (providing the design time stuff) and the > user program (providing the run time stuff). > > Now you need to "fake" the runtime package behavior by doing the said > small pascal function in a way that it dynamically (not in the startup > code !) loads and then uses a dll . > > The dll would be done in a way that it just forwards the call to the > functions provided by Dongle .OBJ to same, and statically links to it. > Would you please stop spreading nonsense? Only because the code is part of a package that's loaded by the Delphi IDE does not mean that it also is one in the final Delphi program. Delphi package distributions more often than not also contain the DCU for static linking. Regards, Sven > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mschnell at lumino.de Tue Jun 12 11:48:20 2018 From: mschnell at lumino.de (Michael Schnell) Date: Tue, 12 Jun 2018 11:48:20 +0200 Subject: [Lazarus] Using a component OBJ file in Lazarus? In-Reply-To: References: <20180610125842.2b48ee56@limapholos.matflo.wg> <1o4qhd9116u9vv40rej92jic3aau1t10qt@4ax.com> <20180610145911.4a5bbfc5@limapholos.matflo.wg> <898qhddb0a82k0n8584qdf0p16akcdci2l@4ax.com> <8c2f8ddd-41fc-ae11-3c27-000a9e728824@lumino.de> <2e26971a-27e8-c130-0a80-504fe550ee29@lumino.de> Message-ID: <6deffba1-5d93-0eb9-93c5-0b273ebf9823@lumino.de> On 12.06.2018 11:30, Sven Barth via Lazarus wrote: >  Only because the code is part of a package that's loaded by the > Delphi IDE does not mean that it also is one in the final Delphi > program. Delphi package distributions more often than not also contain > the DCU for static linking. Of course you are correct that in Delphi a package can be linked dynamically to the IDE (it can't be linked statically, as the IDE never is recompiled), but statically in the final executable. But Lazarus does not provide dynamic linking to the IDE in such a way. That is why the IDE needs to be recompiled when adding a package with "design time stuff". (IMHO this is not harmful at all.) Am I wrong supposing that this means that the package will be statically linked to both the IDE and the executable, and hence it content will be linked in with both ? AFAIU, there are means to control how the code is executed at runtime and how at design time, but this does not affect linking. Hence the dongle code will be linked in with the IDE and might (or might not) provide problems. -Michael From pascaldragon at googlemail.com Tue Jun 12 14:06:52 2018 From: pascaldragon at googlemail.com (Sven Barth) Date: Tue, 12 Jun 2018 14:06:52 +0200 Subject: [Lazarus] Using a component OBJ file in Lazarus? In-Reply-To: <6deffba1-5d93-0eb9-93c5-0b273ebf9823@lumino.de> References: <20180610125842.2b48ee56@limapholos.matflo.wg> <1o4qhd9116u9vv40rej92jic3aau1t10qt@4ax.com> <20180610145911.4a5bbfc5@limapholos.matflo.wg> <898qhddb0a82k0n8584qdf0p16akcdci2l@4ax.com> <8c2f8ddd-41fc-ae11-3c27-000a9e728824@lumino.de> <2e26971a-27e8-c130-0a80-504fe550ee29@lumino.de> <6deffba1-5d93-0eb9-93c5-0b273ebf9823@lumino.de> Message-ID: Michael Schnell via Lazarus schrieb am Di., 12. Juni 2018, 11:48: > Hence the dongle code will be linked in with the IDE and might (or might > not) provide problems. > The dongle code would also be linked if it would be in a dynamic package and Lazarus would support them. The important point is what a component does while in design mode (e.g. the OpenGL component does not initialize a OpenGL context in design mode). As long as the component does not use the dongle code while in design mode then nothing happens no matter whether it is linked dynamically or statically. Regards, Sven > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mschnell at lumino.de Tue Jun 12 15:25:42 2018 From: mschnell at lumino.de (Michael Schnell) Date: Tue, 12 Jun 2018 15:25:42 +0200 Subject: [Lazarus] Using a component OBJ file in Lazarus? In-Reply-To: References: <20180610125842.2b48ee56@limapholos.matflo.wg> <1o4qhd9116u9vv40rej92jic3aau1t10qt@4ax.com> <20180610145911.4a5bbfc5@limapholos.matflo.wg> <898qhddb0a82k0n8584qdf0p16akcdci2l@4ax.com> <8c2f8ddd-41fc-ae11-3c27-000a9e728824@lumino.de> <2e26971a-27e8-c130-0a80-504fe550ee29@lumino.de> <6deffba1-5d93-0eb9-93c5-0b273ebf9823@lumino.de> Message-ID: <96f49d4e-ef4a-7175-e5e0-9ae004d41db1@lumino.de> On 12.06.2018 14:06, Sven Barth via Lazarus wrote: > The dongle code would also be linked if it would be in a dynamic > package and Lazarus would support them. Sorry, I seem not to be have been clear. The (potential) problem I want to provide a solution for is: not to link the Dongle code in the Lazarus IDE executable. (But have it usable in the compiled user application.) (Delphi does this by using the dynamic linking for the package the Delphi IDE uses, but this is of no concern when doing Lazarus.) That is why I suggest to avoid the Dongle code in the package altogether, and have it only dynamically linked late (on request, which only is supposed top occur with the user application). -Michael From pascaldragon at googlemail.com Tue Jun 12 17:08:31 2018 From: pascaldragon at googlemail.com (Sven Barth) Date: Tue, 12 Jun 2018 17:08:31 +0200 Subject: [Lazarus] Using a component OBJ file in Lazarus? In-Reply-To: <96f49d4e-ef4a-7175-e5e0-9ae004d41db1@lumino.de> References: <20180610125842.2b48ee56@limapholos.matflo.wg> <1o4qhd9116u9vv40rej92jic3aau1t10qt@4ax.com> <20180610145911.4a5bbfc5@limapholos.matflo.wg> <898qhddb0a82k0n8584qdf0p16akcdci2l@4ax.com> <8c2f8ddd-41fc-ae11-3c27-000a9e728824@lumino.de> <2e26971a-27e8-c130-0a80-504fe550ee29@lumino.de> <6deffba1-5d93-0eb9-93c5-0b273ebf9823@lumino.de> <96f49d4e-ef4a-7175-e5e0-9ae004d41db1@lumino.de> Message-ID: Michael Schnell via Lazarus schrieb am Di., 12. Juni 2018, 15:25: > On 12.06.2018 14:06, Sven Barth via Lazarus wrote: > > The dongle code would also be linked if it would be in a dynamic > > package and Lazarus would support them. > Sorry, I seem not to be have been clear. > > The (potential) problem I want to provide a solution for is: not to link > the Dongle code in the Lazarus IDE executable. (But have it usable in > the compiled user application.) > (Delphi does this by using the dynamic linking for the package the > Delphi IDE uses, but this is of no concern when doing Lazarus.) > No. Delphi does *not* solve this by using dynamic linking. If a package is installed in the IDE (no matter whether it is Delphi or Lazarus) its code becomes part of the running process (for Delphi when the package is loaded at IDE start, for Lazarus during compilation and linking). The execution of the dongle code is only prevented if the developer of the component checked whether the design mode is active and does not execute the dongle code in that case (or the component is not used, because a project is loaded that does not use the component). Regards, Sven -------------- next part -------------- An HTML attachment was scrubbed... URL: From mschnell at lumino.de Wed Jun 13 10:29:05 2018 From: mschnell at lumino.de (Michael Schnell) Date: Wed, 13 Jun 2018 10:29:05 +0200 Subject: [Lazarus] Using a component OBJ file in Lazarus? In-Reply-To: References: <20180610125842.2b48ee56@limapholos.matflo.wg> <1o4qhd9116u9vv40rej92jic3aau1t10qt@4ax.com> <20180610145911.4a5bbfc5@limapholos.matflo.wg> <898qhddb0a82k0n8584qdf0p16akcdci2l@4ax.com> <8c2f8ddd-41fc-ae11-3c27-000a9e728824@lumino.de> <2e26971a-27e8-c130-0a80-504fe550ee29@lumino.de> <6deffba1-5d93-0eb9-93c5-0b273ebf9823@lumino.de> <96f49d4e-ef4a-7175-e5e0-9ae004d41db1@lumino.de> Message-ID: On 12.06.2018 17:08, Sven Barth via Lazarus wrote: > No. Delphi does *not* solve this by using dynamic linking. OK. I see. Thanks for pointing this out. Hence in such a (potentially problematic) case the suggested solution might be helpful even with Delphi. But as Bo's code seemingly works fin with Delphi, hopefully compiling the Dongle code into the Lazarus IDE will simply work as expected. -Michael From vojtech.cihak at atlas.cz Fri Jun 15 01:05:17 2018 From: vojtech.cihak at atlas.cz (=?utf-8?q?Vojt=C4=9Bch_=C4=8Cih=C3=A1k?=) Date: Fri, 15 Jun 2018 01:05:17 +0200 Subject: [Lazarus] =?utf-8?q?Can=27t_call_the_resource_compiler?= Message-ID: <20180615010517.D224EE18@atlas.cz> Hi,   I have often following message when I try to rebuild Lazarus from IDE:   lazarus.pp(167,1) Error: Can't call the resource compiler "/usr/local/bin/fpcres", switching to external mode   It happens ~last week with trunk: Lazarus 1.9.0 r58270M FPC 3.1.1 x86_64-linux-qt (or qt5).   There's no specific error message, caret is on the last line of lazarus.pp. Console also didn't show anything unusual; fpcres is on its place.   How can I solve it?   Thanks,   V. From vojtech.cihak at atlas.cz Fri Jun 15 01:59:00 2018 From: vojtech.cihak at atlas.cz (=?utf-8?q?Vojt=C4=9Bch_=C4=8Cih=C3=A1k?=) Date: Fri, 15 Jun 2018 01:59:00 +0200 Subject: [Lazarus] =?utf-8?q?Can=27t_call_the_resource_compiler?= In-Reply-To: 000000008c7900018d54017a503a References: 000000008c7900018d54017a503a Message-ID: <20180615015900.D2809BEE@atlas.cz> Hi,   now I recompiled successfully after update to Lazarus 1.9.0 r58277M FPC 3.1.1 x86_64-linux-qt   I see many updates related to lazdebuggers. May it be related?   Thanks,   V. ______________________________________________________________ > Od: Vojtěch Čihák via Lazarus > Komu: Lazarus mailing list > Datum: 15.06.2018 01:05 > Předmět: [Lazarus] Can't call the resource compiler > Hi,   I have often following message when I try to rebuild Lazarus from IDE:   lazarus.pp(167,1) Error: Can't call the resource compiler "/usr/local/bin/fpcres", switching to external mode   It happens ~last week with trunk: Lazarus 1.9.0 r58270M FPC 3.1.1 x86_64-linux-qt (or qt5).   There's no specific error message, caret is on the last line of lazarus.pp. Console also didn't show anything unusual; fpcres is on its place.   How can I solve it?   Thanks,   V. -- _______________________________________________ Lazarus mailing list Lazarus at lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus -------------- next part -------------- An HTML attachment was scrubbed... URL: From lazarus at mfriebe.de Fri Jun 15 02:13:51 2018 From: lazarus at mfriebe.de (Martin Frb) Date: Fri, 15 Jun 2018 02:13:51 +0200 Subject: [Lazarus] Can't call the resource compiler In-Reply-To: <20180615015900.D2809BEE@atlas.cz> References: <20180615015900.D2809BEE@atlas.cz> Message-ID: On 15/06/2018 01:59, Vojtěch Čihák via Lazarus wrote: > > Hi, > > now I recompiled successfully after update to Lazarus 1.9.0 r58277M > FPC 3.1.1 x86_64-linux-qt > > I see many updates related to lazdebuggers. May it be related? > > Unlikely, the debugger has nothing to do with calling fpcres -------------- next part -------------- An HTML attachment was scrubbed... URL: From terry at haimann.us Sun Jun 17 04:15:19 2018 From: terry at haimann.us (Terry A. Haimann) Date: Sat, 16 Jun 2018 21:15:19 -0500 Subject: [Lazarus] I am trying to install zeosdbo onto my Lazarus install Message-ID: <1529201719.1081.1.camel@haimann.us> I am trying to install zeosdbo onto my Lazarus install and am getting the following error during the rebuild: Build IDE: Exit code 512, Errors: 1 lazarus.pp(1,1) Fatal: Cannot find aarrebase used by Lazarus. Check if package aarrebase creates aarrebase.ppu, check nothing deletes this file and check that no two packages have access to the unit source.. Lazarus version: Lazarus 1.8.2+dfsg-3 rDebian package 1.8.2+dfsg-3 FPC 3.0.4 x86_64-linux-gtk2 This was installed from apt-get for Ubuntu 18.04 This was using: ZEOSDBO-7.1.3a-stable.zip From aaa5500 at ya.ru Tue Jun 19 13:05:34 2018 From: aaa5500 at ya.ru (AlexeyT) Date: Tue, 19 Jun 2018 14:05:34 +0300 Subject: [Lazarus] Cannot make IDE after patch for "uses GraphType" Message-ID: <82827f0a-dce4-e76b-8206-286ef37268e3@ya.ru> checklst.pas(24,46) Fatal: Cannot find GraphType used by CheckLst, incompatible ppu=/home/user/lazarus/components/lazutils/lib/x86_64-linux/graphtype.ppu, multiple packages: LazUtils, LCLBase maybe it's some bug? i just updated from trunk. and used "svn revert -R ." -- Regards, Alexey From tomas.emresz at strankysnadno.cz Tue Jun 19 13:09:28 2018 From: tomas.emresz at strankysnadno.cz (=?windows-1250?Q?Tom=E1=9A_Emresz?=) Date: Tue, 19 Jun 2018 13:09:28 +0200 Subject: [Lazarus] Multilang application and syncing .po files Message-ID: <724833260.20180619130928@strankysnadno.cz> Hello, i have done generating .po files, could translate it through PoEdit, but - when i add some RS or component, Lazarus update only main .po file, not .cs.po etc. So could Lazarus update these files too, or is there any merge tool for this ? Of course, I understand, that I must translate this string after, but this time, I sync this files manually, which is bad. Any idea ? -- Tomáš Emresz mailto:tomas.emresz at strankysnadno.cz From lazarus at kluug.net Tue Jun 19 13:15:33 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Tue, 19 Jun 2018 13:15:33 +0200 Subject: [Lazarus] Cannot make IDE after patch for "uses GraphType" In-Reply-To: <82827f0a-dce4-e76b-8206-286ef37268e3@ya.ru> References: <82827f0a-dce4-e76b-8206-286ef37268e3@ya.ru> Message-ID: <1d0ea48a-a1bc-c088-b70e-e12b5c0e29e8@kluug.net> On 19.06.2018 13:05, AlexeyT via Lazarus wrote: > checklst.pas(24,46) Fatal: Cannot find GraphType used by CheckLst, > incompatible > ppu=/home/user/lazarus/components/lazutils/lib/x86_64-linux/graphtype.ppu, > multiple packages: LazUtils, LCLBase > > maybe it's some bug? i just updated from trunk. and used "svn revert > -R ." > Do clean all. Ondrej From robin.listas at telefonica.net Tue Jun 19 13:37:14 2018 From: robin.listas at telefonica.net (Carlos E. R.) Date: Tue, 19 Jun 2018 13:37:14 +0200 Subject: [Lazarus] Multilang application and syncing .po files In-Reply-To: <724833260.20180619130928@strankysnadno.cz> References: <724833260.20180619130928@strankysnadno.cz> Message-ID: On 2018-06-19 13:09, Tomáš Emresz via Lazarus wrote: > Hello, > > i have done generating .po files, could translate it through PoEdit, > but - when i add some RS or component, Lazarus update only main .po > file, not .cs.po etc. So could Lazarus update these files too, or is > there any merge tool for this ? Of course, I understand, that I must > translate this string after, but this time, I sync this files > manually, which is bad. > > Any idea ? I'll answer as translator, I do not yet know how Lazarus handles this. The programmer should only change the .pot files. There are other tools that propagate the changes in the .pot to the .po files, which can be used by the programmer (in the Makefile) or the translators, using "msgmerge". For example, a translator could do: msgmerge --previous --no-wrap --force-po \ -U $POFILE -C ../memory.es.po $POTFILE msgfmt --check --stat $POFILE rm messages.mo The translator has access to previous translations and memory files to do fuzzy automatic translations which you probably as programmer can't. The programmer could do: msgmerge --previous --no-wrap --force-po -U $POFILE $POTFILE msgfmt --check --stat $POFILE rm messages.mo Notice the missing memory file (and repeat for each language) A sample script as programmer, for all languages: #!/bin/bash for FILES in `ls *.po` ; do echo echo $FILES "-------------------------------------------------------------" echo F=`basename $FILES .po` FF=`basename $F .es` POFILE=$FF.es.po POTFILE=../../00-pot/$FF.pot if test -f $POFILE -a -f $POTFILE; then echo Applying msgmerge to $POFILE msgmerge --previous --no-wrap --force-po -U $POFILE $POTFILE msgfmt --check --stat $POFILE rm messages.mo else echo "Not found: " $POFILE or $POTFILE fi || { echo "msgmerge --no-wrap --force-po for \"$POTFILE\" failed" ; } done Of course, you'd have to adapt paths to your situation. -- Cheers / Saludos, Carlos E. R. (from 42.3 x86_64 "Malachite" at Telcontar) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: From tomas.emresz at strankysnadno.cz Tue Jun 19 13:43:13 2018 From: tomas.emresz at strankysnadno.cz (=?utf-8?Q?Tom=C3=A1=C5=A1_Emresz?=) Date: Tue, 19 Jun 2018 13:43:13 +0200 Subject: [Lazarus] Multilang application and syncing .po files In-Reply-To: References: <724833260.20180619130928@strankysnadno.cz> Message-ID: <303540261.20180619134313@strankysnadno.cz> Hello, thanks for long answer, but - Lazarus generate only .po file ( and .lrs in output directory). There is no .pot file. T.E. úterý 19. června 2018, 13:37:14, napsal jste: > On 2018-06-19 13:09, Tomáš Emresz via Lazarus wrote: >> Hello, >> >> i have done generating .po files, could translate it through PoEdit, >> but - when i add some RS or component, Lazarus update only main .po >> file, not .cs.po etc. So could Lazarus update these files too, or is >> there any merge tool for this ? Of course, I understand, that I must >> translate this string after, but this time, I sync this files >> manually, which is bad. >> >> Any idea ? > I'll answer as translator, I do not yet know how Lazarus handles this. > The programmer should only change the .pot files. > There are other tools that propagate the changes in the .pot to the > .po files, which can be used by the programmer (in the Makefile) or > the translators, using "msgmerge". > For example, a translator could do: > msgmerge --previous --no-wrap --force-po \ > -U $POFILE -C ../memory.es.po $POTFILE > msgfmt --check --stat $POFILE > rm messages.mo > The translator has access to previous translations and memory files > to do fuzzy automatic translations which you probably as programmer can't. > The programmer could do: > msgmerge --previous --no-wrap --force-po -U $POFILE $POTFILE > msgfmt --check --stat $POFILE > rm messages.mo > Notice the missing memory file > (and repeat for each language) > A sample script as programmer, for all languages: > #!/bin/bash > for FILES in `ls *.po` ; > do > echo > echo $FILES > "-------------------------------------------------------------" > echo > F=`basename $FILES .po` > FF=`basename $F .es` > POFILE=$FF.es.po > POTFILE=../../00-pot/$FF.pot > if test -f $POFILE -a -f $POTFILE; then > echo Applying msgmerge to $POFILE > msgmerge --previous --no-wrap --force-po -U $POFILE $POTFILE > msgfmt --check --stat $POFILE > rm messages.mo > else > echo "Not found: " $POFILE or $POTFILE > fi || { echo "msgmerge --no-wrap --force-po for \"$POTFILE\" failed" ; } > done > Of course, you'd have to adapt paths to your situation. -- S pozdravem, Tomáš Emresz mailto:tomas.emresz at strankysnadno.cz From ganmax at narod.ru Tue Jun 19 13:45:53 2018 From: ganmax at narod.ru (Maxim Ganetsky) Date: Tue, 19 Jun 2018 14:45:53 +0300 Subject: [Lazarus] Multilang application and syncing .po files In-Reply-To: <724833260.20180619130928@strankysnadno.cz> References: <724833260.20180619130928@strankysnadno.cz> Message-ID: 19.06.2018 14:09, Tomáš Emresz via Lazarus пишет: > Hello, > > i have done generating .po files, could translate it through PoEdit, > but - when i add some RS or component, Lazarus update only main .po > file, not .cs.po etc. So could Lazarus update these files too, or is > there any merge tool for this ? Of course, I understand, that I must > translate this string after, but this time, I sync this files > manually, which is bad. > > Any idea ? Which Lazarus version, OS? Lazarus does update translations together with main .po file. Make sure that your antivirus does not block writing to them (look at dates/times of translation files, if e.g. the half of them have the same date/time after update and the others not, this is antivirus). Note that you can sync translations with main .po file manually using \tools\updatepofiles tool: updatepofiles mainpofile.po -- Best regards, Maxim Ganetsky mailto:ganmax at narod.ru From ganmax at narod.ru Tue Jun 19 13:51:04 2018 From: ganmax at narod.ru (Maxim Ganetsky) Date: Tue, 19 Jun 2018 14:51:04 +0300 Subject: [Lazarus] Multilang application and syncing .po files In-Reply-To: References: <724833260.20180619130928@strankysnadno.cz> Message-ID: <1eb8451e-f028-c1e5-7bc0-87fa35eec01e@narod.ru> 19.06.2018 14:37, Carlos E. R. via Lazarus пишет: > On 2018-06-19 13:09, Tomáš Emresz via Lazarus wrote: >> Hello, >> >> i have done generating .po files, could translate it through PoEdit, >> but - when i add some RS or component, Lazarus update only main .po >> file, not .cs.po etc. So could Lazarus update these files too, or is >> there any merge tool for this ? Of course, I understand, that I must >> translate this string after, but this time, I sync this files >> manually, which is bad. >> >> Any idea ? > > I'll answer as translator, I do not yet know how Lazarus handles this. > > The programmer should only change the .pot files. Lazarus handles all this itself. Main .po file is actually is what you mean by .pot (historically it has .po extension instead of .pot). -- Best regards, Maxim Ganetsky mailto:ganmax at narod.ru From tomas.emresz at strankysnadno.cz Tue Jun 19 13:55:03 2018 From: tomas.emresz at strankysnadno.cz (=?utf-8?Q?Tom=C3=A1=C5=A1_Emresz?=) Date: Tue, 19 Jun 2018 13:55:03 +0200 Subject: [Lazarus] Multilang application and syncing .po files In-Reply-To: References: <724833260.20180619130928@strankysnadno.cz> Message-ID: <1922825948.20180619135503@strankysnadno.cz> Hello, lazarus 1.8.5 (fixes) Date : 2018-06-14 FPC: 3.0.5 SVN: 58067 i386-win32-win32/win63 Running on Windows 10 CZ Pro. In some unit a have added LCLTranslator, setup i18n in project config with right path, so components and resouceestrings showed in po. When I add new, there is in main xxx.po file. Lang I switching with : SetDefaultLang('','langs\'); in lpr on first line after begin. Should I say Lazarus, that there is also xxx.cs.po (next will be xxx.de.po etc) files or it should detect it in this directory ? Many thanks T.E. úterý 19. června 2018, 13:45:53, napsal jste: > 19.06.2018 14:09, Tomáš Emresz via Lazarus пишет: >> Hello, >> >> i have done generating .po files, could translate it through PoEdit, >> but - when i add some RS or component, Lazarus update only main .po >> file, not .cs.po etc. So could Lazarus update these files too, or is >> there any merge tool for this ? Of course, I understand, that I must >> translate this string after, but this time, I sync this files >> manually, which is bad. >> >> Any idea ? > Which Lazarus version, OS? > Lazarus does update translations together with main .po file. Make sure > that your antivirus does not block writing to them (look at dates/times > of translation files, if e.g. the half of them have the same date/time > after update and the others not, this is antivirus). > Note that you can sync translations with main .po file manually using > \tools\updatepofiles tool: > updatepofiles mainpofile.po > -- > Best regards, > Maxim Ganetsky mailto:ganmax at narod.ru -- S pozdravem, Tomáš Emresz mailto:tomas.emresz at strankysnadno.cz From ganmax at narod.ru Tue Jun 19 14:04:29 2018 From: ganmax at narod.ru (Maxim Ganetsky) Date: Tue, 19 Jun 2018 15:04:29 +0300 Subject: [Lazarus] Multilang application and syncing .po files In-Reply-To: <1922825948.20180619135503@strankysnadno.cz> References: <724833260.20180619130928@strankysnadno.cz> <1922825948.20180619135503@strankysnadno.cz> Message-ID: 19.06.2018 14:55, Tomáš Emresz via Lazarus пишет: > Hello, > > lazarus 1.8.5 (fixes) > Date : 2018-06-14 > FPC: 3.0.5 > SVN: 58067 > i386-win32-win32/win63 > > Running on Windows 10 CZ Pro. > > In some unit a have added LCLTranslator, setup i18n in project config > with right path, so components and resouceestrings > showed in po. When I add new, there is in main xxx.po file. > > Lang I switching with : > SetDefaultLang('','langs\'); > in lpr on first line after begin. > > Should I say Lazarus, that there is also xxx.cs.po (next will be > xxx.de.po etc) files or it should detect it in this directory ? No, Lazarus will find all of them automatically. Note that Lazarus will update translations only when main .po file is changed (i.e. you made changes to resource strings in code). So in case you place to your directory outdated translation when your main .po file is already up to date, you should use updatepofiles tool, which will update it. -- Best regards, Maxim Ganetsky mailto:ganmax at narod.ru From robin.listas at telefonica.net Tue Jun 19 14:12:54 2018 From: robin.listas at telefonica.net (Carlos E. R.) Date: Tue, 19 Jun 2018 14:12:54 +0200 Subject: [Lazarus] Multilang application and syncing .po files In-Reply-To: <1eb8451e-f028-c1e5-7bc0-87fa35eec01e@narod.ru> References: <724833260.20180619130928@strankysnadno.cz> <1eb8451e-f028-c1e5-7bc0-87fa35eec01e@narod.ru> Message-ID: <9a490de9-234b-6f57-68c8-d9451cd931ca@telefonica.net> On 2018-06-19 13:51, Maxim Ganetsky via Lazarus wrote: > > > 19.06.2018 14:37, Carlos E. R. via Lazarus пишет: >> On 2018-06-19 13:09, Tomáš Emresz via Lazarus wrote: >>> Hello, >>> >>> i have done generating .po files, could translate it through PoEdit, >>> but - when i add some RS or component, Lazarus update only main .po >>> file, not .cs.po etc. So could Lazarus update these files too, or is >>> there any merge tool for this ? Of course, I understand, that I must >>> translate this string after, but this time, I sync this files >>> manually, which is bad. >>> >>> Any idea ? >> >> I'll answer as translator, I do not yet know how Lazarus handles this. >> >> The programmer should only change the .pot files. > > Lazarus handles all this itself. Main .po file is actually is what you > mean by .pot (historically it has .po extension instead of .pot). Well, IMHO that is wrong. The .pot file should contain all the messages without any translation, it is the master file. And the .po files are the translations, one per language. The .pot file is maintained by the programmers, the .po are maintained by the translators. Anyway, msgmerge can handle that situation, too. -- Cheers / Saludos, Carlos E. R. (from 42.3 x86_64 "Malachite" at Telcontar) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: From zbynek.fiala at gmail.com Tue Jun 19 14:49:16 2018 From: zbynek.fiala at gmail.com (=?utf-8?Q?Zbyn=C4=9Bk_Fiala?=) Date: Tue, 19 Jun 2018 14:49:16 +0200 Subject: [Lazarus] Multilang application and syncing .po files In-Reply-To: <9a490de9-234b-6f57-68c8-d9451cd931ca@telefonica.net> References: <724833260.20180619130928@strankysnadno.cz> <1eb8451e-f028-c1e5-7bc0-87fa35eec01e@narod.ru> <9a490de9-234b-6f57-68c8-d9451cd931ca@telefonica.net> Message-ID: <4A727DED-03F8-4712-B8CA-640EA703E2C5@gmail.com> Hello Tomáš, I used this approach several times https://github.com/alrieckert/lazarus/tree/master/examples/translation and it worked. For example here: https://github.com/zbyna/Media-Stub-Kodi-Creator/blob/2373ec4ff24bf124cb244eab07772e3cc81bee47/unit1.pas#L22 https://github.com/zbyna/Media-Stub-Kodi-Creator/blob/master/unit1.pas#L214 Zbyněk 19. 6. 2018 v 14:12, Carlos E. R. via Lazarus : >> On 2018-06-19 13:51, Maxim Ganetsky via Lazarus wrote: >> >> >> 19.06.2018 14:37, Carlos E. R. via Lazarus пишет: >>>> On 2018-06-19 13:09, Tomáš Emresz via Lazarus wrote: >>>> Hello, >>>> >>>> i have done generating .po files, could translate it through PoEdit, >>>> but - when i add some RS or component, Lazarus update only main .po >>>> file, not .cs.po etc. So could Lazarus update these files too, or is >>>> there any merge tool for this ? Of course, I understand, that I must >>>> translate this string after, but this time, I sync this files >>>> manually, which is bad. >>>> >>>> Any idea ? >>> >>> I'll answer as translator, I do not yet know how Lazarus handles this. >>> >>> The programmer should only change the .pot files. >> >> Lazarus handles all this itself. Main .po file is actually is what you >> mean by .pot (historically it has .po extension instead of .pot). > > Well, IMHO that is wrong. > > The .pot file should contain all the messages without any translation, > it is the master file. And the .po files are the translations, one per > language. The .pot file is maintained by the programmers, the .po are > maintained by the translators. > > Anyway, msgmerge can handle that situation, too. > > > -- > Cheers / Saludos, > > Carlos E. R. > (from 42.3 x86_64 "Malachite" at Telcontar) > > -- > _______________________________________________ > Lazarus mailing list > Lazarus at lists.lazarus-ide.org > https://lists.lazarus-ide.org/listinfo/lazarus -------------- next part -------------- An HTML attachment was scrubbed... URL: From tomas.emresz at strankysnadno.cz Tue Jun 19 15:26:03 2018 From: tomas.emresz at strankysnadno.cz (=?utf-8?Q?Tom=C3=A1=C5=A1_Emresz?=) Date: Tue, 19 Jun 2018 15:26:03 +0200 Subject: [Lazarus] Multilang application and syncing .po files In-Reply-To: References: <724833260.20180619130928@strankysnadno.cz> <1922825948.20180619135503@strankysnadno.cz> Message-ID: <1055158477.20180619152603@strankysnadno.cz> Hello, i was searching for, changing something and I don't understand. When I add force update po on next compile, change showed only in .cs.po (main .po was not changed). When I add some resoucestrings to unit (not form), this RS is not somewhere (I also tried force update .po). Antivir is disabled. tool updatepofiles (in other directory for test) did nothing (and needs admin access (drive D, user could write in this directory). T.E. úterý 19. června 2018, 14:04:29, napsal jste: > 19.06.2018 14:55, Tomáš Emresz via Lazarus пишет: >> Hello, >> >> lazarus 1.8.5 (fixes) >> Date : 2018-06-14 >> FPC: 3.0.5 >> SVN: 58067 >> i386-win32-win32/win63 >> >> Running on Windows 10 CZ Pro. >> >> In some unit a have added LCLTranslator, setup i18n in project config >> with right path, so components and resouceestrings >> showed in po. When I add new, there is in main xxx.po file. >> >> Lang I switching with : >> SetDefaultLang('','langs\'); >> in lpr on first line after begin. >> >> Should I say Lazarus, that there is also xxx.cs.po (next will be >> xxx.de.po etc) files or it should detect it in this directory ? > No, Lazarus will find all of them automatically. > Note that Lazarus will update translations only when main .po file is > changed (i.e. you made changes to resource strings in code). So in case > you place to your directory outdated translation when your main .po file > is already up to date, you should use updatepofiles tool, which will > update it. > -- > Best regards, > Maxim Ganetsky mailto:ganmax at narod.ru -- S pozdravem, Tomáš Emresz mailto:tomas.emresz at strankysnadno.cz From ganmax at narod.ru Tue Jun 19 16:14:01 2018 From: ganmax at narod.ru (Maxim Ganetsky) Date: Tue, 19 Jun 2018 17:14:01 +0300 Subject: [Lazarus] Multilang application and syncing .po files In-Reply-To: <1055158477.20180619152603@strankysnadno.cz> References: <724833260.20180619130928@strankysnadno.cz> <1922825948.20180619135503@strankysnadno.cz> <1055158477.20180619152603@strankysnadno.cz> Message-ID: <82c86f09-ef00-e71b-e491-19fc8cb93831@narod.ru> 19.06.2018 16:26, Tomáš Emresz via Lazarus пишет: > Hello, > > i was searching for, changing something and I don't understand. When I > add force update po on next compile, change showed only in .cs.po > (main .po was not changed). Therefore only .cs.po was outdated. > When I add some resoucestrings to unit > (not form), this RS is not somewhere (I also tried force update .po). Is this unit part of project? Please check in Project Inspector. > Antivir is disabled. > > tool updatepofiles (in other directory for test) did nothing (and > needs admin access (drive D, user could write in this directory). -- Best regards, Maxim Ganetsky mailto:ganmax at narod.ru From vojtech.cihak at atlas.cz Tue Jun 19 16:57:11 2018 From: vojtech.cihak at atlas.cz (=?utf-8?q?Vojt=C4=9Bch_=C4=8Cih=C3=A1k?=) Date: Tue, 19 Jun 2018 16:57:11 +0200 Subject: [Lazarus] =?utf-8?q?CodeTools_commands_question?= Message-ID: <20180619165711.F00EA7FA@atlas.cz> Hi,   is there a CodeTool command that can take me directly to procedure/method implementation?   Example:   function TTreeNode.GetTop: integer; begin   if TreeView <> nil then     TreeView.UpdateAllTops|;  //<-- caret is HERE   Result := FTop; end;     by default, Ctrl+Shift+Up and Ctrl+Shift+Down jump between declaration and implementation of TTreeNode.GetTop; Alt+Up takes me to declaration of TTreeNode.UpdateAllTops; and Ctrl+Shift+Up/Down takes me to its implementation.   I'm looking for a way to get to implementation of UpdateAllTops directly ( Alt+Down would be nice ).   Thank you,   V. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nc-gaertnma at netcologne.de Tue Jun 19 17:05:43 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Tue, 19 Jun 2018 17:05:43 +0200 Subject: [Lazarus] CodeTools commands question In-Reply-To: <20180619165711.F00EA7FA@atlas.cz> References: <20180619165711.F00EA7FA@atlas.cz> Message-ID: <20180619170543.16d66893@limapholos.matflo.wg> On Tue, 19 Jun 2018 16:57:11 +0200 Vojtěch Čihák via Lazarus wrote: >[...] Hi, >   > is there a CodeTool command that can take me directly to procedure/method implementation? >   > Example: >   > function TTreeNode.GetTop: integer; > begin >   if TreeView <> nil then >     TreeView.UpdateAllTops|;  //<-- caret is HERE >   Result := FTop; > end;   >   > by default, Ctrl+Shift+Up and Ctrl+Shift+Down jump between declaration and implementation of TTreeNode.GetTop; > Alt+Up takes me to declaration of TTreeNode.UpdateAllTops; and Ctrl+Shift+Up/Down takes me to its implementation. >   > I'm looking for a way to get to implementation of UpdateAllTops directly ( Alt+Down would be nice ). Maybe this option helps: "Jump directly to method body" http://wiki.lazarus.freepascal.org/IDE_Window:_Codetools_Options#Jumping_.28e.g._Method_Jumping.29 Mattias From vojtech.cihak at atlas.cz Tue Jun 19 19:22:45 2018 From: vojtech.cihak at atlas.cz (=?utf-8?q?Vojt=C4=9Bch_=C4=8Cih=C3=A1k?=) Date: Tue, 19 Jun 2018 19:22:45 +0200 Subject: [Lazarus] =?utf-8?q?CodeTools_commands_question?= In-Reply-To: 000000008ca100019874017b5034 References: <20180619165711.F00EA7FA@atlas.cz> 000000008ca100019874017b5034 Message-ID: <20180619192245.903F141F@atlas.cz> Thanks, it works.   Still, it would be nice to have two separate actions for this, Alt+Up and At+Down.   V. ______________________________________________________________ > Od: Mattias Gaertner via Lazarus > Komu: lazarus at lists.lazarus-ide.org > Datum: 19.06.2018 17:05 > Předmět: Re: [Lazarus] CodeTools commands question > On Tue, 19 Jun 2018 16:57:11 +0200 Vojtěch Čihák via Lazarus wrote: Maybe this option helps: "Jump directly to method body" http://wiki.lazarus.freepascal.org/IDE_Window:_Codetools_Options#Jumping_.28e.g._Method_Jumping.29 Mattias -- _______________________________________________ Lazarus mailing list Lazarus at lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus -------------- next part -------------- An HTML attachment was scrubbed... URL: From lazarus at kluug.net Tue Jun 19 19:26:51 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Tue, 19 Jun 2018 19:26:51 +0200 Subject: [Lazarus] CodeTools commands question In-Reply-To: <20180619192245.903F141F@atlas.cz> References: <20180619165711.F00EA7FA@atlas.cz> <20180619192245.903F141F@atlas.cz> Message-ID: On 19.06.2018 19:22, Vojtěch Čihák via Lazarus wrote: > Still, it would be nice to have two separate actions for this, Alt+Up > and At+Down. I agree. But there is one problem: what to do with Ctrl+Click? AFAIK Lazarus IDE cannot change mouse mappings, only key mappings. Or am I wrong? Ondrej From lazarus at mfriebe.de Tue Jun 19 19:42:09 2018 From: lazarus at mfriebe.de (Martin Frb) Date: Tue, 19 Jun 2018 19:42:09 +0200 Subject: [Lazarus] CodeTools commands question In-Reply-To: References: <20180619165711.F00EA7FA@atlas.cz> <20180619192245.903F141F@atlas.cz> Message-ID: On 19/06/2018 19:26, Ondrej Pokorny via Lazarus wrote: > On 19.06.2018 19:22, Vojtěch Čihák via Lazarus wrote: >> Still, it would be nice to have two separate actions for this, Alt+Up >> and At+Down. > > I agree. But there is one problem: what to do with Ctrl+Click? AFAIK > Lazarus IDE cannot change mouse mappings, only key mappings. Or am I > wrong? > > Ondrej There is a whole config for the mouse. If we have the action, we can add it to the choice of things that can be assigned to mouse buttons. From lazarus at kluug.net Tue Jun 19 19:53:36 2018 From: lazarus at kluug.net (Ondrej Pokorny) Date: Tue, 19 Jun 2018 19:53:36 +0200 Subject: [Lazarus] CodeTools commands question In-Reply-To: References: <20180619165711.F00EA7FA@atlas.cz> <20180619192245.903F141F@atlas.cz> Message-ID: <3c07004f-fc5a-6e37-6f55-811a6b2b1dae@kluug.net> On 19.06.2018 19:42, Martin Frb via Lazarus wrote: > On 19/06/2018 19:26, Ondrej Pokorny via Lazarus wrote: >> On 19.06.2018 19:22, Vojtěch Čihák via Lazarus wrote: >>> Still, it would be nice to have two separate actions for this, >>> Alt+Up and At+Down. >> >> I agree. But there is one problem: what to do with Ctrl+Click? AFAIK >> Lazarus IDE cannot change mouse mappings, only key mappings. Or am I >> wrong? > There is a whole config for the mouse. > > If we have the action, we can add it to the choice of things that can > be assigned to mouse buttons. Great, I forgot about it. Then - what myself concerns - the option can be deleted and the command can be split into two: 1.) find declaration 2.) find declaration & jump to implementation Btw. the mouse command is named "jump to implementation", which is wrong. Ondrej From tomas.emresz at strankysnadno.cz Tue Jun 19 20:07:09 2018 From: tomas.emresz at strankysnadno.cz (=?utf-8?Q?Tom=C3=A1=C5=A1_Emresz?=) Date: Tue, 19 Jun 2018 20:07:09 +0200 Subject: [Lazarus] Multilang application and syncing .po files In-Reply-To: <82c86f09-ef00-e71b-e491-19fc8cb93831@narod.ru> References: <724833260.20180619130928@strankysnadno.cz> <1922825948.20180619135503@strankysnadno.cz> <1055158477.20180619152603@strankysnadno.cz> <82c86f09-ef00-e71b-e491-19fc8cb93831@narod.ru> Message-ID: <1185126457.20180619200709@strankysnadno.cz> Hello, úterý 19. června 2018, 16:14:01, napsal jste: > 19.06.2018 16:26, Tomáš Emresz via Lazarus пишет: >> Hello, >> >> i was searching for, changing something and I don't understand. When I >> add force update po on next compile, change showed only in .cs.po >> (main .po was not changed). > Therefore only .cs.po was outdated. Please, what do you exactly mean by this ? (in xxx.po there is no this RS. This new RS was added only to xxx.cs.po but xxx.po was not changed and is missing this RS) >> When I add some resoucestrings to unit >> (not form), this RS is not somewhere (I also tried force update .po). > Is this unit part of project? Please check in Project Inspector. Will check this, thanks.. >> Antivir is disabled. >> >> tool updatepofiles (in other directory for test) did nothing (and >> needs admin access (drive D, user could write in this directory). > -- > Best regards, > Maxim Ganetsky mailto:ganmax at narod.ru -- S pozdravem, Tomáš Emresz mailto:tomas.emresz at strankysnadno.cz From juha.manninen62 at gmail.com Tue Jun 19 21:06:47 2018 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Tue, 19 Jun 2018 22:06:47 +0300 Subject: [Lazarus] Cannot make IDE after patch for "uses GraphType" In-Reply-To: <82827f0a-dce4-e76b-8206-286ef37268e3@ya.ru> References: <82827f0a-dce4-e76b-8206-286ef37268e3@ya.ru> Message-ID: On Tue, Jun 19, 2018 at 2:05 PM AlexeyT via Lazarus wrote: > checklst.pas(24,46) Fatal: Cannot find GraphType used by CheckLst, > incompatible > ppu=/home/user/lazarus/components/lazutils/lib/x86_64-linux/graphtype.ppu, > multiple packages: LazUtils, LCLBase > > maybe it's some bug? i just updated from trunk. and used "svn revert -R ." A clean build helps as Ondrej replied. I wonder if you have not experienced such errors earlier during these years. A clean build has always been the solution. Maybe you just forgot it this time. Juha From ganmax at narod.ru Wed Jun 20 00:33:42 2018 From: ganmax at narod.ru (Maxim Ganetsky) Date: Wed, 20 Jun 2018 01:33:42 +0300 Subject: [Lazarus] Multilang application and syncing .po files In-Reply-To: <1185126457.20180619200709@strankysnadno.cz> References: <724833260.20180619130928@strankysnadno.cz> <1922825948.20180619135503@strankysnadno.cz> <1055158477.20180619152603@strankysnadno.cz> <82c86f09-ef00-e71b-e491-19fc8cb93831@narod.ru> <1185126457.20180619200709@strankysnadno.cz> Message-ID: <7a0e4195-533f-2d20-1526-e2fb3491c10d@narod.ru> 19.06.2018 21:07, Tomáš Emresz via Lazarus пишет: > Hello, > > úterý 19. června 2018, 16:14:01, napsal jste: >> 19.06.2018 16:26, Tomáš Emresz via Lazarus пишет: >>> Hello, >>> >>> i was searching for, changing something and I don't understand. When I >>> add force update po on next compile, change showed only in .cs.po >>> (main .po was not changed). > >> Therefore only .cs.po was outdated. > > Please, what do you exactly mean by this ? (in xxx.po there is no this > RS. This new RS was added only to xxx.cs.po but xxx.po was not changed > and is missing this RS) This is plain impossible. -- Best regards, Maxim Ganetsky mailto:ganmax at narod.ru From bo.berglund at gmail.com Wed Jun 20 07:54:31 2018 From: bo.berglund at gmail.com (Bo Berglund) Date: Wed, 20 Jun 2018 07:54:31 +0200 Subject: [Lazarus] Using a component OBJ file in Lazarus? References: <2e26971a-27e8-c130-0a80-504fe550ee29@lumino.de> <6deffba1-5d93-0eb9-93c5-0b273ebf9823@lumino.de> <96f49d4e-ef4a-7175-e5e0-9ae004d41db1@lumino.de> Message-ID: On Wed, 13 Jun 2018 10:29:05 +0200, Michael Schnell via Lazarus wrote: >On 12.06.2018 17:08, Sven Barth via Lazarus wrote: >> No. Delphi does *not* solve this by using dynamic linking. >OK. I see. Thanks for pointing this out. > >Hence in such a (potentially problematic) case the suggested solution >might be helpful even with Delphi. > >But as Bo's code seemingly works fin with Delphi, hopefully compiling >the Dongle code into the Lazarus IDE will simply work as expected. > I gave up on having the dongle as part of the IDE since simply creating the object in application code as needed is OK. It works in that setting so the OBJ file after conversion to CUFF format seems to be OK for the application even though Lazarus itself barfs at it. Not a real issue enymore. The concept of dropping a component on a form to use it is coming from when we started using Delphi a long time ago. And the non-visual components were dropped on a data module at the time. -- Bo Berglund Developer in Sweden From bo.berglund at gmail.com Wed Jun 20 07:59:59 2018 From: bo.berglund at gmail.com (Bo Berglund) Date: Wed, 20 Jun 2018 07:59:59 +0200 Subject: [Lazarus] Converting a component package Delphi->Lazarus using built-in converter? References: <9sclhdp0udbhn96p8i7g8mhvvobkm8ku70@4ax.com> <6f4fb3ec-9063-29e4-1bd1-660d5d510d3f@lumino.de> Message-ID: On Mon, 11 Jun 2018 10:13:21 +0200, Michael Schnell via Lazarus wrote: >On 08.06.2018 19:05, Bo Berglund via Lazarus wrote: >> This Delphi package is a collection of some 20 components and all of >> them have Register procedures inside of each source file. > >Are those really IDE-relevant packages (showing up in the visual >component selection ) ? No, not all of them. Some are just implemented as components for ease-of-use a very long time ago. They can then be dropped on a form and by magic the necessary settings to use them are added by the IDE. But they can be used by adding the specific uses clauses and search paths manually and created in code instead of having the IDE do it. >If not, they might be just Delphi "Runtime Packages" (a special kind of >DLLs that can be attached by Delphi executables). No runtimes, we always build everything into our exe files. -- Bo Berglund Developer in Sweden From tomas.emresz at strankysnadno.cz Wed Jun 20 15:30:52 2018 From: tomas.emresz at strankysnadno.cz (=?utf-8?Q?Tom=C3=A1=C5=A1_Emresz?=) Date: Wed, 20 Jun 2018 15:30:52 +0200 Subject: [Lazarus] Multilang application and syncing .po files In-Reply-To: <7a0e4195-533f-2d20-1526-e2fb3491c10d@narod.ru> References: <724833260.20180619130928@strankysnadno.cz> <1922825948.20180619135503@strankysnadno.cz> <1055158477.20180619152603@strankysnadno.cz> <82c86f09-ef00-e71b-e491-19fc8cb93831@narod.ru> <1185126457.20180619200709@strankysnadno.cz> <7a0e4195-533f-2d20-1526-e2fb3491c10d@narod.ru> Message-ID: <507795947.20180620153052@strankysnadno.cz> Hello, I have checked project inspector, and add some files to it. This time, all is good, both files are updated as needs. Other question is : is there any possibility to describe RS for PoEdit, like if it is caption on some components ? Something like this : resourcestring //Text when type of addres is Button rsButton = 'Button'; //Text in list of types rsListButton = 'Button'; ? Thanks T.E. středa 20. června 2018, 0:33:42, napsal jste: > 19.06.2018 21:07, Tomáš Emresz via Lazarus пишет: >> Hello, >> >> úterý 19. června 2018, 16:14:01, napsal jste: >>> 19.06.2018 16:26, Tomáš Emresz via Lazarus пишет: >>>> Hello, >>>> >>>> i was searching for, changing something and I don't understand. When I >>>> add force update po on next compile, change showed only in .cs.po >>>> (main .po was not changed). >> >>> Therefore only .cs.po was outdated. >> >> Please, what do you exactly mean by this ? (in xxx.po there is no this >> RS. This new RS was added only to xxx.cs.po but xxx.po was not changed >> and is missing this RS) > This is plain impossible. > -- > Best regards, > Maxim Ganetsky mailto:ganmax at narod.ru -- S pozdravem, Tomáš Emresz mailto:tomas.emresz at strankysnadno.cz From ganmax at narod.ru Wed Jun 20 16:24:50 2018 From: ganmax at narod.ru (Maxim Ganetsky) Date: Wed, 20 Jun 2018 17:24:50 +0300 Subject: [Lazarus] Multilang application and syncing .po files In-Reply-To: <507795947.20180620153052@strankysnadno.cz> References: <724833260.20180619130928@strankysnadno.cz> <1922825948.20180619135503@strankysnadno.cz> <1055158477.20180619152603@strankysnadno.cz> <82c86f09-ef00-e71b-e491-19fc8cb93831@narod.ru> <1185126457.20180619200709@strankysnadno.cz> <7a0e4195-533f-2d20-1526-e2fb3491c10d@narod.ru> <507795947.20180620153052@strankysnadno.cz> Message-ID: <1994b2ac-5acc-3327-8448-6e18495d7620@narod.ru> 20.06.2018 16:30, Tomáš Emresz via Lazarus пишет: > Hello, > > I have checked project inspector, and add some files to it. This time, > all is good, both files are updated as needs. Good. > Other question is : is there any possibility to describe RS for > PoEdit, like if it is caption on some components ? Something like this > : > > resourcestring > //Text when type of addres is Button > rsButton = 'Button'; > //Text in list of types > rsListButton = 'Button'; No, but you can use meaningful string identifier names, Poedit shows them. -- Best regards, Maxim Ganetsky mailto:ganmax at narod.ru From tomas.emresz at strankysnadno.cz Wed Jun 20 16:28:15 2018 From: tomas.emresz at strankysnadno.cz (=?utf-8?Q?Tom=C3=A1=C5=A1_Emresz?=) Date: Wed, 20 Jun 2018 16:28:15 +0200 Subject: [Lazarus] Multilang application and syncing .po files In-Reply-To: <1994b2ac-5acc-3327-8448-6e18495d7620@narod.ru> References: <724833260.20180619130928@strankysnadno.cz> <1922825948.20180619135503@strankysnadno.cz> <1055158477.20180619152603@strankysnadno.cz> <82c86f09-ef00-e71b-e491-19fc8cb93831@narod.ru> <1185126457.20180619200709@strankysnadno.cz> <7a0e4195-533f-2d20-1526-e2fb3491c10d@narod.ru> <507795947.20180620153052@strankysnadno.cz> <1994b2ac-5acc-3327-8448-6e18495d7620@narod.ru> Message-ID: <1271444751.20180620162815@strankysnadno.cz> Hello, thanks. T.E. středa 20. června 2018, 16:24:50, napsal jste: > 20.06.2018 16:30, Tomáš Emresz via Lazarus пишет: >> Hello, >> >> I have checked project inspector, and add some files to it. This time, >> all is good, both files are updated as needs. > Good. >> Other question is : is there any possibility to describe RS for >> PoEdit, like if it is caption on some components ? Something like this >> : >> >> resourcestring >> //Text when type of addres is Button >> rsButton = 'Button'; >> //Text in list of types >> rsListButton = 'Button'; > No, but you can use meaningful string identifier names, Poedit shows them. > -- > Best regards, > Maxim Ganetsky mailto:ganmax at narod.ru -- S pozdravem, Tomáš Emresz mailto:tomas.emresz at strankysnadno.cz From markMLl.lazarus at telemetry.co.uk Sat Jun 23 12:54:51 2018 From: markMLl.lazarus at telemetry.co.uk (Mark Morgan Lloyd) Date: Sat, 23 Jun 2018 10:54:51 +0000 Subject: [Lazarus] Lazarus IDE on Android (ARM and x86_64) Message-ID: I'm aware of http://wiki.lazarus.freepascal.org/Custom_Drawn_Interface/Android and assume it's fairly current, but could somebody give me a quick summary of where Lazarus is when it comes to running the IDE etc. on a tablet? I'm in a situation elsewhere where I need to compare notes with a Kotlin developer. I'm able to run i386 FPC using Termux on x86_64 Android, but more sophisticated programs appear to have problems because libpthread/libdl has been rebundled. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] From list2010 at BrenemanLabs.com Sun Jun 24 02:58:41 2018 From: list2010 at BrenemanLabs.com (Paul Breneman) Date: Sat, 23 Jun 2018 20:58:41 -0400 Subject: [Lazarus] Lazarus IDE on Android (ARM and x86_64) In-Reply-To: References: Message-ID: A couple of days ago I loaded UserLAnd on my Moto Z2 Android phone. I then loaded fpc and got fpc 3.0.0 loaded for AArch64. I have this web page started: www.turbocontrol.com/userland.htm Please try UserLAnd and report back how it works for you. Hopefully you will get a 64-bit Debian 9. On 06/23/2018 06:54 AM, Mark Morgan Lloyd via Lazarus wrote: > I'm aware of > http://wiki.lazarus.freepascal.org/Custom_Drawn_Interface/Android and > assume it's fairly current, but could somebody give me a quick summary > of where Lazarus is when it comes to running the IDE etc. on a tablet? > I'm in a situation elsewhere where I need to compare notes with a Kotlin > developer. > > I'm able to run i386 FPC using Termux on x86_64 Android, but more > sophisticated programs appear to have problems because libpthread/libdl > has been rebundled. > From ryan at thealchemistguild.com Sun Jun 24 06:49:26 2018 From: ryan at thealchemistguild.com (Ryan Joseph) Date: Sun, 24 Jun 2018 11:49:26 +0700 Subject: [Lazarus] 64 bit Cocoa package (Mac) Message-ID: <1AD2E54C-E5BA-4502-9771-1775EFB77746@thealchemistguild.com> I’ve been tasked to make a Lazarus package but I’m stuck in a loop trying to install it. Please note this is my first time using Lazarus. I’m able to create and compile the package but when I try to install (“save and rebuild IDE") it I’m stuck in a loop: 1) by setting the Tools > Options compiler path to ppc386 I can rebuild but I get symbol not found error because the framework I’m linking is 64 bit only. 1) If I set the compiler to ppcx64 I get the "Identifier not found “ATSUFindFontFromName”” error and never get to the building of the actual package. How can I get out of this loop? Apparently lazarus needs to compile the package and link everything but the IDE also demands I only build with the i386 compiler. Regards, Ryan Joseph From markMLl.lazarus at telemetry.co.uk Sun Jun 24 09:16:38 2018 From: markMLl.lazarus at telemetry.co.uk (Mark Morgan Lloyd) Date: Sun, 24 Jun 2018 07:16:38 +0000 Subject: [Lazarus] Lazarus IDE on Android (ARM and x86_64) In-Reply-To: References: Message-ID: On 24/06/18 01:00, Paul Breneman via Lazarus wrote: > A couple of days ago I loaded UserLAnd on my Moto Z2 Android phone.  I > then loaded fpc and got fpc 3.0.0 loaded for AArch64.  I have this web > page started:  www.turbocontrol.com/userland.htm > Please try UserLAnd and report back how it works for you.  Hopefully you > will get a 64-bit Debian 9. Console mode stuff is no problem, until one tries to use things like pthread. Yesterday I set up a makefile for a project that did and got bogged down with linkage errors, so it isn't simply that ld is hardcoding references to the wrong .so file. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] From mail at michael-ring.org Sun Jun 24 12:07:22 2018 From: mail at michael-ring.org (Michael Ring) Date: Sun, 24 Jun 2018 12:07:22 +0200 Subject: [Lazarus] Problem compiling trunk LazUtils Error: (11006) Illegal parameter: -vm6058 Message-ID: <83df34ab-85b2-20ea-3d73-dd60ae17efb8@michael-ring.org> I cannot build current lazarus trunk on MacOSX, 64bits, not sure if the problem is because of my build environment or not. I have successfully build lazarus for a very long time with the steps I do. When I rebuild lazarus I get this error message: Error: (11006) Illegal parameter: -vm6058 when compiling LazUtils. I can workarround the problem by removing the following lines from lazutils.lpk:                           I do not see an obvious problem in my buildsystem: lrwxr-xr-x  1 root  staff       23  4 Dez  2017 /usr/local/bin/ppc386 -> ../lib/fpc/3.0.4/ppc386 lrwxr-xr-x  1 root  staff       23  4 Dez  2017 /usr/local/bin/ppcx64 -> ../lib/fpc/3.0.4/ppcx64 lrwxr-xr-x  1 ring  staff  25 24 Jun 11:49 /usr/local/bin/lazbuild -> ../share/lazarus/lazbuild ppcx64 points to fpc 3.0.4 which is last official version so I guess all is fine. Any ideas? Michael Here's more detail on what I am doing: I first build lazarus with the following command: LCL_PLATFORM=cocoa CPU_TARGET=x86_64 COMPILERSWITCH="--compiler=ppcx64" make clean all CPU_TARGET=$CPU_TARGET LCL_PLATFORM=$LCL_PLATFORM OPT="-dLCLScaleForms -k'-framework' -k'ApplicationServices'" || exit 1 then I install lazarus to destination directory: sudo rm -rf /usr/local/share/lazarus sudo make install CPU_TARGET=$CPU_TARGET LCL_PLATFORM=$LCL_PLATFORM and then rebuild lazarus with lazbuild: sudo chown -R ring:staff /usr/local/share/lazarus lazbuild --build-ide= --ws=$LCL_PLATFORM --cpu=$CPU_TARGET $COMPILERSWITCH When rebuild starts I get this error message: Info: (lazarus) Execute Title="Compile package LazUtils 1.0" Info: (lazarus) Working Directory="/usr/local/share/lazarus/components/lazutils/" Info: (lazarus) Executable="/usr/local/bin/fpc" Info: (lazarus) Param[0]="-B" Info: (lazarus) Param[1]="-MObjFPC" Info: (lazarus) Param[2]="-Scghi" Info: (lazarus) Param[3]="-O1" Info: (lazarus) Param[4]="-gw" Info: (lazarus) Param[5]="-gl" Info: (lazarus) Param[6]="-l" Info: (lazarus) Param[7]="-vewnhibq" Info: (lazarus) Param[8]="-vm6058" Info: (lazarus) Param[9]="-Fu/usr/local/share/lazarus/packager/units/x86_64-darwin" Info: (lazarus) Param[10]="-Fu/usr/local/share/lazarus/components/lazutils/" Info: (lazarus) Param[11]="-FU/usr/local/share/lazarus/components/lazutils/lib/x86_64-darwin/" Info: (lazarus) Param[12]="-O2" Info: (lazarus) Param[13]="-g-" Info: (lazarus) Param[14]="-Xs" Info: (lazarus) Param[15]="lazutils.pas" Error: (11006) Illegal parameter: -vm6058 Hint: (11007) -? writes help pages Error: /usr/local/bin/ppcx64 returned an error exitcode From florian at freepascal.org Sun Jun 24 13:00:06 2018 From: florian at freepascal.org (=?UTF-8?Q?Florian_Kl=c3=a4mpfl?=) Date: Sun, 24 Jun 2018 13:00:06 +0200 Subject: [Lazarus] Problem compiling trunk LazUtils Error: (11006) Illegal parameter: -vm6058 In-Reply-To: <83df34ab-85b2-20ea-3d73-dd60ae17efb8@michael-ring.org> References: <83df34ab-85b2-20ea-3d73-dd60ae17efb8@michael-ring.org> Message-ID: Am 24.06.2018 um 12:07 schrieb Michael Ring via Lazarus: > I cannot build current lazarus trunk on MacOSX, 64bits, not sure if the problem is because of my build environment or not. > > I have successfully build lazarus for a very long time with the steps I do. > > > When I rebuild lazarus I get this error message: > > Error: (11006) Illegal parameter: -vm6058 > > when compiling LazUtils. > > > I can workarround the problem by removing the following lines from lazutils.lpk: > >         >           >         > > > I do not see an obvious problem in my buildsystem: > > lrwxr-xr-x  1 root  staff       23  4 Dez  2017 /usr/local/bin/ppc386 -> ../lib/fpc/3.0.4/ppc386 > lrwxr-xr-x  1 root  staff       23  4 Dez  2017 /usr/local/bin/ppcx64 -> ../lib/fpc/3.0.4/ppcx64 > > lrwxr-xr-x  1 ring  staff  25 24 Jun 11:49 /usr/local/bin/lazbuild -> ../share/lazarus/lazbuild > > ppcx64 points to fpc 3.0.4 which is last official version so I guess all is fine. > > Any ideas? This error message is 3.1.1+ only. From mail at michael-ring.org Sun Jun 24 19:59:46 2018 From: mail at michael-ring.org (Michael Ring) Date: Sun, 24 Jun 2018 19:59:46 +0200 Subject: [Lazarus] Problem compiling trunk LazUtils Error: (11006) Illegal parameter: -vm6058 In-Reply-To: References: <83df34ab-85b2-20ea-3d73-dd60ae17efb8@michael-ring.org> Message-ID: <67016ee4-d9ea-8a32-e1e9-7fe63a5089bf@michael-ring.org> Are you 100% sure that this message is 3.1.1+ only? Please look at the output below, the error is reported for /usr/local/bin/ppcx64, and when I do a version check on that file it returns 3.0.4 Error: (11006) Illegal parameter: -vm6058 Hint: (11007) -? writes help pages Error: /usr/local/bin/ppcx64 returned an error exitcode Error: (lazarus) Compile package LazUtils 1.0: stopped with exit code 256 /usr/local/bin/ppcx64 -iW 3.0.4 Am 24.06.18 um 13:00 schrieb Florian Klämpfl via Lazarus: > Am 24.06.2018 um 12:07 schrieb Michael Ring via Lazarus: >> I cannot build current lazarus trunk on MacOSX, 64bits, not sure if >> the problem is because of my build environment or not. >> >> I have successfully build lazarus for a very long time with the steps >> I do. >> >> >> When I rebuild lazarus I get this error message: >> >> Error: (11006) Illegal parameter: -vm6058 >> >> when compiling LazUtils. >> >> >> I can workarround the problem by removing the following lines from >> lazutils.lpk: >> >>          >>            >>          >> >> >> I do not see an obvious problem in my buildsystem: >> >> lrwxr-xr-x  1 root  staff       23  4 Dez  2017 /usr/local/bin/ppc386 >> -> ../lib/fpc/3.0.4/ppc386 >> lrwxr-xr-x  1 root  staff       23  4 Dez  2017 /usr/local/bin/ppcx64 >> -> ../lib/fpc/3.0.4/ppcx64 >> >> lrwxr-xr-x  1 ring  staff  25 24 Jun 11:49 /usr/local/bin/lazbuild -> >> ../share/lazarus/lazbuild >> >> ppcx64 points to fpc 3.0.4 which is last official version so I guess >> all is fine. >> >> Any ideas? > > This error message is 3.1.1+ only. > From bartjunk64 at gmail.com Sun Jun 24 20:12:08 2018 From: bartjunk64 at gmail.com (Bart) Date: Sun, 24 Jun 2018 20:12:08 +0200 Subject: [Lazarus] Problem compiling trunk LazUtils Error: (11006) Illegal parameter: -vm6058 In-Reply-To: <67016ee4-d9ea-8a32-e1e9-7fe63a5089bf@michael-ring.org> References: <83df34ab-85b2-20ea-3d73-dd60ae17efb8@michael-ring.org> <67016ee4-d9ea-8a32-e1e9-7fe63a5089bf@michael-ring.org> Message-ID: On Sun, Jun 24, 2018 at 7:59 PM, Michael Ring via Lazarus wrote: > Are you 100% sure that this message is 3.1.1+ only? He probably means that a message with id 6058 only exists in 3.1.1, so you cannot suppress it using -vm6058 in earlier versions? Bart From florian at freepascal.org Sun Jun 24 20:21:31 2018 From: florian at freepascal.org (=?UTF-8?Q?Florian_Kl=c3=a4mpfl?=) Date: Sun, 24 Jun 2018 20:21:31 +0200 Subject: [Lazarus] Problem compiling trunk LazUtils Error: (11006) Illegal parameter: -vm6058 In-Reply-To: References: <83df34ab-85b2-20ea-3d73-dd60ae17efb8@michael-ring.org> <67016ee4-d9ea-8a32-e1e9-7fe63a5089bf@michael-ring.org> Message-ID: <549451e7-d00d-a426-f740-32c8dabfb0bb@freepascal.org> Am 24.06.2018 um 20:12 schrieb Bart via Lazarus: > On Sun, Jun 24, 2018 at 7:59 PM, Michael Ring via Lazarus > wrote: > >> Are you 100% sure that this message is 3.1.1+ only? > > He probably means that a message with id 6058 only exists in 3.1.1, so > you cannot suppress it using -vm6058 in earlier versions? Yes. From nc-gaertnma at netcologne.de Sun Jun 24 23:04:23 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Sun, 24 Jun 2018 23:04:23 +0200 Subject: [Lazarus] Problem compiling trunk LazUtils Error: (11006) Illegal parameter: -vm6058 In-Reply-To: References: <83df34ab-85b2-20ea-3d73-dd60ae17efb8@michael-ring.org> Message-ID: <20180624230423.519d0124@limapholos.matflo.wg> On Sun, 24 Jun 2018 13:00:06 +0200 Florian Klämpfl via Lazarus wrote: >[...] > > Error: (11006) Illegal parameter: -vm6058 > > > > when compiling LazUtils. >[...] > This error message is 3.1.1+ only. My fpc 3.0.4 simply ignores the parameter. What compiler flavor shows this error? Mattias From bartjunk64 at gmail.com Sun Jun 24 23:45:54 2018 From: bartjunk64 at gmail.com (Bart) Date: Sun, 24 Jun 2018 23:45:54 +0200 Subject: [Lazarus] Problem compiling trunk LazUtils Error: (11006) Illegal parameter: -vm6058 In-Reply-To: <20180624230423.519d0124@limapholos.matflo.wg> References: <83df34ab-85b2-20ea-3d73-dd60ae17efb8@michael-ring.org> <20180624230423.519d0124@limapholos.matflo.wg> Message-ID: On Sun, Jun 24, 2018 at 11:04 PM, Mattias Gaertner via Lazarus wrote: > My fpc 3.0.4 simply ignores the parameter. > What compiler flavor shows this error? 3.0.4rc1 does (never got to updating that to the actual 3.0.4 release). C:\Users\Bart\LazarusProjecten\ConsoleProjecten>fpc -vm6058 test.pas Error: Illegal parameter: -vm6058 Error: C:\devel\fpc\3.0.4\bin\i386-Win32\ppc386.exe returned an error exitcode Bart From skalogryz.lists at gmail.com Mon Jun 25 04:38:41 2018 From: skalogryz.lists at gmail.com (Dmitry Boyarintsev) Date: Sun, 24 Jun 2018 22:38:41 -0400 Subject: [Lazarus] 64 bit Cocoa package (Mac) In-Reply-To: <1AD2E54C-E5BA-4502-9771-1775EFB77746@thealchemistguild.com> References: <1AD2E54C-E5BA-4502-9771-1775EFB77746@thealchemistguild.com> Message-ID: On Sun, Jun 24, 2018 at 12:49 AM, Ryan Joseph via Lazarus < lazarus at lists.lazarus-ide.org> wrote: > 1) by setting the Tools > Options compiler path to ppc386 I can rebuild > but I get symbol not found error because the framework I’m linking is 64 > bit only. > 1) If I set the compiler to ppcx64 I get the "Identifier not found > “ATSUFindFontFromName”” error and never get to the building of the actual > package. > > How can I get out of this loop? Apparently lazarus needs to compile the > package and link everything but the IDE also demands I only build with the > i386 compiler. > It's not IDE that demands the compiler to be i386, but the widgetset (Carbon). You need to specify Lazarus to build for Cocoa instead. In this case you should be able to install the package into IDE. thanks, Dmitry -------------- next part -------------- An HTML attachment was scrubbed... URL: From ryan at thealchemistguild.com Mon Jun 25 04:44:11 2018 From: ryan at thealchemistguild.com (Ryan Joseph) Date: Mon, 25 Jun 2018 09:44:11 +0700 Subject: [Lazarus] 64 bit Cocoa package (Mac) In-Reply-To: References: <1AD2E54C-E5BA-4502-9771-1775EFB77746@thealchemistguild.com> Message-ID: <0296C6CC-FFF5-4D0A-A840-2166AE91DEC0@thealchemistguild.com> > On Jun 25, 2018, at 9:38 AM, Dmitry Boyarintsev via Lazarus wrote: > > It's not IDE that demands the compiler to be i386, but the widgetset (Carbon). > > You need to specify Lazarus to build for Cocoa instead. In this case you should be able to install the package into IDE. Yes I finally got it figured out with help from another person. It was the “Tools -> Configure …” settings I was missing. When I turn on the Cocoa widget set I can install the package now but the IDE is basically broken. Menu items are missing, command key are wrong , size of the controls are all wrong (due to high resolution) and crashing in the source editor amongst others. Is the IDE broken for the Cocoa widget set? Regards, Ryan Joseph From larrydalton71 at gmail.com Mon Jun 25 05:12:20 2018 From: larrydalton71 at gmail.com (Larry Dalton) Date: Sun, 24 Jun 2018 23:12:20 -0400 Subject: [Lazarus] Can't access mysql tables in linux using lazarus Message-ID: I have an application that uses mysql databases. It works perfectly in Windows, but not linux. Here is the problem: Mysql57Connection won't apply updates correctly in linux. Here are the details: 1. I am using linux 18.3 Cinnamon 64bit 2. I am running lazarus 1.8.2. 3. I am using Mysql 5.7 4. Some of the tables were created using phpmyadmin. 5. Other tables were created from the lazarus application. 6. The tables created in phpmyadmin are accessable both for reading and writing from the lazarus application. 7. The tables created in lazarus are read only in the lazarus application. They are read and write both from phpmyadmin. 8.All tables are accessable from the application and phpmyadmin when running it on Windows 7. What do I need to look for? -------------- next part -------------- An HTML attachment was scrubbed... URL: From skalogryz.lists at gmail.com Mon Jun 25 05:23:23 2018 From: skalogryz.lists at gmail.com (Dmitry Boyarintsev) Date: Sun, 24 Jun 2018 23:23:23 -0400 Subject: [Lazarus] 64 bit Cocoa package (Mac) In-Reply-To: <0296C6CC-FFF5-4D0A-A840-2166AE91DEC0@thealchemistguild.com> References: <1AD2E54C-E5BA-4502-9771-1775EFB77746@thealchemistguild.com> <0296C6CC-FFF5-4D0A-A840-2166AE91DEC0@thealchemistguild.com> Message-ID: On Sunday, June 24, 2018, Ryan Joseph via Lazarus < lazarus at lists.lazarus-ide.org> wrote: > > Is the IDE broken for the Cocoa widget set? > I prefer the word “incomplete” for Cocoa widget. Are you using trunk for Lazarus, or an earlier release? If an earlier release then it’s expected. If trunk then a screenshot would worth a thousand words. Thanks, Dmitry -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at freepascal.org Mon Jun 25 08:30:26 2018 From: michael at freepascal.org (Michael Van Canneyt) Date: Mon, 25 Jun 2018 08:30:26 +0200 (CEST) Subject: [Lazarus] Can't access mysql tables in linux using lazarus In-Reply-To: References: Message-ID: On Sun, 24 Jun 2018, Larry Dalton via Lazarus wrote: > I have an application that uses mysql databases. It works perfectly in > Windows, but not linux. Here is the problem: Mysql57Connection won't apply > updates correctly in linux. Here are the details: > > 1. I am using linux 18.3 Cinnamon 64bit > 2. I am running lazarus 1.8.2. > 3. I am using Mysql 5.7 > 4. Some of the tables were created using phpmyadmin. > 5. Other tables were created from the lazarus application. > 6. The tables created in phpmyadmin are accessable both for reading and > writing from the lazarus application. > 7. The tables created in lazarus are read only in the lazarus application. > They are read and write both from phpmyadmin. How do you conclude this ? What errors do you get (if any) ? > 8.All tables are accessable from the application and phpmyadmin when > running it on Windows 7. > > What do I need to look for? SQLDB has no knowledge of security settings in the various DB engines. It just executes SQL statements. You need to check the security settings for these tables in MySQL. It could be that phpMyAdmin uses a different user than your program. The fact that it works differently on linux and windows may point to file permissions on the table files. Michael. From nc-gaertnma at netcologne.de Mon Jun 25 09:20:07 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Mon, 25 Jun 2018 09:20:07 +0200 Subject: [Lazarus] Problem compiling trunk LazUtils Error: (11006) Illegal parameter: -vm6058 In-Reply-To: References: <83df34ab-85b2-20ea-3d73-dd60ae17efb8@michael-ring.org> <20180624230423.519d0124@limapholos.matflo.wg> Message-ID: <20180625092007.5125f55d@limapholos.matflo.wg> On Sun, 24 Jun 2018 23:45:54 +0200 Bart via Lazarus wrote: > On Sun, Jun 24, 2018 at 11:04 PM, Mattias Gaertner via Lazarus > wrote: > > > My fpc 3.0.4 simply ignores the parameter. > > What compiler flavor shows this error? > > 3.0.4rc1 does (never got to updating that to the actual 3.0.4 release). > > C:\Users\Bart\LazarusProjecten\ConsoleProjecten>fpc -vm6058 test.pas > Error: Illegal parameter: -vm6058 > Error: C:\devel\fpc\3.0.4\bin\i386-Win32\ppc386.exe returned an error exitcode I removed the option. Mattias From mail at michael-ring.org Mon Jun 25 09:46:20 2018 From: mail at michael-ring.org (Michael Ring) Date: Mon, 25 Jun 2018 09:46:20 +0200 Subject: [Lazarus] Problem compiling trunk LazUtils Error: (11006) Illegal parameter: -vm6058 In-Reply-To: <20180625092007.5125f55d@limapholos.matflo.wg> References: <83df34ab-85b2-20ea-3d73-dd60ae17efb8@michael-ring.org> <20180624230423.519d0124@limapholos.matflo.wg> <20180625092007.5125f55d@limapholos.matflo.wg> Message-ID: <6f142816-c19f-4d20-0f77-65bc2f4c066e@michael-ring.org> Thank you! Things are back to normal now, Lazarus builds and installs & rebuilds just fine. Michael Am 25.06.18 um 09:20 schrieb Mattias Gaertner via Lazarus: > On Sun, 24 Jun 2018 23:45:54 +0200 > Bart via Lazarus wrote: > >> On Sun, Jun 24, 2018 at 11:04 PM, Mattias Gaertner via Lazarus >> wrote: >> >>> My fpc 3.0.4 simply ignores the parameter. >>> What compiler flavor shows this error? >> 3.0.4rc1 does (never got to updating that to the actual 3.0.4 release). >> >> C:\Users\Bart\LazarusProjecten\ConsoleProjecten>fpc -vm6058 test.pas >> Error: Illegal parameter: -vm6058 >> Error: C:\devel\fpc\3.0.4\bin\i386-Win32\ppc386.exe returned an error exitcode > I removed the option. > > Mattias From aaa5500 at ya.ru Mon Jun 25 10:09:55 2018 From: aaa5500 at ya.ru (AlexeyT) Date: Mon, 25 Jun 2018 11:09:55 +0300 Subject: [Lazarus] IDE option to disable horz mouse wheel scroll Message-ID: With new Horz wheel scroll events, I get not nice usage of IDE: my touchpad gives unneeded horz scroll events and I got some unneeded horz scrolls in source editor. (reason is finger moving on touchpad.) Need option to disable horz wheel scroll. -- Regards, Alexey From ryan at thealchemistguild.com Mon Jun 25 10:27:54 2018 From: ryan at thealchemistguild.com (Ryan Joseph) Date: Mon, 25 Jun 2018 15:27:54 +0700 Subject: [Lazarus] -Cp0 Message-ID: Lazarus appears to have just started to add a -Cp0 switch to the command line which is giving me "Error: Illegal parameter: -Cp0”. What happened any how do I make it go away? Regards, Ryan Joseph From nc-gaertnma at netcologne.de Mon Jun 25 10:38:01 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Mon, 25 Jun 2018 10:38:01 +0200 Subject: [Lazarus] -Cp0 In-Reply-To: References: Message-ID: <20180625103801.74eee9e3@limapholos.matflo.wg> On Mon, 25 Jun 2018 15:27:54 +0700 Ryan Joseph via Lazarus wrote: > Lazarus appears to have just started to add a -Cp0 switch to the command line which is giving me "Error: Illegal parameter: -Cp0”. What happened any how do I make it go away? The compiler options can be found in "Project / Project Options". Type in the search '-Cp'. This brings you to "Config and Target", "Target processor". Is it set to "default"? Mattias From terry at haimann.us Wed Jun 27 12:57:12 2018 From: terry at haimann.us (Terry A. Haimann) Date: Wed, 27 Jun 2018 05:57:12 -0500 Subject: [Lazarus] Lazarus and Linked Lists Message-ID: <1530097032.25064.0.camel@haimann.us> Dumb question, Is there a basic linked List object for Lazarus? Terry Haimann From nc-gaertnma at netcologne.de Wed Jun 27 13:06:27 2018 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Wed, 27 Jun 2018 13:06:27 +0200 Subject: [Lazarus] Lazarus and Linked Lists In-Reply-To: <1530097032.25064.0.camel@haimann.us> References: <1530097032.25064.0.camel@haimann.us> Message-ID: <20180627130627.1a5029f9@limapholos.matflo.wg> On Wed, 27 Jun 2018 05:57:12 -0500 "Terry A. Haimann via Lazarus" wrote: > Dumb question, > > Is there a basic linked List object for Lazarus? Have you seen the answer on the fpc list? http://lists.freepascal.org/pipermail/fpc-pascal/2018-June/054287.html Mattias From terry at haimann.us Wed Jun 27 14:24:14 2018 From: terry at haimann.us (Terry A. Haimann) Date: Wed, 27 Jun 2018 07:24:14 -0500 Subject: [Lazarus] Lazarus and Linked Lists In-Reply-To: <20180627130627.1a5029f9@limapholos.matflo.wg> References: <1530097032.25064.0.camel@haimann.us> <20180627130627.1a5029f9@limapholos.matflo.wg> Message-ID: <1530102254.28012.1.camel@haimann.us> Is there any documentation on using this object? On Wed, 2018-06-27 at 13:06 +0200, Mattias Gaertner via Lazarus wrote: > On Wed, 27 Jun 2018 05:57:12 -0500 > "Terry A. Haimann via Lazarus" wrote: > > > > > Dumb question, > > > > Is there a basic linked List object for Lazarus? > Have you seen the answer on the fpc list? > > http://lists.freepascal.org/pipermail/fpc-pascal/2018-June/054287.htm > l > > Mattias From dezlov at gmail.com Wed Jun 27 19:32:09 2018 From: dezlov at gmail.com (Denis Kozlov) Date: Wed, 27 Jun 2018 12:32:09 -0500 Subject: [Lazarus] Lazarus and Linked Lists In-Reply-To: <1530102254.28012.1.camel@haimann.us> References: <1530097032.25064.0.camel@haimann.us> <20180627130627.1a5029f9@limapholos.matflo.wg> <1530102254.28012.1.camel@haimann.us> Message-ID: <72247017-5aca-a342-2ffc-01bb73263ccf@gmail.com> FPC has a couple of internal linked list implementations but they are not exposed publicly, see: * TLinkedList class in "compiler\cclasses.pas". * TLinkedList class in "rtl\objpas\classes\sllist.inc". Also, it is fairly easy to implement yourself following the pseudo code from wikipedia: https://en.wikipedia.org/wiki/Linked_list https://en.wikipedia.org/wiki/Doubly_linked_list https://en.wikipedia.org/wiki/Category:Linked_lists Denis On 27/06/2018 07:24, Terry A. Haimann via Lazarus wrote: > Is there any documentation on using this object? > > On Wed, 2018-06-27 at 13:06 +0200, Mattias Gaertner via Lazarus wrote: >> On Wed, 27 Jun 2018 05:57:12 -0500 >> "Terry A. Haimann via Lazarus" wrote: >> >>> Dumb question, >>> >>> Is there a basic linked List object for Lazarus? >> Have you seen the answer on the fpc list? >> >> http://lists.freepascal.org/pipermail/fpc-pascal/2018-June/054287.htm >> l >> >> Mattias From leledumbo_cool at yahoo.co.id Thu Jun 28 03:59:44 2018 From: leledumbo_cool at yahoo.co.id (leledumbo) Date: Wed, 27 Jun 2018 18:59:44 -0700 (MST) Subject: [Lazarus] Lazarus and Linked Lists In-Reply-To: <1530102254.28012.1.camel@haimann.us> References: <1530097032.25064.0.camel@haimann.us> <20180627130627.1a5029f9@limapholos.matflo.wg> <1530102254.28012.1.camel@haimann.us> Message-ID: <1530151184447-0.post@n3.nabble.com> > Is there any documentation on using this object? Doc: https://svn.freepascal.org/svn/fpc/tags/release_3_0_4/packages/fcl-stl/doc/main.pdf Examples: https://svn.freepascal.org/svn/fpc/tags/release_3_0_4/packages/fcl-stl/tests/ Don' you know you can browse that site up n down? -- Sent from: http://free-pascal-lazarus.989080.n3.nabble.com/ From jlee54 at gmail.com Thu Jun 28 07:11:50 2018 From: jlee54 at gmail.com (Jim Lee) Date: Wed, 27 Jun 2018 22:11:50 -0700 Subject: [Lazarus] Lazarus and Linked Lists In-Reply-To: <1530151184447-0.post@n3.nabble.com> References: <1530097032.25064.0.camel@haimann.us> <20180627130627.1a5029f9@limapholos.matflo.wg> <1530102254.28012.1.camel@haimann.us> <1530151184447-0.post@n3.nabble.com> Message-ID: <30ff3bcb-9854-2390-700c-a5d43579f219@gmail.com> On 06/27/18 18:59, leledumbo via Lazarus wrote: >> Is there any documentation on using this object? > Doc: > https://svn.freepascal.org/svn/fpc/tags/release_3_0_4/packages/fcl-stl/doc/main.pdf > Examples: > https://svn.freepascal.org/svn/fpc/tags/release_3_0_4/packages/fcl-stl/tests/ > > Don' you know you can browse that site up n down? > > > There seems to be nothing in there for TLinkedList or anything else in the glinkedlist unit... -Jim From leledumbo_cool at yahoo.co.id Thu Jun 28 11:50:06 2018 From: leledumbo_cool at yahoo.co.id (leledumbo) Date: Thu, 28 Jun 2018 02:50:06 -0700 (MST) Subject: [Lazarus] Lazarus and Linked Lists In-Reply-To: <30ff3bcb-9854-2390-700c-a5d43579f219@gmail.com> References: <1530097032.25064.0.camel@haimann.us> <20180627130627.1a5029f9@limapholos.matflo.wg> <1530102254.28012.1.camel@haimann.us> <1530151184447-0.post@n3.nabble.com> <30ff3bcb-9854-2390-700c-a5d43579f219@gmail.com> Message-ID: <1530179406329-0.post@n3.nabble.com> > There seems to be nothing in there for TLinkedList or anything else in the glinkedlist unit... Browse the tests instead, TLinkedList wasn't shipped with original fcl-stl, it was added later without documentation. -- Sent from: http://free-pascal-lazarus.989080.n3.nabble.com/ From friess at gmx.at Fri Jun 29 08:21:27 2018 From: friess at gmx.at (=?UTF-8?Q?Andreas_Frie=c3=9f?=) Date: Fri, 29 Jun 2018 08:21:27 +0200 Subject: [Lazarus] Unittesting and find memleaks Message-ID: Is it possible to make a heaptrace for a (one) testcase (FPCUnit) only ? Or is there an other good way to test code for memleaks ? Andreas From md at delfire.net Fri Jun 29 15:49:09 2018 From: md at delfire.net (Marcos Douglas B. Santos) Date: Fri, 29 Jun 2018 10:49:09 -0300 Subject: [Lazarus] Unittesting and find memleaks In-Reply-To: References: Message-ID: On Fri, Jun 29, 2018 at 3:21 AM, Andreas Frieß via Lazarus wrote: > Is it possible to make a heaptrace for a (one) testcase (FPCUnit) only ? Or > is there an other good way to test code for memleaks ? You can run just this testcase... but for me this doesn't make sense. Regards, Marcos Douglas From list2010 at BrenemanLabs.com Fri Jun 29 17:56:53 2018 From: list2010 at BrenemanLabs.com (Paul Breneman) Date: Fri, 29 Jun 2018 11:56:53 -0400 Subject: [Lazarus] Lazarus IDE on Android (ARM and x86_64) In-Reply-To: References: Message-ID: <553c6c34-eef6-5ac9-23fd-9aa6ef3950be@BrenemanLabs.com> On 06/24/2018 03:16 AM, Mark Morgan Lloyd via Lazarus wrote: > On 24/06/18 01:00, Paul Breneman via Lazarus wrote: >> A couple of days ago I loaded UserLAnd on my Moto Z2 Android phone.  I >> then loaded fpc and got fpc 3.0.0 loaded for AArch64.  I have this web >> page started:  www.turbocontrol.com/userland.htm >> Please try UserLAnd and report back how it works for you.  Hopefully >> you will get a 64-bit Debian 9. > > Console mode stuff is no problem, until one tries to use things like > pthread. Yesterday I set up a makefile for a project that did and got > bogged down with linkage errors, so it isn't simply that ld is > hardcoding references to the wrong .so file. > Any more info in the last five days Mark? Thanks! Did you get 64-bit FPC working? From markMLl.lazarus at telemetry.co.uk Fri Jun 29 19:08:16 2018 From: markMLl.lazarus at telemetry.co.uk (Mark Morgan Lloyd) Date: Fri, 29 Jun 2018 17:08:16 +0000 Subject: [Lazarus] Lazarus IDE on Android (ARM and x86_64) In-Reply-To: <553c6c34-eef6-5ac9-23fd-9aa6ef3950be@BrenemanLabs.com> References: <553c6c34-eef6-5ac9-23fd-9aa6ef3950be@BrenemanLabs.com> Message-ID: On 29/06/18 16:00, Paul Breneman via Lazarus wrote: > On 06/24/2018 03:16 AM, Mark Morgan Lloyd via Lazarus wrote:> On > 24/06/18 01:00, Paul Breneman via Lazarus wrote:>> A couple of days ago > I loaded UserLAnd on my Moto Z2 Android phone.  I >> then loaded fpc and > got fpc 3.0.0 loaded for AArch64.  I have this web >> page started: > www.turbocontrol.com/userland.htm>> Please try UserLAnd and report back > how it works for you.  Hopefully >> you will get a 64-bit Debian 9.> > Note that I'm specifically commenting on (and originally asking about) Termux, in part because of things I was being asked elsewhere. Also note that my Android tables is x86_64, not ARM (not my choice). > Console mode stuff is no problem, until one tries to use things like > > pthread. Yesterday I set up a makefile for a project that did and got > > bogged down with linkage errors, so it isn't simply that ld is > > hardcoding references to the wrong .so file. > Any more info in the last > five days Mark?  Thanks! > Did you get 64-bit FPC working?-- Haven't had time to experiment (I'm afraid I have problems here), but what I can say from looking at Termux in the past is that while it will run both 32- and 64-bit programs they've only got binutils (i.e. ld etc.) for 32. I did try taking one of my programs that uses pthreads and writing a makefile for it so that I could compile up with FPC (rather than having to have Lazarus which obviously wouldn't work) but it still had pthreads problems i.e. it's not just the usual kind of symlink error. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]