From paco.mail.telepac.pt at gmail.com Wed Mar 1 00:06:33 2017 From: paco.mail.telepac.pt at gmail.com (Paulo Costa) Date: Tue, 28 Feb 2017 23:06:33 +0000 Subject: [Lazarus] Lazarus on Raspberry Pi 3 In-Reply-To: References: Message-ID: <422e955a-c11b-3ed8-bd9c-43d34d87b2cc@gmail.com> On 28-Feb-17 22:53, Bo Berglund via Lazarus wrote: ... >> I'm using Raspbian version 8.0 >> Linux raspberrypi 4.4.38-v7+ > > What command(s) gives you this information? cat /etc/debian_version "8.0" uname -a "Linux raspberrypi 4.4.38-v7+ ", plus other things. Paulo Costa From paco.mail.telepac.pt at gmail.com Wed Mar 1 01:38:47 2017 From: paco.mail.telepac.pt at gmail.com (Paulo Costa) Date: Wed, 1 Mar 2017 00:38:47 +0000 Subject: [Lazarus] Lazarus on Raspberry Pi 3 In-Reply-To: References: Message-ID: On 28-Feb-17 22:53, Bo Berglund via Lazarus wrote: > Hmmm, > I thought that the previous lines created the new FPC compiler, which > we want to install. The added FPC="$FPCDIR/ppcarm" will use the seed > compiler rather than the one created by the previous make as far as I > understand and that is not what we want. The error that I've got was something like: make: -iVSPTPSOTO: Command not found Searching for that error, I found that it means that fpc is not yet installed (of course, the make install command meant to do that) I figured that, without any compiler in the path, "make install" needed to know where the starting compiler was like "make all" also needed... It seems to work: fpc -i gives me the date of when I compiled it: 2017/01/27 while the downloaded ppcarm: ./ppcarm -i gives 2016/03/05 Paulo Costa From bo.berglund at gmail.com Wed Mar 1 07:22:55 2017 From: bo.berglund at gmail.com (Bo Berglund) Date: Wed, 01 Mar 2017 07:22:55 +0100 Subject: [Lazarus] Lazarus on Raspberry Pi 3 References: <422e955a-c11b-3ed8-bd9c-43d34d87b2cc@gmail.com> Message-ID: <84qcbctos5uf84tiq9ipjos8e8rtl7f8m9@4ax.com> On Tue, 28 Feb 2017 23:06:33 +0000, Paulo Costa via Lazarus wrote: >On 28-Feb-17 22:53, Bo Berglund via Lazarus wrote: > >... > >>> I'm using Raspbian version 8.0 >>> Linux raspberrypi 4.4.38-v7+ >> >> What command(s) gives you this information? > >cat /etc/debian_version >"8.0" > >uname -a >"Linux raspberrypi 4.4.38-v7+ ", plus other things. > Thanks, this is what I have: pi at rpi3-jessie:~ $ cat /etc/debian_version 8.0 pi at rpi3-jessie:~ $ uname -a Linux rpi3-jessie 4.4.13-v7+ #894 SMP Mon Jun 13 13:13:27 BST 2016 armv7l GNU/Linux -- Bo Berglund Developer in Sweden From nc-gaertnma at netcologne.de Wed Mar 1 14:05:07 2017 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Wed, 1 Mar 2017 14:05:07 +0100 Subject: [Lazarus] Lazarus Release 1.6.4 Message-ID: <20170301140507.71b1d674@limapholos.matflo.wg> The Lazarus team is glad to announce the release of Lazarus 1.6.4. This is a bugfix release. This release was built with FPC 3.0.2. The previous release Lazarus 1.6.2 was built with FPC 3.0.0. Here is the list of fixes for Lazarus 1.6.x: http://wiki.freepascal.org/Lazarus_1.6_fixes_branch Here is the list of changes for Lazarus and Free Pascal: http://wiki.lazarus.freepascal.org/Lazarus_1.6.0_release_notes http://wiki.lazarus.freepascal.org/User_Changes_3.0.2 The release is available for download on SourceForge: http://sourceforge.net/projects/lazarus/files/ Choose your CPU, OS, distro and then the "Lazarus 1.6.4" directory. Checksums for the SourceForge files: http://www.lazarus-ide.org/index.php?page=checksums#1_6_4 Minimum requirements: Windows: 98, 2k, XP, Vista, 7, 8, 8.1 and 10, 32 or 64bit. Win98 and WinNT IDE needs FPC 2.6.4 and building with flag -dWIN9XPLATFORM. FreeBSD/Linux: gtk 2.8 or qt4.5, 32 or 64bit. Mac OS X: 10.5 to 10.11, LCL only 32bit, non LCL apps can be 64bit. The svn tag is http://svn.freepascal.org/svn/lazarus/tags/lazarus_1_6_4 For people who are blocked by SF, the Lazarus releases from SourceForge are mirrored next week at: ftp://freepascal.dfmk.hu/pub/lazarus/releases/ and later at (after some time for synchronization) http://michael-ep3.physik.uni-halle.de/Lazarus/releases/ and http://mirrors.iwi.me/lazarus/ Mattias From juergen.hestermann at gmx.de Wed Mar 1 17:14:19 2017 From: juergen.hestermann at gmx.de (=?UTF-8?Q?J=c3=bcrgen_Hestermann?=) Date: Wed, 1 Mar 2017 17:14:19 +0100 Subject: [Lazarus] Lazarus Release 1.6.4 In-Reply-To: <20170301140507.71b1d674@limapholos.matflo.wg> References: <20170301140507.71b1d674@limapholos.matflo.wg> Message-ID: <589d2eb9-3cc5-2b65-78f9-f7d239da2403@gmx.de> Am 2017-03-01 um 14:05 schrieb Mattias Gaertner via Lazarus: > The Lazarus team is glad to announce the release of Lazarus 1.6.4. This > is a bugfix release. > > I just downloaded this new version for Windows 32 and tried to install packages (LCLextension 0.6 and VirtualTreeView 5.5.3) but always get an error on this function in OLEUTILS: ------------------------------------------ function TOLEStream.Seek(Offset: Integer; Origin: Word): Integer; var liResult, liOffset : LARGE_INTEGER; Res: HRESULT; begin //soFrom* constants are equal to STREAM_SEEK_* constants. Assume it here liOffset.LowPart:=Offset; liOffset.HighPart:=0; {$if FPC_FULLVERSION >= 30100} Res:=FSrcStream.Seek(QWord(liOffset), Origin, QWord(liResult)); {$else} Res:=FSrcStream.Seek(Int64(liOffset), Origin, Int64(liResult)); <------ oleutils.pas(110,64) Error: Call by var for arg no. 3 has to match exactly: Got "Int64" expected "QWord" {$endif} Result:=liResult.LowPart; if Res <> S_OK then Raise Exception.Create('TOLEStream - Error while seeking: '+ErrorString(Res)); end; ------------------------------------------ From bartjunk64 at gmail.com Wed Mar 1 18:44:32 2017 From: bartjunk64 at gmail.com (Bart) Date: Wed, 1 Mar 2017 18:44:32 +0100 Subject: [Lazarus] Lazarus Release 1.6.4 In-Reply-To: <589d2eb9-3cc5-2b65-78f9-f7d239da2403@gmx.de> References: <20170301140507.71b1d674@limapholos.matflo.wg> <589d2eb9-3cc5-2b65-78f9-f7d239da2403@gmx.de> Message-ID: On 3/1/17, Jürgen Hestermann via Lazarus wrote: > I just downloaded this new version for Windows 32 and tried to install > packages (LCLextension 0.6 and VirtualTreeView 5.5.3) > but always get an error on this function in OLEUTILS: AFAIK this (oleutils) is not art of Lazarus of fpc, so the issue should be fixed by the maintainer of that package. Bart From nc-gaertnma at netcologne.de Wed Mar 1 19:00:50 2017 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Wed, 1 Mar 2017 19:00:50 +0100 Subject: [Lazarus] Lazarus Release 1.6.4 In-Reply-To: <589d2eb9-3cc5-2b65-78f9-f7d239da2403@gmx.de> References: <20170301140507.71b1d674@limapholos.matflo.wg> <589d2eb9-3cc5-2b65-78f9-f7d239da2403@gmx.de> Message-ID: <20170301190050.28f53dac@limapholos.matflo.wg> On Wed, 1 Mar 2017 17:14:19 +0100 Jürgen Hestermann via Lazarus wrote: > Am 2017-03-01 um 14:05 schrieb Mattias Gaertner via Lazarus: > > The Lazarus team is glad to announce the release of Lazarus 1.6.4. This > > is a bugfix release. > > > > > I just downloaded this new version for Windows 32 and tried to install packages (LCLextension 0.6 and VirtualTreeView 5.5.3) > but always get an error on this function in OLEUTILS: > > ------------------------------------------ > function TOLEStream.Seek(Offset: Integer; Origin: Word): Integer; > var > liResult, liOffset : LARGE_INTEGER; > Res: HRESULT; > begin > //soFrom* constants are equal to STREAM_SEEK_* constants. Assume it here > liOffset.LowPart:=Offset; > liOffset.HighPart:=0; > {$if FPC_FULLVERSION >= 30100} > Res:=FSrcStream.Seek(QWord(liOffset), Origin, QWord(liResult)); > {$else} > Res:=FSrcStream.Seek(Int64(liOffset), Origin, Int64(liResult)); <------ oleutils.pas(110,64) Error: Call by var for arg no. 3 has to match exactly: Got "Int64" expected "QWord" > {$endif} Yes, this is caused by one of the two changes pf 3.0.2. See http://wiki.lazarus.freepascal.org/User_Changes_3.0.2#Classes Mattias From listbox at martoks-place.de Wed Mar 1 19:19:58 2017 From: listbox at martoks-place.de (Martok) Date: Wed, 1 Mar 2017 19:19:58 +0100 Subject: [Lazarus] Lazarus Release 1.6.4 In-Reply-To: <20170301190050.28f53dac@limapholos.matflo.wg> References: <20170301140507.71b1d674@limapholos.matflo.wg> <589d2eb9-3cc5-2b65-78f9-f7d239da2403@gmx.de> <20170301190050.28f53dac@limapholos.matflo.wg> Message-ID: > Yes, this is caused by one of the two changes pf 3.0.2. See > http://wiki.lazarus.freepascal.org/User_Changes_3.0.2#Classes > Jürgen appears to already have the fixed version, with the correct ifdefs: >> {$if FPC_FULLVERSION >= 30100} >> Res:=FSrcStream.Seek(QWord(liOffset), Origin, QWord(liResult)); >> {$else} >> Res:=FSrcStream.Seek(Int64(liOffset), Origin, Int64(liResult)); <------ oleutils.pas(110,64) Error: Call by var for arg no. 3 has to match exactly: Got "Int64" expected "QWord" >> {$endif} This should work, the error message is in the branch of the conditional that should not be taken at all... Martok From lazarus at kluug.net Wed Mar 1 19:25:58 2017 From: lazarus at kluug.net (Ondrej Pokorny) Date: Wed, 1 Mar 2017 19:25:58 +0100 Subject: [Lazarus] Lazarus Release 1.6.4 In-Reply-To: References: <20170301140507.71b1d674@limapholos.matflo.wg> <589d2eb9-3cc5-2b65-78f9-f7d239da2403@gmx.de> <20170301190050.28f53dac@limapholos.matflo.wg> Message-ID: <123f87c4-2bcb-4122-6d05-153dac6546c6@kluug.net> On 01.03.2017 19:19, Martok via Lazarus wrote: >> Yes, this is caused by one of the two changes pf 3.0.2. See >> http://wiki.lazarus.freepascal.org/User_Changes_3.0.2#Classes >> > Jürgen appears to already have the fixed version, with the correct ifdefs: > >>> {$if FPC_FULLVERSION >= 30100} >>> Res:=FSrcStream.Seek(QWord(liOffset), Origin, QWord(liResult)); >>> {$else} >>> Res:=FSrcStream.Seek(Int64(liOffset), Origin, Int64(liResult)); <------ oleutils.pas(110,64) Error: Call by var for arg no. 3 has to match exactly: Got "Int64" expected "QWord" >>> {$endif} > This should work, the error message is in the branch of the conditional that > should not be taken at all... The conditional should be {$if FPC_FULLVERSION >= 30001} instead of {$if FPC_FULLVERSION >= 30100} because the change was backported to 3.0.2. Ondrej From joshyfun at gmail.com Wed Mar 1 20:47:45 2017 From: joshyfun at gmail.com (=?UTF-8?Q?Jos=c3=a9_Mejuto?=) Date: Wed, 1 Mar 2017 20:47:45 +0100 Subject: [Lazarus] Animation library In-Reply-To: <378912f2-f437-813f-ee45-064601207cb6@geldenhuys.co.uk> References: <1d1f8364-c75c-1540-4361-9c4a28219d7f@gmail.com> <0e2dfb39-957c-b881-c1b3-b13e359b2428@geldenhuys.co.uk> <378912f2-f437-813f-ee45-064601207cb6@geldenhuys.co.uk> Message-ID: El 27/02/2017 a las 15:15, Graeme Geldenhuys via Lazarus escribió: > 2) I have a 4 core system with hyper threading (ie: 4 cores and 4 > virtual cores). Your sample application maxed out all 8 cores at > 100% CPU load. Not really acceptable behaviour for a desktop > application I would think. ;-) Hello, Performed some tests today using VirtualBox, Ubuntu 14.04.02 and Centos 6.7, both 32 bits using Windows 7 as host with a CPU i7 (3 cores for virtual machines and 2 gigabytes of RAM). Ubuntu ------ - Default configuration from Virtualbox the animation takes CPU near 100% in all cores with compiz using 95% of CPU wichever frames per second I use. The Windows manager is damn slow, just open Lazarus and move components around a form is sloooowwww. - Activated 3D acceleration and now animation is good at ~60 frames per second with an average CPU of 10-15%. Also removed the FPS in caption as only that update takes 50% CPU sometimes, something is wrong in compiz with windows captions. - Host Windows 7 machine with Ubutu animation running uses around 12-16% CPU for the VirtualBox. Centos ------ - Gnome with default VirtualBox configuration (no 3D acceleration) works fine at ~60 frames per second once Form.Caption update is removed as it consumes CPU (only form.caption update consumes 60% CPU sometimes). Conclusions: Ubuntu compiz needs 3D acceleration to be usable and has window caption bugs, the update of caption produces artifacts in form controls like missing draws, blank zones, ghost lines, ... Of course this could have some relation with LCL updating the caption as its CPU consume is insane. In the other hand, form.caption update in GNome works quite well, not as smooth as Ubuntu but quite similar to Windows7. In linux Form.invalidate/repaint seems to work different than in Windows, as in Linux it seems to not remove queued paints, so moving a control and just issue a form.invalidate the system paints the control and children controls and then form.invalidate paints all of them again. In windows AFAIK when form.invalidate is called all paints in the queue are removed (related to that window) without being processed and then form.invalidate is performed. I wish to know if somebody think this is useful, to expand it, or just don't take more time developing it and keep it to my projects. Thank you. -- From mailinglists at geldenhuys.co.uk Wed Mar 1 20:55:45 2017 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Wed, 1 Mar 2017 19:55:45 +0000 Subject: [Lazarus] Animation library In-Reply-To: References: <1d1f8364-c75c-1540-4361-9c4a28219d7f@gmail.com> <0e2dfb39-957c-b881-c1b3-b13e359b2428@geldenhuys.co.uk> <378912f2-f437-813f-ee45-064601207cb6@geldenhuys.co.uk> Message-ID: <89e33463-0af5-48b9-e684-19a4abd1606d@geldenhuys.co.uk> On 2017-03-01 19:47, José Mejuto via Lazarus wrote: > I wish to know if somebody think this is useful, to expand it, or just > don't take more time developing it and keep it to my projects. By all means please do continue if you have the time and energy. :) We were simply testing your work - it's always good to test on various platforms. Just so you know, I'm using 64-bit FreeBSD. I don't run a desktop environment, but instead a old-school style Window Manager (called JWM - Joe's Window Manager). JWM is extremely light - only uses 8MB of RAM so never interferes with application performance tests. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp From bo.berglund at gmail.com Wed Mar 1 21:57:46 2017 From: bo.berglund at gmail.com (Bo Berglund) Date: Wed, 01 Mar 2017 21:57:46 +0100 Subject: [Lazarus] Lazarus Release 1.6.4 References: <20170301140507.71b1d674@limapholos.matflo.wg> Message-ID: On Wed, 1 Mar 2017 14:05:07 +0100, Mattias Gaertner via Lazarus wrote: >The Lazarus team is glad to announce the release of Lazarus 1.6.4. This >is a bugfix release. > >This release was built with FPC 3.0.2. Can it be built with some other FPC version, like 3.0 too? -- Bo Berglund Developer in Sweden From lazarus at kluug.net Wed Mar 1 22:03:51 2017 From: lazarus at kluug.net (Ondrej Pokorny) Date: Wed, 1 Mar 2017 22:03:51 +0100 Subject: [Lazarus] Lazarus Release 1.6.4 In-Reply-To: References: <20170301140507.71b1d674@limapholos.matflo.wg> Message-ID: <8815f083-a835-b692-2e77-6b830e1014b4@kluug.net> On 01.03.2017 21:57, Bo Berglund via Lazarus wrote: > Can it be built with some other FPC version, like 3.0 too? Yes. Starting from 2.6.4 all FPC versions are supported. Ondrej From nc-gaertnma at netcologne.de Wed Mar 1 22:08:23 2017 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Wed, 1 Mar 2017 22:08:23 +0100 Subject: [Lazarus] Lazarus Release 1.6.4 In-Reply-To: References: <20170301140507.71b1d674@limapholos.matflo.wg> Message-ID: <20170301220823.6a8073dc@limapholos.matflo.wg> On Wed, 01 Mar 2017 21:57:46 +0100 Bo Berglund via Lazarus wrote: > On Wed, 1 Mar 2017 14:05:07 +0100, Mattias Gaertner via Lazarus > wrote: > > >The Lazarus team is glad to announce the release of Lazarus 1.6.4. This > >is a bugfix release. > > > >This release was built with FPC 3.0.2. > > Can it be built with some other FPC version, like 3.0 too? Yes, you can. Mattias From listbox at martoks-place.de Wed Mar 1 23:16:21 2017 From: listbox at martoks-place.de (Martok) Date: Wed, 1 Mar 2017 23:16:21 +0100 Subject: [Lazarus] Lazarus Release 1.6.4 In-Reply-To: <123f87c4-2bcb-4122-6d05-153dac6546c6@kluug.net> References: <20170301140507.71b1d674@limapholos.matflo.wg> <589d2eb9-3cc5-2b65-78f9-f7d239da2403@gmx.de> <20170301190050.28f53dac@limapholos.matflo.wg> <123f87c4-2bcb-4122-6d05-153dac6546c6@kluug.net> Message-ID: > The conditional should be {$if FPC_FULLVERSION >= 30001} instead of {$if > FPC_FULLVERSION >= 30100} because the change was backported to 3.0.2. Oh. Right. Read that line multiple times and didn't notice the digit was in a different place... Luiz apparently has this fixed in another repo, but not in the version that is in CCR? Martok From bo.berglund at gmail.com Thu Mar 2 10:41:50 2017 From: bo.berglund at gmail.com (Bo Berglund) Date: Thu, 02 Mar 2017 10:41:50 +0100 Subject: [Lazarus] Lazarus Release 1.6.4 References: <20170301140507.71b1d674@limapholos.matflo.wg> <8815f083-a835-b692-2e77-6b830e1014b4@kluug.net> Message-ID: On Wed, 1 Mar 2017 22:03:51 +0100, Ondrej Pokorny via Lazarus wrote: >On 01.03.2017 21:57, Bo Berglund via Lazarus wrote: >> Can it be built with some other FPC version, like 3.0 too? > >Yes. Starting from 2.6.4 all FPC versions are supported. > Thanks, then if I use 3.0.0 will there be differences in Lazarus compared to using 3.0.2? I have a 3.0.0 seed compiler I use to build fpc on an RPi3, can I use the same for Lazarus (it is just the ppcarm file)? Or does it use some fpc sources as well so I have to point the build to those? -- Bo Berglund Developer in Sweden From luizamericop at gmail.com Thu Mar 2 12:59:58 2017 From: luizamericop at gmail.com (Luiz Americo Pereira Camara) Date: Thu, 2 Mar 2017 08:59:58 -0300 Subject: [Lazarus] Lazarus Release 1.6.4 In-Reply-To: References: <20170301140507.71b1d674@limapholos.matflo.wg> <589d2eb9-3cc5-2b65-78f9-f7d239da2403@gmx.de> <20170301190050.28f53dac@limapholos.matflo.wg> <123f87c4-2bcb-4122-6d05-153dac6546c6@kluug.net> Message-ID: 2017-03-01 19:16 GMT-03:00 Martok via Lazarus : > > > The conditional should be {$if FPC_FULLVERSION >= 30001} instead of {$if > > FPC_FULLVERSION >= 30100} because the change was backported to 3.0.2. > Oh. Right. Read that line multiple times and didn't notice the digit was > in a > different place... > > Luiz apparently has this fixed in another repo, but not in the version > that is > in CCR? > The CCR version is deprecated as pointed in the source file > > > I updated the lclextensions package in https://github.com/blikblum/VirtualTreeView-Lazarus/releases Luiz -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmlandmesser at gmx.de Thu Mar 2 15:44:00 2017 From: jmlandmesser at gmx.de (Landmesser John) Date: Thu, 2 Mar 2017 15:44:00 +0100 Subject: [Lazarus] IDE and gtk2 themes for Windows XP Message-ID: Hi, does Lazarus use gtk2 widgets on Windows XP? Are there gtk2 themes available for Windows XP? Lazarus IDE look: I think that looks ugly?! Googled a bit, found this: http://wiki.lazarus.freepascal.org/GTK2_Interface#Themes .. looks better, but howto use it for the Lazarus IDE itself? Info: Lazarus 1.7 svn FPC 3.0.0 i386-win32-win32/win64 Also searched the Lazarus Mailing List archive, never discussed? Compile options Lazarus: Tipps are welcome :-) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: clljbdilfmnpnnol.png Type: image/png Size: 19563 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ffiibkjadoghafnk.png Type: image/png Size: 12663 bytes Desc: not available URL: From juergen.hestermann at gmx.de Thu Mar 2 16:02:29 2017 From: juergen.hestermann at gmx.de (=?UTF-8?Q?J=c3=bcrgen_Hestermann?=) Date: Thu, 2 Mar 2017 16:02:29 +0100 Subject: [Lazarus] Lazarus Release 1.6.4 In-Reply-To: References: <20170301140507.71b1d674@limapholos.matflo.wg> <589d2eb9-3cc5-2b65-78f9-f7d239da2403@gmx.de> <20170301190050.28f53dac@limapholos.matflo.wg> <123f87c4-2bcb-4122-6d05-153dac6546c6@kluug.net> Message-ID: Am 2017-03-02 um 12:59 schrieb Luiz Americo Pereira Camara via Lazarus: > > > 2017-03-01 19:16 GMT-03:00 Martok via Lazarus >: > > > > The conditional should be {$if FPC_FULLVERSION >= 30001} instead of {$if > > FPC_FULLVERSION >= 30100} because the change was backported to 3.0.2. > Oh. Right. Read that line multiple times and didn't notice the digit was in a > different place... > > Luiz apparently has this fixed in another repo, but not in the version that is > in CCR? > > > The CCR version is deprecated as pointed in the source file > > > > > > I updated the lclextensions package in https://github.com/blikblum/VirtualTreeView-Lazarus/releases > > Yes, using the updated version 0.6.1 of lclextensions fixed the issue. Many thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From zeljko at holobit.net Thu Mar 2 16:25:36 2017 From: zeljko at holobit.net (zeljko) Date: Thu, 2 Mar 2017 16:25:36 +0100 Subject: [Lazarus] IDE and gtk2 themes for Windows XP In-Reply-To: References: Message-ID: <696b61a3-5c07-16fb-97d6-a6144eb8f390@holobit.net> On 03/02/2017 03:44 PM, Landmesser John via Lazarus wrote: > Info: > Lazarus 1.7 svn FPC 3.0.0 i386-win32-win32/win64 This is not gtk2-win32 lazarus, but pure win32 lazarus. zeljko From prof7bit at gmail.com Thu Mar 2 17:05:38 2017 From: prof7bit at gmail.com (Bernd) Date: Thu, 2 Mar 2017 17:05:38 +0100 Subject: [Lazarus] IDE and gtk2 themes for Windows XP In-Reply-To: References: Message-ID: 2017-03-02 15:44 GMT+01:00 Landmesser John via Lazarus : > > > I think that looks ugly?! This looks exactly like everything else on Windows XP looks like too, its native Windows XP widgetset. From joshyfun at gmail.com Thu Mar 2 20:37:11 2017 From: joshyfun at gmail.com (=?UTF-8?Q?Jos=c3=a9_Mejuto?=) Date: Thu, 2 Mar 2017 20:37:11 +0100 Subject: [Lazarus] IDE and gtk2 themes for Windows XP In-Reply-To: References: Message-ID: El 02/03/2017 a las 17:05, Bernd via Lazarus escribió: > 2017-03-02 15:44 GMT+01:00 Landmesser John via Lazarus > : >> >> >> I think that looks ugly?! > > This looks exactly like everything else on Windows XP looks like too, > its native Windows XP widgetset. Hello, That's Windows XP *without* themes (Windows classic theme). -- From joshyfun at gmail.com Fri Mar 3 19:10:56 2017 From: joshyfun at gmail.com (=?UTF-8?Q?Jos=c3=a9_Mejuto?=) Date: Fri, 3 Mar 2017 19:10:56 +0100 Subject: [Lazarus] Help with bitmaps, glyph, etc... Message-ID: Hello, I need help with bitmaps as my tests results in unexpected/random behavior. I need to get current glyph from a BitBtn, clone it to another bitmap (to be stored in memory), then process the image content and finally write the result to the BitBtn. In my tests I clone the bitmap using TBitmap.RawImage and everything looks to work fine but after setting BitBtn.Glyph to this new created bitmap sometimes the operation works fine (when mouse is over the BitBtn), other times it simply disappear and other times it is partially painted blending new content with old one. Just for the test I was using .ico file with transparency (32 bits), other formats will be supported later, but now I need at least one format that works fine. Platform is Win32 running Windows 7. I hope to handle it in a cross platform way, or even specific code for each platform. Is there any recommended operations sequence ? Forget about TBitmap and use TLazIntfImage ? Thank you. -- From team at trubrain.com Fri Mar 3 19:16:38 2017 From: team at trubrain.com (Team at TruBrain) Date: Fri, 03 Mar 2017 18:16:38 +0000 Subject: [Lazarus] TruBrain user activation Message-ID: <58b9b3066207a_344577b0c82751e2@delayed-jobs-sidekiq-1.mail> Hi Lazarus mailing list, A new TruBrain account has been created for you. Click the url below to activate your account and select a password! https://trubrain.freshdesk.com/register/MXFTNlzDJTSGD3U0Onz If the above URL does not work try copying and pasting it into your browser. If you continue to have problems, please feel free to contact us. Regards, TruBrain -------------- next part -------------- An HTML attachment was scrubbed... URL: From team at trubrain.com Fri Mar 3 19:16:37 2017 From: team at trubrain.com (Team at TruBrain) Date: Fri, 03 Mar 2017 18:16:37 +0000 Subject: [Lazarus] Ticket Received - Help with bitmaps, glyph, etc... In-Reply-To: References: Message-ID: <58b9b305e3828_344574f2d427482f.delayed-jobs-sidekiq-1@notification.freshdesk.com> Dear Lazarus mailing list, We would like to acknowledge that we have received your request and a ticket has been created. A support representative will be reviewing your request and will send you a personal response.(usually within 24 hours). To view the status of the ticket or add comments, please visit https://trubrain.freshdesk.com/helpdesk/tickets/512 Thank you for your patience. Sincerely, TruBrain Support Team -------------- next part -------------- An HTML attachment was scrubbed... URL: From skalogryz.lists at gmail.com Fri Mar 3 19:22:57 2017 From: skalogryz.lists at gmail.com (Dmitry Boyarintsev) Date: Fri, 3 Mar 2017 13:22:57 -0500 Subject: [Lazarus] TruBrain user activation In-Reply-To: <58b9b3066207a_344577b0c82751e2@delayed-jobs-sidekiq-1.mail> References: <58b9b3066207a_344577b0c82751e2@delayed-jobs-sidekiq-1.mail> Message-ID: Spammers have to be blocked. thanks, Dmitry -------------- next part -------------- An HTML attachment was scrubbed... URL: From skalogryz.lists at gmail.com Fri Mar 3 19:24:16 2017 From: skalogryz.lists at gmail.com (Dmitry Boyarintsev) Date: Fri, 3 Mar 2017 13:24:16 -0500 Subject: [Lazarus] TruBrain user activation In-Reply-To: References: <58b9b3066207a_344577b0c82751e2@delayed-jobs-sidekiq-1.mail> Message-ID: It should be blocked asap, since now its receiving mailing list and would steal everyone's email addresses. thanks, Dmitry On Fri, Mar 3, 2017 at 1:22 PM, Dmitry Boyarintsev < skalogryz.lists at gmail.com> wrote: > Spammers have to be blocked. > > thanks, > Dmitry > -------------- next part -------------- An HTML attachment was scrubbed... URL: From team at trubrain.com Fri Mar 3 19:24:21 2017 From: team at trubrain.com (Team at TruBrain) Date: Fri, 03 Mar 2017 18:24:21 +0000 Subject: [Lazarus] New comment - [#513] Re: TruBrain user activation In-Reply-To: References: Message-ID: <58b9b4d542686_285d15b104842683e.delayed-jobs-sidekiq-1@notification.freshdesk.com> There is a new comment in the ticket submitted by Dmitry Boyarintsev to TruBrain Comment added by : Dmitry Boyarintsev Comment Content:
It should be blocked asap, since now its receiving  mailing list and would steal everyone's email addresses.

thanks,
Dmitry

On Fri, Mar 3, 2017 at 1:22 PM, Dmitry Boyarintsev <skalogryz.lists at gmail.com> wrote:
Spammers have to be blocked.

thanks,
Dmitry

-------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at dommelstein.nl Fri Mar 3 21:30:11 2017 From: marc at dommelstein.nl (Marc Weustink) Date: Fri, 03 Mar 2017 21:30:11 +0100 Subject: [Lazarus] TruBrain user activation In-Reply-To: References: <58b9b3066207a_344577b0c82751e2@delayed-jobs-sidekiq-1.mail> Message-ID: <4BE9D406-84CC-477F-B428-DDFB3252C9B4@dommelstein.nl> Freshdesk isnt a spammer , but ticket support system. Someone used the lazarus address to subscribe to the trubrain ticket system :( Ive searched for this user to unsubscribe, but i haven't found it jet Marc On March 3, 2017 7:24:16 PM GMT+01:00, Dmitry Boyarintsev via Lazarus wrote: >It should be blocked asap, since now its receiving mailing list and >would >steal everyone's email addresses. > >thanks, >Dmitry > >On Fri, Mar 3, 2017 at 1:22 PM, Dmitry Boyarintsev < >skalogryz.lists at gmail.com> wrote: > >> Spammers have to be blocked. >> >> thanks, >> Dmitry >> From team at trubrain.com Fri Mar 3 21:39:32 2017 From: team at trubrain.com (Team at TruBrain) Date: Fri, 03 Mar 2017 20:39:32 +0000 Subject: [Lazarus] Ticket Received - Re: TruBrain user activation In-Reply-To: <4BE9D406-84CC-477F-B428-DDFB3252C9B4@dommelstein.nl> References: <4BE9D406-84CC-477F-B428-DDFB3252C9B4@dommelstein.nl> Message-ID: <58b9d4843a402_6fe011174d8352638.delayed-jobs-sidekiq-1@notification.freshdesk.com> Dear Lazarus mailing list, We would like to acknowledge that we have received your request and a ticket has been created. A support representative will be reviewing your request and will send you a personal response.(usually within 24 hours). To view the status of the ticket or add comments, please visit https://trubrain.freshdesk.com/helpdesk/tickets/571 Thank you for your patience. Sincerely, TruBrain Support Team -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at dommelstein.nl Fri Mar 3 23:28:16 2017 From: marc at dommelstein.nl (Marc Weustink) Date: Fri, 03 Mar 2017 23:28:16 +0100 Subject: [Lazarus] TruBrain user activation In-Reply-To: <4BE9D406-84CC-477F-B428-DDFB3252C9B4@dommelstein.nl> References: <58b9b3066207a_344577b0c82751e2@delayed-jobs-sidekiq-1.mail> <4BE9D406-84CC-477F-B428-DDFB3252C9B4@dommelstein.nl> Message-ID: <8A01E7AC-3918-4C6B-BB0D-7B3E9B54186B@dommelstein.nl> Ok disabled mail On March 3, 2017 9:30:11 PM GMT+01:00, Marc Weustink via Lazarus wrote: >Freshdesk isnt a spammer , but ticket support system. Someone used the >lazarus address to subscribe to the trubrain ticket system :( > >Ive searched for this user to unsubscribe, but i haven't found it jet > >Marc > >On March 3, 2017 7:24:16 PM GMT+01:00, Dmitry Boyarintsev via Lazarus > wrote: >>It should be blocked asap, since now its receiving mailing list and >>would >>steal everyone's email addresses. >> >>thanks, >>Dmitry >> >>On Fri, Mar 3, 2017 at 1:22 PM, Dmitry Boyarintsev < >>skalogryz.lists at gmail.com> wrote: >> >>> Spammers have to be blocked. >>> >>> thanks, >>> Dmitry >>> >-- >_______________________________________________ >Lazarus mailing list >Lazarus at lists.lazarus-ide.org >http://lists.lazarus-ide.org/listinfo/lazarus From wkitty42 at windstream.net Sat Mar 4 01:41:42 2017 From: wkitty42 at windstream.net (wkitty42 at windstream.net) Date: Fri, 3 Mar 2017 19:41:42 -0500 Subject: [Lazarus] TruBrain user activation In-Reply-To: <4BE9D406-84CC-477F-B428-DDFB3252C9B4@dommelstein.nl> References: <58b9b3066207a_344577b0c82751e2@delayed-jobs-sidekiq-1.mail> <4BE9D406-84CC-477F-B428-DDFB3252C9B4@dommelstein.nl> Message-ID: On 03/03/2017 03:30 PM, Marc Weustink via Lazarus wrote: > Freshdesk isnt a spammer , but ticket support system. Someone used the > lazarus address to subscribe to the trubrain ticket system :( we've gone through something similar on the snort mailing list in the recent past... filing formal spam reports for all of their posts is how we took care of that... it wasn't trubrain but some virtual office on the net crap... apparently it has a ticketing system... > Ive searched for this user to unsubscribe, but i haven't found it jet this could be painful but i'd start with those that signed up on the date the garbage first showed up... good luck! > Marc > > On March 3, 2017 7:24:16 PM GMT+01:00, Dmitry Boyarintsev via Lazarus wrote: >> It should be blocked asap, since now its receiving mailing list and >> would >> steal everyone's email addresses. >> >> thanks, >> Dmitry >> >> On Fri, Mar 3, 2017 at 1:22 PM, Dmitry Boyarintsev < >> skalogryz.lists at gmail.com> wrote: >> >>> Spammers have to be blocked. >>> >>> thanks, >>> Dmitry >>> -- NOTE: No off-list assistance is given without prior approval. *Please keep mailing list traffic on the list* unless private contact is specifically requested and granted. From petr at petrhlozek.cz Sat Mar 4 16:18:22 2017 From: petr at petrhlozek.cz (=?UTF-8?B?UGV0ciBIbG/FvmVr?=) Date: Sat, 4 Mar 2017 16:18:22 +0100 Subject: [Lazarus] Synapse, HTTPS request and libssl 1.1.0 Message-ID: Hi, my application needs some data from a https website and uses Synapse to download it. Everything works fine on Ubuntu 16.04 with libssl 1.0 but doesn't work at all on Debian testing where the libssl is in version 1.1. I get this error: error:140A90C4:SSL routines:func(169):reason(196) Could you help me how to solve that, please? Thank you for your help! Petr -- web: https://petrhlozek.cz email: petr at petrhlozek.cz -------------- next part -------------- An HTML attachment was scrubbed... URL: From M.Santhoff at web.de Sat Mar 4 16:33:39 2017 From: M.Santhoff at web.de (Marc Santhoff) Date: Sat, 04 Mar 2017 16:33:39 +0100 Subject: [Lazarus] type lib import Message-ID: <1488641619.5341.1.camel@puma.das.netz> Hi, is fpc/lazarus able to import type libraries for COM dll on windows? TIA, Marc From michael at freepascal.org Sat Mar 4 16:59:16 2017 From: michael at freepascal.org (Michael Van Canneyt) Date: Sat, 4 Mar 2017 16:59:16 +0100 (CET) Subject: [Lazarus] type lib import In-Reply-To: <1488641619.5341.1.camel@puma.das.netz> References: <1488641619.5341.1.camel@puma.das.netz> Message-ID: On Sat, 4 Mar 2017, Marc Santhoff via Lazarus wrote: > Hi, > > is fpc/lazarus able to import type libraries for COM dll on windows? If there is an IDL, yes it can. There is a tool for it in the FPC packages. Michael. From listbox at martoks-place.de Sat Mar 4 17:02:56 2017 From: listbox at martoks-place.de (Martok) Date: Sat, 4 Mar 2017 17:02:56 +0100 Subject: [Lazarus] type lib import In-Reply-To: <1488641619.5341.1.camel@puma.das.netz> References: <1488641619.5341.1.camel@puma.das.netz> Message-ID: <52b3d643-2a0f-7f8b-9177-ded1f0e7b48f@martoks-place.de> Hi, yes, FPC provides the 'importtl'-utility for that. You can also install the LazActiveX package to get a Delphi-style visual frontend for it in the IDE Tools menu. Martok Am 04.03.2017 um 16:33 schrieb Marc Santhoff via Lazarus: > Hi, > > is fpc/lazarus able to import type libraries for COM dll on windows? > > TIA, > Marc > > From M.Santhoff at web.de Sun Mar 5 00:00:12 2017 From: M.Santhoff at web.de (Marc Santhoff) Date: Sun, 05 Mar 2017 00:00:12 +0100 Subject: [Lazarus] type lib import In-Reply-To: References: <1488641619.5341.1.camel@puma.das.netz> Message-ID: <1488668412.2102.2.camel@puma.das.netz> On Sa, 2017-03-04 at 16:59 +0100, Michael Van Canneyt wrote: > > On Sat, 4 Mar 2017, Marc Santhoff via Lazarus wrote: > > > Hi, > > > > is fpc/lazarus able to import type libraries for COM dll on windows? > > If there is an IDL, yes it can. There is a tool for it in the FPC packages. Lots of those, yes. Thank you, Marc (Sorry for private mail, your personal mail address was set as main address) From M.Santhoff at web.de Sun Mar 5 00:05:50 2017 From: M.Santhoff at web.de (Marc Santhoff) Date: Sun, 05 Mar 2017 00:05:50 +0100 Subject: [Lazarus] type lib import In-Reply-To: <52b3d643-2a0f-7f8b-9177-ded1f0e7b48f@martoks-place.de> References: <1488641619.5341.1.camel@puma.das.netz> <52b3d643-2a0f-7f8b-9177-ded1f0e7b48f@martoks-place.de> Message-ID: <1488668750.2102.6.camel@puma.das.netz> On Sa, 2017-03-04 at 17:02 +0100, Martok via Lazarus wrote: > Hi, > > yes, FPC provides the 'importtl'-utility for that. You can also install the > LazActiveX package to get a Delphi-style visual frontend for it in the IDE Tools > menu. > > > Martok General Martok? Thlo'! Marc From dhkblaszyk at zeelandnet.nl Sun Mar 5 11:57:54 2017 From: dhkblaszyk at zeelandnet.nl (Darius Blaszyk) Date: Sun, 05 Mar 2017 11:57:54 +0100 Subject: [Lazarus] Terminal window while debugging Message-ID: <5bfe43fa5272d7430d878a6dd0b2efe5@zeelandnet.nl> On Linux I don't get the terminal to show when debugging a command line application. How can I instruct the IDE to display the terminal? There is the console window, but I prefer to see the terminal instead. On windows this seems to be handled just fine. I'm using 1.6.4 Regards, Darius From markMLl.lazarus at telemetry.co.uk Sun Mar 5 13:35:14 2017 From: markMLl.lazarus at telemetry.co.uk (Mark Morgan Lloyd) Date: Sun, 5 Mar 2017 12:35:14 +0000 Subject: [Lazarus] "Configure Lazarus IDE" window Message-ID: I'm in the middle of setting up several versions of Lazarus for test purposes on a system I use rarely. Is it possible to invoke this form from inside the IDE, please could it tell us where it's about to store the information, and could it please have a button to clone the information to a different directory that can later be picked up by a newer version of the IDE using the --pcp option. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] From wkitty42 at windstream.net Sun Mar 5 13:46:19 2017 From: wkitty42 at windstream.net (wkitty42 at windstream.net) Date: Sun, 5 Mar 2017 07:46:19 -0500 Subject: [Lazarus] Terminal window while debugging In-Reply-To: <5bfe43fa5272d7430d878a6dd0b2efe5@zeelandnet.nl> References: <5bfe43fa5272d7430d878a6dd0b2efe5@zeelandnet.nl> Message-ID: On 03/05/2017 05:57 AM, Darius Blaszyk via Lazarus wrote: > On Linux I don't get the terminal to show when debugging a command line > application. How can I instruct the IDE to display the terminal? There is the > console window, but I prefer to see the terminal instead. On windows this seems > to be handled just fine. I'm using 1.6.4 maybe i'm misunderstanding something but on linux, the console is the terminal... isn't it? it seems that way over here... eg: in GUI i open a terminal, konsole, and from there run text and GUI programs alike... if i CTRL-ALT-F1, i'm at the base console/terminal i can run text stuffs... i haven't tried GUI stuff from the base terminals ALT-F1 thru ALT-F6... don't know if they would show up on ALT-F7 or not... -- NOTE: No off-list assistance is given without prior approval. *Please keep mailing list traffic on the list* unless private contact is specifically requested and granted. From pascaldragon at googlemail.com Sun Mar 5 13:49:45 2017 From: pascaldragon at googlemail.com (Sven Barth) Date: Sun, 5 Mar 2017 13:49:45 +0100 Subject: [Lazarus] Terminal window while debugging In-Reply-To: References: <5bfe43fa5272d7430d878a6dd0b2efe5@zeelandnet.nl> Message-ID: Am 05.03.2017 11:58 schrieb "Darius Blaszyk via Lazarus" < lazarus at lists.lazarus-ide.org>: > > On Linux I don't get the terminal to show when debugging a command line application. How can I instruct the IDE to display the terminal? There is the console window, but I prefer to see the terminal instead. On windows this seems to be handled just fine. I'm using 1.6.4 Because on Windows the operating system automatically provides a console if the application is a console one. That is not the case on most other systems however. If you want a terminal window on Linux you need to enable it in the project settings (don't remember the correct name right now, but the default setting AFAIK is that it's disabled and using "xterm", you'll need to adjust that for your system). Regards, Sven -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian666 at hughes.net Sun Mar 5 15:15:09 2017 From: brian666 at hughes.net (brian666 at hughes.net) Date: Sun, 5 Mar 2017 09:15:09 -0500 Subject: [Lazarus] Error when rebuilding the IDE in Lazarus 1.6.4, AMD64 Message-ID: Hi all, Just upgraded to the AMD 64 versions of FPC 3.02 and Lazarus 1.6.4 as downloaded from SourceForge, I upgraded an instance of 1.6.2 (from the same source) which was working just fine. I'm running 64-bit Linux Mint 'Betsy', i.e. the Debian-based version of Mint, on a AMD Phenom x2. The problem is that rebuilding the IDE doesn't seem to work. The error is shown as 'Generic error while linking'. I don't think the source line is relevant, as it tags the 'end.' in lazarus.pp. The exit code returned is 512. Any ideas, please? Thanks, Brian. From wkitty42 at windstream.net Sun Mar 5 15:29:35 2017 From: wkitty42 at windstream.net (wkitty42 at windstream.net) Date: Sun, 5 Mar 2017 09:29:35 -0500 Subject: [Lazarus] Terminal window while debugging In-Reply-To: References: <5bfe43fa5272d7430d878a6dd0b2efe5@zeelandnet.nl> Message-ID: On 03/05/2017 07:49 AM, Sven Barth via Lazarus wrote: > If you want a terminal window on Linux you need to enable it in the project > settings (don't remember the correct name right now, but the default setting > AFAIK is that it's disabled and using "xterm", you'll need to adjust that > for your system). ahhh... i missed that part... mainly because i generally run everything from the command line ;) -- NOTE: No off-list assistance is given without prior approval. *Please keep mailing list traffic on the list* unless private contact is specifically requested and granted. From brian666 at hughes.net Sun Mar 5 15:54:01 2017 From: brian666 at hughes.net (brian) Date: Sun, 5 Mar 2017 09:54:01 -0500 Subject: [Lazarus] Error when rebuilding the IDE in Lazarus 1.6.4, AMD64 In-Reply-To: References: Message-ID: On 03/05/2017 09:15 AM, brian666--- via Lazarus wrote: > Hi all, > > Just upgraded to the AMD 64 versions of FPC 3.02 and Lazarus 1.6.4 as > downloaded from SourceForge, I upgraded an instance of 1.6.2 (from the > same source) which was working just fine. I'm running 64-bit Linux > Mint 'Betsy', i.e. the Debian-based version of Mint, on a AMD Phenom > x2. The problem is that rebuilding the IDE doesn't seem to work. > > The error is shown as 'Generic error while linking'. I don't think the > source line is relevant, as it tags the 'end.' in lazarus.pp. The exit > code returned is 512. > > Any ideas, please? > P.S. Same error when trying to build a 'Hello, World' simple program. From markMLl.lazarus at telemetry.co.uk Sun Mar 5 16:35:42 2017 From: markMLl.lazarus at telemetry.co.uk (Mark Morgan Lloyd) Date: Sun, 5 Mar 2017 15:35:42 +0000 Subject: [Lazarus] Error when rebuilding the IDE in Lazarus 1.6.4, AMD64 In-Reply-To: References: Message-ID: On 05/03/17 15:00, brian via Lazarus wrote: > On 03/05/2017 09:15 AM, brian666--- via Lazarus wrote:> Hi all,> > Just upgraded to the AMD 64 versions of FPC 3.02 and Lazarus 1.6.4 as> downloaded from SourceForge, I upgraded an instance of 1.6.2 (from the> same source) which was working just fine. I'm running 64-bit Linux> Mint 'Betsy', i.e. the Debian-based version of Mint, on a AMD Phenom> x2. The problem is that rebuilding the IDE doesn't seem to work.> > The error is shown as 'Generic error while linking'. I don't think the> source line is relevant, as it tags the 'end.' in lazarus.pp. The exit> code returned is 512.> > Any ideas, please?> > P.S. Same error when trying to build a 'Hello, World' simple program. I built on amd64 using pukka Debian a couple of days ago with no problems. GNU ld (GNU Binutils for Debian) 2.25 -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] From brian666 at hughes.net Sun Mar 5 16:53:55 2017 From: brian666 at hughes.net (brian) Date: Sun, 5 Mar 2017 10:53:55 -0500 Subject: [Lazarus] Error when rebuilding the IDE in Lazarus 1.6.4, AMD64 In-Reply-To: References: Message-ID: <99311753-18c8-7b41-8ccf-de96a71a1eae@hughes.net> On 03/05/2017 10:35 AM, Mark Morgan Lloyd via Lazarus wrote: > On 05/03/17 15:00, brian via Lazarus wrote: >> On 03/05/2017 09:15 AM, brian666--- via Lazarus wrote:> Hi all,> > >> Just upgraded to the AMD 64 versions of FPC 3.02 and Lazarus 1.6.4 >> as> downloaded from SourceForge, I upgraded an instance of 1.6.2 >> (from the> same source) which was working just fine. I'm running >> 64-bit Linux> Mint 'Betsy', i.e. the Debian-based version of Mint, >> on a AMD Phenom> x2. The problem is that rebuilding the IDE doesn't >> seem to work.> > The error is shown as 'Generic error while >> linking'. I don't think the> source line is relevant, as it tags the >> 'end.' in lazarus.pp. The exit> code returned is 512.> > Any ideas, >> please?> >> P.S. Same error when trying to build a 'Hello, World' simple program. > > I built on amd64 using pukka Debian a couple of days ago with no > problems. GNU ld (GNU Binutils for Debian) 2.25 > The version of binutils in the LMDE repositories is 2.25-5. I did do an apt-get update, upgrade and -f install before posting. Everything was up to date. Brian. From luca at wetron.es Sun Mar 5 17:59:58 2017 From: luca at wetron.es (Luca Olivetti) Date: Sun, 5 Mar 2017 17:59:58 +0100 Subject: [Lazarus] Error when rebuilding the IDE in Lazarus 1.6.4, AMD64 In-Reply-To: References: Message-ID: <4d450156-59da-6932-3122-e8e24a25be95@wetron.es> El 05/03/17 a les 15:15, brian666--- via Lazarus ha escrit: > > The error is shown as 'Generic error while linking'. I don't think the > source line is relevant, as it tags the 'end.' in lazarus.pp. The exit > code returned is 512. Right click on the messages window, copy -> copy all/original messages to clipboard Then open a text editor and paste what you just copied, so you can see the exact linker error. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 From brian666 at hughes.net Sun Mar 5 18:53:37 2017 From: brian666 at hughes.net (brian) Date: Sun, 5 Mar 2017 12:53:37 -0500 Subject: [Lazarus] Error when rebuilding the IDE in Lazarus 1.6.4, AMD64 In-Reply-To: <4d450156-59da-6932-3122-e8e24a25be95@wetron.es> References: <4d450156-59da-6932-3122-e8e24a25be95@wetron.es> Message-ID: <248cc85d-32f6-c9c7-c5bc-233512d0fdb1@hughes.net> On 03/05/2017 11:59 AM, Luca Olivetti via Lazarus wrote: > El 05/03/17 a les 15:15, brian666--- via Lazarus ha escrit: > >> >> The error is shown as 'Generic error while linking'. I don't think the >> source line is relevant, as it tags the 'end.' in lazarus.pp. The exit >> code returned is 512. > > Right click on the messages window, copy -> copy all/original messages > to clipboard > Then open a text editor and paste what you just copied, so you can see > the exact linker error. > > Bye Thank you, that found more details of the problem, but I'm still at a loss how to fix it. I think this is the relevant section of the messages... > > > /usr/bin/ld: /usr/lib/fpc/3.0.2/units/x86_64-linux/rtl/cprt0.o: unrecognized relocation (0x2a) in section `.text' > /usr/bin/ld: final link failed: Bad value > /usr/share/lazarus/1.6.4/ide/lazarus.pp(154,1) Error: (9013) Error while linking > /usr/share/lazarus/1.6.4/ide/lazarus.pp(154,1) Fatal: (10026) There were 1 errors compiling module, stopping > Fatal: (1018) Compilation aborted > make[2]: *** [lazarus] Error 1 > make[1]: *** [idepkg] Error 2 > make: *** [idepkg] Error 2 > Error: /usr/bin/ppcx64 returned an error exitcode > Makefile:4004: recipe for target 'lazarus' failed > make[2]: Leaving directory '/usr/share/lazarus/1.6.4/ide' > Makefile:4430: recipe for target 'idepkg' failed > make[1]: Leaving directory '/usr/share/lazarus/1.6.4/ide' > Makefile:3074: recipe for target 'idepkg' failed > make: Leaving directory '/usr/share/lazarus/1.6.4' From luca at wetron.es Sun Mar 5 19:17:34 2017 From: luca at wetron.es (Luca Olivetti) Date: Sun, 5 Mar 2017 19:17:34 +0100 Subject: [Lazarus] Error when rebuilding the IDE in Lazarus 1.6.4, AMD64 In-Reply-To: <248cc85d-32f6-c9c7-c5bc-233512d0fdb1@hughes.net> References: <4d450156-59da-6932-3122-e8e24a25be95@wetron.es> <248cc85d-32f6-c9c7-c5bc-233512d0fdb1@hughes.net> Message-ID: <92b0544f-d7e4-0d52-5af1-205b3dda4d22@wetron.es> El 05/03/17 a les 18:53, brian via Lazarus ha escrit: > On 03/05/2017 11:59 AM, Luca Olivetti via Lazarus wrote: >> El 05/03/17 a les 15:15, brian666--- via Lazarus ha escrit: >> >>> >>> The error is shown as 'Generic error while linking'. I don't think the >>> source line is relevant, as it tags the 'end.' in lazarus.pp. The exit >>> code returned is 512. >> >> Right click on the messages window, copy -> copy all/original messages >> to clipboard >> Then open a text editor and paste what you just copied, so you can see >> the exact linker error. >> >> Bye > > Thank you, that found more details of the problem, but I'm still at a > loss how to fix it. I think this is the relevant section of the > messages... I don't know how to fix it either, but try searching google for the message "unrecognized relocation (0x2a)": there are a couple of bug reports against ubuntu and debian and maybe they apply to your distribution. > > >> >> >> /usr/bin/ld: /usr/lib/fpc/3.0.2/units/x86_64-linux/rtl/cprt0.o: unrecognized relocation (0x2a) in section `.text' >> /usr/bin/ld: final link failed: Bad value >> /usr/share/lazarus/1.6.4/ide/lazarus.pp(154,1) Error: (9013) Error while linking >> /usr/share/lazarus/1.6.4/ide/lazarus.pp(154,1) Fatal: (10026) There were 1 errors compiling module, stopping >> Fatal: (1018) Compilation aborted >> make[2]: *** [lazarus] Error 1 >> make[1]: *** [idepkg] Error 2 >> make: *** [idepkg] Error 2 >> Error: /usr/bin/ppcx64 returned an error exitcode >> Makefile:4004: recipe for target 'lazarus' failed >> make[2]: Leaving directory '/usr/share/lazarus/1.6.4/ide' >> Makefile:4430: recipe for target 'idepkg' failed >> make[1]: Leaving directory '/usr/share/lazarus/1.6.4/ide' >> Makefile:3074: recipe for target 'idepkg' failed >> make: Leaving directory '/usr/share/lazarus/1.6.4' > > -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 From dhkblaszyk at zeelandnet.nl Sun Mar 5 19:53:00 2017 From: dhkblaszyk at zeelandnet.nl (Darius Blaszyk) Date: Sun, 05 Mar 2017 19:53:00 +0100 Subject: [Lazarus] Terminal window while debugging In-Reply-To: References: <5bfe43fa5272d7430d878a6dd0b2efe5@zeelandnet.nl> Message-ID: >> On Linux I don't get the terminal to show when debugging a command >> line application. How can I instruct the IDE to display the terminal? >> There is the console window, but I prefer to see the terminal instead. >> On windows this seems to be handled just fine. I'm using 1.6.4 With "console window" I was referring to the "terminal output" debug window. > Because on Windows the operating system automatically provides a > console if the application is a console one. That is not the case on > most other systems however. > If you want a terminal window on Linux you need to enable it in the > project settings (don't remember the correct name right now, but the > default setting AFAIK is that it's disabled and using "xterm", you'll > need to adjust that for your system). What setting would that be? Are you possibly referring to the "run parameters" dialog and the "launching application" setting? Activating that gives the following error: "/usr/bin/gnome-terminal": not in executable format: File format not recognized Switching to xterm does not help. Then I get: The GDB command: "info address main" returned the error: ",msg="No symbol \"main\" in current context."" Regards, Darius From lazarus at mfriebe.de Sun Mar 5 20:14:36 2017 From: lazarus at mfriebe.de (Martin Frb) Date: Sun, 5 Mar 2017 19:14:36 +0000 Subject: [Lazarus] Terminal window while debugging In-Reply-To: References: <5bfe43fa5272d7430d878a6dd0b2efe5@zeelandnet.nl> Message-ID: On 05/03/2017 18:53, Darius Blaszyk via Lazarus wrote: >>> On Linux I don't get the terminal to show when debugging a command >>> line application. How can I instruct the IDE to display the >>> terminal? There is the console window, but I prefer to see the >>> terminal instead. On windows this seems to be handled just fine. I'm >>> using 1.6.4 > > With "console window" I was referring to the "terminal output" debug > window. The best way is to provide patches, and make the "terminal output" window more comfortable / add functions a terminal would have.... > What setting would that be? Are you possibly referring to the "run > parameters" dialog and the "launching application" setting? Activating > that gives the following error: > > "/usr/bin/gnome-terminal": not in executable format: File format not > recognized > I don't think you can start it directly with F9 inside any terminal app. You can of course run it in a terminal (outside the IDE), and then attach to it (assuming it waits somewhere so you have time) An other options is http://wiki.lazarus.freepascal.org/Debugger_Console_App#Redirect_input_and_output_to_a_pty_.28terminal.29 But it is not very convenient either From brian666 at hughes.net Sun Mar 5 22:57:04 2017 From: brian666 at hughes.net (brian) Date: Sun, 5 Mar 2017 16:57:04 -0500 Subject: [Lazarus] Error when rebuilding the IDE in Lazarus 1.6.4, AMD64 In-Reply-To: <92b0544f-d7e4-0d52-5af1-205b3dda4d22@wetron.es> References: <4d450156-59da-6932-3122-e8e24a25be95@wetron.es> <248cc85d-32f6-c9c7-c5bc-233512d0fdb1@hughes.net> <92b0544f-d7e4-0d52-5af1-205b3dda4d22@wetron.es> Message-ID: <0322147a-af45-09bb-2824-ac1698ca30c4@hughes.net> On 03/05/2017 01:17 PM, Luca Olivetti via Lazarus wrote: > El 05/03/17 a les 18:53, brian via Lazarus ha escrit: >> On 03/05/2017 11:59 AM, Luca Olivetti via Lazarus wrote: >>> El 05/03/17 a les 15:15, brian666--- via Lazarus ha escrit: >>> >>>> >>>> The error is shown as 'Generic error while linking'. I don't think >>>> the >>>> source line is relevant, as it tags the 'end.' in lazarus.pp. The >>>> exit >>>> code returned is 512. >>> >>> Right click on the messages window, copy -> copy all/original messages >>> to clipboard >>> Then open a text editor and paste what you just copied, so you can see >>> the exact linker error. >>> >>> Bye >> >> Thank you, that found more details of the problem, but I'm still at a >> loss how to fix it. I think this is the relevant section of the >> messages... > > I don't know how to fix it either, but try searching google for the > message "unrecognized relocation (0x2a)": there are a couple of bug > reports against ubuntu and debian and maybe they apply to your > distribution. > The bug reports are against the version of libc6 (2.21) found in Debian testing. Mint Debian uses Jessie, aka stable, and my libc6 is definitely not the version which is supposed to exhibit the bug. > brian at brian ~ $ dpkg -l libc6:amd64 > Desired=Unknown/Install/Remove/Purge/Hold > | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend > |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) > ||/ Name Version Architecture Description > +++-========================-=================-=================-====================================================== > ii libc6:amd64 2.19-18+deb8u7 amd64 GNU C Library: Shared libraries > brian at brian ~ $ From brian666 at hughes.net Mon Mar 6 01:11:11 2017 From: brian666 at hughes.net (brian) Date: Sun, 5 Mar 2017 19:11:11 -0500 Subject: [Lazarus] Error when rebuilding the IDE in Lazarus 1.6.4, AMD64 In-Reply-To: References: Message-ID: <1b4fd7e6-75f8-5c02-7e3c-9b5c9fa74026@hughes.net> On 03/05/2017 10:35 AM, Mark Morgan Lloyd via Lazarus wrote: > On 05/03/17 15:00, brian via Lazarus wrote: >> On 03/05/2017 09:15 AM, brian666--- via Lazarus wrote:> Hi all,> > >> Just upgraded to the AMD 64 versions of FPC 3.02 and Lazarus 1.6.4 >> as> downloaded from SourceForge, I upgraded an instance of 1.6.2 >> (from the> same source) which was working just fine. I'm running >> 64-bit Linux> Mint 'Betsy', i.e. the Debian-based version of Mint, >> on a AMD Phenom> x2. The problem is that rebuilding the IDE doesn't >> seem to work.> > The error is shown as 'Generic error while >> linking'. I don't think the> source line is relevant, as it tags the >> 'end.' in lazarus.pp. The exit> code returned is 512.> > Any ideas, >> please?> >> P.S. Same error when trying to build a 'Hello, World' simple program. > > I built on amd64 using pukka Debian a couple of days ago with no > problems. GNU ld (GNU Binutils for Debian) 2.25 > Mark, could you please check your version of libc6? Thanks. From markMLl.lazarus at telemetry.co.uk Mon Mar 6 10:31:41 2017 From: markMLl.lazarus at telemetry.co.uk (Mark Morgan Lloyd) Date: Mon, 6 Mar 2017 09:31:41 +0000 Subject: [Lazarus] Error when rebuilding the IDE in Lazarus 1.6.4, AMD64 In-Reply-To: <1b4fd7e6-75f8-5c02-7e3c-9b5c9fa74026@hughes.net> References: <1b4fd7e6-75f8-5c02-7e3c-9b5c9fa74026@hughes.net> Message-ID: On 06/03/17 00:30, brian via Lazarus wrote: > On 03/05/2017 10:35 AM, Mark Morgan Lloyd via Lazarus wrote:> On 05/03/17 15:00, brian via Lazarus wrote:>> On 03/05/2017 09:15 AM, brian666--- via Lazarus wrote:> Hi all,> >>> Just upgraded to the AMD 64 versions of FPC 3.02 and Lazarus 1.6.4>> as> downloaded from SourceForge, I upgraded an instance of 1.6.2>> (from the> same source) which was working just fine. I'm running>> 64-bit Linux> Mint 'Betsy', i.e. the Debian-based version of Mint,>> on a AMD Phenom> x2. The problem is that rebuilding the IDE doesn't>> seem to work.> > The error is shown as 'Generic error while>> linking'. I don't think the> source line is relevant, as it tags the>> 'end.' in lazarus.pp. The exit> code returned is 512.> > Any ideas,>> please?>>> P.S. Same error when trying to build a 'Hello, World' simple program.> > I built on amd64 using pukka Debian a couple of days ago with no> problems. GNU ld (GNU Binutils for Debian) 2.25> > Mark, could you please check your version of libc6? Like this? $ sudo ldconfig -v |grep libc .. libc.so.6 -> libc-2.19.so ar, as and ld all at 2.25. $ uname -a Linux pye-dev-04 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1 (2016-12-30) x86_64 GNU/Linux That should be an ablutions-standard Debian "Jessie". In the interest of full disclosure it's had deb-multimedia enabled to install something like Flash at some point, but apart from that I'd expect no surprises. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] From brian666 at hughes.net Mon Mar 6 13:14:31 2017 From: brian666 at hughes.net (brian) Date: Mon, 6 Mar 2017 07:14:31 -0500 Subject: [Lazarus] Error when rebuilding the IDE in Lazarus 1.6.4, AMD64 In-Reply-To: References: <1b4fd7e6-75f8-5c02-7e3c-9b5c9fa74026@hughes.net> Message-ID: <37c50b29-ff7f-920b-8c02-0ba7cb5cfee1@hughes.net> On 03/06/2017 04:31 AM, Mark Morgan Lloyd via Lazarus wrote: > On 06/03/17 00:30, brian via Lazarus wrote: >> On 03/05/2017 10:35 AM, Mark Morgan Lloyd via Lazarus wrote:> On >> 05/03/17 15:00, brian via Lazarus wrote:>> On 03/05/2017 09:15 AM, >> brian666--- via Lazarus wrote:> Hi all,> >>> Just upgraded to the >> AMD 64 versions of FPC 3.02 and Lazarus 1.6.4>> as> downloaded from >> SourceForge, I upgraded an instance of 1.6.2>> (from the> same >> source) which was working just fine. I'm running>> 64-bit Linux> >> Mint 'Betsy', i.e. the Debian-based version of Mint,>> on a AMD >> Phenom> x2. The problem is that rebuilding the IDE doesn't>> seem to >> work.> > The error is shown as 'Generic error while>> linking'. I >> don't think the> source line is relevant, as it tags the>> 'end.' in >> lazarus.pp. The exit> code returned is 512.> > Any ideas,>> >> please?>>> P.S. Same error when trying to build a 'Hello, World' >> simple program.> > I built on amd64 using pukka Debian a couple of >> days ago with no> problems. GNU ld (GNU Binutils for Debian) 2.25> > >> Mark, could you please check your version of libc6? > > Like this? > > $ sudo ldconfig -v |grep libc > .. > libc.so.6 -> libc-2.19.so > > ar, as and ld all at 2.25. > > $ uname -a > Linux pye-dev-04 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1 (2016-12-30) > x86_64 GNU/Linux > > That should be an ablutions-standard Debian "Jessie". In the interest > of full disclosure it's had deb-multimedia enabled to install > something like Flash at some point, but apart from that I'd expect no > surprises. > Thanks. The bug reports I read (pointed to by Luca) suggested that it was the version of libc6 on the system which indicated the problem would occur, but the suggestion was that it has to be the version in testing (2.21, I think). You have exactly the same version as I do, which is what I would expect, LMDE is explicitly said to be based on Jessie. I think it's time to put a vanilla Jessie in a VM and set up Lazarus and FPC in that (takes a day or so thanks to this @#$%^*& satellite internet!) - unless someone else surprises me and comes up with a fix. I recall it being some kind of problem with a much earlier version of LMDE and Lazarus/FPC which drove me from Mint to Debian in the first place. I don't know how they do it... :( Brian. From friess at gmx.at Tue Mar 7 13:12:30 2017 From: friess at gmx.at (=?UTF-8?Q?Andreas_Frie=c3=9f?=) Date: Tue, 7 Mar 2017 13:12:30 +0100 Subject: [Lazarus] Error: No Memory left at linking Lazarus with fpc trunk Message-ID: <2733b1c5-67c0-2a45-dc50-d52f79504624@gmx.at> If i want to recompile Lazarus with some packages i got the following error. If the fpc link Lazarus, it was running out of memory !? git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk at 54324 4005530d-fff6-0310-9dd1-cebe43e6787f FPC 3.1.1 i386-win32-win32/win64 with fpc 3.0.2 it works ################################ make: Entering directory `C:/Data/Hugo/Komponenten/Lazarus' C:/Data/development/fpctrunk/fpc/bin/i386-win32/make -C ide idepkg make[1]: Entering directory `C:/Data/Hugo/Komponenten/Lazarus/ide' ../tools/svn2revisioninc.exe .. revision.inc C:/Data/development/fpctrunk/fpc/bin/i386-win32/make --assume-new=lazarus.pp lazarus.exe OPT=' -WG @C:\Data\development\LazHugo\idemake.cfg' make[2]: Entering directory `C:/Data/Hugo/Komponenten/Lazarus/ide' C:/Data/development/fpctrunk/fpc/bin/i386-win32/fpc.exe -gl -vbqewnhi -Sci -dlclwin32 -Fu../designer -Fu../debugger -Fu../debugger/frames -Fu../converter -Fu../packager -Fu../packager/frames -Fu../components/custom -Fuinclude/win -Fuframes -Fu. -Fiinclude -Fiinclude/win32 -Fi../images -FE.. -FU../units/i386-win32/win32 -WG @C:\Data\development\LazHugo\idemake.cfg -di386 lazarus.pp Hint: (11030) Start of reading config file C:\Data\development\fpctrunk\fpc\bin\i386-win32\fpc.cfg Hint: (11031) End of reading config file C:\Data\development\fpctrunk\fpc\bin\i386-win32\fpc.cfg Hint: (11030) Start of reading config file C:\Data\development\LazHugo\idemake.cfg Hint: (11031) End of reading config file C:\Data\development\LazHugo\idemake.cfg Free Pascal Compiler version 3.1.1 [2017/02/08] for i386 Copyright (c) 1993-2017 by Florian Klaempfl and others (1002) Target OS: Win32 for i386 (3104) Compiling lazarus.pp C:\Data\Hugo\Komponenten\Lazarus\ide\lazarus.pp(109,20) Warning: (5044) Symbol "MainFormOnTaskBar" is not portable (9022) Compiling resource C:\Data\Hugo\Komponenten\Lazarus\units\i386-win32\win32\lazarus.or (9015) Linking ..\lazarus.exe C:\Data\Hugo\Komponenten\Lazarus\ide\lazarus.pp(159,1) Error: (1026) Compilation raised exception internally Fatal: (1009) No memory left Error: C:\Data\development\fpctrunk\fpc\bin\i386-win32\ppc386.exe returned an error exitcode make[2]: *** [lazarus.exe] Error 1 make[2]: Leaving directory `C:/Data/Hugo/Komponenten/Lazarus/ide' make[1]: *** [idepkg] Error 2 make[1]: Leaving directory `C:/Data/Hugo/Komponenten/Lazarus/ide' make: *** [idepkg] Error 2 make: Leaving directory `C:/Data/Hugo/Komponenten/Lazarus' ############################# From nc-gaertnma at netcologne.de Tue Mar 7 13:37:03 2017 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Tue, 7 Mar 2017 13:37:03 +0100 (CET) Subject: [Lazarus] Error: No Memory left at linking Lazarus with fpc trunk In-Reply-To: <2733b1c5-67c0-2a45-dc50-d52f79504624@gmx.at> References: <2733b1c5-67c0-2a45-dc50-d52f79504624@gmx.at> Message-ID: <798217424.79573.1488890223646@comcenter.netcologne.de> > Andreas Frieß via Lazarus hat am 7. März 2017 um 13:12 geschrieben: > > If i want to recompile Lazarus with some packages i got the following > error. If the fpc link Lazarus, it was running out of memory !? > > git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk at 54324 > 4005530d-fff6-0310-9dd1-cebe43e6787f > FPC 3.1.1 i386-win32-win32/win64 > > with fpc 3.0.2 it works How much RAM do you have? FPC 3.1.1 is experimental. When you spot a bug, please try an older revision. If that works, try to find the revision that broke it. Do you know what package triggers this? Mattias From noreply at z505.com Tue Mar 7 20:02:38 2017 From: noreply at z505.com (noreply at z505.com) Date: Tue, 07 Mar 2017 13:02:38 -0600 Subject: [Lazarus] Animation library In-Reply-To: <89e33463-0af5-48b9-e684-19a4abd1606d@geldenhuys.co.uk> References: <1d1f8364-c75c-1540-4361-9c4a28219d7f@gmail.com> <0e2dfb39-957c-b881-c1b3-b13e359b2428@geldenhuys.co.uk> <378912f2-f437-813f-ee45-064601207cb6@geldenhuys.co.uk> <89e33463-0af5-48b9-e684-19a4abd1606d@geldenhuys.co.uk> Message-ID: <61873f45f74ed46b0877f68e4753becc@z505.com> > I don't run a > desktop environment, but instead a old-school style Window Manager > (called JWM - Joe's Window Manager). JWM is extremely light - only uses > 8MB of RAM so never interferes with application performance tests. > > Regards, > Graeme > Do you use JWM just for testing, or JWM all the time for all work? From brian666 at hughes.net Tue Mar 7 23:54:54 2017 From: brian666 at hughes.net (brian) Date: Tue, 7 Mar 2017 17:54:54 -0500 Subject: [Lazarus] Error when rebuilding the IDE in Lazarus 1.6.4, AMD64 In-Reply-To: References: Message-ID: On 03/05/2017 09:15 AM, brian666--- via Lazarus wrote: > Hi all, > > Just upgraded to the AMD 64 versions of FPC 3.02 and Lazarus 1.6.4 as > downloaded from SourceForge, I upgraded an instance of 1.6.2 (from the > same source) which was working just fine. I'm running 64-bit Linux > Mint 'Betsy', i.e. the Debian-based version of Mint, on a AMD Phenom > x2. The problem is that rebuilding the IDE doesn't seem to work. > > The error is shown as 'Generic error while linking'. I don't think the > source line is relevant, as it tags the 'end.' in lazarus.pp. The exit > code returned is 512. > > Any ideas, please? > Well, the problem appears to be with FPC 3.0.2. Writing just a simple 'Hello World' using the FP IDE exhibits the same problem. Downgrading to FP 3.0.0 and Lazarus 1.6.2-1 means everything is back to normal. I guess I'd better head over to the Pascal group and post details there, unless somebody has beaten me to it. Brian. From mailinglists at geldenhuys.co.uk Wed Mar 8 01:40:35 2017 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Wed, 8 Mar 2017 00:40:35 +0000 Subject: [Lazarus] Animation library In-Reply-To: <61873f45f74ed46b0877f68e4753becc@z505.com> References: <1d1f8364-c75c-1540-4361-9c4a28219d7f@gmail.com> <0e2dfb39-957c-b881-c1b3-b13e359b2428@geldenhuys.co.uk> <378912f2-f437-813f-ee45-064601207cb6@geldenhuys.co.uk> <89e33463-0af5-48b9-e684-19a4abd1606d@geldenhuys.co.uk> <61873f45f74ed46b0877f68e4753becc@z505.com> Message-ID: <57e40753-a48a-1edf-1805-50475eb6ad97@geldenhuys.co.uk> On 2017-03-07 19:02, Lars via Lazarus wrote: > Do you use JWM just for testing, or JWM all the time for all work? I've been using JWM non-stop for the last 4 years! I'll never return to a bloated "desktop environment" again. Things I like about it: * I only activate the global shortcuts I need like Alt+F2, Alt-Tab. Nothing else, so it never conflicts with any application shortcuts. * Menus are a breeze to edit. I even used a 3rd party tool that generated JWM include files from Gnome/KDE menus (but don't do that any more). * My desktop/application menu only contains what I need and use, and items are grouped to what makes more sense to me. * Clicking anywhere on the desktop window brings up the application menu. * Virtual desktops are built-in, as well as dragging apps from one virtual desktop to another * A Win95 like "taskbar" is built-in (optional). The same for the trayicon areas. * A simple theme with rectangular windows (very configurable if you are into that kind of stuff, and you can configure rounded corner windows too). * The ability to restart JWM without having to shut down X11 or any of your applications.eg: to refresh the application menus or other config settings after being edited. * It's fast and very light with RAM usage. * Works perfectly with multiple monitors (I have 3), and I configured the taskbar to the center monitor only. I can send you my config file if you want to see my layout. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp From chavoux at gmail.com Wed Mar 8 12:51:59 2017 From: chavoux at gmail.com (Chavoux Luyt) Date: Wed, 8 Mar 2017 13:51:59 +0200 Subject: [Lazarus] Animation library Message-ID: Hi Graeme, > I've been using JWM non-stop for the last 4 years! I'll never return to > a bloated "desktop environment" again. > Sounds interesting to me... I always tend to have multiple desktop environments/window managers installed. i have two questions: 1. Do you have any idea how it compares to Fluxbox? It sounds pretty similar to me? Maybe even lower on resources? > * Menus are a breeze to edit. I even used a 3rd party tool that > generated JWM include files from Gnome/KDE menus (but don't do > that any more). > What tool did you use for this? I tend to edit my KDE menus with Kmenuedit and really do not want to do it all by hand again in a text file (or is there another way to do this)? I use Debian (with extra repositories) and find that almost always some of the programs I have installed with aptitude do not show up on the menu. Regards, Chavoux -------------- next part -------------- An HTML attachment was scrubbed... URL: From mailinglists at geldenhuys.co.uk Wed Mar 8 13:18:00 2017 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Wed, 8 Mar 2017 12:18:00 +0000 Subject: [Lazarus] Animation library In-Reply-To: References: Message-ID: <59e36295-85b7-622a-a46d-04ff9c6b3f11@geldenhuys.co.uk> I replied in a private email. Regards, Graeme From friess at gmx.at Wed Mar 8 13:55:12 2017 From: friess at gmx.at (=?UTF-8?Q?Andreas_Frie=c3=9f?=) Date: Wed, 8 Mar 2017 13:55:12 +0100 Subject: [Lazarus] Error: No Memory left at linking Lazarus with fpc trunk In-Reply-To: <798217424.79573.1488890223646@comcenter.netcologne.de> References: <2733b1c5-67c0-2a45-dc50-d52f79504624@gmx.at> <798217424.79573.1488890223646@comcenter.netcologne.de> Message-ID: I have RAM of 24GB in this machine, but its a Free Pascal Compiler version 3.1.1 [2017/03/08] for i386 so i think there is the RAM limited for this process. I have tried this with different packages in different constellations to find out which package trigger this. But i have a lot of packages in the actual project and i need generics. Can i change the heapsize with-Chxxxxx in the fpc.cfg and what is the default heapsize ? Andreas Am 07.03.2017 um 13:37 schrieb Mattias Gaertner via Lazarus: >> Andreas Frieß via Lazarus hat am 7. März 2017 um 13:12 geschrieben: >> >> If i want to recompile Lazarus with some packages i got the following >> error. If the fpc link Lazarus, it was running out of memory !? >> >> git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk at 54324 >> 4005530d-fff6-0310-9dd1-cebe43e6787f >> FPC 3.1.1 i386-win32-win32/win64 >> >> with fpc 3.0.2 it works > How much RAM do you have? > > FPC 3.1.1 is experimental. When you spot a bug, please try an older revision. If that works, try to find the revision that broke it. > > Do you know what package triggers this? > > Mattias From luizamericop at gmail.com Wed Mar 8 16:16:26 2017 From: luizamericop at gmail.com (Luiz Americo Pereira Camara) Date: Wed, 8 Mar 2017 12:16:26 -0300 Subject: [Lazarus] Error: No Memory left at linking Lazarus with fpc trunk In-Reply-To: <798217424.79573.1488890223646@comcenter.netcologne.de> References: <2733b1c5-67c0-2a45-dc50-d52f79504624@gmx.at> <798217424.79573.1488890223646@comcenter.netcologne.de> Message-ID: 2017-03-07 9:37 GMT-03:00 Mattias Gaertner via Lazarus < lazarus at lists.lazarus-ide.org>: > > How much RAM do you have? > > FPC 3.1.1 is experimental. When you spot a bug, please try an older > revision. If that works, try to find the revision that broke it. > I've got the same issue with fpc trunk from september 2016. See http://lists.lazarus.freepascal.org/pipermail/lazarus/2016-September/229483.html The crash occurs when memory usage hit ~ 800MB. > > Do you know what package triggers this? > > Probably related to the number of installed packages, at the time i had 78 Seems that code typhon fixed it. See entry 16-Nov-2016 ver 5.90 at http://www.pilotlogic.com/codetyphon/changeslog.txt Luiz -------------- next part -------------- An HTML attachment was scrubbed... URL: From noreply at z505.com Wed Mar 8 19:35:35 2017 From: noreply at z505.com (noreply at z505.com) Date: Wed, 08 Mar 2017 12:35:35 -0600 Subject: [Lazarus] Animation library In-Reply-To: <57e40753-a48a-1edf-1805-50475eb6ad97@geldenhuys.co.uk> References: <1d1f8364-c75c-1540-4361-9c4a28219d7f@gmail.com> <0e2dfb39-957c-b881-c1b3-b13e359b2428@geldenhuys.co.uk> <378912f2-f437-813f-ee45-064601207cb6@geldenhuys.co.uk> <89e33463-0af5-48b9-e684-19a4abd1606d@geldenhuys.co.uk> <61873f45f74ed46b0877f68e4753becc@z505.com> <57e40753-a48a-1edf-1805-50475eb6ad97@geldenhuys.co.uk> Message-ID: <269c2822b852be368461b40100aabfc6@z505.com> On 2017-03-07 18:40, Graeme Geldenhuys via Lazarus wrote: > On 2017-03-07 19:02, Lars via Lazarus wrote: >> Do you use JWM just for testing, or JWM all the time for all work? > > I've been using JWM non-stop for the last 4 years! I'll never return to > a bloated "desktop environment" again. > > Things I like about it: > * I only activate the global shortcuts I need like Alt+F2, Alt-Tab. > Nothing else, so it never conflicts with any application shortcuts. > * Menus are a breeze to edit. I even used a 3rd party tool that > generated JWM include files from Gnome/KDE menus (but don't do > that any more). > * My desktop/application menu only contains what I need and use, and > items are grouped to what makes more sense to me. > * Clicking anywhere on the desktop window brings up the application > menu. > * Virtual desktops are built-in, as well as dragging apps from one > virtual desktop to another > * A Win95 like "taskbar" is built-in (optional). The same for > the trayicon areas. > * A simple theme with rectangular windows (very configurable if you > are > into that kind of stuff, and you can configure rounded corner > windows too). > * The ability to restart JWM without having to shut down X11 or any > of your applications.eg: to refresh the application menus or > other config settings after being edited. > * It's fast and very light with RAM usage. > * Works perfectly with multiple monitors (I have 3), and I configured > the taskbar to the center monitor only. > > > I can send you my config file if you want to see my layout. > > Regards, > Graeme When I finally get around to installing freebsd, if I can remember. What do you do when you need to run a Windows lazarus program? My biggest gripe with bsd/linux is that I'd constantly have to switch back to Windows/MacOSX to do testing as those are the major platforms to sell apps on. So if I switch to BSD I'd likely end up just having to run Windows inside bsd in an emulator anyway. Catch22. You ever run lazarus inside a windows emulator inside bsd? that's likely what I'd end up doing, or compiling for windows inside bsd then testing the app in a windows emulator. I'm not sure what the emulators/virtualbox's are available for bsd. From mailinglists at geldenhuys.co.uk Wed Mar 8 20:08:26 2017 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Wed, 8 Mar 2017 19:08:26 +0000 Subject: [Lazarus] Animation library In-Reply-To: <269c2822b852be368461b40100aabfc6@z505.com> References: <1d1f8364-c75c-1540-4361-9c4a28219d7f@gmail.com> <0e2dfb39-957c-b881-c1b3-b13e359b2428@geldenhuys.co.uk> <378912f2-f437-813f-ee45-064601207cb6@geldenhuys.co.uk> <89e33463-0af5-48b9-e684-19a4abd1606d@geldenhuys.co.uk> <61873f45f74ed46b0877f68e4753becc@z505.com> <57e40753-a48a-1edf-1805-50475eb6ad97@geldenhuys.co.uk> <269c2822b852be368461b40100aabfc6@z505.com> Message-ID: On 2017-03-08 18:35, Lars via Lazarus wrote: > When I finally get around to installing freebsd, if I can remember. JWM runs on any X11 system... Linux, FreeBSD, Solaris etc. But yes, FreeBSD is a brilliant choice. I much prefer it over Linux too. > What do you do when you need to run a Windows lazarus program? WINE, just like under Linux. Or you can run VirtualBox with a Windows guest. This is how I test on various Windows and Linux platforms. I don't know how any developer can not run some or other VM in this day and age. If you speak to Delphi developers, most of them run Delphi in a Windows VM, using a Apple computer. VM's also give you a lot of piece-of-mind. If your real hardware fails, move the VM to any other system and continue where you left off - hardly any down time. I regularly make backup copies or take snapshots of my VM's too. Snapshots are very handy for experimentation. Speaking of emulators, FreeBSD also includes a Linux Emulator (an actual CentOS 6.6 install I believe), so you can run FreeBSD, Windows and Linux applications without firing up a VM. Pretty neat! > I'm not sure what the emulators/virtualbox's are > available for bsd. VirtualBox, Xen, Bhyve, FreeBSD Jail, QEMU etc... VMWare doesn't support FreeBSD. I've been using VirtualBox for about 7 years now (headless and GUI) and it works brilliantly! Bhyve is actually part of the base FreeBSD system now, so it's built into the operating system. As for developing cross-platform applications, even if Windows is your largest seller, if LCL did it's job correctly, you should be able to develop under any platform, then simply cross-compile (or compile natively in a VM) and things should work everywhere the same. In the real world LCL is unfortunately not there yet, but close. Pure fpGUI Toolkit applications have had that ability for 7+ years now. With fpGUI I only develop personal and commercial applications under FreeBSD, then at release time I compile binaries for other platforms and test (obviously). Since 7+ years I've never had incompatibilities across platforms - my applications work everywhere identical. I guess this is just one of the many benefits of 100% custom written toolkits. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp From juha.manninen62 at gmail.com Wed Mar 8 22:19:05 2017 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Wed, 8 Mar 2017 23:19:05 +0200 Subject: [Lazarus] GUI freeze under GTK2 In-Reply-To: <523811488309429@web11j.yandex.ru> References: <977611487623042@web13h.yandex.ru> <650601487709610@web28h.yandex.ru> <1157571488033680@web31j.yandex.ru> <523811488309429@web11j.yandex.ru> Message-ID: On Tue, Feb 28, 2017 at 9:17 PM, denisgolovan wrote: > > 28.02.2017, 12:31, "Juha Manninen" : >> I tested it and could not see any problems. Everything works as >> before. However I don't know how to reproduce the original bug. >> The removed line may be needed for old GTK2 versions or for GTK1. >> The LCL-GTK2 binding code was copied from LCL-GTK1 and has many >> historical remains. >> I applied the change in r54305. >> Everybody please test with different GTK2 versions and desktop environments. > > Thanks. Ok, it caused a problem after all. See: http://bugs.freepascal.org/view.php?id=31496 The freezing loop must be solved some other way, or maybe the ButtonPanel layout could be fixed some other way, don't know. You wrote: "VTV itself is rather old version (last commit from May 17 2015)" There are at least 2 maintained main versions of VTV now, versions 4 and 5. Could you please update your VTV and test again. If the problem continues then we need a demo application attached to the bug report to reproduce the error. Then somebody, maybe Jesus Reyes, can try to fix it in VTV code. Any ideas are welcome. Regards, Juha From lazarus at kluug.net Thu Mar 9 14:01:39 2017 From: lazarus at kluug.net (Ondrej Pokorny) Date: Thu, 9 Mar 2017 14:01:39 +0100 Subject: [Lazarus] Mac users: High-DPI Message-ID: Hello, there is an open issue in Mantis: http://mantis.freepascal.org/view.php?id=31037 Mac OSX widgetsets (Carbon, Cocoa) used 72 DPI as default. This brought problems with the new LCL-scaling that depends on default 96 DPI. Therefore I decided to change the default DPI on these widgetsets to 96. This unfortunately made the fonts bigger. The only solution I can think of is to create a relative DPI scaling to the default widgetset value - every DPI/PPI value will be compared to the WS DefaultPPI. So instead of DPI/PPI we'll have "ScaleFactor". E.g. it means that the property DesignTimePPI will be deleted and changed to DesignTimeScaleFactor. Also PixelsPerInch will have the ScaleFactor equivalent (I'll keep PixelsPerInch). Probably more changes will be needed. On Windows: DesignTimePPI=96 -> DesignTimeScaleFactor=100 <- On Mac: DesignTimePPI=72. The same goes for PixelsPerInch/ScaleFactor. --- Or do you have another idea how to make it work? Is it possible to change the DPI settings to 96 without font scaling problem (so that ScaleFactor is not needed)? Does anybody of you run a Mac? It looks that the count of Mac users running Lazarus trunk is very limited - we usually get feedback from them when a stable version is released :( Testing on Mac is very hard for me because I don't have one. I have only a VM which is a pain to use. Ondrej From mail at michael-ring.org Thu Mar 9 16:10:43 2017 From: mail at michael-ring.org (Michael Ring) Date: Thu, 9 Mar 2017 16:10:43 +0100 Subject: [Lazarus] Mac users: High-DPI In-Reply-To: References: Message-ID: <2e335d0b-87c4-822a-3549-0337eee4397b@michael-ring.org> I build Lazarus about every other week from trunk and use it on my Mac. I have no idea on how to solve the issue but when you want me to test something on trunk let me know.... A Hackintosh could be an alternative for you, haven't used one for a looooonnnnnggggggg time but installation was quite straightforward. Michael Am 09.03.17 um 14:01 schrieb Ondrej Pokorny via Lazarus: > Hello, > > there is an open issue in Mantis: > http://mantis.freepascal.org/view.php?id=31037 > > Mac OSX widgetsets (Carbon, Cocoa) used 72 DPI as default. This > brought problems with the new LCL-scaling that depends on default 96 > DPI. Therefore I decided to change the default DPI on these widgetsets > to 96. This unfortunately made the fonts bigger. > > The only solution I can think of is to create a relative DPI scaling > to the default widgetset value - every DPI/PPI value will be compared > to the WS DefaultPPI. So instead of DPI/PPI we'll have "ScaleFactor". > E.g. it means that the property DesignTimePPI will be deleted and > changed to DesignTimeScaleFactor. Also PixelsPerInch will have the > ScaleFactor equivalent (I'll keep PixelsPerInch). Probably more > changes will be needed. > On Windows: DesignTimePPI=96 -> DesignTimeScaleFactor=100 <- On Mac: > DesignTimePPI=72. The same goes for PixelsPerInch/ScaleFactor. > > --- > > Or do you have another idea how to make it work? Is it possible to > change the DPI settings to 96 without font scaling problem (so that > ScaleFactor is not needed)? Does anybody of you run a Mac? It looks > that the count of Mac users running Lazarus trunk is very limited - we > usually get feedback from them when a stable version is released :( > > Testing on Mac is very hard for me because I don't have one. I have > only a VM which is a pain to use. > > Ondrej From lazarus at kluug.net Thu Mar 9 16:18:14 2017 From: lazarus at kluug.net (Ondrej Pokorny) Date: Thu, 9 Mar 2017 16:18:14 +0100 Subject: [Lazarus] Mac users: High-DPI In-Reply-To: <2e335d0b-87c4-822a-3549-0337eee4397b@michael-ring.org> References: <2e335d0b-87c4-822a-3549-0337eee4397b@michael-ring.org> Message-ID: <6fd18d56-d740-739b-6657-54c0849f54f1@kluug.net> On 09.03.2017 16:10, Michael Ring via Lazarus wrote: > I build Lazarus about every other week from trunk and use it on my > Mac. I have no idea on how to solve the issue but when you want me to > test something on trunk let me know... Yes :) If you use Carbon or Cocoa: how does the latest Lazarus IDE look like (check that it is built with Application.Scaled (Project Options -> Application -> "Use LCL scaling (Hi-DPI)). Is everything fine - text size, button size etc? Did anything change from 1.6? Do you have a retina display? If yes, could you upload a screenshot somewhere? Thanks! Ondrej From mailinglists at geldenhuys.co.uk Thu Mar 9 16:50:28 2017 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Thu, 9 Mar 2017 15:50:28 +0000 Subject: [Lazarus] Mac users: High-DPI In-Reply-To: <2e335d0b-87c4-822a-3549-0337eee4397b@michael-ring.org> References: <2e335d0b-87c4-822a-3549-0337eee4397b@michael-ring.org> Message-ID: On 2017-03-09 15:10, Michael Ring via Lazarus wrote: > A Hackintosh could be an alternative for you, haven't used one for a > looooonnnnnggggggg time but installation was quite straightforward. I believe the last few releases of VirtualBox allows you to install OSX without requiring a hacked OSX installer/image. I haven't tried this myself though. Umm, my wife's iMac came with a OSX Install DVD, maybe I should give it a try over the weekend. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp From noreply at z505.com Thu Mar 9 17:05:54 2017 From: noreply at z505.com (noreply at z505.com) Date: Thu, 09 Mar 2017 10:05:54 -0600 Subject: [Lazarus] TPicture width questions (duplicate ways) Message-ID: <13d4a249f884e3d2d45ef6b34cb2c494@z505.com> TPicture has several width properties in all sorts of places, for example: var p: TPicture; begin ... p.width p.jpeg.width p.bitmap.width end; Are any of these pure duplicates that are exactly the same thing, or do some of them have different behaviours and should most definitely not be used interchangeably? The easiest to read and shortest is just p.width This is some kind of possible problem with OOP maybe that there are "multiple ways of doing the same thing"... or a feature.. Or, there is a good reason these values are available in multiple places? i.e. jpeg somehow is independent from the main p.width? Thanks! From noreply at z505.com Thu Mar 9 17:11:48 2017 From: noreply at z505.com (noreply at z505.com) Date: Thu, 09 Mar 2017 10:11:48 -0600 Subject: [Lazarus] Animation library In-Reply-To: References: <1d1f8364-c75c-1540-4361-9c4a28219d7f@gmail.com> <0e2dfb39-957c-b881-c1b3-b13e359b2428@geldenhuys.co.uk> <378912f2-f437-813f-ee45-064601207cb6@geldenhuys.co.uk> <89e33463-0af5-48b9-e684-19a4abd1606d@geldenhuys.co.uk> <61873f45f74ed46b0877f68e4753becc@z505.com> <57e40753-a48a-1edf-1805-50475eb6ad97@geldenhuys.co.uk> <269c2822b852be368461b40100aabfc6@z505.com> Message-ID: <9303c27ec6444949947a5084a63d82f8@z505.com> On 2017-03-08 13:08, Graeme Geldenhuys via Lazarus wrote: > VM's also give you a lot of piece-of-mind. If your real hardware fails, > move the VM to any other system and continue where you left off - > hardly > any down time. I regularly make backup copies or take snapshots of my > VM's too. Snapshots are very handy for experimentation. Except for the fact that VM's suffer from corrupt hard drive file problem. All your files are stored in a file, which is extremely dangerous compared to having files stored as separate files. If one little bit is f**ked in that hard drive disk image file, all your work is lost, unless you can magically hack the file yourself into good shape which is equivalent of trying to make a square become a circle :-) This is the only real thing stopping me from using vm's more often is if I save any work to the VM disk image, it scares me that the disk image could become corrupt. You could back it up daily to GIT I suppose, but that would be a massive file to upload to git... way too big... Maybe on a local git server in your home with a 1000 speed network card instead of 10/100 > > Speaking of emulators, FreeBSD also includes a Linux Emulator (an > actual > CentOS 6.6 install I believe), so you can run FreeBSD, Windows and > Linux > applications without firing up a VM. Pretty neat! OpenBSD also allowed you to run Linux exe's (elfs) AFAIR in some kind of linux jail on the system. Too bad OpenBSD developers are a bunch of criminal twats who stalk and taunt people, along with restricting speech on their mailing lists. To keep this post on topic, I did want Lazarus to run on OpenBSD , not sure if any progress has been made there. I know some efforts were made to get fpc working. But now I could care less. From joshyfun at gmail.com Thu Mar 9 17:48:44 2017 From: joshyfun at gmail.com (=?UTF-8?Q?Jos=c3=a9_Mejuto?=) Date: Thu, 9 Mar 2017 17:48:44 +0100 Subject: [Lazarus] TPicture width questions (duplicate ways) In-Reply-To: <13d4a249f884e3d2d45ef6b34cb2c494@z505.com> References: <13d4a249f884e3d2d45ef6b34cb2c494@z505.com> Message-ID: <5fe41707-fea4-40cf-0b71-e0dada37f83b@gmail.com> El 09/03/2017 a las 17:05, Lars via Lazarus escribió: > TPicture has several width properties in all sorts of places, for example: > > var p: TPicture; > begin > ... > p.width > p.jpeg.width > p.bitmap.width > end; > > Are any of these pure duplicates that are exactly the same thing, or do > some of them have different behaviours and should most definitely not be > used interchangeably? > Hello, AFAIK: TPicture.Width is the TGraphic container size. TPicture.jpeg.Width is the width declared in the jpeg image. TPicture.Bitmap.Width is the width of the bitmap in pixels. Mostly the 3 will have the same value but extracted from different sources. -- From mailinglists at geldenhuys.co.uk Thu Mar 9 17:50:10 2017 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Thu, 9 Mar 2017 16:50:10 +0000 Subject: [Lazarus] Animation library In-Reply-To: <9303c27ec6444949947a5084a63d82f8@z505.com> References: <1d1f8364-c75c-1540-4361-9c4a28219d7f@gmail.com> <0e2dfb39-957c-b881-c1b3-b13e359b2428@geldenhuys.co.uk> <378912f2-f437-813f-ee45-064601207cb6@geldenhuys.co.uk> <89e33463-0af5-48b9-e684-19a4abd1606d@geldenhuys.co.uk> <61873f45f74ed46b0877f68e4753becc@z505.com> <57e40753-a48a-1edf-1805-50475eb6ad97@geldenhuys.co.uk> <269c2822b852be368461b40100aabfc6@z505.com> <9303c27ec6444949947a5084a63d82f8@z505.com> Message-ID: <034e1d29-7cfb-05bd-5683-2e4232d114ef@geldenhuys.co.uk> On 2017-03-09 16:11, Lars via Lazarus wrote: > > Except for the fact that VM's suffer from corrupt hard drive file > problem. Not a problem if you run a ZFS RAID-Z1 (which I do), or RAID-Z2 or RAID-Z3 environment. Read a bit (or look on YouTube) about ZFS - it's f**ken brilliant! A file-system redeveloped from the ground up. I will not use any other file system ever again. I use server grade hard drives for the ZFS data pool and my setup allows one hard drive to fail without loosing data. Ideally you would want ZFS RAID-Z2 (allowing two drives to fail without loosing data), but I simply didn't have the space in my casing. So every few years I swap out one drive at a time for a new one. In summary, ZFS is a copy-on-write file-system, so existing data is never overwritten on a write. All drives added to the pool becomes part of the collective hard drive space (think of it like RAM modules being plugged into a motherboard). "Partitions" can be created and destroyed at will, and can grow or shrink with the data. Sensitive data can be told to have multiple copies stored - scattered over the pool. ZFS does crc checks before and after read/writes to verify the data, so no faulty cable, controller or hard drive will silently corrupt your data. And contrary to what many may think (because of the latter statement), the performance of ZFS is fantastic. ZFS (same version as FreeBSD) is now available for Linux too, thanks to the OpenZFS community - development of ZFS is now a collaborated task. To install ZFS in Linux is very simple and quick, and unlike a couple years ago, ZFS doesn't run under FUSE on Linux any more, it's a truly native file system, just like EXT4, JFS etc. If you have 3 or more USB memory sticks, use them to play around with ZFS to get a feel for it. It's a nice and easy way to simulate hard drive failures etc. You can use virtual VM hard drives too of course. > This is the only real thing stopping me from using vm's more often is if > I save any work to the VM disk image, it scares me that the disk image > could become corrupt. Like I said, I also make the occasional backup of my VM virtual hard drives by exporting it to a ova file. As for any code written inside a VM. I normal use-case is to enable a shared folder in the VM, so my code is not actually stored on the VM's hard drive, but directly on my ZFS data pool. Saying that, I do have customer or project specific VM's where the code is stored in the VM. In such cases, at the end of the day, I simply push my code changes to my remote Git repository (outside the VM and accessed via SSH), so I have a second backup copy of the code. I've been developing like this for over 7 years and haven't lost a single line of code. > that would be a massive file to upload to git... way too big... Maybe on > a local git server in your home with a 1000 speed network card instead > of 10/100 Don't do that. Simply push the code changes, not the VM hard disk. Now I'm curious... How do other developers work? What environments do you guys use? Do you develop on VM's or real hardware? Any specific host OS of choice, VirtualBox, VMWare or something else. Where do you store your source code - in the VM, outside or both? Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp From joshyfun at gmail.com Thu Mar 9 17:56:50 2017 From: joshyfun at gmail.com (=?UTF-8?Q?Jos=c3=a9_Mejuto?=) Date: Thu, 9 Mar 2017 17:56:50 +0100 Subject: [Lazarus] Animation library In-Reply-To: <9303c27ec6444949947a5084a63d82f8@z505.com> References: <1d1f8364-c75c-1540-4361-9c4a28219d7f@gmail.com> <0e2dfb39-957c-b881-c1b3-b13e359b2428@geldenhuys.co.uk> <378912f2-f437-813f-ee45-064601207cb6@geldenhuys.co.uk> <89e33463-0af5-48b9-e684-19a4abd1606d@geldenhuys.co.uk> <61873f45f74ed46b0877f68e4753becc@z505.com> <57e40753-a48a-1edf-1805-50475eb6ad97@geldenhuys.co.uk> <269c2822b852be368461b40100aabfc6@z505.com> <9303c27ec6444949947a5084a63d82f8@z505.com> Message-ID: <671ba974-954e-fd21-2026-9f043ed5a167@gmail.com> El 09/03/2017 a las 17:11, Lars via Lazarus escribió: > Except for the fact that VM's suffer from corrupt hard drive file > problem. All your files are stored in a file, which is extremely > dangerous compared to having files stored as separate files. If one > little bit is f**ked in that hard drive disk image file, all your work > is lost, unless you can magically hack the file yourself into good shape > which is equivalent of trying to make a square become a circle :-) Hello, It is as dangerous as all your files are in a harddisk, if the harddisk crashes ( physically ) you lost all your files. It's almost impossible to corrupt a virtualbox disk image as its inner working is too much simple. Even if a corruption happens its very easy to convert to a dd raw image and mount it in your favorite OS. The only corruption that will certainly ruin your VM disk is a page allocation corruption, which is mostly as you overwrite the NTFs MFT and partition table and/or your ext3/4 iNode table. I'm using my VM's as real computers, so backups are usual but from inside the VM (SVN for sources and backups for other files) not a virtual disk image copy (VM must be stopped). -- From friess at gmx.at Thu Mar 9 17:57:58 2017 From: friess at gmx.at (=?UTF-8?Q?Andreas_Frie=c3=9f?=) Date: Thu, 9 Mar 2017 17:57:58 +0100 Subject: [Lazarus] Error: No Memory left at linking Lazarus with fpc trunk In-Reply-To: References: <2733b1c5-67c0-2a45-dc50-d52f79504624@gmx.at> <798217424.79573.1488890223646@comcenter.netcologne.de> Message-ID: Luiz Americo Pereira Camara via Lazarus wrote: > Seems that code typhon fixed it. See entry 16-Nov-2016 ver 5.90 at I looked for it and made a compare. One change is in the pp.pas aroud line 150. Now i patched the actual trunk 35551. Now fpc compiles the 'Big' Lazarus for me. Andreas =============== {$ifdef win32} { 256 MB stack } { under windows the stack can't grow } {$MAXSTACKSIZE 256000000} {$setpeflags $20} //=== ct9999 ============= {$else win32} {$ifdef win64} { 512 MB stack } { under windows the stack can't grow } {$MAXSTACKSIZE 512000000} {$else win64} { 1 MB stack } {$MINSTACKSIZE 1000000} {$endif win64} {$endif win32} From noreply at z505.com Thu Mar 9 18:44:42 2017 From: noreply at z505.com (noreply at z505.com) Date: Thu, 09 Mar 2017 11:44:42 -0600 Subject: [Lazarus] TPicture width questions (duplicate ways) In-Reply-To: <5fe41707-fea4-40cf-0b71-e0dada37f83b@gmail.com> References: <13d4a249f884e3d2d45ef6b34cb2c494@z505.com> <5fe41707-fea4-40cf-0b71-e0dada37f83b@gmail.com> Message-ID: <823878e0279d570b92ef16ba367ed590@z505.com> On 2017-03-09 10:48, José Mejuto via Lazarus wrote: > > AFAIK: > > TPicture.Width is the TGraphic container size. > TPicture.jpeg.Width is the width declared in the jpeg image. > TPicture.Bitmap.Width is the width of the bitmap in pixels. > > Mostly the 3 will have the same value but extracted from different > sources. > If I start off using a bitmap, and all of a sudden start using jpeg, will it automagically work or does one have to initiate the jpeg in some way? Example: you start off working with a classic BMP, but then 60 lines of code later you want to work with it as a jpeg. Do you just magically start working with a jpeg without any worry, or you have to take some precautions? Likely, this is explained in a article on the wiki somewhere, I don't know :-) From aaa5500 at ya.ru Thu Mar 9 19:42:34 2017 From: aaa5500 at ya.ru (Alexey) Date: Thu, 9 Mar 2017 21:42:34 +0300 Subject: [Lazarus] Mac users: High-DPI In-Reply-To: References: Message-ID: On 09.03.2017 16:01, Ondrej Pokorny via Lazarus wrote: > will have the ScaleFactor equivalent (I'll keep PixelsPerInch). > Probably more changes will be needed. > On Windows: DesignTimePPI=96 -> DesignTimeScaleFactor=100 <- On Mac: > DesignTimePPI=72. The same goes for PixelsPerInch/ScaleFactor. IMO it's not needed yet. can you tell why the Mac font becomes bigger? If we can find why font becomes bigger, we can try to fix font size. maybe default font size is eg 12. then we can change default to eg 10/ or 9 -- Regards, Alexey From lazarus at kluug.net Thu Mar 9 19:58:48 2017 From: lazarus at kluug.net (Ondrej Pokorny) Date: Thu, 9 Mar 2017 19:58:48 +0100 Subject: [Lazarus] Mac users: High-DPI In-Reply-To: References: Message-ID: <4cf6f9f4-f7bd-1ba1-2d4f-a1c86b442071@kluug.net> On 09.03.2017 19:42, Alexey via Lazarus wrote: > On 09.03.2017 16:01, Ondrej Pokorny via Lazarus wrote: >> will have the ScaleFactor equivalent (I'll keep PixelsPerInch). >> Probably more changes will be needed. >> On Windows: DesignTimePPI=96 -> DesignTimeScaleFactor=100 <- On Mac: >> DesignTimePPI=72. The same goes for PixelsPerInch/ScaleFactor. > > IMO it's not needed yet. It must be sorted out for 1.8 - i.e. this month. > can you tell why the Mac font becomes bigger? Because Font: Height := -MulDiv(Size, *PixelsPerInch*, 72); Ondrej -------------- next part -------------- An HTML attachment was scrubbed... URL: From mail at michael-ring.org Thu Mar 9 20:32:53 2017 From: mail at michael-ring.org (Michael Ring) Date: Thu, 9 Mar 2017 20:32:53 +0100 Subject: [Lazarus] Mac users: High-DPI In-Reply-To: <6fd18d56-d740-739b-6657-54c0849f54f1@kluug.net> References: <2e335d0b-87c4-822a-3549-0337eee4397b@michael-ring.org> <6fd18d56-d740-739b-6657-54c0849f54f1@kluug.net> Message-ID: I have a Retina Display, for me the Lazarus IDE looks just fine. There are some very minor issues with Buttons not beeing big enough similar, but there are only very view. I cannot judge how Apps built with the option look like, I use Lazarus for development on Embedded Controllers only..... I will send you three screenshots I've made via PM, my Lazarus was built with Carbon, running a Cocoa Build now... Thank you very much for your great work, Michael Am 09.03.17 um 16:18 schrieb Ondrej Pokorny via Lazarus: > On 09.03.2017 16:10, Michael Ring via Lazarus wrote: >> I build Lazarus about every other week from trunk and use it on my >> Mac. I have no idea on how to solve the issue but when you want me to >> test something on trunk let me know... > > Yes :) If you use Carbon or Cocoa: how does the latest Lazarus IDE > look like (check that it is built with Application.Scaled (Project > Options -> Application -> "Use LCL scaling (Hi-DPI)). Is everything > fine - text size, button size etc? Did anything change from 1.6? > > Do you have a retina display? If yes, could you upload a screenshot > somewhere? > > Thanks! > Ondrej From mail at michael-ring.org Thu Mar 9 20:41:20 2017 From: mail at michael-ring.org (Michael Ring) Date: Thu, 9 Mar 2017 20:41:20 +0100 Subject: [Lazarus] Mac users: High-DPI In-Reply-To: References: <2e335d0b-87c4-822a-3549-0337eee4397b@michael-ring.org> <6fd18d56-d740-739b-6657-54c0849f54f1@kluug.net> Message-ID: <4d22bf05-6856-75a7-5c5a-cb0e8a1c884a@michael-ring.org> Cocoa Build crashes on startup (It was never stable for me, so no worries here.....) Michael Am 09.03.17 um 20:32 schrieb Michael Ring via Lazarus: > I have a Retina Display, for me the Lazarus IDE looks just fine. There > are some very minor issues with Buttons not beeing big enough similar, > but there are only very view. > > I cannot judge how Apps built with the option look like, I use Lazarus > for development on Embedded Controllers only..... > > I will send you three screenshots I've made via PM, my Lazarus was > built with Carbon, running a Cocoa Build now... > > Thank you very much for your great work, > > Michael > > > Am 09.03.17 um 16:18 schrieb Ondrej Pokorny via Lazarus: >> On 09.03.2017 16:10, Michael Ring via Lazarus wrote: >>> I build Lazarus about every other week from trunk and use it on my >>> Mac. I have no idea on how to solve the issue but when you want me >>> to test something on trunk let me know... >> >> Yes :) If you use Carbon or Cocoa: how does the latest Lazarus IDE >> look like (check that it is built with Application.Scaled (Project >> Options -> Application -> "Use LCL scaling (Hi-DPI)). Is everything >> fine - text size, button size etc? Did anything change from 1.6? >> >> Do you have a retina display? If yes, could you upload a screenshot >> somewhere? >> >> Thanks! >> Ondrej > From aaa5500 at ya.ru Thu Mar 9 21:37:30 2017 From: aaa5500 at ya.ru (Alexey) Date: Thu, 9 Mar 2017 23:37:30 +0300 Subject: [Lazarus] Mac users: High-DPI In-Reply-To: <4cf6f9f4-f7bd-1ba1-2d4f-a1c86b442071@kluug.net> References: <4cf6f9f4-f7bd-1ba1-2d4f-a1c86b442071@kluug.net> Message-ID: <0f98f103-5e91-0710-0701-47c756041304@ya.ru> On 09.03.2017 21:58, Ondrej Pokorny via Lazarus wrote: >> can you tell why the Mac font becomes bigger? > > Because Font: Height := -MulDiv(Size, *PixelsPerInch*, 72); If you change 72 here too to 96, it will be okay? -- Regards, Alexey -------------- next part -------------- An HTML attachment was scrubbed... URL: From lazarus at kluug.net Thu Mar 9 23:01:27 2017 From: lazarus at kluug.net (Ondrej Pokorny) Date: Thu, 9 Mar 2017 23:01:27 +0100 Subject: [Lazarus] Mac users: High-DPI In-Reply-To: <0f98f103-5e91-0710-0701-47c756041304@ya.ru> References: <4cf6f9f4-f7bd-1ba1-2d4f-a1c86b442071@kluug.net> <0f98f103-5e91-0710-0701-47c756041304@ya.ru> Message-ID: On 09.03.2017 21:37, Alexey via Lazarus wrote: > On 09.03.2017 21:58, Ondrej Pokorny via Lazarus wrote: >>> can you tell why the Mac font becomes bigger? >> >> Because Font: Height := -MulDiv(Size, *PixelsPerInch*, 72); > > If you change 72 here too to 96, it will be okay? > Yes, it would behave like before r53712. ------ But actually I now tested the font problem on Mac: Lazarus 1.6: Font.Size=8 (or any other value) results in different visual font height on Windows and Mac. Lazarus trunk: Font.Size=8 (or any other value) is the same height on Windows and Mac. To me it looks like the change of DPI from 72 to 96 fixed the font size problems and made texts look the same. Obviously, when updating from 1.6 to 1.7 (1.8) people on Mac will have to adjust custom (nonzero) font sizes. I.e. it looks like no change is required. I will only leave a note about it in release information. If you experience something else and you think I am wrong, please write about it. My testing chances on Mac are limited. I'd like to have the DPI-Scaling as good as possible for 1.8 RC1. Ondrej -------------- next part -------------- An HTML attachment was scrubbed... URL: From lazarus at kluug.net Thu Mar 9 23:10:48 2017 From: lazarus at kluug.net (Ondrej Pokorny) Date: Thu, 9 Mar 2017 23:10:48 +0100 Subject: [Lazarus] Mac users: High-DPI In-Reply-To: <4d22bf05-6856-75a7-5c5a-cb0e8a1c884a@michael-ring.org> References: <2e335d0b-87c4-822a-3549-0337eee4397b@michael-ring.org> <6fd18d56-d740-739b-6657-54c0849f54f1@kluug.net> <4d22bf05-6856-75a7-5c5a-cb0e8a1c884a@michael-ring.org> Message-ID: <680fa44f-757d-342f-3aae-bf8309b148ae@kluug.net> On 09.03.2017 20:41, Michael Ring via Lazarus wrote: > Cocoa Build crashes on startup (It was never stable for me, so no > worries here.....) Yes, Cocoa is unfortunately in alpha-state :( Thank you for your screenshots - everything looks fine. I assume Carbon is using some kind of virtual DPI so actually no LCL-scaling is done on Retina Mac. I also see there are no font problems. Did you have to adjust Lazarus editor font height recently? (Due to r53712 - http://mantis.freepascal.org/view.php?id=31037 .) Ondrej From aaa5500 at ya.ru Fri Mar 10 04:22:48 2017 From: aaa5500 at ya.ru (Alexey) Date: Fri, 10 Mar 2017 06:22:48 +0300 Subject: [Lazarus] Mac users: High-DPI In-Reply-To: References: <4cf6f9f4-f7bd-1ba1-2d4f-a1c86b442071@kluug.net> <0f98f103-5e91-0710-0701-47c756041304@ya.ru> Message-ID: On 10.03.2017 01:01, Ondrej Pokorny via Lazarus wrote: > But actually I now tested the font problem on Mac: > > Lazarus 1.6: Font.Size=8 (or any other value) results in different > visual font height on Windows and Mac. > Lazarus trunk: Font.Size=8 (or any other value) is the same height on > Windows and Mac. Yes, i posted the same info in above msg, with 2 screenshots (from OSX and Linux Cudatext editor) and wanted to say that font looks of same size. So no problem with bigger font on Mac -- Regards, Alexey From aaa5500 at ya.ru Fri Mar 10 06:38:26 2017 From: aaa5500 at ya.ru (Alexey) Date: Fri, 10 Mar 2017 08:38:26 +0300 Subject: [Lazarus] Mac Hi-DPI 2 Message-ID: <7e5fd4a5-6f61-6d7e-4594-7b650ada5243@ya.ru> Ondrej, seems I cannot see how scaling works on Mac. Reason: MacOS don't scale coords of controls, and don't have event "scale changed". It scales using Retina thing when i call video mode "nnn x nnn hi-dpi". It means: only DPI changes, coords dont change (controls must draw in high dpi, but on same x,y-x2,y2) -- Regards, Alexey From aaa5500 at ya.ru Fri Mar 10 06:53:07 2017 From: aaa5500 at ya.ru (Alexey) Date: Fri, 10 Mar 2017 08:53:07 +0300 Subject: [Lazarus] Mac Hi-DPI 2 In-Reply-To: <7e5fd4a5-6f61-6d7e-4594-7b650ada5243@ya.ru> References: <7e5fd4a5-6f61-6d7e-4594-7b650ada5243@ya.ru> Message-ID: This picture is OS opts: here you see, max NNxNN dont change, but only hi-dpi "added to video mode". Alex -------------- next part -------------- A non-text attachment was scrubbed... Name: mac-opt.png Type: image/png Size: 65612 bytes Desc: not available URL: From mail at michael-ring.org Fri Mar 10 08:43:33 2017 From: mail at michael-ring.org (Michael Ring) Date: Fri, 10 Mar 2017 08:43:33 +0100 Subject: [Lazarus] Mac users: High-DPI In-Reply-To: <680fa44f-757d-342f-3aae-bf8309b148ae@kluug.net> References: <2e335d0b-87c4-822a-3549-0337eee4397b@michael-ring.org> <6fd18d56-d740-739b-6657-54c0849f54f1@kluug.net> <4d22bf05-6856-75a7-5c5a-cb0e8a1c884a@michael-ring.org> <680fa44f-757d-342f-3aae-bf8309b148ae@kluug.net> Message-ID: <87e16f01-f0e1-dab6-25c1-ce4118c635a2@michael-ring.org> No, I did not touch font sizes for a while, your change is from December so my memory may already have faded.... Michael Am 09.03.17 um 23:10 schrieb Ondrej Pokorny via Lazarus: > On 09.03.2017 20:41, Michael Ring via Lazarus wrote: >> Cocoa Build crashes on startup (It was never stable for me, so no >> worries here.....) > > Yes, Cocoa is unfortunately in alpha-state :( > > Thank you for your screenshots - everything looks fine. I assume > Carbon is using some kind of virtual DPI so actually no LCL-scaling is > done on Retina Mac. I also see there are no font problems. > > Did you have to adjust Lazarus editor font height recently? (Due to > r53712 - http://mantis.freepascal.org/view.php?id=31037 .) > > Ondrej From aaa5500 at ya.ru Thu Mar 9 22:25:30 2017 From: aaa5500 at ya.ru (Alexey) Date: Fri, 10 Mar 2017 00:25:30 +0300 Subject: [Lazarus] Mac users: High-DPI In-Reply-To: <0f98f103-5e91-0710-0701-47c756041304@ya.ru> References: <4cf6f9f4-f7bd-1ba1-2d4f-a1c86b442071@kluug.net> <0f98f103-5e91-0710-0701-47c756041304@ya.ru> Message-ID: <74cbebc6-d574-06dd-b528-eecd8f5b6860@ya.ru> Ondrej, 2 pictures. Cudatext on Linux, text font size =9. Cudatext on OSX 10.8, font size (other font but siimilar) =9. Font size looks same. on both OSes. No difference 30-50%. (Mac Font dialog shows size=12 for LCL font size=9. you know.) No problem so? Alex -------------- next part -------------- A non-text attachment was scrubbed... Name: linux-fontsize.png Type: image/png Size: 72982 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mac-fontsize.png Type: image/png Size: 32379 bytes Desc: not available URL: From lazarus at kluug.net Fri Mar 10 12:54:14 2017 From: lazarus at kluug.net (Ondrej Pokorny) Date: Fri, 10 Mar 2017 12:54:14 +0100 Subject: [Lazarus] Mac Hi-DPI 2 In-Reply-To: <7e5fd4a5-6f61-6d7e-4594-7b650ada5243@ya.ru> References: <7e5fd4a5-6f61-6d7e-4594-7b650ada5243@ya.ru> Message-ID: On 10.03.2017 6:38, Alexey via Lazarus wrote: > seems I cannot see how scaling works on Mac. Reason: MacOS don't scale > coords of controls, and don't have event "scale changed". It scales > using Retina thing when i call video mode "nnn x nnn hi-dpi". It > means: only DPI changes, coords dont change (controls must draw in > high dpi, but on same x,y-x2,y2) To me it looks like Carbon applications are scaled automatically by the OS. Something similar to what also Windows uses if you switch High-DPI awarness off. That means the regardless of your screen (retina, non-retina) the DPI is always 96. So there shouldn't be any LCL-scaling involved. It's only what I see from the pictures and the code, I cannot test it myself because I don't have a retina screen to check. Ondrej From lazarus at kluug.net Fri Mar 10 12:56:04 2017 From: lazarus at kluug.net (Ondrej Pokorny) Date: Fri, 10 Mar 2017 12:56:04 +0100 Subject: [Lazarus] Mac users: High-DPI In-Reply-To: References: <4cf6f9f4-f7bd-1ba1-2d4f-a1c86b442071@kluug.net> <0f98f103-5e91-0710-0701-47c756041304@ya.ru> Message-ID: <39ade7ec-0ea5-eacf-4c18-43c079eac96e@kluug.net> On 10.03.2017 4:22, Alexey via Lazarus wrote: > On 10.03.2017 01:01, Ondrej Pokorny via Lazarus wrote: >> But actually I now tested the font problem on Mac: >> >> Lazarus 1.6: Font.Size=8 (or any other value) results in different >> visual font height on Windows and Mac. >> Lazarus trunk: Font.Size=8 (or any other value) is the same height on >> Windows and Mac. > > Yes, i posted the same info in above msg, with 2 screenshots (from OSX > and Linux Cudatext editor) > > and wanted to say that font looks of same size. So no problem with > bigger font on Mac Alexey, thank you for the screenshots. It means that before r53712 the Linux and OSX font was rendered with different size. So everything is good now :) Ondrej From aaa5500 at ya.ru Fri Mar 10 12:58:29 2017 From: aaa5500 at ya.ru (Alexey) Date: Fri, 10 Mar 2017 14:58:29 +0300 Subject: [Lazarus] Mac Hi-DPI 2 In-Reply-To: References: <7e5fd4a5-6f61-6d7e-4594-7b650ada5243@ya.ru> Message-ID: <371ba953-a74d-1a84-c987-43d463cffab7@ya.ru> >To me it looks like Carbon applications are scaled automatically by the OS. Something similar to what also Windows yes, it is what I see too. Scaled automatically by OS >That means the regardless of your screen (retina, non-retina) the DPI is always 96. So there shouldn't be any LCL-scaling involved. yes. right. But i tested only 10.8, and not sure about new OSes, 10.11, 10.12... -- Regards, Alexey From mailinglists at geldenhuys.co.uk Fri Mar 10 14:04:43 2017 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Fri, 10 Mar 2017 13:04:43 +0000 Subject: [Lazarus] Mac users: High-DPI In-Reply-To: <74cbebc6-d574-06dd-b528-eecd8f5b6860@ya.ru> References: <4cf6f9f4-f7bd-1ba1-2d4f-a1c86b442071@kluug.net> <0f98f103-5e91-0710-0701-47c756041304@ya.ru> <74cbebc6-d574-06dd-b528-eecd8f5b6860@ya.ru> Message-ID: <2aed0630-04af-db9b-797d-db188d421dcb@geldenhuys.co.uk> On 2017-03-09 21:25, Alexey via Lazarus wrote: > No problem so? Something different. See attached screenshot. You got to laugh at Canonical (ie: Ubuntu) for thinking this is a good design! The menu and window title all being garbled. Can't they just leave menus the way they were - or if they want to copy OSX, at least doing a decent job of it. WTF! Regards, Graeme -------------- next part -------------- A non-text attachment was scrubbed... Name: shot.png Type: image/png Size: 17638 bytes Desc: not available URL: From badsectoracula at gmail.com Fri Mar 10 18:01:33 2017 From: badsectoracula at gmail.com (Kostas Michalopoulos) Date: Fri, 10 Mar 2017 19:01:33 +0200 Subject: [Lazarus] TPicture width questions (duplicate ways) In-Reply-To: <823878e0279d570b92ef16ba367ed590@z505.com> References: <13d4a249f884e3d2d45ef6b34cb2c494@z505.com> <5fe41707-fea4-40cf-0b71-e0dada37f83b@gmail.com> <823878e0279d570b92ef16ba367ed590@z505.com> Message-ID: You can check yourself easily: Ctrl+Click on the p.Width to go to the definition of the property, then Ctrl+Click on the GetWidth getter, Ctrl+Shift+Down arrow to see the code for the getter and see that it simply gets FGraphic's property. So what is FGraphic? Ctrl+Home to move at the top of the source code (you'd be in picture.inc) and search for "FGraphic :=" to see where it is assigned (the source code style in that file seems to put a space before := in assignments). You can see that it is used in a bunch of places, so you can see where those uses are. ForceType is the first one and if you search for that one, you'll find that it is used wherever a type-specific property (p.Jpeg, p.Bitmap, etc) is used - presumably to convert the underlying graphic to the requested type. So the FGraphic object is actually an instance of the TBitmap, TPortableNetworkGraphic, TJpegImage, etc (depending what you loaded and/or accessed last). So what p.Width gives you is the FGraphic's width or 0 if there is no FGraphic loaded (because a picture may have nothing loaded until you either load it directly or try to access any of the Bitmap, Jpeg, PNG, etc properties). So if you already have a picture loaded from a PNG file, p.Width, p.Graphic.Width and p.PNG.Width will give you the same number. If your picture doesn't have a graphic (e.g. it is a newly constructed object) then p.Width gives you 0, p.Graphic.Width will crash your program (FGraphic is nil) and p.PNG.Width will give you zero (because accessing the PNG property will call the ForceType function which will create a TPortableNetworkGraphic object that by default is undefined and gives you zero width). Question for the readers: what happens to the image if you load a PNG file with alpha values using TPicture's LoadFromFile, access the TPicture.Jpeg.Width property and then save the picture as a PNG file using TPicture's SaveToFile? Is the alpha component preserved? Do you get jpeg artifacts? Why? Bonus question: why is R := Rect(0, 0, p.Jpeg.Width, p.PNG.Height) worse than R := Rect(0, 0, p.Jpeg.Width, p.PNG.Height)? Why is R := Rect(0, 0, p.Width, p.Height) better than either of them? You can find the answers to those (and many more) using Ctrl+Click, Ctrl+Shift+Up/Down Arrow, Search and back and forward buttons (helps to have a mouse with those). Considering how big and complex LCL is, it helps to be able to navigate and familiarize yourself with its source code :-). On Thu, Mar 9, 2017 at 7:44 PM, Lars via Lazarus < lazarus at lists.lazarus-ide.org> wrote: > On 2017-03-09 10:48, José Mejuto via Lazarus wrote: > >> >> AFAIK: >> >> TPicture.Width is the TGraphic container size. >> TPicture.jpeg.Width is the width declared in the jpeg image. >> TPicture.Bitmap.Width is the width of the bitmap in pixels. >> >> Mostly the 3 will have the same value but extracted from different >> sources. >> >> > If I start off using a bitmap, and all of a sudden start using jpeg, will > it automagically work or does one have to initiate the jpeg in some way? > > Example: you start off working with a classic BMP, but then 60 lines of > code later you want to work with it as a jpeg. Do you just magically start > working with a jpeg without any worry, or you have to take some precautions? > > Likely, this is explained in a article on the wiki somewhere, I don't know > :-) > > -- > _______________________________________________ > Lazarus mailing list > Lazarus at lists.lazarus-ide.org > http://lists.lazarus-ide.org/listinfo/lazarus > -------------- next part -------------- An HTML attachment was scrubbed... URL: From badsectoracula at gmail.com Fri Mar 10 18:03:29 2017 From: badsectoracula at gmail.com (Kostas Michalopoulos) Date: Fri, 10 Mar 2017 19:03:29 +0200 Subject: [Lazarus] TPicture width questions (duplicate ways) In-Reply-To: References: <13d4a249f884e3d2d45ef6b34cb2c494@z505.com> <5fe41707-fea4-40cf-0b71-e0dada37f83b@gmail.com> <823878e0279d570b92ef16ba367ed590@z505.com> Message-ID: Of course the second part should have been Rect(0, 0, p.Jpeg.Width, p.Jpeg.Height)? :-P On Fri, Mar 10, 2017 at 7:01 PM, Kostas Michalopoulos < badsectoracula at gmail.com> wrote: > You can check yourself easily: Ctrl+Click on the p.Width to go to the > definition of the property, then Ctrl+Click on the GetWidth getter, > Ctrl+Shift+Down arrow to see the code for the getter and see that it simply > gets FGraphic's property. So what is FGraphic? Ctrl+Home to move at the top > of the source code (you'd be in picture.inc) and search for "FGraphic :=" > to see where it is assigned (the source code style in that file seems to > put a space before := in assignments). You can see that it is used in a > bunch of places, so you can see where those uses are. ForceType is the > first one and if you search for that one, you'll find that it is used > wherever a type-specific property (p.Jpeg, p.Bitmap, etc) is used - > presumably to convert the underlying graphic to the requested type. So the > FGraphic object is actually an instance of the TBitmap, > TPortableNetworkGraphic, TJpegImage, etc (depending what you loaded and/or > accessed last). > > So what p.Width gives you is the FGraphic's width or 0 if there is no > FGraphic loaded (because a picture may have nothing loaded until you either > load it directly or try to access any of the Bitmap, Jpeg, PNG, etc > properties). So if you already have a picture loaded from a PNG file, > p.Width, p.Graphic.Width and p.PNG.Width will give you the same number. If > your picture doesn't have a graphic (e.g. it is a newly constructed object) > then p.Width gives you 0, p.Graphic.Width will crash your program (FGraphic > is nil) and p.PNG.Width will give you zero (because accessing the PNG > property will call the ForceType function which will create a > TPortableNetworkGraphic object that by default is undefined and gives you > zero width). > > Question for the readers: what happens to the image if you load a PNG file > with alpha values using TPicture's LoadFromFile, access the > TPicture.Jpeg.Width property and then save the picture as a PNG file using > TPicture's SaveToFile? Is the alpha component preserved? Do you get jpeg > artifacts? Why? > > Bonus question: why is R := Rect(0, 0, p.Jpeg.Width, p.PNG.Height) worse > than R := Rect(0, 0, p.Jpeg.Width, p.PNG.Height)? Why is R := Rect(0, 0, > p.Width, p.Height) better than either of them? > > You can find the answers to those (and many more) using Ctrl+Click, > Ctrl+Shift+Up/Down Arrow, Search and back and forward buttons (helps to > have a mouse with those). Considering how big and complex LCL is, it helps > to be able to navigate and familiarize yourself with its source code :-). > > > On Thu, Mar 9, 2017 at 7:44 PM, Lars via Lazarus < > lazarus at lists.lazarus-ide.org> wrote: > >> On 2017-03-09 10:48, José Mejuto via Lazarus wrote: >> >>> >>> AFAIK: >>> >>> TPicture.Width is the TGraphic container size. >>> TPicture.jpeg.Width is the width declared in the jpeg image. >>> TPicture.Bitmap.Width is the width of the bitmap in pixels. >>> >>> Mostly the 3 will have the same value but extracted from different >>> sources. >>> >>> >> If I start off using a bitmap, and all of a sudden start using jpeg, will >> it automagically work or does one have to initiate the jpeg in some way? >> >> Example: you start off working with a classic BMP, but then 60 lines of >> code later you want to work with it as a jpeg. Do you just magically start >> working with a jpeg without any worry, or you have to take some precautions? >> >> Likely, this is explained in a article on the wiki somewhere, I don't >> know :-) >> >> -- >> _______________________________________________ >> Lazarus mailing list >> Lazarus at lists.lazarus-ide.org >> http://lists.lazarus-ide.org/listinfo/lazarus >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From noreply at z505.com Fri Mar 10 18:52:01 2017 From: noreply at z505.com (noreply at z505.com) Date: Fri, 10 Mar 2017 11:52:01 -0600 Subject: [Lazarus] TPicture width questions (duplicate ways) In-Reply-To: References: <13d4a249f884e3d2d45ef6b34cb2c494@z505.com> <5fe41707-fea4-40cf-0b71-e0dada37f83b@gmail.com> <823878e0279d570b92ef16ba367ed590@z505.com> Message-ID: <820d351d9c6319dc5a65390b44f034e9@z505.com> On 2017-03-10 11:01, Kostas Michalopoulos via Lazarus wrote: > You can check yourself easily: Ctrl+Click on the p.Width to go to the > definition of the property, then Ctrl+Click on the GetWidth getter, > Ctrl+Shift+Down arrow to see the code for the getter and see that it > simply gets FGraphic's property. You can check the current sources but that does not mean it will stay that way, or that the current sources do not have a bug in them... the documentation would tell you how it is supposed to act, and, the source is one particular implementation, which could not match up with what the doc says, in that case it is buggy ;-) But thanks very much for explaining it: indeed I figured any call to .jpeg.someproperty would immediately automagically do the work for you So what is FGraphic? Ctrl+Home to > move at the top of the source code (you'd be in picture.inc) and > search for "FGraphic :=" to see where it is assigned (the source code > style in that file seems to put a space before := in assignments). You > can see that it is used in a bunch of places, so you can see where > those uses are. ForceType is the first one and if you search for that > one, you'll find that it is used wherever a type-specific property > (p.Jpeg, p.Bitmap, etc) is used - presumably to convert the underlying > graphic to the requested type. So the FGraphic object is actually an > instance of the TBitmap, TPortableNetworkGraphic, TJpegImage, etc > (depending what you loaded and/or accessed last). > This is very useful - I thought maybe it would be in a wiki or docs somewhere.. It may be... > So what p.Width gives you is the FGraphic's width or 0 if there is no > FGraphic loaded (because a picture may have nothing loaded until you > either load it directly or try to access any of the Bitmap, Jpeg, PNG, > etc properties). So if you already have a picture loaded from a PNG > file, p.Width, p.Graphic.Width and p.PNG.Width will give you the same > number. If your picture doesn't have a graphic (e.g. it is a newly > constructed object) then p.Width gives you 0, p.Graphic.Width will > crash your program (FGraphic is nil) and p.PNG.Width will give you > zero (because accessing the PNG property will call the ForceType > function which will create a TPortableNetworkGraphic object that by > default is undefined and gives you zero width). > > Question for the readers: what happens to the image if you load a PNG > file with alpha values using TPicture's LoadFromFile, access the > TPicture.Jpeg.Width property and then save the picture as a PNG file > using TPicture's SaveToFile? Is the alpha component preserved? Do you > get jpeg artifacts? Why? > > Bonus question: why is R := Rect(0, 0, p.Jpeg.Width, p.PNG.Height) > worse than R := Rect(0, 0, p.Jpeg.Width, p.PNG.Height)? Why is R := > Rect(0, 0, p.Width, p.Height) better than either of them? > > You can find the answers to those (and many more) using Ctrl+Click, > Ctrl+Shift+Up/Down Arrow, Search and back and forward buttons (helps > to have a mouse with those). Considering how big and complex LCL is, > it helps to be able to navigate and familiarize yourself with its > source code :-). IMO the docs should always describe the theory of an object/procedure, and therefore if any time the source code is buggy, the docs are the official sources to what a function does.. :-) Thanks much for documenting it in this mailing list ! Some of your comments, IMO should be uploaded to wiki/docs somewhere But I'm unfamiliar with how the docs updating process works From friess at gmx.at Sat Mar 11 09:20:14 2017 From: friess at gmx.at (=?UTF-8?Q?Andreas_Frie=c3=9f?=) Date: Sat, 11 Mar 2017 09:20:14 +0100 Subject: [Lazarus] Projectgroups in Sourceeditor Toolbar Message-ID: <8c7451fe-914a-aef7-8544-e88bf9929849@gmx.at> Is there an way to bring the menuentries of the projectgroups in the toolbar of the sourceeditor ? If i go into the 'Toolbar Configuration', i didn't find the entries like 'Open Projectgroup', in the mainmenu it is shown, but not in the editor. Lazarus 1.7 rUnversioned directory FPC 3.1.1 i386-win32-win32/win64 (Lazarus trunk/ FPC trunk) Andreas From nc-gaertnma at netcologne.de Sat Mar 11 10:49:25 2017 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Sat, 11 Mar 2017 10:49:25 +0100 Subject: [Lazarus] Projectgroups in Sourceeditor Toolbar In-Reply-To: <8c7451fe-914a-aef7-8544-e88bf9929849@gmx.at> References: <8c7451fe-914a-aef7-8544-e88bf9929849@gmx.at> Message-ID: <20170311104925.027ee424@limapholos.matflo.wg> On Sat, 11 Mar 2017 09:20:14 +0100 Andreas Frieß via Lazarus wrote: > Is there an way to bring the menuentries of the projectgroups in the > toolbar of the sourceeditor ? > > If i go into the 'Toolbar Configuration', i didn't find the entries like > 'Open Projectgroup', in the mainmenu it is shown, but not in the editor. > > Lazarus 1.7 rUnversioned directory FPC 3.1.1 i386-win32-win32/win64 > (Lazarus trunk/ FPC trunk) Now you can. Mattias From fjf.vanleeuwen at quicknet.nl Sat Mar 11 14:57:08 2017 From: fjf.vanleeuwen at quicknet.nl (frans) Date: Sat, 11 Mar 2017 14:57:08 +0100 Subject: [Lazarus] Colorconversion in htmlreport Message-ID: Hi. I use Lazarus 1.6.2 with FPC 3.0.0 on Windows 10. I use htmlreport to create webpages. My problem is the use of colorcodes. I want to use the color #D8FFF4. But the function Color2HTML translate that code to $00D8FFF4# and that gives a totally different color. I've searched the internet for a converter but found nothing. Therefor I have 2 questions: 1. What does the colorcode $00000000# mean? It's not ?RGB. 2. What code should I use to get the colorresult I want? -- mvg Frans van Leeuwen M 06-51695390 From bartjunk64 at gmail.com Sat Mar 11 16:52:42 2017 From: bartjunk64 at gmail.com (Bart) Date: Sat, 11 Mar 2017 16:52:42 +0100 Subject: [Lazarus] Colorconversion in htmlreport In-Reply-To: References: Message-ID: On 3/11/17, frans via Lazarus wrote: > I want to use the color #D8FFF4. > But the function Color2HTML translate that code to $00D8FFF4# That makes no sense to me. #D8FFF4 looks like HTML color coding, so calling ColorToHTML on that makes no sense (or the name of that makes no sense). Here's a ColorToHtml function from the SynExportHtml unit that works correctly (at least in my limited tests): function ColorToHTML(AColor: TColor): string; var RGBColor: TColorRef; RGBValue: byte; const Digits: array[0..15] of char = '0123456789ABCDEF'; begin Result := ''; case AColor of clRed: Result := 'red'; clGreen: Result := 'green'; clBlue: Result := 'blue'; clPurple: Result := 'purple'; clYellow: Result := 'yellow'; clBlack: Result := 'black'; clWhite: Result := 'white'; clGray: Result := 'gray'; clMaroon: Result := 'maroon'; clFuchsia: Result := 'fuchsia'; clLime: Result := 'lime'; clNavy: Result := 'navy'; clAqua: Result := 'aqua'; clTeal: Result := 'teal'; clSilver: Result := 'silver'; end; if (Result <> '') then Exit; RGBColor := ColorToRGB(AColor); Result := '#000000'; {****************} RGBValue := GetRValue(RGBColor); if RGBValue > 0 then begin Result[2] := Digits[RGBValue shr 4]; Result[3] := Digits[RGBValue and 15]; end; {****************} RGBValue := GetGValue(RGBColor); if RGBValue > 0 then begin Result[4] := Digits[RGBValue shr 4]; Result[5] := Digits[RGBValue and 15]; end; {****************} RGBValue := GetBValue(RGBColor); if RGBValue > 0 then begin Result[6] := Digits[RGBValue shr 4]; Result[7] := Digits[RGBValue and 15]; end; end; Note that the represetation of TColor and HTML color (if you both write them out as hex) is not in the same order. Bart From zeljko at holobit.net Sat Mar 11 17:58:07 2017 From: zeljko at holobit.net (zeljko) Date: Sat, 11 Mar 2017 17:58:07 +0100 Subject: [Lazarus] Mac Hi-DPI 2 In-Reply-To: References: <7e5fd4a5-6f61-6d7e-4594-7b650ada5243@ya.ru> Message-ID: <3d256aa4-8fbe-a83b-4ac1-1713f917b583@holobit.net> On 03/10/2017 12:54 PM, Ondrej Pokorny via Lazarus wrote: > To me it looks like Carbon applications are scaled automatically by the > OS. Something similar to what also Windows uses if you switch High-DPI > awarness off. > > That means the regardless of your screen (retina, non-retina) the DPI is > always 96. So there shouldn't be any LCL-scaling involved. hm...just tested Qt4 and Qt5 on MacOSX. Qt4 - MacOSX 10.8.6 32 bit (qt4 library uses carbon for it's widgets) Qt5 - MacOSX 10.11 64 bit (qt5 library uses cocoa for it's widgets). When Application.Scaled = False fonts of some controls are resized to smaller fonts (DesignTimePPI on both macs says 72 ) - so my question are here: 1. is 96dpi hardcoded somewhere, so it underscales some fonts in case when dpi is 72 - even with Application.Scaled := False. ? 2. Some forms eg. About lazarus is shown too small, seem that it's scaled to the smaller size because of dpi 72. (ide have application.scaled := True by default), also Find Dialog is reduced but all child controls of FindDialog haven't scaled fonts ,so dialog isn't sized well. Note that both cases were fine before HiDPI changes, also please keep in mind that Lazarus OSX isn't carbon or cocoa only, but qt4 and qt5 too. On linux and windows everything works pretty nice (Application.Scaled := true and Application.Scaled := false) with qt4 and qt5 widgetsets. My app is designed on linux (96 dpi) and then just rebuilded on mac (if that matters), also Mac 10.8.6 is iMac with resolution 1440x900 72dpi, Mac 10.11 have resolution 1920x1200 72dpi (this one is running inside vmware). Any hints ? zeljko From donald at ziesig.org Sat Mar 11 18:51:55 2017 From: donald at ziesig.org (Donald Ziesig) Date: Sat, 11 Mar 2017 12:51:55 -0500 Subject: [Lazarus] HI-DPI Strangeness Message-ID: <0c527e00-2028-9a0c-23fd-dadcad10ed10@ziesig.org> Hi All! I have noticed strange behavior with Lazarus 1.7 in the HI-DPI mode. This took some trial and error to find since the connections are not at all obvious. I am using Linux Mint 18 and have the same problem with both MATE and XFCE desktop managers. When I log out/shutdown/restart and return to Lazarus, the Object Inspector DPI settings are all at 96 (even though they were all at 144 when I shutdown Lazarus). The IDE Icons are all tiny (almost invisible), the source editor windows all had a very small font size, the Form designers were all hosed, and the programs built with Lazarus (after the restart) all appear to be compiled with 96 DPI. I tried rebuilding the IDE, but that had no impact. The DPI remained at 96 as did everything else. Here is the weird part. After restarting, I opened a terminal and entered the command "xdpyinfo | grep dots" to see how it was set. The response was 144x144. Apparently the window manager(s) got the message ;-) even if Lazarus did not. Note that I did NOT enter any other commands except for the xdpyinfo. BUT.... When I restarted Lazarus the IDE Icons, the Form Designers and the source editor fonts were were correctly sized, and the programs built with Lazarus were correctly sized for 144dpi. I have appropriate xrandr and xdpyinfo commands in .bash_profile and .bash_login (redundancy can't hurt :-D). They don't seem to help. I restarted again, opened a terminal (which showed my debug "echo"s so the two files were executed) and did nothing else. I then CLOSED the terminal and started Lazarus. It came up in 144dpi mode!!!!!!!. I can not tell where the interaction between Lazarus and the window managers fails, and I have a work-around (open terminal before starting Lazarus) so the problem is not serious, but it remains an annoyance. ===== One more minor issue. The Main Menu editor still has issues with the height of fonts in HI-DPI mode, as in: Again this is not serious, just annoying. Thanks, Don Ziesig -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot_2017-03-11_12-48-27.png Type: image/png Size: 11095 bytes Desc: not available URL: From lazarus at kluug.net Sat Mar 11 21:37:27 2017 From: lazarus at kluug.net (Ondrej Pokorny) Date: Sat, 11 Mar 2017 21:37:27 +0100 Subject: [Lazarus] Mac Hi-DPI 2 In-Reply-To: <3d256aa4-8fbe-a83b-4ac1-1713f917b583@holobit.net> References: <7e5fd4a5-6f61-6d7e-4594-7b650ada5243@ya.ru> <3d256aa4-8fbe-a83b-4ac1-1713f917b583@holobit.net> Message-ID: <3f10c078-b379-d3fc-1602-3bb99cbfc4ae@kluug.net> On 11.03.2017 17:58, zeljko wrote: > Qt4 - MacOSX 10.8.6 32 bit (qt4 library uses carbon for it's widgets) > Qt5 - MacOSX 10.11 64 bit (qt5 library uses cocoa for it's widgets). > > When Application.Scaled = False fonts of some controls are resized to > smaller fonts (DesignTimePPI on both macs says 72 ) - so my question > are here: > 1. is 96dpi hardcoded somewhere, so it underscales some fonts in case > when dpi is 72 - even with Application.Scaled := False. ? > > 2. Some forms eg. About lazarus is shown too small, seem that it's > scaled to the smaller size because of dpi 72. (ide have > application.scaled := True by default), also Find Dialog is reduced > but all child controls of FindDialog haven't scaled fonts ,so dialog > isn't sized well. > > Note that both cases were fine before HiDPI changes, also please keep > in mind that Lazarus OSX isn't carbon or cocoa only, but qt4 and qt5 too. > > On linux and windows everything works pretty nice (Application.Scaled > := true and Application.Scaled := false) with qt4 and qt5 widgetsets. The LCL expects 100% scaling at 96 PPI. This is hard-coded now. We have 2 possible solutions: A.) Force Qt4 and Qt5 on Mac OSX to return 96 PPI instead of 72 PPI (the same to what I changed Carbon and Cocoa in http://mantis.freepascal.org/view.php?id=31037 ). B.) Make the 100% scaling value OS-dependent. On Windows and Linux it would be 96 PPI and on Mac OSX 72 PPI. (This is what I suggested in the first email of the "Mac users: High-DPI" thread): /[...] to create a relative DPI scaling to the default widgetset value - every DPI/PPI value will be compared to the WS DefaultPPI. So instead of DPI/PPI we'll have "ScaleFactor". E.g. it means that the property DesignTimePPI will be deleted and changed to DesignTimeScaleFactor. Also PixelsPerInch will have the ScaleFactor equivalent (I'll keep PixelsPerInch). Probably more changes will be needed. // //On Windows: DesignTimePPI=96 -> DesignTimeScaleFactor=100 <- On Mac: DesignTimePPI=72. The same goes for PixelsPerInch/ScaleFactor. // / (A) is easier to implement so maybe we could test it first. Zeljko, could you please try with the attached patch (I am not sure about the DARWIN define - maybe you need another one for MacOSX). Ondrej -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- Index: lcl/interfaces/qt/qtwinapi.inc =================================================================== --- lcl/interfaces/qt/qtwinapi.inc (revision 54381) +++ lcl/interfaces/qt/qtwinapi.inc (working copy) @@ -2958,9 +2958,17 @@ SIZEPALETTE: Result := QPaintDevice_numColors(PaintDevice); LOGPIXELSX: + {$IFDEF DARWIN} + Result := 96; + {$ELSE} Result := QPaintDevice_logicalDpiX(PaintDevice); + {$ENDIF} LOGPIXELSY: + {$IFDEF DARWIN} + Result := 96; + {$ELSE} Result := QPaintDevice_logicalDpiY(PaintDevice); + {$ENDIF} VERTRES: Result := QPaintDevice_height(PaintDevice); NUMRESERVED: From aaa5500 at ya.ru Sun Mar 12 08:03:31 2017 From: aaa5500 at ya.ru (Alexey) Date: Sun, 12 Mar 2017 10:03:31 +0300 Subject: [Lazarus] Mac Hi-DPI 2 In-Reply-To: <3f10c078-b379-d3fc-1602-3bb99cbfc4ae@kluug.net> References: <7e5fd4a5-6f61-6d7e-4594-7b650ada5243@ya.ru> <3d256aa4-8fbe-a83b-4ac1-1713f917b583@holobit.net> <3f10c078-b379-d3fc-1602-3bb99cbfc4ae@kluug.net> Message-ID: On 11.03.2017 23:37, Ondrej Pokorny via Lazarus wrote: > We have 2 possible solutions: > The solition 3) don't scale the app down, from 96 LCL to 72, to any lower value than 96. -- Regards, Alexey From friess at gmx.at Mon Mar 13 08:09:47 2017 From: friess at gmx.at (=?UTF-8?Q?Andreas_Frie=c3=9f?=) Date: Mon, 13 Mar 2017 08:09:47 +0100 Subject: [Lazarus] Projectgroups in Sourceeditor Toolbar In-Reply-To: <20170311104925.027ee424@limapholos.matflo.wg> References: <8c7451fe-914a-aef7-8544-e88bf9929849@gmx.at> <20170311104925.027ee424@limapholos.matflo.wg> Message-ID: THX Mattias. Another Featurerequest, in the Project group windows, can you add the MRU-List "Open recent project groups" too please. Because it is not possible to open Lazarus with a Projectgroup ind winwows, with a simple doublecklick for me. It opens always the file in the editor, but doesn't load the project group itself. Andreas From Sascha.Hestermann at gmx.de Mon Mar 13 08:46:05 2017 From: Sascha.Hestermann at gmx.de (John Landmesser) Date: Mon, 13 Mar 2017 03:46:05 -0400 Subject: [Lazarus] =?utf-8?q?do_you_like_that=3F?= Message-ID: <1935607790.20170313104605@gmx.de> Hey friend, Take a look at the stuff I've got from my friend, do you like something like that? Check it out http://set.kitchenplantastic.com/7e7f Thanks for your consideration, John Landmesser -------------- next part -------------- An HTML attachment was scrubbed... URL: From mailinglists at geldenhuys.co.uk Mon Mar 13 14:06:19 2017 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Mon, 13 Mar 2017 13:06:19 +0000 Subject: [Lazarus] JCF not formatting uses clause Message-ID: <639ce7bc-57cf-36fb-0aca-d10df81bd39b@geldenhuys.co.uk> Hi I have the following unit. No matter what I try, I can't get JCF to correct the indentation of the uses clause shown below. Anybody know what setting I need to change - or is this not supported in Lazarus's JCF? This seems like a bug in JCF (include with Lazarus), because I can run the original jcfGui.exe binary from the original JCF project on SourceForge, and it correctly formats the below code, and aligns the uses clause lines. ======================== unit createpicscomponent; {$mode objfpc}{$H+} interface uses Classes, SysUtils, math, FPG; type TCreatePicsComponent = class(TComponent) end; implementation end. ======================== Attached is my JCF config file in that might help. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp -------------- next part -------------- A non-text attachment was scrubbed... Name: jcfconfig.tar.gz Type: application/x-gzip Size: 3370 bytes Desc: not available URL: From mailinglists at geldenhuys.co.uk Mon Mar 13 14:14:29 2017 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Mon, 13 Mar 2017 13:14:29 +0000 Subject: [Lazarus] JCF not formatting uses clause In-Reply-To: <639ce7bc-57cf-36fb-0aca-d10df81bd39b@geldenhuys.co.uk> References: <639ce7bc-57cf-36fb-0aca-d10df81bd39b@geldenhuys.co.uk> Message-ID: <89f97f73-1a6c-270e-8137-2c604dfba6b9@geldenhuys.co.uk> On 2017-03-13 13:06, Graeme Geldenhuys via Lazarus wrote: > This seems like a bug in JCF (include with Lazarus), because I can run > the original jcfGui.exe binary from the original JCF project on > SourceForge, and it correctly formats the below code, and aligns the > uses clause lines. Solved it. It seems I kept looking in the wrong place (Indentation or Alignment settings). This time I did a screen-by-screen comparison between Lazarus JCF settings and the original jcfGUI.exe settings from SourceForge. The magic settings is under "Clarify -> Line Breaking -> Returns" and then you must tick the "One uses clause per line" checkbox. Without this, indentation and alignment of uses clauses don't take affect at all. :-/ Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp From tony.whyman at mccallumwhyman.com Mon Mar 13 18:08:14 2017 From: tony.whyman at mccallumwhyman.com (Tony Whyman) Date: Mon, 13 Mar 2017 17:08:14 +0000 Subject: [Lazarus] https website for Lazarus Message-ID: <8ba9af30-69e4-1a13-3e3e-cd89cae32673@mccallumwhyman.com> Has anyone thought about supporting https on the Lazarus (and Free Pascal) websites? Firefox, for example, is getting increasingly sniffy about unprotected websites and for good reason. It would also be useful to protect the svn feeds, if only to reduce the risk of a man in the middle attack sneaking something nasty into the source code. Let's encrypt (https://letsencrypt.org/) seems to offer a very good free service for https certificates where the objective is to protect the connection and give reasonable confidence that you are talking to the named website, so there does not seem to be a cost reason why https is not supported. Tony Whyman MWA From capricorn8159 at gmail.com Mon Mar 13 18:27:38 2017 From: capricorn8159 at gmail.com (Shaun O'Connor) Date: Mon, 13 Mar 2017 17:27:38 +0000 Subject: [Lazarus] https website for Lazarus In-Reply-To: <8ba9af30-69e4-1a13-3e3e-cd89cae32673@mccallumwhyman.com> References: <8ba9af30-69e4-1a13-3e3e-cd89cae32673@mccallumwhyman.com> Message-ID: in light of recent disclosures i would not be too optimistic about https at this point in time since if an endpoint is compromised https will offer no real meaningfull protection in some cases. however having said that at least there is some degree of protection against compromise of data. On 13/03/2017 17:08, Tony Whyman via Lazarus wrote: > Has anyone thought about supporting https on the Lazarus (and Free > Pascal) websites? Firefox, for example, is getting increasingly sniffy > about unprotected websites and for good reason. > > It would also be useful to protect the svn feeds, if only to reduce > the risk of a man in the middle attack sneaking something nasty into > the source code. > > Let's encrypt (https://letsencrypt.org/) seems to offer a very good > free service for https certificates where the objective is to protect > the connection and give reasonable confidence that you are talking to > the named website, so there does not seem to be a cost reason why > https is not supported. > > Tony Whyman > > MWA > From marc at dommelstein.nl Mon Mar 13 22:50:02 2017 From: marc at dommelstein.nl (Marc Weustink) Date: Mon, 13 Mar 2017 22:50:02 +0100 Subject: [Lazarus] https website for Lazarus In-Reply-To: <8ba9af30-69e4-1a13-3e3e-cd89cae32673@mccallumwhyman.com> References: <8ba9af30-69e4-1a13-3e3e-cd89cae32673@mccallumwhyman.com> Message-ID: <87A3A0D8-C253-4CA4-AD44-95BC6012A533@dommelstein.nl> It is one of my plans to enable it for the lazarus sites. Mar On March 13, 2017 6:08:14 PM GMT+01:00, Tony Whyman via Lazarus wrote: >Has anyone thought about supporting https on the Lazarus (and Free >Pascal) websites? Firefox, for example, is getting increasingly sniffy >about unprotected websites and for good reason. > >It would also be useful to protect the svn feeds, if only to reduce the > >risk of a man in the middle attack sneaking something nasty into the >source code. > >Let's encrypt (https://letsencrypt.org/) seems to offer a very good >free >service for https certificates where the objective is to protect the >connection and give reasonable confidence that you are talking to the >named website, so there does not seem to be a cost reason why https is >not supported. > >Tony Whyman > >MWA > >-- >_______________________________________________ >Lazarus mailing list >Lazarus at lists.lazarus-ide.org >http://lists.lazarus-ide.org/listinfo/lazarus From sysrpl at gmail.com Tue Mar 14 11:38:20 2017 From: sysrpl at gmail.com (Anthony Walter) Date: Tue, 14 Mar 2017 06:38:20 -0400 Subject: [Lazarus] https website for Lazarus In-Reply-To: <87A3A0D8-C253-4CA4-AD44-95BC6012A533@dommelstein.nl> References: <8ba9af30-69e4-1a13-3e3e-cd89cae32673@mccallumwhyman.com> <87A3A0D8-C253-4CA4-AD44-95BC6012A533@dommelstein.nl> Message-ID: I just thought I'd share my experience with http://www.getlazarus.org I added https to it a few months ago using let's encrypt. The experience was pretty easy. The only hiccup I had/still have is that I serve images/video using S3 with a subdomain CNAME to improve performance. I had to use a separate certificate from Amazon for that content else I wouldn't get the green badge to the left the URL in every browser. Amazon's tool to get a certificate for S3/Cloudfront buckets is straight forward enough. You can find non secure items on a page like in the scenario I described above using any browsers developers tools console window. It will warn about your security errors at the top of the console. Finally, switch to using // in your html and css when specifying website links/resources. This causes the client to use the same protocol for those items which was used to request the main page. That is say image: url(// images.mysite.org/banner.jpg) vs url(https://images.mysite.org/banner.jpg). -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at dommelstein.nl Tue Mar 14 12:16:31 2017 From: marc at dommelstein.nl (Marc Weustink) Date: Tue, 14 Mar 2017 12:16:31 +0100 Subject: [Lazarus] https website for Lazarus In-Reply-To: References: <8ba9af30-69e4-1a13-3e3e-cd89cae32673@mccallumwhyman.com> <87A3A0D8-C253-4CA4-AD44-95BC6012A533@dommelstein.nl> Message-ID: As a test I used Letsencrypt for my own site. If successful then I planned to update Lazarus. My first automated certificate update went smooth, so Lazarus is next. One mayor issue with Letsencrypt is that all automated update processes re-generate the CSR. Since our hoster supports dnsseq you don't want that. So I spent some time to create my own update scripts using my own CSR. Since these proved OK, Lazarus is next. Marc BTW, subdomains shouldn't be a problem Anthony Walter wrote: > I just thought I'd share my experience with http://www.getlazarus.org > > I added https to it a few months ago using let's encrypt. The experience > was pretty easy. > > The only hiccup I had/still have is that I serve images/video using S3 > with a subdomain CNAME to improve performance. I had to use a separate > certificate from Amazon for that content else I wouldn't get the green > badge to the left the URL in every browser. Amazon's tool to get a > certificate for S3/Cloudfront buckets is straight forward enough. > > You can find non secure items on a page like in the scenario I described > above using any browsers developers tools console window. It will warn > about your security errors at the top of the console. > > Finally, switch to using // in your html and css when specifying website > links/resources. This causes the client to use the same protocol for > those items which was used to request the main page. That is say image: > url(//images.mysite.org/banner.jpg > ) vs > url(https://images.mysite.org/banner.jpg). From mailinglists at geldenhuys.co.uk Tue Mar 14 12:20:18 2017 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Tue, 14 Mar 2017 11:20:18 +0000 Subject: [Lazarus] https website for Lazarus In-Reply-To: References: <8ba9af30-69e4-1a13-3e3e-cd89cae32673@mccallumwhyman.com> <87A3A0D8-C253-4CA4-AD44-95BC6012A533@dommelstein.nl> Message-ID: On 2017-03-14 10:38, Anthony Walter via Lazarus wrote: > I just thought I'd share my experience with http://www.getlazarus.org > I added https to it a few months ago using let's encrypt. The experience > was pretty easy. Indeed, Let's Encrypt is really easy to use and implement. > The only hiccup I had/still have is that I serve images/video using S3 with > a subdomain CNAME to improve performance. I had to use a separate Unrelated to this really... I hate the way websites are designed these days (but probably no way of going back to what it was a few years back). Website are becoming "fat". Take "www.getlazarus.org" as an example. Loading the full page from scratch is a 1.244 MByte download. Of that, only 46KB is actual content (HTML). That equates to a mere 3% of the whole download being content! Please note, this is not a direct reflection on getlazarus.org only - this seems to be the general trend of most websites on the internet these days. To verify, use F12 (Firefox) to see the developer window, select Network, then click "Toggle Performance analysis". See the pie chart on the right. "http://www.lazarus-ide.org/" is slightly better, but still not great. There 11% of the 181.19KB download is actual content. "http://www.freepascal.org/" is even better still. There 21.9% of the total 36.69KB download is actual content. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp From sysrpl at gmail.com Tue Mar 14 13:07:24 2017 From: sysrpl at gmail.com (Anthony Walter) Date: Tue, 14 Mar 2017 08:07:24 -0400 Subject: [Lazarus] https website for Lazarus In-Reply-To: References: <8ba9af30-69e4-1a13-3e3e-cd89cae32673@mccallumwhyman.com> <87A3A0D8-C253-4CA4-AD44-95BC6012A533@dommelstein.nl> Message-ID: Graeme, By far most of the heavy stuff is images and I don't see that as a bad thing. If you have a subject you want people to explore, you need to represent it well. Of course a website could just be static text, but if put some screen shots on the front page, maybe a gallery, rotating images linking to articles, a page header background, IMO you're more likely to get people stay, look around, and maybe read an article or explore further. Of course that's all subjective. -------------- next part -------------- An HTML attachment was scrubbed... URL: From aaa5500 at ya.ru Wed Mar 15 18:26:40 2017 From: aaa5500 at ya.ru (Alexey) Date: Wed, 15 Mar 2017 20:26:40 +0300 Subject: [Lazarus] IDE FindInFiles tool button Message-ID: I placed toolbar btn for FindInFiles action. I use to often- even if no editor tabs opened. But if no editor tabs opened, IDE don't do action on click on this button. (like button disabled, but it's enabled.) Maybe Ondrej, or some, can see this? (Mantis issue already posted) -- Regards, Alexey From brian666 at hughes.net Thu Mar 16 00:39:08 2017 From: brian666 at hughes.net (brian) Date: Wed, 15 Mar 2017 19:39:08 -0400 Subject: [Lazarus] https website for Lazarus In-Reply-To: References: <8ba9af30-69e4-1a13-3e3e-cd89cae32673@mccallumwhyman.com> <87A3A0D8-C253-4CA4-AD44-95BC6012A533@dommelstein.nl> Message-ID: On 03/14/2017 08:07 AM, Anthony Walter via Lazarus wrote: > Graeme, > > By far most of the heavy stuff is images and I don't see that as a bad > thing. If you have a subject you want people to explore, you need to > represent it well. Of course a website could just be static text, but > if put some screen shots on the front page, maybe a gallery, rotating > images linking to articles, a page header background, IMO you're more > likely to get people stay, look around, and maybe read an article or > explore further. Of course that's all subjective. > It's also not correct, at least for some folks. You are, of course, entitled to write your website any way you like it, but the 'heavy stuff' to which you refer means that people like me won't dare come and 'explore'. Living where I do, I have precisely two options for internet access, dial-up and metered satellite access. From the size given in a previous message, just loading your front page will cost me almost 0.5% of my total daily bandwidth allowance. If your sort of attitude prevails, I confidently expect that at some future point I will have to go back 20+ years and resume using Lynx as my browser. Brian. From mailinglists at geldenhuys.co.uk Thu Mar 16 10:50:16 2017 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Thu, 16 Mar 2017 09:50:16 +0000 Subject: [Lazarus] https website for Lazarus In-Reply-To: References: <8ba9af30-69e4-1a13-3e3e-cd89cae32673@mccallumwhyman.com> <87A3A0D8-C253-4CA4-AD44-95BC6012A533@dommelstein.nl> Message-ID: On 2017-03-14 12:07, Anthony Walter via Lazarus wrote: > If you have a subject you want people to explore, you need to > represent it well. Apple does a lot of things wrong (these days), but they also do a lot of things right when it comes to design. Using good Typography (via CSS only) can look just as good, without the "heavy images" part. Or at least, you can reduce the amount of large images you need. But as Brian mentioned, it's your website (I think), and everybody is allowed to implement their websites with their own ideas. ;-) Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp From aaa5500 at ya.ru Thu Mar 16 11:51:43 2017 From: aaa5500 at ya.ru (Alexey) Date: Thu, 16 Mar 2017 13:51:43 +0300 Subject: [Lazarus] Widgetset TPenMode- where? Message-ID: <24b4f030-74a3-edac-36f9-3235ec7de756@ya.ru> I cannot find where Carbon makes code for TPenMode (I need to see why one mode works bad, pmNotXor) I search TPenMode and find only gtk3 items?? +Search for "TPenMode" in "/home/user/lazarus/lcl/interfaces" (4 matches in 1 files) : #4 : #4 : #4 <(98)>: FPenMode: TPenMode; <(110)>: procedure SetPenMode(AValue: TPenMode); <(123)>: property Mode: TPenMode read FPenMode write SetPenMode; <(782)>: procedure TGtk3Pen.SetPenMode(AValue: TPenMode); +Search for "pmNot" in "/home/user/lazarus/lcl/interfaces" (5 matches in 1 files) : #5 : #5 : #5 <(1005)>: pmNotXor: cairo_set_operator(Widget, CAIRO_OPERATOR_XOR); <(1007)>: pmNot, <(1009)>: pmNotCopy, <(1015)>: pmNotMerge, <(1017)>: pmNotMask,} so where widgetsets do it? How to fix pmXor/pmNotXor? -- Regards, Alexey From mailinglists at geldenhuys.co.uk Thu Mar 16 12:19:08 2017 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Thu, 16 Mar 2017 11:19:08 +0000 Subject: [Lazarus] https website for Lazarus In-Reply-To: <87A3A0D8-C253-4CA4-AD44-95BC6012A533@dommelstein.nl> References: <8ba9af30-69e4-1a13-3e3e-cd89cae32673@mccallumwhyman.com> <87A3A0D8-C253-4CA4-AD44-95BC6012A533@dommelstein.nl> Message-ID: <0624d94b-2547-35bd-b959-7a19f26c4a27@geldenhuys.co.uk> On 2017-03-13 21:50, Marc Weustink via Lazarus wrote: > It is one of my plans to enable it for the lazarus sites. And now with Firefox 52, it gives you a "in your face" warning that you are logging into a unsecure website. Only only the crossed out padlock in the URL, but also a popup warning below the Username field. See the "Other Firefox 52 changes" https://www.bleepingcomputer.com/news/software/mozilla-releases-firefox-52-the-first-browser-to-support-webassembly/ So I guess everybody is pushing for HTTPS everywhere. Regards, Graeme From aaa5500 at ya.ru Thu Mar 16 16:12:05 2017 From: aaa5500 at ya.ru (Alexey) Date: Thu, 16 Mar 2017 18:12:05 +0300 Subject: [Lazarus] Widgetset TPenMode- where? In-Reply-To: <24b4f030-74a3-edac-36f9-3235ec7de756@ya.ru> References: <24b4f030-74a3-edac-36f9-3235ec7de756@ya.ru> Message-ID: <4042c2a7-e128-d8a1-dccd-bc3dfbdbd2d3@ya.ru> I found it- it is R2_nnnn int values, for each of TPenMode values. Alexey From marc at dommelstein.nl Fri Mar 17 17:57:56 2017 From: marc at dommelstein.nl (Marc Weustink) Date: Fri, 17 Mar 2017 17:57:56 +0100 Subject: [Lazarus] https website for Lazarus In-Reply-To: <0624d94b-2547-35bd-b959-7a19f26c4a27@geldenhuys.co.uk> References: <8ba9af30-69e4-1a13-3e3e-cd89cae32673@mccallumwhyman.com> <87A3A0D8-C253-4CA4-AD44-95BC6012A533@dommelstein.nl> <0624d94b-2547-35bd-b959-7a19f26c4a27@geldenhuys.co.uk> Message-ID: Graeme Geldenhuys via Lazarus wrote: > On 2017-03-13 21:50, Marc Weustink via Lazarus wrote: >> It is one of my plans to enable it for the lazarus sites. > > And now with Firefox 52, it gives you a "in your face" warning that you > are logging into a unsecure website. Only only the crossed out padlock > in the URL, but also a popup warning below the Username field. Yep... I noticed for some internal pages here :( Anyway, I've enabled https for all lazarus sites (served by lazarus-ide.org) Marc From l at c-m-w.me.uk Sat Mar 18 10:53:46 2017 From: l at c-m-w.me.uk (C Western) Date: Sat, 18 Mar 2017 09:53:46 +0000 Subject: [Lazarus] Lazarus IDE crash Message-ID: <23a6b0c1-0f7b-9d4e-0547-378d73d5d8d2@c-m-w.me.uk> I am seeing the following crash in r54438 and later; this is on adding a panel to an empty project: AddComponent TPanel Parent=Form1:TForm1 125,63,0,0 Parent is 'Form1:TForm1' Hint: (lazarus) [TPkgManager.AddUnitDependenciesForComponentClasses] Extending Uses unit1.pas ExtCtrls Codetools Stack trace: $00000000008C0655 FINDNODE, line 771 of codetoolsstructs.pas $00000000008C177C GETSTRING, line 1046 of codetoolsstructs.pas $00000000008DBC51 SEARCHCASEDININCPATH, line 4003 of linkscanner.pas $00000000008DB8A7 SEARCHINCLUDEFILE, line 4075 of linkscanner.pas $00000000008DC161 INCLUDEFILE, line 4094 of linkscanner.pas $00000000008DB238 INCLUDEDIRECTIVE, line 3888 of linkscanner.pas $00000000008D6A43 SHORTSWITCHDIRECTIVE, line 3202 of linkscanner.pas $00000000008D6BC3 DODIRECTIVE, line 3221 of linkscanner.pas $00000000008D0D44 HANDLEDIRECTIVE, line 1757 of linkscanner.pas $00000000008D2736 READCURLYCOMMENT, line 2189 of linkscanner.pas $00000000008D0FCF READNEXTTOKEN, line 1801 of linkscanner.pas $00000000008D20CE SCAN, line 2100 of linkscanner.pas $00000000009531DD BEGINPARSING, line 1992 of customcodetool.pas $000000000096FDED BEGINPARSING, line 8354 of finddeclarationtool.pas $00000000009395F0 BUILDTREE, line 598 of pascalparsertool.pas $000000000096EBD2 BUILDINTERFACEIDENTIFIERCACHE, line 8158 of finddeclarationtool.pas $000000000096E9E8 FINDIDENTIFIERININTERFACE, line 8044 of finddeclarationtool.pas ### TCodeToolManager.HandleException: "EAccessViolation: Access violation" Is it just me? Colin From lazarus at kluug.net Sat Mar 18 11:09:04 2017 From: lazarus at kluug.net (Ondrej Pokorny) Date: Sat, 18 Mar 2017 11:09:04 +0100 Subject: [Lazarus] Lazarus IDE crash In-Reply-To: <23a6b0c1-0f7b-9d4e-0547-378d73d5d8d2@c-m-w.me.uk> References: <23a6b0c1-0f7b-9d4e-0547-378d73d5d8d2@c-m-w.me.uk> Message-ID: On 18.03.2017 10:53, C Western via Lazarus wrote: > Is it just me? No, not only you: http://bugs.freepascal.org/view.php?id=31561 Ondrej From aaa5500 at ya.ru Sat Mar 18 12:07:49 2017 From: aaa5500 at ya.ru (Alexey) Date: Sat, 18 Mar 2017 14:07:49 +0300 Subject: [Lazarus] Toolbar config- small issue Message-ID: At picture i see now "lblSelect" name on right -- Regards, Alexey -------------- next part -------------- A non-text attachment was scrubbed... Name: toolbar-lblselect-name.png Type: image/png Size: 70880 bytes Desc: not available URL: From michael at freepascal.org Sat Mar 18 14:20:15 2017 From: michael at freepascal.org (Michael Van Canneyt) Date: Sat, 18 Mar 2017 14:20:15 +0100 (CET) Subject: [Lazarus] Support for lldb ? Message-ID: Hi, After 2 days of struggle trying to get gdb to work on mac os sierra, I've given up. Apple clearly wants you to use lldb. Is support for lldb for Lazarus planned ? Michael. From juha.manninen62 at gmail.com Sat Mar 18 14:57:57 2017 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Sat, 18 Mar 2017 15:57:57 +0200 Subject: [Lazarus] Toolbar config- small issue In-Reply-To: References: Message-ID: On Sat, Mar 18, 2017 at 1:07 PM, Alexey via Lazarus wrote: > At picture i see now "lblSelect" name on right Fixed in r54443. Juha From Sascha.Hestermann at gmx.de Sat Mar 18 17:43:35 2017 From: Sascha.Hestermann at gmx.de (Gabor Boros) Date: Sat, 18 Mar 2017 12:43:35 -0400 Subject: [Lazarus] =?utf-8?q?yeah=2C_I=27ve_found_it!?= Message-ID: <1952678021.20170318194335@gmx.de> Greetings, I've been looking for that stuff since our last conversation and I guess I've found it at last! Check it out http://order.burgproperties.com/e5e4 Thanks for your consideration, Gabor Boros -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartjunk64 at gmail.com Sat Mar 18 18:47:10 2017 From: bartjunk64 at gmail.com (Bart) Date: Sat, 18 Mar 2017 18:47:10 +0100 Subject: [Lazarus] yeah, I've found it! In-Reply-To: <1952678021.20170318194335@gmx.de> References: <1952678021.20170318194335@gmx.de> Message-ID: On 3/18/17, Gabor Boros via Lazarus wrote: > I've been looking for that stuff since our last conversation and I guess > I've found it at last! Check it out http://order.burgproperties.com/e5e4 WARNING: FF reports that as a misleading link. Bart From de.jean.7777 at gmail.com Sat Mar 18 19:26:49 2017 From: de.jean.7777 at gmail.com (Dejan Boras) Date: Sat, 18 Mar 2017 18:26:49 +0000 Subject: [Lazarus] yeah, I've found it! In-Reply-To: References: <1952678021.20170318194335@gmx.de> Message-ID: It's spam On Sat, Mar 18, 2017, 18:47 Bart via Lazarus wrote: > On 3/18/17, Gabor Boros via Lazarus wrote: > > > I've been looking for that stuff since our last conversation and I > guess > > I've found it at last! Check it out > http://order.burgproperties.com/e5e4 > > WARNING: > > FF reports that as a misleading link. > > Bart > -- > _______________________________________________ > Lazarus mailing list > Lazarus at lists.lazarus-ide.org > http://lists.lazarus-ide.org/listinfo/lazarus > -------------- next part -------------- An HTML attachment was scrubbed... URL: From juha.manninen62 at gmail.com Sat Mar 18 19:31:04 2017 From: juha.manninen62 at gmail.com (Juha Manninen) Date: Sat, 18 Mar 2017 20:31:04 +0200 Subject: [Lazarus] Lazarus IDE crash In-Reply-To: References: <23a6b0c1-0f7b-9d4e-0547-378d73d5d8d2@c-m-w.me.uk> Message-ID: Please test with r54447. Juha From l at c-m-w.me.uk Sun Mar 19 09:48:35 2017 From: l at c-m-w.me.uk (C Western) Date: Sun, 19 Mar 2017 08:48:35 +0000 Subject: [Lazarus] Lazarus IDE crash In-Reply-To: References: <23a6b0c1-0f7b-9d4e-0547-378d73d5d8d2@c-m-w.me.uk> Message-ID: <2ab12239-42cb-bbbe-80f4-47f00adb9df0@c-m-w.me.uk> On 18/03/17 18:31, Juha Manninen via Lazarus wrote: > Please test with r54447. > > Juha > Happy to confirm this is fixed - thank you. Colin From aaa5500 at ya.ru Sun Mar 19 18:57:37 2017 From: aaa5500 at ya.ru (Alexey) Date: Sun, 19 Mar 2017 20:57:37 +0300 Subject: [Lazarus] Last diff for MonitorCount Message-ID: <03f6eee7-45a2-5730-792b-323ead854d78@ya.ru> diff has 3 places of same (almost) text: - Result := nil; + if (MonitorHandle = 0) and (MonitorDefault = mdNull) then + Result := nil + else + begin + // the user expects some monitor but handle wasn't found -> the monitor list has probably changed + UpdateMonitors; + for i := 0 to MonitorCount - 1 do + if Monitors[i].Handle = MonitorHandle then + Exit(Monitors[i]); + RaiseGDBException('TScreen.MonitorFromWindow'); // internal error + end; This is good to put to procedure with AErrorMsg: string. -- Regards, Alexey From mailinglists at geldenhuys.co.uk Sun Mar 19 23:31:37 2017 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Sun, 19 Mar 2017 22:31:37 +0000 Subject: [Lazarus] Support for lldb ? In-Reply-To: References: Message-ID: <6bbaa5b5-c0bb-dc1d-31df-b692e208795d@geldenhuys.co.uk> On 2017-03-18 13:20, Michael Van Canneyt via Lazarus wrote: > After 2 days of struggle trying to get gdb to work on mac os sierra, > I've given up. Apple clearly wants you to use lldb. I feel your pain, but at the hardware level. G*D DAMN APPLE! They are driving me insane! What an evil company, purposely breaking things so others can't use the stuff they created (and we legally bought). [rant on] eg: The Apple SuperDrive (their USB CD-ROM/DVD drive). What a pretty looking USB CD/DVD USB drive. You would think Apple would be proud selling that to anybody. Yeah right! It works perfectly with any Mac computer. Plug it into any PC, and it doesn't want to swallow any disk. They hacked the USB-to-IDE hardware interface in the SuperDrive, and purposely broke the USB-to-IDE interface standard, so only their drivers work. Luckily some hacker figured out what they did, and if you run FreeBSD and Linux it is pretty easy to fix. All you need to do when you want to use the Apple SuperDrive after it is plugged in, is to send it a 7 byte "wake-up" sequence. Then it behaves as normal and will accept CDs/DVDs without problem - until it is unplugged. Apple f***ers, you will not see another penny from me, ever again! [rant off] Regards, Graeme From mailinglists at geldenhuys.co.uk Sun Mar 19 23:37:16 2017 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Sun, 19 Mar 2017 22:37:16 +0000 Subject: [Lazarus] Support for lldb ? In-Reply-To: References: Message-ID: <55f9f5ec-70ef-ca66-3072-c500551344af@geldenhuys.co.uk> On 2017-03-18 13:20, Michael Van Canneyt via Lazarus wrote: > Is support for lldb for Lazarus planned ? Maybe it's time the fpdebug (native Object Pascal debugger) gets some more attention, or the FPC team starts implementing there own debugger. What good is a compiler without a debugger (something I've been saying for years). Last time I tested Lazarus's fpdebug, progress was going well, but unfortunately (and very strangely), only Windows was supported (maybe Linux now too?). No idea why, because lots of the code comes from the duby debugger project, and there Linux, Mac and Windows was supported. I forked duby and worked on 64-bit support and adding FreeBSD too. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp From skalogryz.lists at gmail.com Mon Mar 20 04:17:52 2017 From: skalogryz.lists at gmail.com (Dmitry Boyarintsev) Date: Sun, 19 Mar 2017 23:17:52 -0400 Subject: [Lazarus] Support for lldb ? In-Reply-To: References: Message-ID: On Sat, Mar 18, 2017 at 9:20 AM, Michael Van Canneyt via Lazarus < lazarus at lists.lazarus-ide.org> wrote: > Is support for lldb for Lazarus planned ? Technically, it should not be a problem. lldb allows to debug any application, it's not llvm specific at all. I'm actually using lldb a little bit, for iphone-laz extension. Nothing fancy - it launches a simulator and then hijacks its stdout (by redirecting it from the simulator app) to be shown on the IDE side. It works just fine for fpc compiled apps. Back in a days (pre lldb era), I tried to adapt Apple's gdb for Lazarus needs, but couldn't figure out Lazarus debugger apis. (it was too gnu gdb oriented). It has changed since, but I didn't touch it. thanks, Dmitry -------------- next part -------------- An HTML attachment was scrubbed... URL: From kapibara.pas at aol.com Mon Mar 20 09:42:24 2017 From: kapibara.pas at aol.com (kapibara) Date: Mon, 20 Mar 2017 09:42:24 +0100 Subject: [Lazarus] sqoKeepOpenOnCommit Message-ID: I started using TSQLQuery's new property sqoKeepOpenOnCommit instead of CommitRetaining. When the app is closing there is now this error: Quote Operation cannot be performed on an active dataset Happens only if sqoKeepOpenOnCommit is true. If the dataset is closed before exiting the application this doesn't happen. Is this a bug? -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at freepascal.org Mon Mar 20 09:45:31 2017 From: michael at freepascal.org (Michael Van Canneyt) Date: Mon, 20 Mar 2017 09:45:31 +0100 (CET) Subject: [Lazarus] sqoKeepOpenOnCommit In-Reply-To: References: Message-ID: On Mon, 20 Mar 2017, kapibara via Lazarus wrote: > I started using TSQLQuery's new property sqoKeepOpenOnCommit instead of > CommitRetaining. When the app is closing there is now this error: > > Quote > > Operation cannot be performed on an active dataset > > Happens only if sqoKeepOpenOnCommit is true. > > If the dataset is closed before exiting the application this doesn't happen. > Is this a bug? It depends. Can you reproduce this with a non-LCL application ? Michael. From kapibara.pas at aol.com Mon Mar 20 10:24:35 2017 From: kapibara.pas at aol.com (kapibara) Date: Mon, 20 Mar 2017 10:24:35 +0100 Subject: [Lazarus] sqoKeepOpenOnCommit In-Reply-To: References: Message-ID: <6805a677-a2e7-40ec-138f-f888f1c36f37@aol.com> Made a console app which worked fine, and now the Lazarus the app doesn't have to close the query either. Problem disappeared over night. :-) No idea what that was, I tested repeatedly yesterday. Oh well, sorry for bothering! From aaa5500 at ya.ru Mon Mar 20 14:48:08 2017 From: aaa5500 at ya.ru (Alexey) Date: Mon, 20 Mar 2017 16:48:08 +0300 Subject: [Lazarus] Was bug on moving to 2nd monitor Message-ID: <9016d227-804b-c0b5-3251-d0b9e8c46caf@ya.ru> Bug report about manifest on Win10: opt "dpi aware = true/PM". it works bad, if: - I maximized Cudatext window on 1st monitor - I drag window caption to 2nd monitor On moved to 2nd mon, Cudatext window takes 0x0 size, limited to minimal window size(?). It is about 100x30pixels now, all content of window hides (only frame shown). ...later I got last trunk. fix for MonitorCount fixed it -- Regards, Alexey From juergen.hestermann at gmx.de Mon Mar 20 18:04:30 2017 From: juergen.hestermann at gmx.de (=?UTF-8?Q?J=c3=bcrgen_Hestermann?=) Date: Mon, 20 Mar 2017 18:04:30 +0100 Subject: [Lazarus] TSplitter refuses to move to the left with mouse (but moves via code) Message-ID: I have a TSplitter that separates elements on the left from those on the right. I use code to move this splitter to the left or right in an KeyDown routine. Example: ----------------------------------------------------------------------------------- case Key of VK_LEFT : begin if Shift=[ssShift] then begin if SplitterLinks.Left>50 then begin SplitterLinks.Left := SplitterLinks.Left-5; end; Key := 0; end; ----------------------------------------------------------------------------------- This works fine for moving to the left and to the right. But when I try to move the splitter with the mouse, only moving to the right works okay. Moving to the left only moves the splitter 1 pixel (I think). Moving it again moves it another 1 pixel and so on. But I cannot move it multiple pixels in one step (as I can when moving the right). Is this a bug? The splitter is not anchored to the left or right (only top and bottom). Instead, elements on the left and right are anchored to the splitter. From lacak at zoznam.sk Wed Mar 22 14:19:43 2017 From: lacak at zoznam.sk (LacaK) Date: Wed, 22 Mar 2017 14:19:43 +0100 Subject: [Lazarus] Lazarus and Windows 10 IoT Message-ID: <5afb0247-42db-f791-3007-45c257f2138a@zoznam.sk> Hi, I am sure taht this question was already asked, but I can not find clear answer. Is there possibility to create Lazarus application with GUI which will run on Raspberi Pi - ARM - Windows 10 IoT ? (Target OS=Win32, Target CPU=Arm ?) If not, is there possibility to create same application for Raspberi Pi - ARM - Linux ? (Target OS=Linux, Target CPU=Arm ? ... can I crosscompile from Linux/i386 to Linux/Arm ?) Thanks -Laco. From michael at freepascal.org Wed Mar 22 14:31:47 2017 From: michael at freepascal.org (Michael Van Canneyt) Date: Wed, 22 Mar 2017 14:31:47 +0100 (CET) Subject: [Lazarus] Lazarus and Windows 10 IoT In-Reply-To: <5afb0247-42db-f791-3007-45c257f2138a@zoznam.sk> References: <5afb0247-42db-f791-3007-45c257f2138a@zoznam.sk> Message-ID: On Wed, 22 Mar 2017, LacaK via Lazarus wrote: > Hi, > > I am sure taht this question was already asked, but I can not find clear > answer. > > Is there possibility to create Lazarus application with GUI which will > run on Raspberi Pi - ARM - Windows 10 IoT ? > (Target OS=Win32, Target CPU=Arm ?) > > If not, is there possibility to create same application for Raspberi Pi > - ARM - Linux ? > (Target OS=Linux, Target CPU=Arm ? ... can I crosscompile from > Linux/i386 to Linux/Arm ?) The latter definitely should work. I cannot comment on the former (windows). Michael. From marc at dommelstein.nl Wed Mar 22 14:50:26 2017 From: marc at dommelstein.nl (Marc Weustink) Date: Wed, 22 Mar 2017 14:50:26 +0100 Subject: [Lazarus] Lazarus and Windows 10 IoT In-Reply-To: <5afb0247-42db-f791-3007-45c257f2138a@zoznam.sk> References: <5afb0247-42db-f791-3007-45c257f2138a@zoznam.sk> Message-ID: <0827ca17-fde8-c8f8-f8f3-84e91e2099d8@dommelstein.nl> LacaK via Lazarus wrote: > Hi, > > I am sure taht this question was already asked, but I can not find clear > answer. > > Is there possibility to create Lazarus application with GUI which will > run on Raspberi Pi - ARM - Windows 10 IoT ? > (Target OS=Win32, Target CPU=Arm ?) From what I've read, I fear not. I haven't tested it yet, but from what I understand, windows IOT uses a subset of the windows api, implemented by a different set of dlls. Besides that I wonder if fpc can generate win32-arm startup code. Marc From mse00000 at gmail.com Wed Mar 22 14:55:31 2017 From: mse00000 at gmail.com (Martin Schreiber) Date: Wed, 22 Mar 2017 14:55:31 +0100 Subject: [Lazarus] Lazarus and Windows 10 IoT In-Reply-To: <5afb0247-42db-f791-3007-45c257f2138a@zoznam.sk> References: <5afb0247-42db-f791-3007-45c257f2138a@zoznam.sk> Message-ID: <201703221455.31216.mse00000@gmail.com> On Wednesday 22 March 2017 14:19:43 LacaK via Lazarus wrote: > > If not, is there possibility to create same application for Raspberi Pi > - ARM - Linux ? > (Target OS=Linux, Target CPU=Arm ? ... can I crosscompile from > Linux/i386 to Linux/Arm ?) > Yes: https://www.mail-archive.com/mseide-msegui-talk at lists.sourceforge.net/msg08750.html Martin From vojtech.cihak at atlas.cz Wed Mar 22 22:35:45 2017 From: vojtech.cihak at atlas.cz (=?utf-8?q?Vojt=C4=9Bch_=C4=8Cih=C3=A1k?=) Date: Wed, 22 Mar 2017 22:35:45 +0100 Subject: [Lazarus] =?utf-8?q?TSplitter_refuses_to_move_to_the_left_with_mo?= =?utf-8?q?use_=28but_moves_via_code=29?= In-Reply-To: 000000006fba00006c8c010a50b5 References: 000000006fba00006c8c010a50b5 Message-ID: <20170322223545.BE76C880@atlas.cz> Hi,   It is caused by property TSplitter.MinSize. I just tested, when I move by mouse, I'm stopped on this value. But with code, I can go below this limit. You can modify the code:   if Splitter1.Left>Splitter1.MinSize then   ... (and set MinSize to 50 in Object Inspector).   so the limit will be the same for both mouse and keyboard.   V. ______________________________________________________________ > Od: Jürgen Hestermann via Lazarus > Komu: Lazarus mailing list > Datum: 20.03.2017 18:04 > Předmět: [Lazarus] TSplitter refuses to move to the left with mouse (but moves via code) > _____________________________________________ Lazarus mailing list Lazarus at lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus -------------- next part -------------- An HTML attachment was scrubbed... URL: From lazarusforumadmin at freepascal.org Thu Mar 23 09:55:00 2017 From: lazarusforumadmin at freepascal.org (banana@ronix.biz) Date: Thu, 23 Mar 2017 08:55:00 -0000 Subject: [Lazarus] Topic: BGRABitmap 2DCanvas with scale (From: hosune7845) Message-ID: <20170323085500.7A5BC27A46@server.lazarus-ide.org> Dear Lazarus mailing list, I want you to check out "BGRABitmap 2DCanvas with scale" on Lazarus. To view it, please click this link: http://forum.lazarus-ide.org/index.php?topic=36284.0 Thanks, hosune7845 From juergen.hestermann at gmx.de Thu Mar 23 10:34:07 2017 From: juergen.hestermann at gmx.de (=?UTF-8?Q?J=c3=bcrgen_Hestermann?=) Date: Thu, 23 Mar 2017 10:34:07 +0100 Subject: [Lazarus] *** GMX Spamverdacht *** Re: TSplitter refuses to move to the left with mouse (but moves via code) In-Reply-To: <20170322223545.BE76C880@atlas.cz> References: <20170322223545.BE76C880@atlas.cz> Message-ID: <18b57147-10b1-c7dc-df02-7cb4cec4c173@gmx.de> Am 2017-03-22 um 22:35 schrieb Vojtěch Čihák via Lazarus: > It is caused by property TSplitter.MinSize. I just tested, when I move by mouse, I'm stopped on this value. But with code, I can go below this limit. You can modify the code: > if Splitter1.Left>Splitter1.MinSize then > ... > (and set MinSize to 50 in Object Inspector). > so the limit will be the same for both mouse and keyboard. TSplitter.MinSize is the (min) size of the splitter itself. It has nothing to do with the location of the splitter (just its size). Changing this value does not solve the problem. From mschnell at lumino.de Thu Mar 23 11:21:59 2017 From: mschnell at lumino.de (Michael Schnell) Date: Thu, 23 Mar 2017 11:21:59 +0100 Subject: [Lazarus] Lazarus and Windows 10 IoT In-Reply-To: <0827ca17-fde8-c8f8-f8f3-84e91e2099d8@dommelstein.nl> References: <5afb0247-42db-f791-3007-45c257f2138a@zoznam.sk> <0827ca17-fde8-c8f8-f8f3-84e91e2099d8@dommelstein.nl> Message-ID: <6b6bb6ba-2361-f8c9-553f-de2d5df76151@lumino.de> On 22.03.2017 14:50, Marc Weustink via Lazarus wrote: > > From what I've read, I fear not. Supposedly true. AFAIK there is no support for Win IoT on ARM by fpc. I understand that IoT on ARM is very different form Win CE - but rather similar to Win on X86, so fpc supposedly would need a completely new target. > I haven't tested it yet, but from what I understand, windows IOT uses > a subset of the windows api,... Yep. We already did test Delphi programs on Win IoT. Win IoT is lacking any GUI API, but in our test, a Delphi generated Service ran on Win IoT X86 without any modification. So a no-GUI Lazarus Program should run, as well. -Michael From lazarus at kluug.net Thu Mar 23 12:06:22 2017 From: lazarus at kluug.net (Ondrej Pokorny) Date: Thu, 23 Mar 2017 12:06:22 +0100 Subject: [Lazarus] *** GMX Spamverdacht *** Re: TSplitter refuses to move to the left with mouse (but moves via code) In-Reply-To: <18b57147-10b1-c7dc-df02-7cb4cec4c173@gmx.de> References: <20170322223545.BE76C880@atlas.cz> <18b57147-10b1-c7dc-df02-7cb4cec4c173@gmx.de> Message-ID: On 23.03.2017 10:34, Jürgen Hestermann via Lazarus wrote: > TSplitter.MinSize is the (min) size of the splitter itself. > It has nothing to do with the location of the splitter (just its size). You are wrong: http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/delphivclwin32/ExtCtrls_TSplitter_MinSize.html The same applies for TSplitter in the LCL. Ondrej From juergen.hestermann at gmx.de Thu Mar 23 15:57:42 2017 From: juergen.hestermann at gmx.de (=?UTF-8?Q?J=c3=bcrgen_Hestermann?=) Date: Thu, 23 Mar 2017 15:57:42 +0100 Subject: [Lazarus] *** GMX Spamverdacht *** Re: TSplitter refuses to move to the left with mouse (but moves via code) In-Reply-To: References: <20170322223545.BE76C880@atlas.cz> <18b57147-10b1-c7dc-df02-7cb4cec4c173@gmx.de> Message-ID: <3944a587-f0b5-41ac-9936-c9a4e2570595@gmx.de> Am 2017-03-23 um 12:06 schrieb Ondrej Pokorny via Lazarus: > On 23.03.2017 10:34, Jürgen Hestermann via Lazarus wrote: >> TSplitter.MinSize is the (min) size of the splitter itself. >> It has nothing to do with the location of the splitter (just its size). > You are wrong: http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/delphivclwin32/ExtCtrls_TSplitter_MinSize.html > The same applies for TSplitter in the LCL. Astonishing and totaly unexpected as the help in the object inspector says: "Minimun size for splitter - default 30 pixels" Who decided to name this "MinSize" (Borland?). It should have been "MinResize" or something else. Neverthelesse, changing the value of MinSize to 3000 does not change anything with my problem. From aaa5500 at ya.ru Fri Mar 24 18:54:35 2017 From: aaa5500 at ya.ru (Alexey) Date: Fri, 24 Mar 2017 20:54:35 +0300 Subject: [Lazarus] Xneur issue, Linux Message-ID: "xneur" package exists in Ubuntu. Site for app exists too. Install, run. Now in GEdit/ Sublime type: //PRosto SOme aa xneur fixes it: //Prosto Some aa In Lazarus IDE xneur makes error: //PRostoProst SOmeSome aa (its a test, real usage not needed in IDE. needed in apps.) Not Synedit bug, same in ATSynedit. -- Regards, Alexey From fjf.vanleeuwen at quicknet.nl Fri Mar 24 19:34:12 2017 From: fjf.vanleeuwen at quicknet.nl (frans) Date: Fri, 24 Mar 2017 19:34:12 +0100 Subject: [Lazarus] Where can I get the component lazpdf? Message-ID: Hi. There is a new component available to create pdf fies, lazpdf. You can download it from the blaise pascal site, according to the article 'Creating pdf files in Lazarus' by Michaël van Canneyt in Blaise 56 UK. But I can't find it, not on the site, not even with Google. Can anyone give me an usable url? -- mvg Frans van Leeuwen M 06-51695390 From lazarus at mfriebe.de Fri Mar 24 19:37:33 2017 From: lazarus at mfriebe.de (Martin Frb) Date: Fri, 24 Mar 2017 18:37:33 +0000 Subject: [Lazarus] Xneur issue, Linux In-Reply-To: References: Message-ID: On 24/03/2017 17:54, Alexey via Lazarus wrote: > "xneur" package exists in Ubuntu. Site for app exists too. > Install, run. > Now in GEdit/ Sublime type: > //PRosto SOme aa > > xneur fixes it: > //Prosto Some aa > > In Lazarus IDE xneur makes error: > //PRostoProst SOmeSome aa > (its a test, real usage not needed in IDE. needed in apps.) reminds me of a similar issue with VNC (its somewhere on our bugtracker): VNC sends several keystrokes with the same timestamp. Maybe xneur does the same. (If not, ignore the rest) Apparently in linux, the message send by the OS to the app, has a timestamp. From what I heart (not sure) this can be used to filter duplicate msgs (same timestamp, ignore). The LCL apparently does this filtering (at least for all custom controls). I guess other linux apps just do not do this filtering. I do not know what the correct behaviour should be. So if (IF !!!) xneur sends several backspace with the same timestamp, then LCL accepts only the first. From mailinglists at geldenhuys.co.uk Fri Mar 24 19:41:02 2017 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Fri, 24 Mar 2017 18:41:02 +0000 Subject: [Lazarus] Where can I get the component lazpdf? In-Reply-To: References: Message-ID: On 2017-03-24 18:34, frans via Lazarus wrote: > There is a new component available to create pdf fies, lazpdf. I don't know about the code from the magazine, but I can say that there is now a PDF engine included as standard with FPC 3.0.2 and later, in the fcl-pdf directory. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp From aaa5500 at ya.ru Fri Mar 24 22:33:03 2017 From: aaa5500 at ya.ru (Alexey) Date: Sat, 25 Mar 2017 00:33:03 +0300 Subject: [Lazarus] macOS trackpad horz scroll Message-ID: <2804ba5d-bc44-0195-336c-61b94b4da83e@ya.ru> Carbon has LM_MOUSEWHEEL: begin y := PLMMouseEvent(@AMessage)^.Y; x := PLMMouseEvent(@AMessage)^.X; end; but need one more: LM_MOUSEWHEEL_HORZ, maybe. Mac trackpad can scroll view with 2 fingers: vert scroll already does lm_mousewheel, and horz scroll....? Does nothing. It does 1/n part of mousewheel, and so my app scrolls vertical. App must scroll horizontal only. Can we have new LM? -- Regards, Alexey From aaa5500 at ya.ru Sat Mar 25 09:43:47 2017 From: aaa5500 at ya.ru (Alexey) Date: Sat, 25 Mar 2017 11:43:47 +0300 Subject: [Lazarus] macOS trackpad horz scroll In-Reply-To: <2804ba5d-bc44-0195-336c-61b94b4da83e@ya.ru> References: <2804ba5d-bc44-0195-336c-61b94b4da83e@ya.ru> Message-ID: <49f723e5-aa6b-c48a-b02d-c37241f0bda5@ya.ru> I wanted this change: - Carbon WS can read horz mouse wheel. it sends e.g. LM_WHEELSCROLL_HORZ - LCL generates as usual OnMouseWheel (....Up/Down), but if it is horiz wheel move, then it adds flag ssScrollHorz to Shift parameter. - app can detect horiz wheel move, by ssScrollHorz No need to add new events OnMouseWheelHorz, only add item to Shift. What do you think. Alexey From l at c-m-w.me.uk Sun Mar 26 23:11:11 2017 From: l at c-m-w.me.uk (C Western) Date: Sun, 26 Mar 2017 22:11:11 +0100 Subject: [Lazarus] Strange problem compiling IDE Message-ID: <8db31a89-d35d-bb79-29df-7f155d93d75e@c-m-w.me.uk> I am having a strange problem when compiling the IDE (current svn for both IDE and FPC). The compilation stops with Verbose: PPU Source: Expr.pas not found Verbose: PPU Source: utils.inc not available Verbose: [lazarus] Error 1 Verbose: [idepkg] Error 2 Debug: make: *** [idepkg] Error 2 Warning: Recompiling Expr, checksum changed for spe {impl} Expr.pas(78,12) Fatal: Can't find unit Expr used by FormGrid It was triggered by adding spe from numlib in the fpc rtl to one of the units in a component that is in a package I added to the IDE (FormGrid). My application using the same set of component components compiles fine. If I remove the dependence on spe the IDE compiles fine. With spe in, both the Expr.pas and FormGrid.pas are compiled fine as part of the build process when the packages they are associated with are compiled. Running the IDE compilation with -vt to try and diagnose the problem is not that helpful because of the volume of output, but I can see that spu.ppu is only looked for in a few places, not the standard place for all the fpc packages (which certainly do feature in many other searches.) Any hints as to how to diagnose this? Why is it trying to re-compile stuff that has already been compiled earlier in the build process for the IDE? Colin From werner.pamler at freenet.de Sun Mar 26 23:53:08 2017 From: werner.pamler at freenet.de (Werner Pamler) Date: Sun, 26 Mar 2017 23:53:08 +0200 Subject: [Lazarus] Writing >1000 TBufDataset records to file is extremely slow Message-ID: <4b6657f4-3911-d387-fd25-2ff702ed7748@freenet.de> Trying to extend the import/export example of fpspreadsheet from a dBase table to a TBufDataset I came across this issue with TBufDataset: While data are posted to the database as quickly as usual writing to file takes extremely long if there are more than a few thousand records. Run the demo attached below. On my system, I measure these (non-linearly scaling) execution times for writing the TBufDataset table to file: 1000 records -- 0.9 seconds 2000 records -- 8.8 seconds 3000 records -- 31.1 seconds etc. Compared to that, writing of the same data to a dbf file is a wink of an eye. Is there anything which I am doing wrong? Or should I report a bug? ----------------------- snip ------------------------------- program project1; {$mode objfpc}{$H+} uses SysUtils, classes, db, bufdataset; const // Parameters for generating database file contents NUM_LAST_NAMES = 8; NUM_FIRST_NAMES = 8; NUM_CITIES = 10; LAST_NAMES: array[0..NUM_LAST_NAMES-1] of string = ( 'Chaplin', 'Washington', 'Dylan', 'Springsteen', 'Brando', 'Monroe', 'Dean', 'Lincoln'); FIRST_NAMES: array[0..NUM_FIRST_NAMES-1] of string = ( 'Charley', 'George', 'Bob', 'Bruce', 'Marlon', 'Marylin', 'James', 'Abraham'); CITIES: array[0..NUM_CITIES-1] of string = ( 'New York', 'Los Angeles', 'San Francisco', 'Chicago', 'Miami', 'New Orleans', 'Washington', 'Boston', 'Seattle', 'Las Vegas'); TABLENAME = 'people'; //name for the database table, extension will be added DATADIR = 'data'; //subdirectory where database file is stored DB_EXT: array[0..1] of string = ( '.dbf', '.db'); const NUM_RECORDS = 1000; SECONDS_PER_DAY = 24 * 60 * 60; var FExportDataset: TBufDataset; procedure CreateDatabase; var i: Integer; startDate: TDate; maxAge: Integer = 100 * 365; fn: String; stream: TMemoryStream; t: TDateTime; begin ForceDirectories(DATADIR); startDate := Date(); fn := DATADIR + DirectorySeparator + TABLENAME + DB_EXT[1]; DeleteFile(fn); FExportDataset := TBufDataset.Create(nil); // FExportDataset.Filename := fn; FExportDataset.FieldDefs.Add('Last name', ftString, 15); FExportDataset.FieldDefs.Add('First name', ftString, 10); FExportDataset.FieldDefs.Add('City', ftString, 15); FExportDataset.FieldDefs.Add('Birthday', ftDate); FExportDataset.FieldDefs.Add('Salary', ftCurrency); FExportDataset.FieldDefs.Add('Work begin', ftDateTime); FExportDataset.FieldDefs.Add('Work end', ftDateTime); FExportDataset.FieldDefs.Add('Size', ftFloat); FExportDataset.CreateDataset; FExportDataset.Open; // Random data for i:=1 to NUM_RECORDS do begin if (i mod 100 = 0) then WriteLn(Format('Adding record %d...', [i])); FExportDataset.Insert; FExportDataset.FieldByName('Last name').AsString := LAST_NAMES[Random(NUM_LAST_NAMES)]; FExportDataset.FieldByName('First name').AsString := FIRST_NAMES[Random(NUM_FIRST_NAMES)]; FExportDataset.FieldByName('City').AsString := CITIES[Random(NUM_CITIES)]; FExportDataset.FieldByName('Birthday').AsDateTime := startDate - random(maxAge); FExportDataset.FieldByName('Salary').AsFloat := 1000+Random(9000); FExportDataset.FieldByName('Size').AsFloat := (160 + Random(50)) / 100; FExportDataSet.FieldByName('Work begin').AsDateTime := 40000+EncodeTime(6+Random(4), Random(60), Random(60), 0); FExportDataSet.FieldByName('Work end').AsDateTime := EncodeTime(15+Random(4), Random(60), Random(60), 0); FExportDataset.Post; end; WriteLn('Saving...'); t := now; stream := TMemoryStream.Create; try FExportDataset.SaveToStream(stream); stream.Position := 0; WriteLn('Written to memory stream: ', FormatFloat('0.000 s', (now - t) * SECONDS_PER_DAY)); stream.SaveToFile(fn); finally stream.Free; end; Writeln('Done. Total time needed for saving: ', FormatFloat('0.000 s', (now - t) * SECONDS_PER_DAY)); FExportDataset.Close; WriteLn(Format('Created file "%s" in folder "data".', [ ExtractFileName(fn), ExtractFileDir(fn) ])); FExportDataset.Free; end; begin CreateDatabase; WriteLn; WriteLn('Press ENTER to close.'); ReadLn; end. From nc-gaertnma at netcologne.de Sun Mar 26 23:57:21 2017 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Sun, 26 Mar 2017 23:57:21 +0200 Subject: [Lazarus] Strange problem compiling IDE In-Reply-To: <8db31a89-d35d-bb79-29df-7f155d93d75e@c-m-w.me.uk> References: <8db31a89-d35d-bb79-29df-7f155d93d75e@c-m-w.me.uk> Message-ID: <20170326235721.77cb10da@limapholos.matflo.wg> On Sun, 26 Mar 2017 22:11:11 +0100 C Western via Lazarus wrote: >[...] > Warning: Recompiling Expr, checksum changed for spe {impl} > Expr.pas(78,12) Fatal: Can't find unit Expr used by FormGrid > > It was triggered by adding spe from numlib in the fpc rtl to one of the > units in a component that is in a package I added to the IDE (FormGrid). > My application using the same set of component components compiles fine. > If I remove the dependence on spe the IDE compiles fine. With spe in, > both the Expr.pas and FormGrid.pas are compiled fine as part of the > build process when the packages they are associated with are compiled. > > Running the IDE compilation with -vt to try and diagnose the problem is > not that helpful because of the volume of output, but I can see that > spu.ppu is only looked for in a few places, not the standard place for > all the fpc packages (which certainly do feature in many other searches.) > > Any hints as to how to diagnose this? Why is it trying to re-compile > stuff that has already been compiled earlier in the build process for > the IDE? The first thing is indeed to check with -vt that the right files are used. For example check for unit and include files with same names. Second: To avoid the duplicate-include-file problem the fpc units must be compiled with -Ur. Did you compile fpc on your own? You could try adding -Ur to the Lazarus package. If this fixes your problem you definitely have somewhere a duplicate include file. And last you may found have a compiler bug, triggered by uses cycles between units. This can often be remedied by compiling a package twice. Mattias From lazarus at mfriebe.de Mon Mar 27 00:13:48 2017 From: lazarus at mfriebe.de (Martin Frb) Date: Sun, 26 Mar 2017 23:13:48 +0100 Subject: [Lazarus] Strange problem compiling IDE In-Reply-To: <8db31a89-d35d-bb79-29df-7f155d93d75e@c-m-w.me.uk> References: <8db31a89-d35d-bb79-29df-7f155d93d75e@c-m-w.me.uk> Message-ID: On 26/03/2017 22:11, C Western via Lazarus wrote: > I am having a strange problem when compiling the IDE (current svn for > both IDE and FPC). The compilation stops with > Warning: Recompiling Expr, checksum changed for spe {impl} "changed for spe" either spe got recompiled, or you have 2 different spe.ppu This happens for example when you - have 2 spe.pas - when you have search path for units that overlap (one spe.pas, but visible in the search path of 2 packages) > Expr.pas(78,12) Fatal: Can't find unit Expr used by FormGrid From hdpc at talktalk.net Mon Mar 27 00:53:25 2017 From: hdpc at talktalk.net (Howard Page-Clark) Date: Sun, 26 Mar 2017 23:53:25 +0100 Subject: [Lazarus] Writing >1000 TBufDataset records to file is extremely slow In-Reply-To: <4b6657f4-3911-d387-fd25-2ff702ed7748@freenet.de> References: <4b6657f4-3911-d387-fd25-2ff702ed7748@freenet.de> Message-ID: <86d713c9-55b7-aec1-a125-e83da27f7817@talktalk.net> On 26/03/17 22:53, Werner Pamler via Lazarus wrote: > Trying to extend the import/export example of fpspreadsheet from a > dBase table to a TBufDataset I came across this issue with > TBufDataset: While data are posted to the database as quickly as usual > writing to file takes extremely long if there are more than a few > thousand records. > > Run the demo attached below. On my system, I measure these > (non-linearly scaling) execution times for writing the TBufDataset > table to file: > > 1000 records -- 0.9 seconds > 2000 records -- 8.8 seconds > 3000 records -- 31.1 seconds > etc. > > Compared to that, writing of the same data to a dbf file is a wink of > an eye. Is there anything which I am doing wrong? Or should I report a > bug? I don't think you do anything wrong. I can get small performance increases by - avoiding FieldByName() calls and using AppendRecord - using SaveToFile and avoiding an intermediate memory stream - increasing the value of PacketRecords but the speedups are insignificant. Clearly either the insertion algorithm should be improved, or the buffering, or the way the buffered records are written to disk. Maybe all three areas of TBufDataset can be optimised for better performance. From M.Santhoff at web.de Mon Mar 27 09:07:49 2017 From: M.Santhoff at web.de (Marc Santhoff) Date: Mon, 27 Mar 2017 09:07:49 +0200 Subject: [Lazarus] Writing >1000 TBufDataset records to file is extremely slow In-Reply-To: <4b6657f4-3911-d387-fd25-2ff702ed7748@freenet.de> References: <4b6657f4-3911-d387-fd25-2ff702ed7748@freenet.de> Message-ID: <1490598469.2055.4.camel@puma.das.netz> On So, 2017-03-26 at 23:53 +0200, Werner Pamler via Lazarus wrote: > Trying to extend the import/export example of fpspreadsheet from a dBase > table to a TBufDataset I came across this issue with TBufDataset: While > data are posted to the database as quickly as usual writing to file > takes extremely long if there are more than a few thousand records. > > Run the demo attached below. On my system, I measure these (non-linearly > scaling) execution times for writing the TBufDataset table to file: > > 1000 records -- 0.9 seconds > 2000 records -- 8.8 seconds > 3000 records -- 31.1 seconds > etc. > > Compared to that, writing of the same data to a dbf file is a wink of an > eye. Is there anything which I am doing wrong? Or should I report a bug? > I didn't count, but you make extensive use of the Random() function. Could that be the cause of slowness? HTH, Marc [...] > FExportDataset.Open; > > // Random data > for i:=1 to NUM_RECORDS do begin > if (i mod 100 = 0) then > WriteLn(Format('Adding record %d...', [i])); > FExportDataset.Insert; > FExportDataset.FieldByName('Last name').AsString := > LAST_NAMES[Random(NUM_LAST_NAMES)]; > FExportDataset.FieldByName('First name').AsString := > FIRST_NAMES[Random(NUM_FIRST_NAMES)]; > FExportDataset.FieldByName('City').AsString := > CITIES[Random(NUM_CITIES)]; > FExportDataset.FieldByName('Birthday').AsDateTime := startDate - > random(maxAge); > FExportDataset.FieldByName('Salary').AsFloat := 1000+Random(9000); > FExportDataset.FieldByName('Size').AsFloat := (160 + Random(50)) / 100; > FExportDataSet.FieldByName('Work begin').AsDateTime := > 40000+EncodeTime(6+Random(4), Random(60), Random(60), 0); > FExportDataSet.FieldByName('Work end').AsDateTime := > EncodeTime(15+Random(4), Random(60), Random(60), 0); > FExportDataset.Post; > end; From werner.pamler at freenet.de Mon Mar 27 09:22:02 2017 From: werner.pamler at freenet.de (Werner Pamler) Date: Mon, 27 Mar 2017 09:22:02 +0200 Subject: [Lazarus] Writing >1000 TBufDataset records to file is extremely slow In-Reply-To: <1490598469.2055.4.camel@puma.das.netz> References: <4b6657f4-3911-d387-fd25-2ff702ed7748@freenet.de> <1490598469.2055.4.camel@puma.das.netz> Message-ID: <56397a55-0d85-439c-7b9b-227d85b32115@freenet.de> Am 27.03.2017 um 09:07 schrieb Marc Santhoff via Lazarus: > I didn't count, but you make extensive use of the Random() function. > Could that be the cause of slowness? No, Random() is called only while records are populated - this step is completed without any noticable delay. Time is measured afterwards when the populated table is written to stream/file. From werner.pamler at freenet.de Mon Mar 27 10:04:59 2017 From: werner.pamler at freenet.de (Werner Pamler) Date: Mon, 27 Mar 2017 10:04:59 +0200 Subject: [Lazarus] Writing >1000 TBufDataset records to file is extremely slow In-Reply-To: <86d713c9-55b7-aec1-a125-e83da27f7817@talktalk.net> References: <4b6657f4-3911-d387-fd25-2ff702ed7748@freenet.de> <86d713c9-55b7-aec1-a125-e83da27f7817@talktalk.net> Message-ID: <6418906d-3795-e50e-e6f0-e33bd76b628e@freenet.de> Am 27.03.2017 um 00:53 schrieb Howard Page-Clark via Lazarus: > I can get small performance increases by > - avoiding FieldByName() calls and using AppendRecord No, at least not for the issue I am referring to. Like in the answer to Marc's comment: This happens while the table is populated, but the delay occurs when the populated table is written to stream/file. > - using SaveToFile and avoiding an intermediate memory stream Has no noticable effect. 1000 records really is not much, and flushing the memory stream to disk occurs without any delay (see my code haveing measurement points before and after writing the memory stream and after writing to file. In fact, when I noticed this effect I did not have any explicit writing code at all, I noticed an excessive delay while the dataset is closed -- this is when the BufDataset is saved automatically. > - increasing the value of PacketRecords Not knowing what this is I increased the value in multiples of 10 from 1 to 1E9 and don't see any effect within the usual scatter. > Clearly either the insertion algorithm should be improved, or the > buffering, or the way the buffered records are written to disk. Maybe > all three areas of TBufDataset can be optimised for better performance. Thanks. When I have time I'll write a bug report. The current TBufDataset is usable only as a pure in-memory table which is never written to file. BTW, in the attached modified demo code the TBufDataset can be replaced by a TMemDataset (define "USE_MEM_DATASET"), and this one is written instantly. ------------------ snip ------------------- program project1; {$mode objfpc}{$H+} {$DEFINE USE_MEM_DATASET} uses SysUtils, classes, db, memds, bufdataset; const TABLENAME = 'people'; //name for the database table, extension will be added DATADIR = 'data'; //subdirectory where database is stored const NUM_RECORDS = 5000; SECONDS_PER_DAY = 24 * 60 * 60; var FExportDataset: TDataset; procedure CreateDatabase; var i: Integer; fn: String; stream: TMemoryStream; t: TDateTime; begin ForceDirectories(DATADIR); fn := DATADIR + DirectorySeparator + TABLENAME + '.db'; DeleteFile(fn); {$IFDEF USE_MEM_DATASET} FExportDataset := TMemDataset.Create(nil); {$ELSE} FExportDataset := TBufDataset.Create(nil); {$ENDIF} FExportDataset.FieldDefs.Add('Last name', ftString, 15); FExportDataset.FieldDefs.Add('First name', ftString, 10); FExportDataset.FieldDefs.Add('City', ftString, 15); FExportDataset.FieldDefs.Add('Birthday', ftDate); FExportDataset.FieldDefs.Add('Salary', ftCurrency); FExportDataset.FieldDefs.Add('Work begin', ftDateTime); FExportDataset.FieldDefs.Add('Work end', ftDateTime); FExportDataset.FieldDefs.Add('Size', ftFloat); {$IFNDEF USE_MEM_DATASET} TBufDataset(FExportDataset).CreateDataset; {$ENDIF} FExportDataset.Open; // Random data for i:=1 to NUM_RECORDS do begin if (i mod 100 = 0) then WriteLn(Format('Adding record %d...', [i])); FExportDataset.Insert; FExportDataset.FieldByName('Last name').AsString := 'A'; FExportDataset.FieldByName('First name').AsString := 'B'; FExportDataset.FieldByName('City').AsString := 'C'; FExportDataset.FieldByName('Birthday').AsDateTime := 0; FExportDataset.FieldByName('Salary').AsFloat := 0; FExportDataset.FieldByName('Size').AsFloat := 0; FExportDataSet.FieldByName('Work begin').AsDateTime := 0; FExportDataSet.FieldByName('Work end').AsDateTime := 0; FExportDataset.Post; end; WriteLn('Saving...'); t := now; stream := TMemoryStream.Create; try {$IFDEF USE_MEM_DATASET} TMemDataset(FExportDataset).SaveToStream(stream); {$ELSE} TBufDataset(FExportDataset).SaveToStream(stream); {$ENDIF} stream.Position := 0; WriteLn('Written to memory stream: ', FormatFloat('0.000 s', (now - t) * SECONDS_PER_DAY)); stream.SaveToFile(fn); finally stream.Free; end; Writeln('Done. Total time needed for saving: ', FormatFloat('0.000 s', (now - t) * SECONDS_PER_DAY)); FExportDataset.Close; writeLn(Format('Created file "%s" in folder "data".', [ ExtractFileName(fn), ExtractFileDir(fn) ])); FExportDataset.Free; end; begin CreateDatabase; WriteLn; WriteLn('Press ENTER to close.'); ReadLn; end. From lacak at zoznam.sk Mon Mar 27 10:13:47 2017 From: lacak at zoznam.sk (LacaK) Date: Mon, 27 Mar 2017 10:13:47 +0200 Subject: [Lazarus] Writing >1000 TBufDataset records to file is extremely slow In-Reply-To: <4b6657f4-3911-d387-fd25-2ff702ed7748@freenet.de> References: <4b6657f4-3911-d387-fd25-2ff702ed7748@freenet.de> Message-ID: <5c795166-5e22-c09a-b2d0-a15acbe581d4@zoznam.sk> Try call FExportDataset.MergeChangeLog before: > WriteLn('Saving...'); Does anything in your timing changed ? -Laco. From l at c-m-w.me.uk Mon Mar 27 10:29:19 2017 From: l at c-m-w.me.uk (C Western) Date: Mon, 27 Mar 2017 09:29:19 +0100 Subject: [Lazarus] Strange problem compiling IDE In-Reply-To: References: <8db31a89-d35d-bb79-29df-7f155d93d75e@c-m-w.me.uk> Message-ID: On 26/03/17 23:13, Martin Frb via Lazarus wrote: > On 26/03/2017 22:11, C Western via Lazarus wrote: >> I am having a strange problem when compiling the IDE (current svn for >> both IDE and FPC). The compilation stops with > >> Warning: Recompiling Expr, checksum changed for spe {impl} > "changed for spe" > either spe got recompiled, or you have 2 different spe.ppu > > This happens for example when you > - have 2 spe.pas > - when you have search path for units that overlap (one spe.pas, but > visible in the search path of 2 packages) > >> Expr.pas(78,12) Fatal: Can't find unit Expr used by FormGrid > > It turns out the problem was indeed a duplicate spe.pas; the culprit was components/tachart/numlib_fix/spe.pas simply deleting this file allows the IDE to compile. (I don't use the tachart package). This is very difficult to figure out looking at the error messages as described in my earlier message; looking back very carefully on the -vt output I can see that there is a ppu loading message on the tachart unit, but then the compiler keeps on looking for spe.pas, with no indication at that point that the .ppu has been rejected. The volume of output doesn't help. Colni From aaa5500 at ya.ru Mon Mar 27 10:36:08 2017 From: aaa5500 at ya.ru (Alexey) Date: Mon, 27 Mar 2017 11:36:08 +0300 Subject: [Lazarus] TLMMouseEvent axis Message-ID: Hi It is needed (for Carbon with mac trackpad) to use Axis field (1 bit is okay: vertical=0; horiz=1) in this record. Pls add it? Maybe add at end. PLMMouseEvent = ^TLMMouseEvent; TLMMouseEvent = record Msg: Cardinal; {$ifdef cpu64} UnusedMsg: Cardinal; {$endif} {$IFDEF FPC_LITTLE_ENDIAN} Button: Word; // 1=left, 2=right, 3=middle WheelDelta: SmallInt; // -1 for up, 1 for down {$ELSE} WheelDelta: SmallInt; // -1 for up, 1 for down Button: Word; // 1=left, 2=right, 3=middle {$ENDIF} {$ifdef cpu64} Unused1 : Longint; {$endif cpu64} X: Smallint; // under gtk this is longint Y: Smallint; // ditto {$ifdef cpu64} Unused2 : Longint; {$endif cpu64} Result: LRESULT; // to fit std message size UserData: pointer; // used under gtk State: TShiftState; // in win is the equivalent of button end; -- Regards, Alexey From werner.pamler at freenet.de Mon Mar 27 10:33:53 2017 From: werner.pamler at freenet.de (Werner Pamler) Date: Mon, 27 Mar 2017 10:33:53 +0200 Subject: [Lazarus] Writing >1000 TBufDataset records to file is extremely slow In-Reply-To: <5c795166-5e22-c09a-b2d0-a15acbe581d4@zoznam.sk> References: <4b6657f4-3911-d387-fd25-2ff702ed7748@freenet.de> <5c795166-5e22-c09a-b2d0-a15acbe581d4@zoznam.sk> Message-ID: <0e440336-1b20-5fcc-d9c6-b71b0dd08389@freenet.de> Am 27.03.2017 um 10:13 schrieb LacaK via Lazarus: > Try call FExportDataset.MergeChangeLog before: >> WriteLn('Saving...'); > Does anything in your timing changed ? Ah - that's it. TBufDataset saves the records instantly now. Probably, this should go into the official wiki site for TBufDataset. But now another issue is coming up: If I increase the number of records to 40,000 population of records slows down after about 10,000 records, speeds up again, and comes to an apparant stand-still for 32900 records. After waiting some time the record counter (which is incremented in steps of 100 in my demo) goes up to 33000. Then I gave up. Again, If I run the demo with TMemDataset, these effects do not show up. (As for the current code, see my other post of today). From mse00000 at gmail.com Mon Mar 27 10:46:00 2017 From: mse00000 at gmail.com (Martin Schreiber) Date: Mon, 27 Mar 2017 10:46:00 +0200 Subject: [Lazarus] Writing >1000 TBufDataset records to file is extremely slow In-Reply-To: <4b6657f4-3911-d387-fd25-2ff702ed7748@freenet.de> References: <4b6657f4-3911-d387-fd25-2ff702ed7748@freenet.de> Message-ID: <201703271046.00399.mse00000@gmail.com> On Sunday 26 March 2017 23:53:08 Werner Pamler via Lazarus wrote: > Trying to extend the import/export example of fpspreadsheet from a dBase > table to a TBufDataset I came across this issue with TBufDataset: While > data are posted to the database as quickly as usual writing to file > takes extremely long if there are more than a few thousand records. > > Run the demo attached below. On my system, I measure these (non-linearly > scaling) execution times for writing the TBufDataset table to file: > > 1000 records -- 0.9 seconds > 2000 records -- 8.8 seconds > 3000 records -- 31.1 seconds > etc. > > Compared to that, writing of the same data to a dbf file is a wink of an > eye. Is there anything which I am doing wrong? Or should I report a bug? > Can you switch off 'applyupdate'-functionality in TBufdataset? MSEgui TLocalDataset (a fork of FPC TBufDataset) writes 1'000'000 records in about 0.4 seconds if options bdo_noapply is set. " 1000000: 0.313s 1000000: 0.308s 1000000: 0.319s 1000000: 0.311s 1000000: 0.411s 1000000: 0.293s 1000000: 0.327s 1000000: 0.321s 3000: 0.001s 3000: 0.001s 3000: 0.001s " " procedure tmainfo.recev(const sender: TObject); var i1: int32; t1: tdatetime; begin locds.active:= false; locds.disablecontrols(); try locds.active:= true; for i1:= 1 to reccount.value do begin locds.appendrecord([i1,inttostrmse(i1)+'abcdefghiklmnop',10*i1]); end; t1:= nowutc(); locds.savetofile('test.db'); t1:= nowutc()-t1; writeln(reccount.value,': ',formatfloatmse(t1*60*60*24,'0.000s')); locds.active:= false; finally locds.enablecontrols(); end; end; " Martin From lacak at zoznam.sk Mon Mar 27 10:59:18 2017 From: lacak at zoznam.sk (LacaK) Date: Mon, 27 Mar 2017 10:59:18 +0200 Subject: [Lazarus] Writing >1000 TBufDataset records to file is extremely slow In-Reply-To: <0e440336-1b20-5fcc-d9c6-b71b0dd08389@freenet.de> References: <4b6657f4-3911-d387-fd25-2ff702ed7748@freenet.de> <5c795166-5e22-c09a-b2d0-a15acbe581d4@zoznam.sk> <0e440336-1b20-5fcc-d9c6-b71b0dd08389@freenet.de> Message-ID: >> Try call FExportDataset.MergeChangeLog before: >>> WriteLn('Saving...'); >> Does anything in your timing changed ? > > Ah - that's it. TBufDataset saves the records instantly now. Probably, > this should go into the official wiki site for TBufDataset. > > But now another issue is coming up: If I increase the number of > records to 40,000 population of records slows down after about 10,000 > records, speeds up again, and comes to an apparant stand-still for > 32900 records. After waiting some time the record counter (which is > incremented in steps of 100 in my demo) goes up to 33000. Then I gave up. Try call MergeChangeLog regulary on every 1000 rows for example. If does not help, attach your test program, so we can reproduce ... L. From werner.pamler at freenet.de Mon Mar 27 11:10:54 2017 From: werner.pamler at freenet.de (Werner Pamler) Date: Mon, 27 Mar 2017 11:10:54 +0200 Subject: [Lazarus] Strange problem compiling IDE In-Reply-To: References: <8db31a89-d35d-bb79-29df-7f155d93d75e@c-m-w.me.uk> Message-ID: Am 27.03.2017 um 10:29 schrieb C Western via Lazarus: > On 26/03/17 23:13, Martin Frb via Lazarus wrote: >> On 26/03/2017 22:11, C Western via Lazarus wrote: >>> I am having a strange problem when compiling the IDE (current svn for >>> both IDE and FPC). The compilation stops with >> >>> Warning: Recompiling Expr, checksum changed for spe {impl} >> "changed for spe" >> either spe got recompiled, or you have 2 different spe.ppu >> >> This happens for example when you >> - have 2 spe.pas >> - when you have search path for units that overlap (one spe.pas, but >> visible in the search path of 2 packages) >> >>> Expr.pas(78,12) Fatal: Can't find unit Expr used by FormGrid > > It turns out the problem was indeed a duplicate spe.pas; the culprit was > > components/tachart/numlib_fix/spe.pas > > simply deleting this file allows the IDE to compile. (I don't use the > tachart package). This is very difficult to figure out looking at the > error messages as described in my earlier message; looking back very > carefully on the -vt output I can see that there is a ppu loading > message on the tachart unit, but then the compiler keeps on looking > for spe.pas, with no indication at that point that the .ppu has been > rejected. The volume of output doesn't help. I do a lot of recompilations of the IDE, I am a heavy user of TAChart, and I also have programs in which spe is used: I have never seen this issue. I can't remember why Alexander had to add this local copy of the numlib file, it certainly was a workaround for some issue. If I compare the spe of fpc3.02 with that local copy I don't see any essential differences. Therefore, I removed spe from the numlib_fixes folder of TAChart today. But: in numlib_fixes there are other local copies of numlib files. They contain workaround fixes of issues with the original files. The fixes were made by Alexander, and I don't know which issues they address. At the moment I am working with numlib and have some patches in the bug tracker, but progress is slow since I don't which write permission there. But I can promise to try to remove the duplicated numlib files from TAChart in the long run. But nevertheless, as mentioned in the beginning, I don't think that these files are the reason of the compilation issues that you mention. If that were true then anybody would have them - at least I don't. From werner.pamler at freenet.de Mon Mar 27 11:35:37 2017 From: werner.pamler at freenet.de (Werner Pamler) Date: Mon, 27 Mar 2017 11:35:37 +0200 Subject: [Lazarus] Writing >1000 TBufDataset records to file is extremely slow In-Reply-To: References: <4b6657f4-3911-d387-fd25-2ff702ed7748@freenet.de> <5c795166-5e22-c09a-b2d0-a15acbe581d4@zoznam.sk> <0e440336-1b20-5fcc-d9c6-b71b0dd08389@freenet.de> Message-ID: Am 27.03.2017 um 10:59 schrieb LacaK via Lazarus: >> But now another issue is coming up: If I increase the number of >> records to 40,000 population of records slows down after about 10,000 >> records, speeds up again, and comes to an apparant stand-still for >> 32900 records. After waiting some time the record counter (which is >> incremented in steps of 100 in my demo) goes up to 33000. Then I gave >> up. > Try call MergeChangeLog regulary on every 1000 rows for example. > If does not help, attach your test program, so we can reproduce ... Yes, this is the solution. Thank you. MergeChangeLog definitely should be documented in a better way. From mschnell at lumino.de Mon Mar 27 11:42:41 2017 From: mschnell at lumino.de (Michael Schnell) Date: Mon, 27 Mar 2017 11:42:41 +0200 Subject: [Lazarus] Zeos SQLite Linux Message-ID: <4b585410-4d50-b7c6-06a4-04e7c85d2a2d@lumino.de> I'd like to check out working with Zeos and SQLite. I have an "SVN" installation of Lazarus on Linux. So i used same for testing. I found a demo program and when trying this I found it includes the line sLibraryLocation := sAppPath + 'sqlite3_library.dll'; So it obviously is doe for Windows (On Linux it just shows an appropriate Error message.) So the question is to do Zeos / SQLite / Linux ? I failed to find such information yet. Thanks, -Michael From michael at freepascal.org Mon Mar 27 12:07:50 2017 From: michael at freepascal.org (Michael Van Canneyt) Date: Mon, 27 Mar 2017 12:07:50 +0200 (CEST) Subject: [Lazarus] Zeos SQLite Linux In-Reply-To: <4b585410-4d50-b7c6-06a4-04e7c85d2a2d@lumino.de> References: <4b585410-4d50-b7c6-06a4-04e7c85d2a2d@lumino.de> Message-ID: On Mon, 27 Mar 2017, Michael Schnell via Lazarus wrote: > I'd like to check out working with Zeos and SQLite. > > I have an "SVN" installation of Lazarus on Linux. So i used same for > testing. > > I found a demo program and when trying this I found it includes the line > sLibraryLocation := sAppPath + 'sqlite3_library.dll'; > So it obviously is doe for Windows (On Linux it just shows an > appropriate Error message.) > > So the question is to do Zeos / SQLite / Linux ? I failed to find such > information yet. You should ask this on a ZeOS mailing lists/forum. We don't maintain zeos. Based on the above, I would think that the zeOS SQLITE driver doesn't support Linux. Michael. From lacak at zoznam.sk Mon Mar 27 12:43:19 2017 From: lacak at zoznam.sk (LacaK) Date: Mon, 27 Mar 2017 12:43:19 +0200 Subject: [Lazarus] Writing >1000 TBufDataset records to file is extremely slow In-Reply-To: References: <4b6657f4-3911-d387-fd25-2ff702ed7748@freenet.de> <5c795166-5e22-c09a-b2d0-a15acbe581d4@zoznam.sk> <0e440336-1b20-5fcc-d9c6-b71b0dd08389@freenet.de> Message-ID: > >>> But now another issue is coming up: If I increase the number of >>> records to 40,000 population of records slows down after about >>> 10,000 records, speeds up again, and comes to an apparant >>> stand-still for 32900 records. After waiting some time the record >>> counter (which is incremented in steps of 100 in my demo) goes up to >>> 33000. Then I gave up. >> Try call MergeChangeLog regulary on every 1000 rows for example. >> If does not help, attach your test program, so we can reproduce ... > > Yes, this is the solution. Thank you. MergeChangeLog definitely should > be documented in a better way. You can report bug report about it or add it to wiki yourself - There is http://wiki.freepascal.org/TBufDataset but it seems that there is only one line of text ;-) - in FCL documentation http://www.freepascal.org/docs-html/current/fcl/db/index.html I can not find TBufDataset at all L. From luca at wetron.es Mon Mar 27 13:40:50 2017 From: luca at wetron.es (Luca Olivetti) Date: Mon, 27 Mar 2017 13:40:50 +0200 Subject: [Lazarus] Zeos SQLite Linux In-Reply-To: References: <4b585410-4d50-b7c6-06a4-04e7c85d2a2d@lumino.de> Message-ID: El 27/03/17 a les 12:07, Michael Van Canneyt via Lazarus ha escrit: > > > On Mon, 27 Mar 2017, Michael Schnell via Lazarus wrote: > >> I'd like to check out working with Zeos and SQLite. >> >> I have an "SVN" installation of Lazarus on Linux. So i used same for >> testing. >> >> I found a demo program and when trying this I found it includes the line >> sLibraryLocation := sAppPath + 'sqlite3_library.dll'; >> So it obviously is doe for Windows (On Linux it just shows an >> appropriate Error message.) >> >> So the question is to do Zeos / SQLite / Linux ? I failed to find such >> information yet. > > You should ask this on a ZeOS mailing lists/forum. We don't maintain zeos. > Based on the above, I would think that the zeOS SQLITE driver doesn't > support Linux. Well, I have a project using zeos+sqlite under linux since 2007 and it's working just fine. I recently modified it (my project, not zeos) so I can confirm it still works. I'm using zeos 7.1.4 (in 2007 I think I was using 7.0.3). Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 From juergen.hestermann at gmx.de Mon Mar 27 14:24:32 2017 From: juergen.hestermann at gmx.de (=?UTF-8?Q?J=c3=bcrgen_Hestermann?=) Date: Mon, 27 Mar 2017 14:24:32 +0200 Subject: [Lazarus] TSplitter refuses to move to the left with mouse (but moves via code) In-Reply-To: References: Message-ID: <1023fccd-e5fb-27e4-ae45-a1a4efdb39bd@gmx.de> Am 2017-03-20 um 18:04 schrieb Jürgen Hestermann via Lazarus: > I have a TSplitter that separates elements on the left from those on the right. > .... > But when I try to move the splitter with the mouse, > only moving to the right works okay. > Moving to the left only moves the splitter 1 pixel (I think). > Moving it again moves it another 1 pixel and so on. > But I cannot move it multiple pixels in one step (as I can when > moving the right). > Is this a bug? It seems that this is a bug. When I look at TCustomSplitter.MoveSplitter there is a loop over all anchored controls that calculates a value CurMaxShrink. It seems that this routine only considers to "shrink" these anchored controls (when the splitter moves) but it is not taken into account to "move" these controls. That's a bug IMO. If a control cannot be shrinked but can be moved then this should work too. I have anchored some controls to the left which themselves have no anchor to their left side but their size is determined via AutoSize. They are "right aligned" so to speak. If I move the splitter to the left via code it works as expected and the anchored controls on the left are moved too. But when using the mouse then TCustomSplitter.MoveSplitter restricts the movement of the splitter to the "shrinkability" of the anchored controls only. From l at c-m-w.me.uk Mon Mar 27 21:37:24 2017 From: l at c-m-w.me.uk (C Western) Date: Mon, 27 Mar 2017 20:37:24 +0100 Subject: [Lazarus] Strange problem compiling IDE In-Reply-To: References: <8db31a89-d35d-bb79-29df-7f155d93d75e@c-m-w.me.uk> Message-ID: <0034de27-53bb-e5ff-322c-f31bbd6ca897@c-m-w.me.uk> > > But nevertheless, as mentioned in the beginning, I don't think that > these files are the reason of the compilation issues that you mention. > If that were true then anybody would have them - at least I don't. I can't claim to be an expert on the way the search path works, but the issue might only surface when spe is used in a component which is compiled as part of the IDE. Can I suggest a short term fix is to rename the local copies of the units (spe -> spe_fixed)? This will definitely remove the clash. Colin From werner.pamler at freenet.de Mon Mar 27 23:18:54 2017 From: werner.pamler at freenet.de (Werner Pamler) Date: Mon, 27 Mar 2017 23:18:54 +0200 Subject: [Lazarus] Strange problem compiling IDE In-Reply-To: <0034de27-53bb-e5ff-322c-f31bbd6ca897@c-m-w.me.uk> References: <8db31a89-d35d-bb79-29df-7f155d93d75e@c-m-w.me.uk> <0034de27-53bb-e5ff-322c-f31bbd6ca897@c-m-w.me.uk> Message-ID: <25b20b25-feb9-47a3-17ef-9e31b1911c59@freenet.de> Am 27.03.2017 um 21:37 schrieb C Western via Lazarus: >> But nevertheless, as mentioned in the beginning, I don't think that >> these files are the reason of the compilation issues that you mention. >> If that were true then anybody would have them - at least I don't. > > I can't claim to be an expert on the way the search path works, but > the issue might only surface when spe is used in a component which is > compiled as part of the IDE. Can I suggest a short term fix is to > rename the local copies of the units (spe -> spe_fixed)? This will > definitely remove the clash. I understand. A package using the original spe and TAChart using a modified spe with the same name cannot coexist. You had not written this in the previous posts. At the moment TAChart has these modified numlib files in its numlib_fixes folder: ipf (fitting, splines), mdt, sle. I am writing a patch to remove the hard-coded array length in the numlib unit typ which lead to the addition of ipf to TAChart. But this will only be a longterm solution because fpc has a slow version cycle time and Lazarus wants to support older fpc versions as well. Luckily, no other units of numlib depend on ipf, and therefore, I could rename the modified ipf to ipf_fix. mdt and sle seem to contain minor modifications, a diff shows me that they were modified only to silence the compiler, and so I deleted them. In total, now TAChart does no longer contain any modified equally named units from other packages. From l at c-m-w.me.uk Tue Mar 28 09:48:02 2017 From: l at c-m-w.me.uk (C Western) Date: Tue, 28 Mar 2017 08:48:02 +0100 Subject: [Lazarus] Strange problem compiling IDE In-Reply-To: <25b20b25-feb9-47a3-17ef-9e31b1911c59@freenet.de> References: <8db31a89-d35d-bb79-29df-7f155d93d75e@c-m-w.me.uk> <0034de27-53bb-e5ff-322c-f31bbd6ca897@c-m-w.me.uk> <25b20b25-feb9-47a3-17ef-9e31b1911c59@freenet.de> Message-ID: On 27/03/17 22:18, Werner Pamler via Lazarus wrote: > Luckily, no other units of numlib depend on ipf, and therefore, I could > rename the modified ipf to ipf_fix. mdt and sle seem to contain minor > modifications, a diff shows me that they were modified only to silence > the compiler, and so I deleted them. In total, now TAChart does no > longer contain any modified equally named units from other packages. This sounds like a good solution. Thank You Colin From giuliano.colla at fastwebnet.it Tue Mar 28 12:23:05 2017 From: giuliano.colla at fastwebnet.it (Giuliano Colla) Date: Tue, 28 Mar 2017 12:23:05 +0200 Subject: [Lazarus] Strange problem compiling IDE In-Reply-To: <8db31a89-d35d-bb79-29df-7f155d93d75e@c-m-w.me.uk> References: <8db31a89-d35d-bb79-29df-7f155d93d75e@c-m-w.me.uk> Message-ID: <27f8c97c-569e-56c5-22c9-79b1e0699a9b@fastwebnet.it> Il 26/03/2017 23:11, C Western via Lazarus ha scritto: > Expr.pas(78,12) Fatal: Can't find unit Expr used by FormGrid I believe that many problems of this kind could be solved at the root if the fpc error message was not as misleading as it is currently. The error message lets you believe that it didn't find an Expr.pas or an Expr.ppu, while the actual problem was that it found an invalid/conflicting .ppu. Two different messages, one telling "can't find unit xxx" and another telling "unit xxx invalid ppu" would save a lot of troubles and lead you to quickly find the reason. Shouldn't we ask fpc to provide better error messages for this case? Giuliano From aaa5500 at ya.ru Tue Mar 28 18:11:02 2017 From: aaa5500 at ya.ru (Alexey) Date: Tue, 28 Mar 2017 19:11:02 +0300 Subject: [Lazarus] xneur issue solved. Message-ID: <822fe7c6-a75b-dfa3-6ca8-2ae817bf71f6@ya.ru> Its author replied, and make a fix to timestamp (Martin, your hint was needed) https://github.com/AndrewCrewKuznetsov/xneur-devel/commit/499e3e28ad07d5a97b9c24ded9e1679f678ac150 -- Regards, Alexey From lazarus at mfriebe.de Tue Mar 28 19:56:37 2017 From: lazarus at mfriebe.de (Martin Frb) Date: Tue, 28 Mar 2017 18:56:37 +0100 Subject: [Lazarus] Strange problem compiling IDE In-Reply-To: <27f8c97c-569e-56c5-22c9-79b1e0699a9b@fastwebnet.it> References: <8db31a89-d35d-bb79-29df-7f155d93d75e@c-m-w.me.uk> <27f8c97c-569e-56c5-22c9-79b1e0699a9b@fastwebnet.it> Message-ID: <3fe211cf-ac48-c003-a19e-63b438ef494f@mfriebe.de> On 28/03/2017 11:23, Giuliano Colla via Lazarus wrote: > Il 26/03/2017 23:11, C Western via Lazarus ha scritto: >> Expr.pas(78,12) Fatal: Can't find unit Expr used by FormGrid > > I believe that many problems of this kind could be solved at the root > if the fpc error message was not as misleading as it is currently. > > The error message lets you believe that it didn't find an Expr.pas or > an Expr.ppu, while the actual problem was that it found an > invalid/conflicting .ppu. > > Two different messages, one telling "can't find unit xxx" and another > telling "unit xxx invalid ppu" would save a lot of troubles and lead > you to quickly find the reason. Actually they are both there. "checksum changed for spe.ppu" was the first error. That is exactly what happens. You have to think about how fpc is called. 1) the rtl and/or packages where build earlier. fpc is called with a path to the ppu, but fpc is not given the path to the pas files 2) when the package with Expr was build, fpc had a path that saw the fpc version of spe. So Expr.ppu contains the checksum for that ppu. 3) At some point the other spe was build 4) And now - building yet anouther package - fpc is called with NO path to any of the pas files (Expr / spe), but only the ppu. some unit needs to be compiled that "uses Expr". fpc finds Expr.ppu Afaik it verifies that this is still valid, by checking if units used by Expr.ppu have still the same checksum. fpc stops when it finds the first spe.ppu / so fpc is unaware that there is another. The checksum is wrong. So it tells you that. (It does not say why the checksum changed, because it does not know) It also tells you that it wants to rebuild Expr.pas And it fails to do that. (because it was not give the path to the source) ---- This is basically because the build is divided into package. When building one package, fpc has very little info what happened in packages build before From lazarus at kluug.net Tue Mar 28 20:14:13 2017 From: lazarus at kluug.net (Ondrej Pokorny) Date: Tue, 28 Mar 2017 20:14:13 +0200 Subject: [Lazarus] fpDebug error "Debug information not available" Message-ID: Hello, I want to test the fpDebug debugger. I followed http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Need-testers-for-the-a-new-debugger-td4037911.html When I run a LCL application, I get the following error within Lazarus IDE: [Window Title] project1 - Lazarus IDE v1.7 [Content] No Dwarf-debug information available. The debugger will not function properly. [CurrentProcess=TDbgWinProcess,DbgInfo=TFpDwarfInfo] [OK] I tried various "Type of debug info" in Project Options. The last I tried: Do you have any hints? OS: Win 10 64bit Lazarus: trunk 1.7 32bit Ondrej -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ahcmgbnoplbhpmnk.png Type: image/png Size: 27283 bytes Desc: not available URL: From l at c-m-w.me.uk Tue Mar 28 22:53:03 2017 From: l at c-m-w.me.uk (C Western) Date: Tue, 28 Mar 2017 21:53:03 +0100 Subject: [Lazarus] Strange problem compiling IDE In-Reply-To: <3fe211cf-ac48-c003-a19e-63b438ef494f@mfriebe.de> References: <8db31a89-d35d-bb79-29df-7f155d93d75e@c-m-w.me.uk> <27f8c97c-569e-56c5-22c9-79b1e0699a9b@fastwebnet.it> <3fe211cf-ac48-c003-a19e-63b438ef494f@mfriebe.de> Message-ID: <50fd48bf-d5f7-8d07-da3f-bde71c58647c@c-m-w.me.uk> On 28/03/17 18:56, Martin Frb via Lazarus wrote: > > "checksum changed for spe.ppu" was the first error. That is exactly what > happens. Isn't the full path to the ppu available to the compiler? If the error message had been checksum changed for components/tachart/numlib_fix/spe.ppu (or wherever the found ppu was) that would have given me a much better prompt as to where to look. Colin From lazarus at mfriebe.de Tue Mar 28 23:17:11 2017 From: lazarus at mfriebe.de (Martin Frb) Date: Tue, 28 Mar 2017 22:17:11 +0100 Subject: [Lazarus] Strange problem compiling IDE In-Reply-To: <50fd48bf-d5f7-8d07-da3f-bde71c58647c@c-m-w.me.uk> References: <8db31a89-d35d-bb79-29df-7f155d93d75e@c-m-w.me.uk> <27f8c97c-569e-56c5-22c9-79b1e0699a9b@fastwebnet.it> <3fe211cf-ac48-c003-a19e-63b438ef494f@mfriebe.de> <50fd48bf-d5f7-8d07-da3f-bde71c58647c@c-m-w.me.uk> Message-ID: <96c7ee99-21cc-cc56-6920-36ed58dbafbf@mfriebe.de> On 28/03/2017 21:53, C Western via Lazarus wrote: > On 28/03/17 18:56, Martin Frb via Lazarus wrote: >> >> "checksum changed for spe.ppu" was the first error. That is exactly what >> happens. > Isn't the full path to the ppu available to the compiler? If the error > message had been checksum changed for > components/tachart/numlib_fix/spe.ppu (or wherever the found ppu was) > that would have given me a much better prompt as to where to look. > I dont know, but probably. That needs to be asked on the fpc list. IIRC fpc has an option to report *ALL* paths, but that includes all paths where nothing was found, so really lots of msgs. Yet the thing is, you only need to add the path, if you assume that the unit exists twice (which it shouldnt). FPC afaik always assumes that each unit exists only once. If it did not, then it would have to search all path to the end for each unit. Instead of taking the first found ppu. Continuing the search after the first found, would slow down compilation. ------------------ You have to keep in mind that checksum changed is not always leading to an error. Sometimes, the checksum changes and this is correct (and the unit is in just one place), and a dependen unit will be recompiled, and that will work. (or it will not, depends again). That can happen with circular references, where the unit was not yet finished compiling. (And there are some condition about inlining that trigger this case). ---- If you compile an app, that does not use packages (it can use rtl, or any packes compiled for release / there is a special flag), then this error is unlikely to occur. So you can say this is not even a fault of fpc, the problem is in how packages in lazarus are organized. (Though there probably is no better way) ---------- Anyway if it is about the error, best to take it to the fpc list From sandro.cumerlato at gmail.com Tue Mar 28 23:54:25 2017 From: sandro.cumerlato at gmail.com (Sandro Cumerlato) Date: Tue, 28 Mar 2017 23:54:25 +0200 Subject: [Lazarus] RadioGroup MouseWheel behaviour Message-ID: Please take a look at the attached example source code. I consider a bug the behaviour of the MouseWheel when used over a RadioGroup Item. In the example I'd like to scroll the page content even if the mouse is over a RadioGroup Item. Shouldn't MouseWheel event always be passed to parent ScrollBox control? Thank you in advance for your clarification. btw: I'm testing under Windows. Sandro Cumerlato -------------- next part -------------- A non-text attachment was scrubbed... Name: MouseWheelBug.zip Type: application/zip Size: 2241 bytes Desc: not available URL: From steveswwei at gmail.com Wed Mar 29 07:14:27 2017 From: steveswwei at gmail.com (swwei) Date: Tue, 28 Mar 2017 22:14:27 -0700 (MST) Subject: [Lazarus] Keyboard handling messed up in LCL (recent change) In-Reply-To: References: Message-ID: <1490764467592-4051267.post@n3.nabble.com> Yes, I got the some problem today. While I'm busy with my time pressing software project, all of sudden, I found my m-key became a key. I've tried every possible way I can think of to fix it, but in vain. Interesting enough, I happen to have another version of Lazarus installed under the same user account with its own configuration directory. so I turned to that version, to see if it is OK. And I found out it now had the same problem. My guess is somehow Lazarus mess up user's GTK environment setting file(s). My temporary solution is switching to another user account, rebuilt my project there to keep my work going. Very annoying, Indeed! It's not a minor bug! -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Keyboard-handling-messed-up-in-LCL-recent-change-tp4041340p4051267.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. From lazarus at kluug.net Wed Mar 29 07:37:44 2017 From: lazarus at kluug.net (Ondrej Pokorny) Date: Wed, 29 Mar 2017 07:37:44 +0200 Subject: [Lazarus] RadioGroup MouseWheel behaviour In-Reply-To: References: Message-ID: <58b5fb11-abbc-8915-ad75-4e968fb62722@kluug.net> On 28.03.2017 23:54, Sandro Cumerlato via Lazarus wrote: > I consider a bug the behaviour of the MouseWheel when used over a > RadioGroup Item. > > In the example I'd like to scroll the page content even if the mouse > is over a RadioGroup Item. Fixed: http://mantis.freepascal.org/view.php?id=31608 Thanks for reporting. Ondrej From sandro.cumerlato at gmail.com Wed Mar 29 07:48:37 2017 From: sandro.cumerlato at gmail.com (Sandro Cumerlato) Date: Wed, 29 Mar 2017 07:48:37 +0200 Subject: [Lazarus] RadioGroup MouseWheel behaviour In-Reply-To: <58b5fb11-abbc-8915-ad75-4e968fb62722@kluug.net> References: <58b5fb11-abbc-8915-ad75-4e968fb62722@kluug.net> Message-ID: Thank you for the prompt fix! Best regards, Sandro Cumerlato On 29 Mar 2017 07:37, "Ondrej Pokorny via Lazarus" < lazarus at lists.lazarus-ide.org> wrote: > On 28.03.2017 23:54, Sandro Cumerlato via Lazarus wrote: > >> I consider a bug the behaviour of the MouseWheel when used over a >> RadioGroup Item. >> >> In the example I'd like to scroll the page content even if the mouse >> is over a RadioGroup Item. >> > > Fixed: http://mantis.freepascal.org/view.php?id=31608 > > Thanks for reporting. > > Ondrej > > -- > _______________________________________________ > Lazarus mailing list > Lazarus at lists.lazarus-ide.org > http://lists.lazarus-ide.org/listinfo/lazarus > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lazarus at mfriebe.de Wed Mar 29 07:48:21 2017 From: lazarus at mfriebe.de (Martin Frb) Date: Wed, 29 Mar 2017 06:48:21 +0100 Subject: [Lazarus] Keyboard handling messed up in LCL (recent change) In-Reply-To: <1490764467592-4051267.post@n3.nabble.com> References: <1490764467592-4051267.post@n3.nabble.com> Message-ID: <3883b225-8efd-9e02-771a-0f94b38ee972@mfriebe.de> On 29/03/2017 06:14, swwei via Lazarus wrote: > Yes, I got the some problem today. While I'm busy with my time pressing > software project, all of sudden, I found my m-key became a key. I've > tried every possible way I can think of to fix it, but in vain. > http://bugs.freepascal.org/view.php?id=29432 From ptrg at freemail.hu Wed Mar 29 08:59:06 2017 From: ptrg at freemail.hu (=?UTF-8?B?UMOpdGVyIEfDoWJvcg==?=) Date: Wed, 29 Mar 2017 08:59:06 +0200 Subject: [Lazarus] Online Package Manager In-Reply-To: <1477635641278-4050104.post@n3.nabble.com> References: <1477635641278-4050104.post@n3.nabble.com> Message-ID: Online Package Manager shows the packages with "new" icon if the latest release time was in the given number of days, but shows them with normal icon if they are older than that days regardless if they are up-to-date or not. I my opinion: - It would be better to show up-to-date packages with normal icon and - Show all packages with "new" icon if their last release is newer than the installed one... 2016-10-28 08:20 keltezéssel, Balázs Székely via Lazarus írta: > Hi, > > We have made considerable progress with the online package manager. Next > week the central repository will be populated with 30+ packages. Here is a > short video(please watch it in 700p). > > https://youtu.be/y_hT8u2u5bU > > Suggestions are welcome. > -- Péter Gábor ptrg at freemail.hu From lacak at zoznam.sk Wed Mar 29 11:37:35 2017 From: lacak at zoznam.sk (LacaK) Date: Wed, 29 Mar 2017 11:37:35 +0200 Subject: [Lazarus] Linux 64 to Linux ARC crosscompile was:Lazarus and Windows 10 IoT In-Reply-To: References: <5afb0247-42db-f791-3007-45c257f2138a@zoznam.sk> Message-ID: <676bdb1d-9768-a407-d390-187639c597a5@zoznam.sk> >> I am sure taht this question was already asked, but I can not find >> clear answer. >> >> Is there possibility to create Lazarus application with GUI which >> will run on Raspberi Pi - ARM - Windows 10 IoT ? >> (Target OS=Win32, Target CPU=Arm ?) >> >> If not, is there possibility to create same application for Raspberi >> Pi - ARM - Linux ? >> (Target OS=Linux, Target CPU=Arm ? ... can I crosscompile from >> Linux/i386 to Linux/Arm ?) > > The latter definitely should work. Is there any tutorial how-to-do-it other than http://wiki.lazarus.freepascal.org/Setup_Cross_Compile_For_ARM ? What I did is: 1. Install Ubuntu Linux 16.04 (64 bit) into VirtualBox on Windows 2. Install Lazarus for Linux (I can compile application for host platform) 3. Try install https://sourceforge.net/projects/freepascal/files/Linux/3.0.2/fpc-3.0.2.arm-linux-eabihf-raspberry.tar/download using supplied install.sh (some errors were reported as: Syntax error: Word unexpected (expecting"(") After step 3 I cannot run Lazarus (probably fp.cfg was corrupted) -Laco. From giuliano.colla at fastwebnet.it Wed Mar 29 11:59:00 2017 From: giuliano.colla at fastwebnet.it (Giuliano Colla) Date: Wed, 29 Mar 2017 11:59:00 +0200 Subject: [Lazarus] Lazarus and Windows 10 IoT In-Reply-To: <5afb0247-42db-f791-3007-45c257f2138a@zoznam.sk> References: <5afb0247-42db-f791-3007-45c257f2138a@zoznam.sk> Message-ID: Il 22/03/2017 14:19, LacaK via Lazarus ha scritto: > If not, is there possibility to create same application for Raspberi > Pi - ARM - Linux ? > (Target OS=Linux, Target CPU=Arm ? ... can I crosscompile from > Linux/i386 to Linux/Arm ?) Well, I can't swear about Linux/i386, but I'm doing it without any trouble under Linux/x86_64, once the proper binutils and other required stuff, such as ARM appropriate libraries are installed. It shouldn't make a difference. On a Raspberry Pi - Arm Linux you can also install Lazarus (I used fcplazup) and compile directly on the target. From mailinglists at geldenhuys.co.uk Wed Mar 29 12:34:44 2017 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Wed, 29 Mar 2017 11:34:44 +0100 Subject: [Lazarus] Lazarus IDE uses old keyboard layout after OS changed it. Message-ID: <65cf04f0-9a44-04ad-d159-cf5ff26119ca@geldenhuys.co.uk> Hi, Is this a known issues? If I run Lazarus IDE (LCL-GTK2) on either Linux or FreeBSD, and say my keyboard layout is set to US. Now if I change the keyboard layout to say Dvorak while Lazarus IDE is open, then Lazarus IDE still uses the US layout (I think), while the rest of the OS and any running applications uses the new Dvorak layout. I have hit this problem many times in recent weeks jumping between various Linux VM's. To rectify the problem I have to close Lazarus IDE down, then start it up again. Then the IDE uses the right keyboard layout. It's as if LCL-GTK2 doesn't react to a keyboard layout event change from X11 or something. But other applications (also GTK2 based) like Pluma/gEdit update without problems. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp From nc-gaertnma at netcologne.de Wed Mar 29 12:47:15 2017 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Wed, 29 Mar 2017 12:47:15 +0200 Subject: [Lazarus] Lazarus IDE uses old keyboard layout after OS changed it. In-Reply-To: <65cf04f0-9a44-04ad-d159-cf5ff26119ca@geldenhuys.co.uk> References: <65cf04f0-9a44-04ad-d159-cf5ff26119ca@geldenhuys.co.uk> Message-ID: <20170329124715.46eec145@limapholos.matflo.wg> On Wed, 29 Mar 2017 11:34:44 +0100 Graeme Geldenhuys via Lazarus wrote: > Hi, > > Is this a known issues? If I run Lazarus IDE (LCL-GTK2) on either Linux > or FreeBSD, and say my keyboard layout is set to US. Now if I change the > keyboard layout to say Dvorak while Lazarus IDE is open, then Lazarus > IDE still uses the US layout (I think), while the rest of the OS and any > running applications uses the new Dvorak layout. It works here on LCL-GTK2 Ubuntu. Mattias From mailinglists at geldenhuys.co.uk Wed Mar 29 12:56:45 2017 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Wed, 29 Mar 2017 11:56:45 +0100 Subject: [Lazarus] Lazarus IDE uses old keyboard layout after OS changed it. In-Reply-To: <20170329124715.46eec145@limapholos.matflo.wg> References: <65cf04f0-9a44-04ad-d159-cf5ff26119ca@geldenhuys.co.uk> <20170329124715.46eec145@limapholos.matflo.wg> Message-ID: On 2017-03-29 11:47, Mattias Gaertner via Lazarus wrote: > It works here on LCL-GTK2 Ubuntu. Umm. I can give more details on the VM I see this happen the most. I'm running CentOS 6.6 using JWM window manager and have two scripts that I run to switch keyboard layouts. Here is one such script. ========================== #!/bin/sh setxkbmap -model pc104 -layout us -variant dvorak =========================== How did you change the keyboard layout under Ubuntu? Via the Ubuntu keyboard applet or setxkbmap or xmodmap etc? I'll switch my scripts to using xmodmap instead and see if that makes any difference. JWM doesn't run taskbar/panel applets (eg: networking, keyboard layout etc), so I have to do it manually via other X11 utilities. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp From aaa5500 at ya.ru Wed Mar 29 13:32:18 2017 From: aaa5500 at ya.ru (Alexey) Date: Wed, 29 Mar 2017 14:32:18 +0300 Subject: [Lazarus] MacOS horz scroll via trackpad -patch Message-ID: <3de96d30-7dc7-1580-bd27-42cf9e47e670@ya.ru> I posted 1st step, which supports MacOS horizontal scroll (via 2 fingers on trackpad) to http://bugs.freepascal.org/view.php?id=29972 Pls apply. CudaText uses it. Now it scrolls horz, it is 1st app on Mac which can scroll horz via trackpad (not by scrollbars). This step added setting of ssExtra1 flag to Shift(TShiftState) in OnMouseWheel. If horz scroll, flag added. If vert, flag not added. ATSynEdit handles this flag. Next step needed for other Laz users. Others want that horz scroll works in all LCL controls(Memo/Treeview/etc). So maybe needed to handle ssExtra1 in Memo/Tree/etc. On maybe other: needed to force some methods on LCL level w/out changing LCL components -- Regards, Alexey From getmem1 at gmail.com Wed Mar 29 16:05:59 2017 From: getmem1 at gmail.com (=?UTF-8?Q?Bal=C3=A1zs_Sz=C3=A9kely?=) Date: Wed, 29 Mar 2017 07:05:59 -0700 (MST) Subject: [Lazarus] Online Package Manager In-Reply-To: References: <1477635641278-4050104.post@n3.nabble.com> Message-ID: <1490796359816-4051278.post@n3.nabble.com> Hi, The idea was to notify the user if something has changed in the main repository. With your method non-installed packages wouldn't show up as "new" packages. For example if a completely new package is added to the main repository, you cannot see it as new, which is not optimal in my opinion. Beside if a new update is available a bold NEW text appears in the update column. Free Pascal - Lazarus mailing list wrote > Online Package Manager shows the packages with "new" icon if the latest > release time was in the given number of days, but shows them with normal > icon if they are older than that days regardless if they are up-to-date > or not. > I my opinion: > - It would be better to show up-to-date packages with normal icon > and > - Show all packages with "new" icon if their last release is newer than > the installed one... -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Online-Package-Manager-tp4049766p4051278.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. From Sascha.Hestermann at gmx.de Wed Mar 29 17:16:01 2017 From: Sascha.Hestermann at gmx.de (John Landmesser) Date: Wed, 29 Mar 2017 22:16:01 +0700 Subject: [Lazarus] =?utf-8?q?Fw=3A_thanks_for_everything?= Message-ID: <1890395834.20170329181601@gmx.de> Hey friend, I wanted to tell you how much much I appreciate our friendship, you may read my thank you message here http://zypi.com/language.php?5b5a Warm regards, John Landmesser -------------- next part -------------- An HTML attachment was scrubbed... URL: From ptrg at freemail.hu Wed Mar 29 17:46:39 2017 From: ptrg at freemail.hu (=?UTF-8?B?UMOpdGVyIEfDoWJvcg==?=) Date: Wed, 29 Mar 2017 17:46:39 +0200 Subject: [Lazarus] Online Package Manager In-Reply-To: <1490796359816-4051278.post@n3.nabble.com> References: <1477635641278-4050104.post@n3.nabble.com> <1490796359816-4051278.post@n3.nabble.com> Message-ID: <9fae0ae5-c152-8d6c-8d63-50ad69db7401@freemail.hu> Of course a newly added package in the repository can/must be marked as new for a period of time. > With your method non-installed packages wouldn't show up as > "new" packages. I was talking about installed packages when I said that "all packages", sorry if it was not clear enough.... >> It would be better to show up-to-date packages with normal icon This means: if I have an installed package and specially if it is up-to-date then it is not new for me (no way), so it does not need my special attention until a the next update... updated packages are not new packages. Currently I have a package (FPSreadsheet) up-to-date and it is marked as new... -- Péter Gábor ptrg at freemail.hu From liyuan at cav.desoft.cu Wed Mar 29 18:03:01 2017 From: liyuan at cav.desoft.cu (=?UTF-8?Q?Liyuan_Garc=c3=ada_Caballero?=) Date: Wed, 29 Mar 2017 12:03:01 -0400 Subject: [Lazarus] laz4android error... Message-ID: <76738088-11f5-7647-7e86-4f640a1ffea2@cav.desoft.cu> Hi team! I have some errors to build my APK. I use LAMW. Can I help me? [javac] D:\App\Mio\src\org\lamw\mio\android-17\App.java:75: error: method jAppOnCreate in class Controls cannot be applied to given types; [javac] controls.jAppOnCreate(this, controls.appLayout); [javac] ^ [javac] required: Context,RelativeLayout,Intent [javac] found: App,RelativeLayout [javac] reason: actual and formal argument lists differ in length [javac] D:\App\Mio\src\org\lamw\mio\android-17\App.java:80: error: method jAppOnNewIntent in class Controls cannot be applied to given types; [javac] protected void onNewIntent(Intent intent) {super.onNewIntent(intent); controls.jAppOnNewIntent();} [javac] ^ [javac] required: Intent [javac] found: no arguments [javac] reason: actual and formal argument lists differ in length [javac] 2 errors [javac] 3 warnings Thank you! From tomas.emresz at strankysnadno.cz Wed Mar 29 21:53:53 2017 From: tomas.emresz at strankysnadno.cz (=?UTF-8?B?VG9tw6HFoSBFbXJlc3o=?=) Date: Wed, 29 Mar 2017 21:53:53 +0200 Subject: [Lazarus] MultiTask library Message-ID: Hello, i would like to present my own library which can be used as single thread to multithread application move. Some description is on my github url : https://github.com/tomas-raul/MultiTask For example, you have simple methods like LoadImage(Fn : string); and this method you run over and over - for some image tranformation f.e. with this : for i := 1 to 100 do LoadImage(ItToStr(i)+'.jpg'); With my library (and the precompiler) - you can do the same with multithread like : for i := 1 to 100 do LoadImage_MT_LOW(ItToStr(i)+'.jpg'); // this run this method in MultiTask environment with LOW priority (this is not thread priority, but place in task queue). Today update is - integrated precompiler, which you can run from before build event and it create adekvate methods, and somethink else.. Precompiler show you help by -h param :D Precompiler adds : procedure Load_Image_MT( const id : integer; const item : iSuperObject; const fn : string); procedure Load_Image_MT_Last( const id : integer; const item : iSuperObject; const fn : string); procedure Load_Image_MT_Low( const id : integer; const item : iSuperObject; const fn : string); procedure Load_Image_MT_Normal( const id : integer; const item : iSuperObject; const fn : string); procedure Load_Image_MT_High( const id : integer; const item : iSuperObject; const fn : string); procedure Load_Image_MT_ASAP( const id : integer; const item : iSuperObject; const fn : string); procedure Load_Image_MT_Unique( const id : integer; const item : iSuperObject; const fn : string); procedure Load_Image_MT_Unique_Last( const id : integer; const item : iSuperObject; const fn : string); procedure Load_Image_MT_Unique_Low( const id : integer; const item : iSuperObject; const fn : string); procedure Load_Image_MT_Unique_Normal( const id : integer; const item : iSuperObject; const fn : string); procedure Load_Image_MT_Unique_High( const id : integer; const item : iSuperObject; const fn : string); procedure Load_Image_MT_Unique_ASAP( const id : integer; const item : iSuperObject; const fn : string); For your code : tIQDeploy_v4 = class(TObject) {class_MT} published {$I MT_onNewWork.inc} procedure Load_Image(const id: integer; const item: iSuperObject; const fn: string); {gen_MT} {$I MT_def.inc} end; implementation {$I MT_impl.inc} Tomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmpessoa at hotmail.com Wed Mar 29 22:10:54 2017 From: jmpessoa at hotmail.com (=?iso-8859-1?Q?Jos=E9_Marques_Pessoa?=) Date: Wed, 29 Mar 2017 20:10:54 +0000 Subject: [Lazarus] laz4android error... In-Reply-To: <76738088-11f5-7647-7e86-4f640a1ffea2@cav.desoft.cu> References: <76738088-11f5-7647-7e86-4f640a1ffea2@cav.desoft.cu> Message-ID: Fixed! Thank you! ________________________________ From: Lazarus on behalf of Liyuan García Caballero via Lazarus Sent: Wednesday, March 29, 2017 12:03:01 PM To: Lazarus mailing list Cc: Liyuan García Caballero Subject: [Lazarus] laz4android error... Hi team! I have some errors to build my APK. I use LAMW. Can I help me? [javac] D:\App\Mio\src\org\lamw\mio\android-17\App.java:75: error: method jAppOnCreate in class Controls cannot be applied to given types; [javac] controls.jAppOnCreate(this, controls.appLayout); [javac] ^ [javac] required: Context,RelativeLayout,Intent [javac] found: App,RelativeLayout [javac] reason: actual and formal argument lists differ in length [javac] D:\App\Mio\src\org\lamw\mio\android-17\App.java:80: error: method jAppOnNewIntent in class Controls cannot be applied to given types; [javac] protected void onNewIntent(Intent intent) {super.onNewIntent(intent); controls.jAppOnNewIntent();} [javac] ^ [javac] required: Intent [javac] found: no arguments [javac] reason: actual and formal argument lists differ in length [javac] 2 errors [javac] 3 warnings Thank you! -- _______________________________________________ Lazarus mailing list Lazarus at lists.lazarus-ide.org http://lists.lazarus-ide.org/listinfo/lazarus -------------- next part -------------- An HTML attachment was scrubbed... URL: From getmem1 at gmail.com Thu Mar 30 08:09:35 2017 From: getmem1 at gmail.com (=?UTF-8?Q?Bal=C3=A1zs_Sz=C3=A9kely?=) Date: Wed, 29 Mar 2017 23:09:35 -0700 (MST) Subject: [Lazarus] Online Package Manager In-Reply-To: <9fae0ae5-c152-8d6c-8d63-50ad69db7401@freemail.hu> References: <1477635641278-4050104.post@n3.nabble.com> <1490796359816-4051278.post@n3.nabble.com> <9fae0ae5-c152-8d6c-8d63-50ad69db7401@freemail.hu> Message-ID: <1490854175450-4051284.post@n3.nabble.com> > This means: if I have an installed package and specially if it is > up-to-date then it is not new for me (no way), so it does not need my > special attention until a the next update... updated packages are not > new packages. > Currently I have a package (FPSreadsheet) up-to-date and it is marked as > new... I added a new option(r. 54501): "Show regular icon for newly added packages after install" which will overwrite the current behaviour. By default the option is not checked. Please test! -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Online-Package-Manager-tp4049766p4051284.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. From lacak at zoznam.sk Thu Mar 30 13:24:14 2017 From: lacak at zoznam.sk (LacaK) Date: Thu, 30 Mar 2017 13:24:14 +0200 Subject: [Lazarus] Linux 64 to Linux ARC crosscompile was:Lazarus and Windows 10 IoT In-Reply-To: <676bdb1d-9768-a407-d390-187639c597a5@zoznam.sk> References: <5afb0247-42db-f791-3007-45c257f2138a@zoznam.sk> <676bdb1d-9768-a407-d390-187639c597a5@zoznam.sk> Message-ID: <9c0542a5-057b-4f28-73f9-e17467f93229@zoznam.sk> Alternate solution to my modified question (Cross-compile from Windows to Linux/ARM): - Download FpcUpDeluxe executable from https://github.com/newpascal/fpcupdeluxe/releases (in my case 1.2.0m) - Run it and choose InstallDir (for example D:\TEMP\fpcupdeluxe) - Select FPC and Lazarus version (for example FPC 3.0.2 and Lazarus trunk) - Click "Install/update FPC+Laz" (FPC and Lazarus sources will be downloaded from SVN and build) - Then select CPU=arm, OS=Linix and click "Install cross-compiler" (cross-compiler and FPC unit will be compiled) It is easy and awesome! Thank you very much for FpcUp[Deluxe]! Unfortunately there is not mentioned on: http://wiki.freepascal.org/Lazarus_on_Raspberry_Pi#Cross_compiling_for_the_Raspberry_Pi_from_Windows and http://wiki.freepascal.org/fpcup#Linux_ARM_cross_compiler , that this whole process is covered by FpcUpDeluxe and user is not required do anything manualy ;-) P.S.1 Only drawback, which I faced is, that I can not build current stable release of FPC 3.0.2 and Lazarus 1.6.4 using FpcUpDeluxe (fpcupdeluxe-i386-win32.exe on Win8.1 64bit) Program freezes and last entry in log is: Lazarus: lazbuild could not be found, so cannot build USERIDE. (configuration which works for me is FPC 3.0.2 + Lazarus trunk) P.S.2 Interesting idea would be create utility which will build only cross-compilers based on FPC already installed (like does FpcUpDeluxe but without need/overhead of SVN checkout and Lazarus build functionality). May be only ZIP archive with needed utilities + script which will do needed tasks. From list2010 at BrenemanLabs.com Thu Mar 30 14:37:22 2017 From: list2010 at BrenemanLabs.com (Paul Breneman) Date: Thu, 30 Mar 2017 08:37:22 -0400 Subject: [Lazarus] Linux 64 to Linux ARC crosscompile was:Lazarus and Windows 10 IoT In-Reply-To: <9c0542a5-057b-4f28-73f9-e17467f93229@zoznam.sk> References: <5afb0247-42db-f791-3007-45c257f2138a@zoznam.sk> <676bdb1d-9768-a407-d390-187639c597a5@zoznam.sk> <9c0542a5-057b-4f28-73f9-e17467f93229@zoznam.sk> Message-ID: On 03/30/2017 07:24 AM, LacaK via Lazarus wrote: > Alternate solution to my modified question (Cross-compile from Windows > to Linux/ARM): > > - Download FpcUpDeluxe executable from > https://github.com/newpascal/fpcupdeluxe/releases (in my case 1.2.0m) > - Run it and choose InstallDir (for example D:\TEMP\fpcupdeluxe) > - Select FPC and Lazarus version (for example FPC 3.0.2 and Lazarus trunk) > - Click "Install/update FPC+Laz" (FPC and Lazarus sources will be > downloaded from SVN and build) > - Then select CPU=arm, OS=Linix and click "Install cross-compiler" > (cross-compiler and FPC unit will be compiled) > > It is easy and awesome! Thank you very much for FpcUp[Deluxe]! > > Unfortunately there is not mentioned on: > http://wiki.freepascal.org/Lazarus_on_Raspberry_Pi#Cross_compiling_for_the_Raspberry_Pi_from_Windows > and > http://wiki.freepascal.org/fpcup#Linux_ARM_cross_compiler , > that this whole process is covered by FpcUpDeluxe and user is not > required do anything manualy ;-) > > P.S.1 > Only drawback, which I faced is, that I can not build current stable > release of FPC 3.0.2 and Lazarus 1.6.4 using FpcUpDeluxe > (fpcupdeluxe-i386-win32.exe on Win8.1 64bit) > Program freezes and last entry in log is: Lazarus: lazbuild could not be > found, so cannot build USERIDE. > (configuration which works for me is FPC 3.0.2 + Lazarus trunk) > > P.S.2 > Interesting idea would be create utility which will build only > cross-compilers based on FPC already installed (like does FpcUpDeluxe > but without need/overhead of SVN checkout and Lazarus build > functionality). May be only ZIP archive with needed utilities + script > which will do needed tasks. Thank you *very* much for that information! If no one else does, I'll try to update those two wiki pages, and also this one: http://wiki.freepascal.org/Small_Virtual_Machines Best regards, Paul www.ControlPascal.com From ptrg at freemail.hu Thu Mar 30 16:54:40 2017 From: ptrg at freemail.hu (=?UTF-8?B?UMOpdGVyIEfDoWJvcg==?=) Date: Thu, 30 Mar 2017 16:54:40 +0200 Subject: [Lazarus] Online Package Manager In-Reply-To: <1490854175450-4051284.post@n3.nabble.com> References: <1477635641278-4050104.post@n3.nabble.com> <1490796359816-4051278.post@n3.nabble.com> <9fae0ae5-c152-8d6c-8d63-50ad69db7401@freemail.hu> <1490854175450-4051284.post@n3.nabble.com> Message-ID: <1e3ae224-d05e-9756-3f4f-b4964c320b49@freemail.hu> Seems to be working. 2017-03-30 08:09 keltezéssel, Balázs Székely via Lazarus írta: >> This means: if I have an installed package and specially if it is >> up-to-date then it is not new for me (no way), so it does not need my >> special attention until a the next update... updated packages are not >> new packages. > > I added a new option(r. 54501): "Show regular icon for newly added packages > after install" which will overwrite the current behaviour. By default the > option is not checked. However, the behaviour of the "on" state of this option is the normal behaviour in general package managers (ie. synaptic) and no option must be changed for it. Who needs to see that a package is new if it is already installed and up-to-date? Anyway, Thanks! -- Péter Gábor ptrg at freemail.hu From getmem1 at gmail.com Thu Mar 30 20:55:40 2017 From: getmem1 at gmail.com (=?UTF-8?Q?Bal=C3=A1zs_Sz=C3=A9kely?=) Date: Thu, 30 Mar 2017 11:55:40 -0700 (MST) Subject: [Lazarus] Online Package Manager In-Reply-To: <1e3ae224-d05e-9756-3f4f-b4964c320b49@freemail.hu> References: <1477635641278-4050104.post@n3.nabble.com> <1490796359816-4051278.post@n3.nabble.com> <9fae0ae5-c152-8d6c-8d63-50ad69db7401@freemail.hu> <1490854175450-4051284.post@n3.nabble.com> <1e3ae224-d05e-9756-3f4f-b4964c320b49@freemail.hu> Message-ID: <1490900140740-4051288.post@n3.nabble.com> > However, the behaviour of the "on" state of this option is the normal > behaviour in general package managers (ie. synaptic) and no option must > be changed for it. Who needs to see that a package is new if it is > already installed and up-to-date? The thing is everyone would like a slightly different behavior. Anyway I set the default value is true. > Anyway, Thanks! You're welcome! -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Online-Package-Manager-tp4049766p4051288.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. From michael at freepascal.org Thu Mar 30 22:44:36 2017 From: michael at freepascal.org (Michael Van Canneyt) Date: Thu, 30 Mar 2017 22:44:36 +0200 (CEST) Subject: [Lazarus] Change in source editor behaviour ? Message-ID: Hello, I just updated my Lazarus - after quite some time (I was at 52983) to the latest SVN version (54501). It seems the editor behaviour regarding selection has changed. In a *major* annoying way, I might add. Before the update, if I stood at the start of a line, and did shift-down, the first line would be selected, including newline. Which is exactly what I wanted and what I always used: shift-down to select a line, copy to clipboard and then paste somewhere. After the update, when I do this, the first line is selected, and the second line (where the cursor is after shift-down) as well. With as a result that I can no longer select a single line with newline!! Is this intentional and if so, can this new behaviour be reverted - or at least made optional ? it is *extremely* annoying, I have no words for it (and if I had they would be really, really expletive). It's IMHO also bad policy to change the behaviour of an editor in such a major way without at least notifying people (as far as I can see, there is nothing in the WIKI about this) Michael. From michael at freepascal.org Thu Mar 30 22:58:38 2017 From: michael at freepascal.org (Michael Van Canneyt) Date: Thu, 30 Mar 2017 22:58:38 +0200 (CEST) Subject: [Lazarus] Change in source editor behaviour ? In-Reply-To: References: Message-ID: Hello, Sorry about the noise. By searching the keyboard shortcuts I found 'line selection mode', which was mapped to CTRL-K, L. AFAIK this combination was previously mapped (in my settings) to 'select current line'. (to verify, I checked the settings in 'joe', which is configured using the same keys as Lazarus...) I seem to have activated this inadvertently after the update ? Strange. Once more, sorry about the noise. Always happens. After you send a mail, you stumble on the solution of the problem... Michael. On Thu, 30 Mar 2017, Michael Van Canneyt via Lazarus wrote: > > Hello, > > I just updated my Lazarus - after quite some time (I was at 52983) > to the latest SVN version (54501). > > It seems the editor behaviour regarding selection has changed. > In a *major* annoying way, I might add. > > Before the update, if I stood at the start of a line, and did shift-down, > the first line would be selected, including newline. > Which is exactly what I wanted and what I always used: > shift-down to select a line, copy to clipboard and then paste somewhere. > > After the update, when I do this, the first line is selected, and the second > line (where the cursor is after shift-down) as well. > With as a result that I can no longer select a single line with newline!! > > Is this intentional and if so, can this new behaviour be reverted - or at > least > made optional ? it is *extremely* annoying, I have no words for it > (and if I had they would be really, really expletive). > > It's IMHO also bad policy to change the behaviour of an editor in such a > major way without at least notifying people (as far as I can see, there is > nothing in the WIKI about this) > > Michael. > -- > _______________________________________________ > Lazarus mailing list > Lazarus at lists.lazarus-ide.org > http://lists.lazarus-ide.org/listinfo/lazarus > From werner.pamler at freenet.de Thu Mar 30 23:09:41 2017 From: werner.pamler at freenet.de (Werner Pamler) Date: Thu, 30 Mar 2017 23:09:41 +0200 Subject: [Lazarus] Change in source editor behaviour ? In-Reply-To: References: Message-ID: Am 30.03.2017 um 22:44 schrieb Michael Van Canneyt via Lazarus: > > Hello, > > I just updated my Lazarus - after quite some time (I was at 52983) > to the latest SVN version (54501). > > It seems the editor behaviour regarding selection has changed. In a > *major* annoying way, I might add. > > Before the update, if I stood at the start of a line, and did shift-down, > the first line would be selected, including newline. Which is exactly > what I wanted and what I always used: shift-down to select a line, > copy to clipboard and then paste somewhere. > > After the update, when I do this, the first line is selected, and the > second > line (where the cursor is after shift-down) as well. With as a result > that I can no longer select a single line with newline!! > > Is this intentional and if so, can this new behaviour be reverted - or > at least > made optional ? it is *extremely* annoying, I have no words for it > (and if I had they would be really, really expletive). > > It's IMHO also bad policy to change the behaviour of an editor in such a > major way without at least notifying people (as far as I can see, > there is > nothing in the WIKI about this) > > Michael. I had this too, and it took me quite a while to find out: this is the line selection mode which I must have activated accidentally. Working in classic keyboard scheme this happens with CTRL-KL. Since I never knew the key short cut to turn it off again I removed this key mapping, and since then, I have not seen it again. From silvioprog at gmail.com Thu Mar 30 23:21:42 2017 From: silvioprog at gmail.com (silvioprog) Date: Thu, 30 Mar 2017 18:21:42 -0300 Subject: [Lazarus] Change in source editor behaviour ? In-Reply-To: References: Message-ID: On Thu, Mar 30, 2017 at 5:58 PM, Michael Van Canneyt via Lazarus < lazarus at lists.lazarus-ide.org> wrote: [...] > Always happens. After you send a mail, you stumble on the solution of the > problem... > This has happened to me too. :-) -- Silvio Clécio -------------- next part -------------- An HTML attachment was scrubbed... URL: From mailinglists at geldenhuys.co.uk Thu Mar 30 23:30:23 2017 From: mailinglists at geldenhuys.co.uk (Graeme Geldenhuys) Date: Thu, 30 Mar 2017 22:30:23 +0100 Subject: [Lazarus] Change in source editor behaviour ? In-Reply-To: References: Message-ID: On 2017-03-30 22:21, silvioprog via Lazarus wrote: > This has happened to me too. :-) And to me. I removed the key mapping to get rid of the problem. Regards, Graeme From mlnglsts at bgss.hu Fri Mar 31 09:13:09 2017 From: mlnglsts at bgss.hu (Gabor Boros) Date: Fri, 31 Mar 2017 09:13:09 +0200 Subject: [Lazarus] fpDebug error "Debug information not available" In-Reply-To: References: Message-ID: 2017. 03. 28. 20:14 keltezéssel, Ondrej Pokorny via Lazarus írta: > Hello, > > I want to test the fpDebug debugger. I followed > http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Need-testers-for-the-a-new-debugger-td4037911.html > > When I run a LCL application, I get the following error within Lazarus IDE: > > [Window Title] > project1 - Lazarus IDE v1.7 > [Content] > No Dwarf-debug information available. The debugger will not function > properly. [CurrentProcess=TDbgWinProcess,DbgInfo=TFpDwarfInfo] > [OK] > > I tried various "Type of debug info" in Project Options. The last I tried: > > Do you have any hints? > > OS: Win 10 64bit > Lazarus: trunk 1.7 32bit > > Ondrej Hi Ondrej and All, For me Automatic and Stabs give the above error message and works with the other three options. Tried with Win10 64bit, FPC 3.0.2 32bit, Lazarus trunk 54502 (build with a simple "make" command then installed components\lazdebuggers\lazdebuggerfp\lazdebuggerfp.lpk). Gabor From getmem1 at gmail.com Wed Mar 29 13:37:37 2017 From: getmem1 at gmail.com (=?UTF-8?B?QmFsw6F6cyBTesOpa2VseQ==?=) Date: Wed, 29 Mar 2017 14:37:37 +0300 Subject: [Lazarus] Online Package Manager In-Reply-To: References: <1477635641278-4050104.post@n3.nabble.com> Message-ID: > > Online Package Manager shows the packages with "new" icon if the latest > release time was in the given number of days, but shows them with normal > icon if they are older than that days regardless if they are up-to-date > or not. > I my opinion: > - It would be better to show up-to-date packages with normal icon > and > - Show all packages with "new" icon if their last release is newer than > the installed one... > The idea was to notify the user if something has changed in the main repository. With your method non-installed packages wouldn't show up as "new" packages. For example if a completely new package is added to the main repository, you cannot see it as new, which is not optimal in my opinion.Beside if a new update is available a bold NEW text appears in the update column(see attachment). On Wed, Mar 29, 2017 at 9:59 AM, Péter Gábor via Lazarus < lazarus at lists.lazarus-ide.org> wrote: > Online Package Manager shows the packages with "new" icon if the latest > release time was in the given number of days, but shows them with normal > icon if they are older than that days regardless if they are up-to-date > or not. > I my opinion: > - It would be better to show up-to-date packages with normal icon > and > - Show all packages with "new" icon if their last release is newer than > the installed one... > > 2016-10-28 08:20 keltezéssel, Balázs Székely via Lazarus írta: > > Hi, > > > > We have made considerable progress with the online package manager. Next > > week the central repository will be populated with 30+ packages. Here is > a > > short video(please watch it in 700p). > > > > https://youtu.be/y_hT8u2u5bU > > > > Suggestions are welcome. > > > > -- > Péter Gábor > ptrg at freemail.hu > > -- > _______________________________________________ > Lazarus mailing list > Lazarus at lists.lazarus-ide.org > http://lists.lazarus-ide.org/listinfo/lazarus > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: OPM.png Type: image/png Size: 75001 bytes Desc: not available URL: From doug at moosemail.net Fri Mar 31 13:03:55 2017 From: doug at moosemail.net (DougC) Date: Fri, 31 Mar 2017 07:03:55 -0400 Subject: [Lazarus] Online Package Manager In-Reply-To: References: <1477635641278-4050104.post@n3.nabble.com> Message-ID: <15b24093640.c87062f3145294.5911997741246583063@moosemail.net> Seems to me you should have at minimum 3 status for packages: New - Not yet installed but available in repository Updated - Already installed but a new version is in repository Up-To-Date - Already installed and installed version is same as in repository Using "new" for both "not yet installed" and "installed but with available updates" is confusing. ---- On Wed, 29 Mar 2017 07:37:37 -0400 Balázs Székely via Lazarus <lazarus at lists.lazarus-ide.org> wrote ---- Online Package Manager shows the packages with "new" icon if the latest release time was in the given number of days, but shows them with normal icon if they are older than that days regardless if they are up-to-date or not. I my opinion: - It would be better to show up-to-date packages with normal icon and - Show all packages with "new" icon if their last release is newer than the installed one... The idea was to notify the user if something has changed in the main repository. With your method non-installed packages wouldn't show up as "new" packages. For example if a completely new package is added to the main repository, you cannot see it as new, which is not optimal in my opinion.Beside if a new update is available a bold NEW text appears in the update column(see attachment). -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrea.mauri.75 at gmail.com Fri Mar 31 13:04:52 2017 From: andrea.mauri.75 at gmail.com (Andrea Mauri) Date: Fri, 31 Mar 2017 13:04:52 +0200 Subject: [Lazarus] Linux 64 to Linux ARC crosscompile was:Lazarus and Windows 10 IoT In-Reply-To: <9c0542a5-057b-4f28-73f9-e17467f93229@zoznam.sk> References: <5afb0247-42db-f791-3007-45c257f2138a@zoznam.sk> <676bdb1d-9768-a407-d390-187639c597a5@zoznam.sk> <9c0542a5-057b-4f28-73f9-e17467f93229@zoznam.sk> Message-ID: > > P.S.2 > Interesting idea would be create utility which will build only > cross-compilers based on FPC already installed (like does FpcUpDeluxe > but without need/overhead of SVN checkout and Lazarus build > functionality). May be only ZIP archive with needed utilities + script > which will do needed tasks. +1 From aaa5500 at ya.ru Fri Mar 31 14:06:37 2017 From: aaa5500 at ya.ru (Alexey) Date: Fri, 31 Mar 2017 15:06:37 +0300 Subject: [Lazarus] Online Package Manager In-Reply-To: References: <1477635641278-4050104.post@n3.nabble.com> Message-ID: <767d874c-d3d9-72f5-cafb-4759f08ccfd4@ya.ru> GetMem, it would be very good, if all Json files, for components, will be hosted on one Github repo. Now they are distributed (on NNN servers, etc). You can make repo for them. Alexey From md at delfire.net Fri Mar 31 16:42:20 2017 From: md at delfire.net (Marcos Douglas B. Santos) Date: Fri, 31 Mar 2017 11:42:20 -0300 Subject: [Lazarus] Managing Packages with many versions Message-ID: Hi, I would like to know how I can manager my 3rd packages with different version. For example, imagine that: You have got a package called SmartFoo.lpk version 1.0. You are using the master/trunk version. Whe you compile it you got this: smartfoo\lib\x86_64-win64\*ppu, *.o, etc Now you can use this package in your projects. Then, the author update this package to 2.0 version. Imagine that you have many projects using version 1.0 but you would like to update to 2.0 to work in just one project. The problem is: I don't want to work in other projects right now but you need to mantain them compilable with the version 1.0 of SmartFoo if you need it any time. What is the best approach to deal with it? I've already read the Wiki http://wiki.freepascal.org/Lazarus_Packages but I can not realize how IDE will know about the right *.ppu files to use. Best regards, Marcos Douglas -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at freepascal.org Fri Mar 31 16:54:28 2017 From: michael at freepascal.org (Michael Van Canneyt) Date: Fri, 31 Mar 2017 16:54:28 +0200 (CEST) Subject: [Lazarus] Managing Packages with many versions In-Reply-To: References: Message-ID: On Fri, 31 Mar 2017, Marcos Douglas B. Santos via Lazarus wrote: > Hi, > > I would like to know how I can manager my 3rd packages with different > version. > > For example, imagine that: > You have got a package called SmartFoo.lpk version 1.0. > You are using the master/trunk version. > Whe you compile it you got this: smartfoo\lib\x86_64-win64\*ppu, *.o, etc > > Now you can use this package in your projects. > > Then, the author update this package to 2.0 version. > Imagine that you have many projects using version 1.0 but you would like to > update to 2.0 to work in just one project. > > The problem is: I don't want to work in other projects right now but you > need to mantain them compilable with the version 1.0 of SmartFoo if you > need it any time. > > What is the best approach to deal with it? > > I've already read the Wiki http://wiki.freepascal.org/Lazarus_Packages but > I can not realize how IDE will know about the right *.ppu files to use. Put the various versions in different directories. The IDE will use the correct one based on the dependencies and the location. Every version needs to have been opened once in the IDE. I use it all the time. Works fine, except some rather exotic error messages if the IDE doesn't find a matching version. Michael. From md at delfire.net Fri Mar 31 17:11:36 2017 From: md at delfire.net (Marcos Douglas B. Santos) Date: Fri, 31 Mar 2017 12:11:36 -0300 Subject: [Lazarus] Managing Packages with many versions In-Reply-To: References: Message-ID: On Fri, Mar 31, 2017 at 11:54 AM, Michael Van Canneyt via Lazarus < lazarus at lists.lazarus-ide.org> wrote: > Put the various versions in different directories. The IDE will use the > correct one based on the dependencies and the location. Every version > needs to have been opened once in the IDE. > > I use it all the time. Works fine, except some rather exotic error messages > if the IDE doesn't find a matching version. > That is a way, thanks. But I am thinking something like bellow: smartfoo \lib \i386-win32\ \1.0 \1.1 \1.2.3 *.ppu (trunk) \x86_64-win64 \1.0 *.ppu (trunk) My point is each project just use PPU files, not the real sources because I would like to have just one source. The correct way is the author freeze the version using a label, but I can do this myself locally. Then, I can compile and copy the PPU files for the right lib\\. But using this way I will need to set up which path to use when I add a package into the project, right? What do you think about it? Marcos Douglas -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael at freepascal.org Fri Mar 31 17:22:59 2017 From: michael at freepascal.org (Michael Van Canneyt) Date: Fri, 31 Mar 2017 17:22:59 +0200 (CEST) Subject: [Lazarus] Managing Packages with many versions In-Reply-To: References: Message-ID: On Fri, 31 Mar 2017, Marcos Douglas B. Santos via Lazarus wrote: > On Fri, Mar 31, 2017 at 11:54 AM, Michael Van Canneyt via Lazarus < > lazarus at lists.lazarus-ide.org> wrote: > >> Put the various versions in different directories. The IDE will use the >> correct one based on the dependencies and the location. Every version >> needs to have been opened once in the IDE. >> >> I use it all the time. Works fine, except some rather exotic error messages >> if the IDE doesn't find a matching version. >> > > That is a way, thanks. > But I am thinking something like bellow: Below. Bellow is something a cow does ;-) > > smartfoo > \lib > \i386-win32\ > \1.0 > \1.1 > \1.2.3 > *.ppu (trunk) > \x86_64-win64 > \1.0 > *.ppu (trunk) > > > My point is each project just use PPU files, not the real sources because I > would like > to have just one source. > The correct way is the author freeze the version using a label, but I can > do this myself locally. Then, I can compile and copy the PPU files for the > right lib\\. > > But using this way I will need to set up which path to use when I add a > package into the project, right? > What do you think about it? AFAIK The IDE will not work with that. It needs the actual sources of each version. So you need multiple directories with the sources of each version. FPC itself can work with this, if properly configured. Michael. From md at delfire.net Fri Mar 31 17:29:28 2017 From: md at delfire.net (Marcos Douglas B. Santos) Date: Fri, 31 Mar 2017 12:29:28 -0300 Subject: [Lazarus] Managing Packages with many versions In-Reply-To: References: Message-ID: On Fri, Mar 31, 2017 at 12:22 PM, Michael Van Canneyt via Lazarus < lazarus at lists.lazarus-ide.org> wrote: > Below. Bellow is something a cow does ;-) > Yeah, sorry. :) > AFAIK The IDE will not work with that. > > It needs the actual sources of each version. So you need multiple > directories with the sources of each version. > > FPC itself can work with this, if properly configured. > Well, Ok. I will use as you explained. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nc-gaertnma at netcologne.de Fri Mar 31 18:18:27 2017 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Fri, 31 Mar 2017 18:18:27 +0200 Subject: [Lazarus] Managing Packages with many versions In-Reply-To: References: Message-ID: <20170331181827.2fb58a7c@limapholos.matflo.wg> On Fri, 31 Mar 2017 11:42:20 -0300 "Marcos Douglas B. Santos via Lazarus" wrote: >[...] > Then, the author update this package to 2.0 version. > Imagine that you have many projects using version 1.0 but you would like to > update to 2.0 to work in just one project. A project can set a preferred version of a package: http://wiki.freepascal.org/Lazarus_Packages#Using_preferred_file_name > The problem is: I don't want to work in other projects right now but you > need to mantain them compilable with the version 1.0 of SmartFoo if you > need it any time. > > What is the best approach to deal with it? > > I've already read the Wiki http://wiki.freepascal.org/Lazarus_Packages but > I can not realize how IDE will know about the right *.ppu files to use. The IDE searches a lpk (correct name and version) and the corresponding .ppu files are stored relative to the lpk. See here http://wiki.freepascal.org/Lazarus_Packages#Different_versions_of_a_package Mattias From getmem1 at gmail.com Fri Mar 31 19:21:35 2017 From: getmem1 at gmail.com (=?UTF-8?Q?Bal=C3=A1zs_Sz=C3=A9kely?=) Date: Fri, 31 Mar 2017 10:21:35 -0700 (MST) Subject: [Lazarus] Online Package Manager In-Reply-To: <767d874c-d3d9-72f5-cafb-4759f08ccfd4@ya.ru> References: <1477635641278-4050104.post@n3.nabble.com> <767d874c-d3d9-72f5-cafb-4759f08ccfd4@ya.ru> Message-ID: <1490980895433-4051305.post@n3.nabble.com> > @DougC > Seems to me you should have at minimum 3 status for packages: > New - Not yet installed but available in repository > Updated - Already installed but a new version is in repository > Up-To-Date - Already installed and installed version is same as in > repository > Using "new" for both "not yet installed" and "installed but with available > updates" is confusing. Thank you for the suggestions. I agree, the whole system is somewhat confusing, especially if you take into account that the packages can also be updated from the maintainers webpage. I did my best to explain how it works: http://wiki.freepascal.org/Online_Package_Manager#Difference_between_download.2Finstall.2Fupdate > @Alexey > it would be very good, if all Json files, for components, > will be hosted on one Github repo. Now they are distributed > (on NNN servers, etc). > You can make repo for them. We did try to move all the json to one place, however some of the developers prefer GitHub, others BitBucket or SourceForge. It's very hard to convince somebody to move just for the sake of OPM. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Online-Package-Manager-tp4049766p4051305.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. From werner.pamler at freenet.de Fri Mar 31 19:55:56 2017 From: werner.pamler at freenet.de (Werner Pamler) Date: Fri, 31 Mar 2017 19:55:56 +0200 Subject: [Lazarus] Online Package Manager In-Reply-To: <767d874c-d3d9-72f5-cafb-4759f08ccfd4@ya.ru> References: <1477635641278-4050104.post@n3.nabble.com> <767d874c-d3d9-72f5-cafb-4759f08ccfd4@ya.ru> Message-ID: <23a5634b-a876-6a53-b814-5bc69a2e3690@freenet.de> Am 31.03.2017 um 14:06 schrieb Alexey via Lazarus: > GetMem, > it would be very good, if all Json files, for components, > will be hosted on one Github repo. Now they are distributed > (on NNN servers, etc). > You can make repo for them. > > Alexey I don't see any advantage. Someone (GetMem?, you?) would have to get the developers access to that repository. The developers needs another password for a system which he does not need for anything else. Now the developer stores the update-json at a place where he already has access to. That's just perfect. From md at delfire.net Fri Mar 31 20:03:11 2017 From: md at delfire.net (Marcos Douglas B. Santos) Date: Fri, 31 Mar 2017 15:03:11 -0300 Subject: [Lazarus] Managing Packages with many versions In-Reply-To: <20170331181827.2fb58a7c@limapholos.matflo.wg> References: <20170331181827.2fb58a7c@limapholos.matflo.wg> Message-ID: On Fri, Mar 31, 2017 at 1:18 PM, Mattias Gaertner via Lazarus < lazarus at lists.lazarus-ide.org> wrote: > The IDE searches a lpk (correct name and version) and the > corresponding .ppu files are stored relative to the lpk. See here > http://wiki.freepascal.org/Lazarus_Packages#Different_ > versions_of_a_package > Mattias, Yes, but as Michael said, I need to have many copies of the sources. I thought that I could use just one source and many /libs directories with the .ppu's What do you think? Best regards, Marcos Douglas -------------- next part -------------- An HTML attachment was scrubbed... URL: From aaa5500 at ya.ru Fri Mar 31 20:09:33 2017 From: aaa5500 at ya.ru (Alexey) Date: Fri, 31 Mar 2017 21:09:33 +0300 Subject: [Lazarus] Online Package Manager In-Reply-To: <23a5634b-a876-6a53-b814-5bc69a2e3690@freenet.de> References: <1477635641278-4050104.post@n3.nabble.com> <767d874c-d3d9-72f5-cafb-4759f08ccfd4@ya.ru> <23a5634b-a876-6a53-b814-5bc69a2e3690@freenet.de> Message-ID: <9843fee5-60b3-5955-bdcd-5dd3ed22220a@ya.ru> Nope; it works other way. GetMem has repo access. I have my Github account. i clone his repo, make pull request. he sees my PR and applies it. On 31.03.2017 20:55, Werner Pamler via Lazarus wrote: > > I don't see any advantage. Someone (GetMem?, you?) would have to get > the developers access to that repository. The developers needs another > password for a system which he does not need for anything else. -- Regards, Alexey From aaa5500 at ya.ru Fri Mar 31 20:11:41 2017 From: aaa5500 at ya.ru (Alexey) Date: Fri, 31 Mar 2017 21:11:41 +0300 Subject: [Lazarus] Online Package Manager In-Reply-To: <1490980895433-4051305.post@n3.nabble.com> References: <1477635641278-4050104.post@n3.nabble.com> <767d874c-d3d9-72f5-cafb-4759f08ccfd4@ya.ru> <1490980895433-4051305.post@n3.nabble.com> Message-ID: <46e3cb85-36ed-ce0f-010c-b99e9d6e76f9@ya.ru> It must not be the problem. Many apps use GH, and they need patches on GH, and users make them on GH. > however some of the developers > prefer GitHub, others BitBucket or SourceForge. It's very hard to convince > somebody to move just for the sake of OPM. -- Regards, Alexey From getmem1 at gmail.com Fri Mar 31 20:43:48 2017 From: getmem1 at gmail.com (=?UTF-8?Q?Bal=C3=A1zs_Sz=C3=A9kely?=) Date: Fri, 31 Mar 2017 11:43:48 -0700 (MST) Subject: [Lazarus] Online Package Manager In-Reply-To: <46e3cb85-36ed-ce0f-010c-b99e9d6e76f9@ya.ru> References: <1477635641278-4050104.post@n3.nabble.com> <767d874c-d3d9-72f5-cafb-4759f08ccfd4@ya.ru> <1490980895433-4051305.post@n3.nabble.com> <46e3cb85-36ed-ce0f-010c-b99e9d6e76f9@ya.ru> Message-ID: <1490985828329-4051310.post@n3.nabble.com> @Alexey Ok. Let's assume for a moment we move everything to GitHub. First I write to every single developer and ask them to make a GitHub account. By some miracle, everyone agrees and suddenly we are on GitHub. What would be the benefits? Until now I did not have to deal with the external json files, it was the package maintainer job to maintain those jsons. If we implement your idea I have one more GitHub account to take care of, which is not a big deal if there is a clear benefit like: - OPM becomes faster - it's more easier to maintain etc.. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Online-Package-Manager-tp4049766p4051310.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. From aaa5500 at ya.ru Fri Mar 31 21:38:48 2017 From: aaa5500 at ya.ru (Alexey) Date: Fri, 31 Mar 2017 22:38:48 +0300 Subject: [Lazarus] Online Package Manager In-Reply-To: <1490985828329-4051310.post@n3.nabble.com> References: <1477635641278-4050104.post@n3.nabble.com> <767d874c-d3d9-72f5-cafb-4759f08ccfd4@ya.ru> <1490980895433-4051305.post@n3.nabble.com> <46e3cb85-36ed-ce0f-010c-b99e9d6e76f9@ya.ru> <1490985828329-4051310.post@n3.nabble.com> Message-ID: <8b979c8d-52bb-638a-b968-acb0861bf895@ya.ru> On 31.03.2017 21:43, Balázs Székely via Lazarus wrote: > - OPM becomes faster > - it's more easier to maintain > etc.. > IMO benefit will be. it is "easier to maintain". Each developer which wants to send json, makes GH acc, then clones OPM repo, then sends pull req. No emails. Zip can be send in GH post. -- Regards, Alexey From nc-gaertnma at netcologne.de Fri Mar 31 23:38:50 2017 From: nc-gaertnma at netcologne.de (Mattias Gaertner) Date: Fri, 31 Mar 2017 23:38:50 +0200 Subject: [Lazarus] Managing Packages with many versions In-Reply-To: References: <20170331181827.2fb58a7c@limapholos.matflo.wg> Message-ID: <20170331233850.63141ee9@limapholos.matflo.wg> On Fri, 31 Mar 2017 15:03:11 -0300 "Marcos Douglas B. Santos via Lazarus" wrote: >[...] > Yes, but as Michael said, I need to have many copies of the sources. > I thought that I could use just one source and many /libs directories with > the .ppu's > > What do you think? I guess different versions have different sources, don't they? Mattias