Lazarus

Announcements => Lazarus => Topic started by: mattias on April 16, 2020, 10:33:27 am

Title: Lazarus Release 2.0.8
Post by: mattias on April 16, 2020, 10:33:27 am
The Lazarus team is glad to announce the release of Lazarus 2.0.8.

This release was built with FPC 3.0.4.
The previous release Lazarus 2.0.6 was built with FPC 3.0.4 as well.

Here is the list of changes for Lazarus and Free Pascal:
http://wiki.lazarus.freepascal.org/Lazarus_2.0.0_release_notes
http://wiki.lazarus.freepascal.org/User_Changes_3.0.4

Here is the list of fixes for Lazarus 2.0.x:
http://wiki.freepascal.org/Lazarus_2.0_fixes_branch

The release is available for download on SourceForge:
http://sourceforge.net/projects/lazarus/files/

Choose your CPU, OS, distro and then the "Lazarus 2.0.8" directory.

Checksums for the SourceForge files:
http://www.lazarus-ide.org/index.php?page=checksums#2_0_8

Minimum requirements:

Windows:
  2k, XP, Vista, 7, 8, 8.1 and 10, 32 or 64bit.

FreeBSD/Linux:
  gtk 2.8 for gtk2, qt4.5 for qt, qt5.6 for qt5, 32 or 64bit.

Mac OS X:
  10.5 to 10.15; Carbon (32bit), Cocoa (64bit), qt and qt5 (32 or 64bit).

The svn tag is
http://svn.freepascal.org/svn/lazarus/tags/lazarus_2_0_8

For people who are blocked by SF, the Lazarus releases from SourceForge are mirrored at: ftp://ftp.freepascal.org/pub/lazarus/releases/
and later at (after some time for synchronization) http://mirrors.iwi.me/lazarus/
Title: Re: Lazarus Release 2.0.8
Post by: Martin_fr on April 16, 2020, 01:19:29 pm
There are also snapshot builds for anyone who wants to test with fpc 3.2 RC/fixes: https://sourceforge.net/projects/lazarus-snapshots/files/
Title: Re: Lazarus Release 2.0.8
Post by: JiaXing on April 16, 2020, 04:41:46 pm
It seemed fpc 3.2 missed the train again. fpc 3.0.4 should be considered as the most famous version, since it was used to build too many Lazarus versions. If I remember it right it's started with Lazarus 1.8  :)
Title: Re: Lazarus Release 2.0.8
Post by: Martin_fr on April 16, 2020, 04:52:28 pm
FPC 3.2 is currently being prepared by the FPC team.
They put out the first RC for testing. But there is no fixed date yet, when it will be released.

The Lazarus team plans to have release, shortly after FPC will have done their release.

At this time, it will help both projects if people help testing the RC.
While you should use the stable release (3.0.4) for your work (i.e. anything you build and release), it would be a good idea to have a 2nd installation with the RC, and test all of your code against the RC.
Title: Re: Lazarus Release 2.0.8
Post by: Zath on April 16, 2020, 05:32:03 pm
Dumb question for you after looking at changes / fixes, what is cocoa ?
Title: Re: Lazarus Release 2.0.8
Post by: skalogryz on April 16, 2020, 05:50:37 pm
Dumb question for you after looking at changes / fixes, what is cocoa ?
macOS API

You can read about it here (https://wiki.freepascal.org/Cocoa_Interface), here (https://en.wikipedia.org/wiki/Cocoa_(API)) and here (https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/CocoaFundamentals/WhatIsCocoa/WhatIsCocoa.html)
Title: Re: Lazarus Release 2.0.8
Post by: Ñuño_Martínez on April 16, 2020, 05:58:11 pm
I was going to install lazarus-project_2.0.8-0_amd64.deb on my Xubuntu and I've seen that Software (the application that installs it) says the license is private (Actually "Privativa" in Spanish, don't know how's in English).

[edit] BTW, Ubuntu repository is still in version 2.0.2...
Title: Re: Lazarus Release 2.0.8
Post by: ottod on April 16, 2020, 09:14:20 pm
(Actually "Privativa" in Spanish, don't know how's in English).

Privativa = Proprietary (non-free)
Not true. It is GPL licensed. Some file must be missing or wrong for Software to report it as Proprietary.
Title: Re: Lazarus Release 2.0.8
Post by: Martin_fr on April 16, 2020, 09:53:12 pm
Not true. It is GPL licensed. Some file must be missing or wrong for Software to report it as Proprietary.
Actually:

IDE: GPL
LCL: LGPL, modified (added extra permissions)
components / other packages: various licenses. (mostly lgpl, with or without extra permissions / some GPL, MPL or mixed)
Title: Re: Lazarus Release 2.0.8
Post by: jwdietrich on April 16, 2020, 10:13:24 pm
This is great. I am enthusiastic about the improvements regarding the Cocoa support. The 64-bit version for macOS is noticeably faster than the previous release, many minor bugs that were annoying for years have been removed, and the new dark mode for the Mac is very elegant.

Thanks for this build, which is much more than a bug-fix release.  :)
Title: Re: Lazarus Release 2.0.8
Post by: olly on April 17, 2020, 02:55:13 am
Seem to have come across the following issue, on 2.0.8.

http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Lazarus-2-0-6-macOS-Catalina-td4057212.html

From: /var/log/install.log
Code: [Select]
./postinstall: /tmp/PKInstallSandbox.vFZ5uH/Scripts/org.freepascal.pkg.fpc-macos-x86-64-laz.QajxE2/postinstall: line 8: /usr/local/lib/fpc/Error: ppcx64 can't be executed, error message: Failed to execute "ppcx64", error code: 127/samplecfg: No such file or directory
Title: Re: Lazarus Release 2.0.8
Post by: VTwin on April 17, 2020, 03:06:40 am
I am also very pleased to see that cocoa has now become an official release. Many thanks and congratulations to the team.
Title: Re: Lazarus Release 2.0.8
Post by: dbannon on April 17, 2020, 07:37:55 am
I was going to install lazarus-project_2.0.8-0_amd64.deb on my Xubuntu and I've seen that Software (the application that installs it) says the license is private (Actually "Privativa" in Spanish, don't know how's in English).
Thats because you are looking at it using the Gnome supplied 'Software' or 'Software Install' tool. It classes anything that does not come from its own repository as proprietary.    I have seen numerous bug reports on the topic, they just seem to be ignored and, quietly closed.  I suggest you install gdebi and use that instead.

As an experiment, grab a deb from your /var/cache/apt/archive/*, to be really nasty, see if you can find gnome-software.....   It most certainly came from the approved repository and is open source.  Open it with Software-Install and you will see it claims it, itself, is proprietary !

Any file that is not in the official repository is reported as proprietary.  Even if it came from the repo.

I believe newer distros have stopped that particular tool  from claiming its a general software management tool.  Gdebi is your friend.

Davo
Title: Re: Lazarus Release 2.0.8
Post by: Ñuño_Martínez on April 17, 2020, 12:22:12 pm
Privativa = Proprietary (non-free)
Thanks.  I forgot it. :)

Thats because you are looking at it using the Gnome supplied 'Software' or 'Software Install' tool. It classes anything that does not come from its own repository as proprietary.    I have seen numerous bug reports on the topic, they just seem to be ignored and, quietly closed.  I suggest you install gdebi and use that instead.

As an experiment, grab a deb from your /var/cache/apt/archive/*, to be really nasty, see if you can find gnome-software.....   It most certainly came from the approved repository and is open source.  Open it with Software-Install and you will see it claims it, itself, is proprietary !

Any file that is not in the official repository is reported as proprietary.  Even if it came from the repo.

I believe newer distros have stopped that particular tool  from claiming its a general software management tool.  Gdebi is your friend.

Davo
Thanks for the explanation.  I'll try Gdebi. :)
Title: Re: Lazarus Release 2.0.8 (macports & fink)
Post by: mischi on April 17, 2020, 01:37:46 pm
Lazarus 2.0.8 on macOS:
I am happy to announce that my updates of the lazarus packages descriptions for macports and fink have been accepted.

Fink has a wide variety of packages for lazarus and freepascal, macports just fpc and lazarus-cocoa, both 64 bit.

Michael.
Title: Re: Lazarus Release 2.0.8
Post by: Muso on April 18, 2020, 03:18:19 pm
There are also snapshot builds for anyone who wants to test with fpc 3.2 RC/fixes: https://sourceforge.net/projects/lazarus-snapshots/files/

I want to try this out but SourceForge tells me that the files here do not exist:
https://sourceforge.net/projects/lazarus-snapshots/files/Window%2064/2020-04%20lazarus-2.0.8-fpc-3.2.0_fixes-44680/

Quote
The "/Window 64/2020-04 l..beta-44680-win64.exe" file could not be found or is not available.  Please select another file
Title: Re: Lazarus Release 2.0.8
Post by: Martin_fr on April 18, 2020, 03:39:40 pm
Can you try again please?

I tried 10 minutes ago, and at first got the same error. Then I came back to report to sourceforge, but tested again, and now they work (for me)


Sourceforge appears to still migrate the file to some of its mirrors (only 6 mirrors ready yet). No idea if that is related.

If they still do not work in 24 hours, then please ping again, and I file a report with Sourceforge.
Title: Re: Lazarus Release 2.0.8
Post by: Muso on April 18, 2020, 03:45:23 pm
Can you try again please?

Done and now I get the file. So problem solved.
Title: Re: Lazarus Release 2.0.8
Post by: lazdeveloper on April 19, 2020, 01:05:11 am
I always thank the lazarus team for their ongoing nice work.
Many thanks again
Title: Re: Lazarus Release 2.0.8
Post by: ASBzone on April 19, 2020, 05:46:30 am
The Lazarus team is glad to announce the release of Lazarus 2.0.8.

This release was built with FPC 3.0.4.


Congrats, team, and thank you very much.
Title: Re: Lazarus Release 2.0.8
Post by: Zath on April 19, 2020, 12:48:59 pm
Basic form.
TBitButton, Timage, TOpenDialog.

Basic code in the button click to use the dialog.
All fine.

Deleted the BitButton off the form and replaced with TButton.
It compiles and runs, but I get no errors about not finding TBitButton, do I want to remove the  …..

Code: Pascal  [Select][+][-]
  1. unit Unit1;
  2.  
  3. {$mode objfpc}{$H+}
  4.  
  5. interface
  6.  
  7. uses
  8.   Classes, SysUtils, Forms, Controls, Graphics, Dialogs, Buttons, ExtCtrls,
  9.   StdCtrls;
  10.  
  11. type
  12.  
  13.   { TForm1 }
  14.  
  15.   TForm1 = class(TForm)
  16.     Button1: TButton;
  17.     Image1: TImage;
  18.     OpenDialog1: TOpenDialog;
  19.     procedure BitBtn1Click(Sender: TObject);
  20.     procedure Button1Click(Sender: TObject);
  21.   private
  22.  
  23.   public
  24.  
  25.   end;
  26.  
  27. var
  28.   Form1: TForm1;
  29.  
  30. implementation
  31.  
  32. {$R *.lfm}
  33.  
  34. { TForm1 }
  35.  
  36. procedure TForm1.BitBtn1Click(Sender: TObject);
  37. begin
  38.   OpenDialog1.Execute;
  39.  
  40.   if (OpenDialog1.Files.Count = 1) and (FileExists(OpenDialog1.FileName)) then
  41.   begin
  42.     Image1.Picture.LoadFromFile(OpenDialog1.FileName);
  43.   end;
  44. end;
  45.  
  46. procedure TForm1.Button1Click(Sender: TObject);
  47. begin
  48.   OpenDialog1.Execute;
  49.  
  50.   if (OpenDialog1.Files.Count = 1) and (FileExists(OpenDialog1.FileName)) then
  51.   begin
  52.     Image1.Picture.LoadFromFile(OpenDialog1.FileName);
  53.   end;
  54.  
  55. end;
  56.  
  57. end.
  58.  

Is this a setting that's been reset in the new 2.0.8 or is it a bug ?

I'm on Win 10 Pro using ..
Lazarus 2.0.8 r62944 FPC 3.0.4 x86_64-win64-win32/win64
Title: Re: Lazarus Release 2.0.8
Post by: jamie on April 19, 2020, 01:43:03 pm
That's normal behavior...
Nothing has changed there.

its just a method in the class with code in it. Delete it.
Title: Re: Lazarus Release 2.0.8
Post by: Zath on April 19, 2020, 02:13:24 pm
That's normal behavior...
Nothing has changed there.

its just a method in the class with code in it. Delete it.

But it's referencing a component that no longer exists on the form. This always used to come up with the warning and ask if you want to remove the associated declarations.
Title: Re: Lazarus Release 2.0.8
Post by: Martin_fr on April 19, 2020, 02:18:15 pm
But it's referencing a component that no longer exists on the form. This always used to come up with the warning and ask if you want to remove the associated declarations.
No, its not.

The only "reference" is in the name: BitBtn1Click
But that is just a name. (and names have no meaning to the compiler - except different things must have different names)

The "OnClick" event could have any name you choose. You could have called it: "GetMeACoffeeProcedure" and it still would have handled the click.

The procedure is linked to the BitBtn by the form designer / object inspector. That is saved in the lfm file. And when you deleted the bitbtn, that link was deleted too.
(Look at the events of your new Button, to see how this is linked to its event)

Now, it is just a method, that is not called at all. But the compiler does not know that (the compiler does not check what is in the lfm, that happens later). You could still have plans to do something with that code.
Title: Re: Lazarus Release 2.0.8
Post by: jamie on April 19, 2020, 03:05:09 pm
Personally I am glad the LAz does not remove those methods because I like changing controls and simply pointing to the same method events without rewriting the code, he could of done the same. rename afterwards to make it clean looking..
Title: Re: Lazarus Release 2.0.8
Post by: mattias on April 19, 2020, 03:29:39 pm
I was going to install lazarus-project_2.0.8-0_amd64.deb on my Xubuntu and I've seen that Software (the application that installs it) says the license is private (Actually "Privativa" in Spanish, don't know how's in English).

It's "Proprietary" in English.

I tried changing the copyright file to the debian machine readable format (dep5).
The debian test tool Lintian is now happy with the copyright.

But the software center still shows "Proprietary".
I tried the simplest license "GPL-2", but Software Center still shows "Proprietary".
I tried a few other open source debs and to my amazement the first 10 debs I tried were all shown as proprietary. Apparently we are not alone.
I found some where the software center shows non proprietary licenses, but I have not yet figured out, how they did it.
Any hint is welcome.
Title: Re: Lazarus Release 2.0.8
Post by: Otto on April 19, 2020, 06:15:48 pm
 Thank you for your work.
I upgraded Lazarus from 2.0.6 to 2.0.8 on Windows, everything went well. Martin's version snapshot 3.2 RC/fixes also works great on my PC running Windows 10 64bit.

I also suggested installing/updating the IDE to my work colleagues. Some believed they had lost the packages they installed, but I explained to them how to fix them by performing a manual recompilation. They did not know that on Windows there is no automatic recompilation of Lazarus after upgrading to a new version.
Title: Re: Lazarus Release 2.0.8
Post by: winni on April 19, 2020, 11:27:25 pm
Hi!

Since today 19.4.2020 Lazarus v 2.08 is available through the Suse OS online repository for Leap 15.x and Tumbleweed.

Winni
Title: Re: Lazarus Release 2.0.8
Post by: dbannon on April 20, 2020, 10:25:38 am

It's "Proprietary" in English.
.....
But the software center still shows "Proprietary".
I tried the simplest license "GPL-2", but Software Center still shows "Proprietary".
As I noted in my post above, if you look at a package in the Software Installer in the normal manner where the package is located in their repository, most (all ?) will not be Proprietary. Manually download one to your local disk, then look at it with Software Install and it has magically become Proprietary.  Its not the content of the package that matters, any package that exists anywhere other than in their repository is Proprietary.

This Software Install application originates with Gnome, several distros that ship Gnome now leave it out or hack it so it no longer claims to be the tool to install local packages. Good.  I am sick of end users posting issues with my app saying they would use it (my app) if it was open source .....

Davo
Title: Re: Lazarus Release 2.0.8
Post by: wittbo on April 20, 2020, 11:12:06 am
Installation of the compiler on MacOS 10.14.6 failed.

I deleted the old 2.0.6 installation first, then made a fresh install of 2.0.8.
Installation starts as usual, but on finishing the install, there was an error message s. attachment.

Should I better install the 3.0.4a variant of the compiler?

Title: Re: Lazarus Release 2.0.8
Post by: Phoenix on April 20, 2020, 01:51:30 pm
In these days I'm trying the new version: great job many thanks to the whole team  :D!!
Title: Re: Lazarus Release 2.0.8
Post by: fred on April 20, 2020, 03:21:55 pm
I could not rebuild the 32 bit version on W10 got "Fatal:(1009) No memory left", tried several things, no components installed, did not work but the 64 bit installed without problem.
W7 did rebuild 32 bit worked with many components installed, no idea why W10 is so limited.
On W7 installed the 64 bit version and cross compiler, just have to change the settings to 32 bit target.
So far it runs without problems, thanks all  :)
Title: Re: Lazarus Release 2.0.8
Post by: af0815 on April 20, 2020, 04:27:55 pm
I could not rebuild the 32 bit version on W10 got "Fatal:(1009) No memory left
Normally this is a well known problem of the used (32-Bit) FPC version. You can look for it in the Forum search.

See https://forum.lazarus.freepascal.org/index.php/topic,40351.msg323714.html#msg323714 or similar
Title: Re: Lazarus Release 2.0.8
Post by: trev on April 21, 2020, 06:43:01 am
The Lazarus file area downloads on SourceForge for fpc-3.0.4-macos-x86_64-laz.pkg for both Lazarus 2.0.6 and 2.0.8 have reverted to one that no longer successfully installs on Catalina.

See this post and following (https://forum.lazarus.freepascal.org/index.php/topic,47408.msg358308.html#msg358308) for details.
Title: Re: Lazarus Release 2.0.8
Post by: fred on April 21, 2020, 10:44:22 am
@af0815
Yes I had seen that but did not try it because at that moment I had no time for it and would prefer the standard options.
I just tried lazarus-2.0.8-fpc-3.2.0-beta-44680-win32 with some pakages, rebuilds with standard options without problem.
Now I have to think will I use 2.0.8-64->32bit or use 2.0.8-3.2.0-beta-32, modern problems :)
Will try both when I have some time, now other work to do.
Thanks.
Title: Re: Lazarus Release 2.0.8
Post by: fedkad on April 22, 2020, 01:19:39 pm
I am downloading the win32 version from:

https://sourceforge.net/projects/lazarus/files/Lazarus%20Windows%2032%20bits/Lazarus%202.0.8/lazarus-2.0.8-fpc-3.0.4-win32.exe/download

Isn't this the official Windows 32 bit version?
Title: Re: Lazarus Release 2.0.8
Post by: Martin_fr on April 22, 2020, 01:25:39 pm
I am downloading the win32 version from:

https://sourceforge.net/projects/lazarus/files/Lazarus%20Windows%2032%20bits/Lazarus%202.0.8/lazarus-2.0.8-fpc-3.0.4-win32.exe/download

Isn't this the official Windows 32 bit version?
Yes it is.

The talk about other downloads (not releases), is because the Fpc team plans a new release (later this year?) and some people are looking at previews on that. Those are test builds, so people can help finding bugs before the next fpc release
Title: Re: Lazarus Release 2.0.8
Post by: fedkad on April 22, 2020, 01:37:45 pm
Thanks for the answer @Martin_fr. I asked this question, because I remember a few days ago reading somewhere that a Win32 version for 2.0.8 will not be released and the users will need to build it themselves.
Title: Re: Lazarus Release 2.0.8
Post by: Martin_fr on April 22, 2020, 02:11:43 pm
Thanks for the answer @Martin_fr. I asked this question, because I remember a few days ago reading somewhere that a Win32 version for 2.0.8 will not be released and the users will need to build it themselves.
Indeed, IIRC that was about 3 or 4 weeks back.
The decision was changed after that.

Talk about the next Fpc release had already been going on in 2019. When we released 2.0.6 we thought it was the last 2.0.x. And that the next release would be with Fpc 3.2.
But since it had taken longer, and a lot of fixes had accumulated, well we changed our mind.

Now hopefully the next release can be Lazarus 2.2 with Fpc 3.2. Lets see.
Title: Re: Lazarus Release 2.0.8
Post by: ASBzone on April 22, 2020, 03:56:54 pm
On W7 installed the 64 bit version and cross compiler, just have to change the settings to 32 bit target.
So far it runs without problems, thanks all  :)


You can also use Build Modes to manage the targets more seamlessly.
Title: Re: Lazarus Release 2.0.8
Post by: fred on April 23, 2020, 01:26:00 pm
Yes I know the build mode but have not used them yet.
fpc 3.2.0 beta gives in a small test program many lines like "Note: Call to subroutine "operator +(const op1:Variant;const op2:Variant):Variant;" marked as inline is not inlined"
I could disable the messages but I think I will use laz 2.0.8 fpc 3.0.4 64->32 that runs as expected.
Some small programs are used on a XP VM so it has to be 32 bit, in the near future ( I hope ) that will not be needed anymore.
Title: Re: Lazarus Release 2.0.8
Post by: Martin_fr on April 23, 2020, 01:50:49 pm
Yes I know the build mode but have not used them yet.
fpc 3.2.0 beta gives in a small test program many lines like "Note: Call to subroutine "operator +(const op1:Variant;const op2:Variant):Variant;" marked as inline is not inlined"
I could disable the messages but I think I will use laz 2.0.8 fpc 3.0.4 64->32 that runs as expected.

Afaik 3.0.4 does not inline it either. It just does not tell you that it did not.
Title: Re: Lazarus Release 2.0.8
Post by: PascalDragon on April 23, 2020, 03:25:08 pm
Yes I know the build mode but have not used them yet.
fpc 3.2.0 beta gives in a small test program many lines like "Note: Call to subroutine "operator +(const op1:Variant;const op2:Variant):Variant;" marked as inline is not inlined"
I could disable the messages but I think I will use laz 2.0.8 fpc 3.0.4 64->32 that runs as expected.

Afaik 3.0.4 does not inline it either. It just does not tell you that it did not.

Correct. 3.2.0 now informs that a call is not inlined, while older versions simply did not inline.
Title: Re: Lazarus Release 2.0.8
Post by: fred on April 23, 2020, 04:32:43 pm
I understand the message, I found several about it like https://forum.lazarus.freepascal.org/index.php?topic=40565.0.
With my test I tried some WMI calls and got a lot of messages ( also := if I remember ).
Normally I would not care about it ( at the moment ) I could not find a enable/disable in the compiler options, messages, to be expected since 2.0.6 uses fpc 3.0.4 normally.
Title: Re: Lazarus Release 2.0.8
Post by: del on April 24, 2020, 09:12:48 pm
It showed up on the Manjaro (Linux) repository a couple days ago. Easy install using Manjaro's package manager. If you're running lazarus on Linux give Manjaro a look. Thanks everyone for all your great work.
Title: Re: Lazarus Release 2.0.8
Post by: lucamar on April 24, 2020, 10:11:03 pm
I could not find a enable/disable in the compiler options, messages, [...]

To do that you can either insert a {$WARN number OFF}  directive in your code or use fpc's option -vm<x>. You can find them in FPC's Programer's Guide and apendix A of the Users Guide respectively.
Title: Re: Lazarus Release 2.0.8
Post by: altanbozoglu on April 25, 2020, 11:42:15 am
Many thanks to everyone who contributed, We look forward to every new version. Lazarus IDE is taking firm steps and it is very enjoyable to use it.
Title: Re: Lazarus Release 2.0.8
Post by: papillon33 on April 25, 2020, 05:59:04 pm
J'ai installer la version mise en place aujourd'hui et apparait sur le projet prototype ne contenant rien l'erreur suivante : Image jointe
Quelqu'un peut t'il m'aider ?
Title: Re: Lazarus Release 2.0.8
Post by: mattias on April 25, 2020, 09:39:28 pm
Did you install
fpc-3.0.4-macos-x86_64-laz-2.pkg
or
fpc-3.0.4-macos-x86_64-laz.pkg
?

Do you have a file /usr/local/bin/fpcres ?
Title: Re: Lazarus Release 2.0.8
Post by: papillon33 on April 25, 2020, 09:49:44 pm
Good evening and thank you for your interest in my problem.
I installed :
fpc-3.0.4-macos-x86_64-laz-2.pkg
fpc-src-3.0.4-laz.pkg
and LazarusIDE-2.0.8-macos-x86_64.pkg
With thanks
Title: Re: Lazarus Release 2.0.8
Post by: trev on April 26, 2020, 02:57:52 am
I have just installed:

1) fpc-3.0.4-macos-x86_64-laz-2.pkg
2) fpc-src-3.0.4-laz.pkg
3) LazarusIDE-2.0.8-macos-x86_64.pkg

on a new installation of macOS 10.15.4 Catalina with no issues at all. I successfully compiled a minimal app with a button on a form with no errors.

@Papillon: Did you install the packages in that order? (ie 1, 2, 3 as listed above)
Title: Re: Lazarus Release 2.0.8
Post by: papillon33 on April 26, 2020, 09:59:15 am
Hello
I first installed Lazarus 2.0.6 several months ago
I started to do some development and I came up against a problem of access to text files. Having seen that Lazarus had an evolution, I redid an upgrade and since The zarus makes me the errors put in image.
Do you know if this is the case where the conf files are located which allow lazarus to find these little ones in this tree. Perhaps I could be trying to understand or provide you with more relevant information.
@ +

Ceci est une traduction par Google
This is a translation by Google
Title: Re: Lazarus Release 2.0.8
Post by: trev on April 26, 2020, 12:23:31 pm
Perhaps I could be trying to understand or provide you with more relevant information.

How to use the Forums (https://wiki.freepascal.org/Forum).
Title: Re: Lazarus Release 2.0.8
Post by: Martin_fr on April 26, 2020, 12:35:30 pm
The zarus makes me the errors put in image.
Probably open a new thread.
Quote
Do you know if this is the case where the conf files are located which allow lazarus to find these little ones in this tree. Perhaps I could be trying to understand or provide you with more relevant information.
Not sure what you mean. (Maybe lost in google translate?).

Title: Re: Lazarus Release 2.0.8
Post by: papillon33 on April 26, 2020, 02:09:57 pm
Bonjour Martin
Vous avez raison, je vais éviter Google translation. Je pose mes questions en Français et ceux qui ont la gentillesse d'y répondre traduiront avec les outils de leur choix.

Je résume le problème, qui explique ma présence dans ce thread ou dans ce fil de discussion :
- OS --> MacOS Catalina
- J'ai installé il y a quelques temps Lazarus 2.0.6 et cela fonctionnait pour certains programmes. J'ai eu un problème avec l'accès à la lecture de fichiers textes.
- Ayant vu une évolution de Lazarus, j'ai installé la version 2.0.8 et évidemment le compilateur pascal.
Problème la compilation du prototype de programme ne marche pas et donne le résultat montré en image. La re compilation de Lazarus donne la même chose.
J'ai regardé l'arborescence de fpc 3.0.4, c'est impressionnant. On croirait être sous Windows quoique la version sous Windows marche parfaitement et tout semble incorporé dans un seul dossier. Bien que sous Windows, ça m'étonne, il doit forcément y avoir des merdes qui trainent dans les dossiers systèmes.

Donc ma question pour essayer d'avancer et peut être permettre aussi à d'autres d'avancer, est la suivante :
Ou sont mis les liens vers les bibliothèques ou fichiers bin qui permettent à Lazarus et à fpc de faire le job ?

Merci de la patience.


Title: Re: Lazarus Release 2.0.8
Post by: Martin_fr on April 26, 2020, 02:51:36 pm
Vous avez raison, je vais éviter Google translation. Je pose mes questions en Français et ceux qui ont la gentillesse d'y répondre traduiront avec les outils de leur choix.
Best to do both. Translated and original.
(Includes les Francais avec les translation)



Ok: So you get the error in that is shown in the image.
I did not understand because the image was not on that post, it was on https://forum.lazarus.freepascal.org/index.php/topic,49356.msg359133.html#msg359133

(Le translation disez "un error trouve dans une image". Mais l'image a ete avec une post different. Et moi je penser que vous fait "Timage.saveToFile" ou quelque chose comme ca, et que c'est image a une erreur / This is because this topic mixes so many different issues, that I did not remember your previous post)

I am not a Mac expert. So I do not know about the "fpcres not found" error.

Again, best open a new topic, and link it here.
Title: Re: Lazarus Release 2.0.8
Post by: mattias on April 26, 2020, 09:07:31 pm
I installed :
fpc-3.0.4-macos-x86_64-laz-2.pkg
fpc-src-3.0.4-laz.pkg
and LazarusIDE-2.0.8-macos-x86_64.pkg

Good.
Do you have /usr/local/bin/fpcres?

Please open a terminal and type a line: fpcres -h
What do you get?
Title: Re: Lazarus Release 2.0.8
Post by: papillon33 on April 26, 2020, 09:42:56 pm

fpcres -h 
fpcres - resource file converter, version 2.0 [2019/11/01], FPC 3.0.4
Host platform: Darwin - x86_64
Copyright (c) 2008 by Giulio Bernardi.

C'est grave Docteur ?
Bonsoir et merci

Is it serious doctor ?
good night and thank you
Title: Re: Lazarus Release 2.0.8
Post by: mattias on April 26, 2020, 10:23:20 pm
Good. So fpcres is in PATH.

Maybe you are starting the IDE with a different PATH?
See in Lazarus menu View / IDE Internals / About IDE / General / Environment variables / PATH.
What is the value?

Title: Re: Lazarus Release 2.0.8
Post by: papillon33 on April 26, 2020, 10:28:20 pm
PATH=/usr/bin:/bin:/usr/sbin:/sbin

Et encore merci.
Title: Re: Lazarus Release 2.0.8
Post by: mattias on April 26, 2020, 10:31:02 pm
PATH=/usr/bin:/bin:/usr/sbin:/sbin

This PATH is missing /usr/local/bin . That's why fpc can't find fpcres.
How do you start Lazarus?
Title: Re: Lazarus Release 2.0.8
Post by: papillon33 on April 27, 2020, 10:00:32 am
Bonjour

Comment mettre ce chemin dans le path ?
Lazarus est démarré par le dossier application ou l'icone de Lazarus s'est installée.

Hello

How to put this path in the path?
Lazarus is started by the application folder where the Lazarus icon is installed.

Thank you
Title: Re: Lazarus Release 2.0.8
Post by: mattias on April 27, 2020, 10:26:41 am
Lazarus is started by the application folder where the Lazarus icon is installed.

I just tried this and indeed the PATH is missing when the IDE is started this way. But fpc can find fpcres anyway. So there must be something else wrong on your system.

Just to be sure:
Did you execute the following lines:
https://wiki.freepascal.org/Installing_Lazarus_on_macOS#Step_2:_Xcode_Command_Line_Tools
?
Title: Re: Lazarus Release 2.0.8
Post by: papillon33 on April 27, 2020, 02:52:24 pm
Ca donne çà : (It gives that :)
jeanhunter@MacAlliance / % sudo xcode-select --install
Password:
xcode-select: error: command line tools are already installed, use "Software Update" to install updates

jeanhunter@MacAlliance / % sudo xcodebuild -license accept
jeanhunter@MacAlliance / %
Title: Re: Lazarus Release 2.0.8
Post by: wittbo on April 27, 2020, 03:58:17 pm
@trev, mattias:

The described problem also occurred on macOS Mojave. A new installation with the latest versions was successful. One small note: The FPC sources are now in /usr/local/share/fpcsrc/3.0.4; you have to adjust this at IDE-startup  This is new.
Title: Re: Lazarus Release 2.0.8
Post by: mattias on April 27, 2020, 11:28:53 pm
The described problem also occurred on macOS Mojave. A new installation with the latest versions was successful.

Are you talking about the "can't find fpcres" problem?
Are you saying, that some old files are causing this problem?
Title: Re: Lazarus Release 2.0.8
Post by: trev on April 28, 2020, 09:12:15 am
@trev, mattias:

The described problem also occurred on macOS Mojave.

Which problem?

Quote
A new installation with the latest versions was successful. One small note: The FPC sources are now in /usr/local/share/fpcsrc/3.0.4; you have to adjust this at IDE-startup  This is new.

Maybe this is related to installations where you already have a copy installed? For new installations on a "clean system" (ie newly installed operating system) I've not had to change anything for it to work.
Title: Re: Lazarus Release 2.0.8
Post by: mattias on April 28, 2020, 10:14:30 am
jeanhunter@MacAlliance / % sudo xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates

ok.

After compile, there is a green line in the Messages window. Please right click it to open the popup menu, About Compile Project. This shows a window how the compiler was called. Please post the output.
Title: Re: Lazarus Release 2.0.8
Post by: papillon33 on April 28, 2020, 09:34:59 pm
Bon, la catastrophe pour rien. Installation d'une version vierge de Catalina, puis installation dans l'ordre de :
fpc-3.0.4-macos-x86_64-laz-2.pkg
fpc-src-3.0.4-laz.pkg
LazarusIDE-2.0.8-macos-x86_64.pkg

Compilation Lazarus profil normal Cocoa -- Darwin -- x86_64

Résultat :
Title: Re: Lazarus Release 2.0.8
Post by: mattias on April 28, 2020, 10:52:34 pm
It seems your /etc/fpc.cfg is wrong:

https://wiki.freepascal.org/Installing_Lazarus_on_macOS#Upgrading_from_Mojave_.2810.14.29_to_Catalina_.2810.15.29

Do you have the
-Fl/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/

?
Title: Re: Lazarus Release 2.0.8
Post by: papillon33 on April 29, 2020, 10:06:46 am
Bonjour

Dans le fichier fpc.cfg, je n'ai :
ni -->-Fl/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/

ni --> #ifdef cpux86_64

J'ai fait l'installation de Lazarus sur une machine Catalina vierge. Ce n'est pas une mise à jour, mais un disque complètement réinstaller.
Title: Re: Lazarus Release 2.0.8
Post by: valdir.marcos on April 29, 2020, 11:21:28 am
Ca donne çà : (It gives that :)
jeanhunter@MacAlliance / % sudo xcode-select --install
Password:
xcode-select: error: command line tools are already installed, use "Software Update" to install updates

jeanhunter@MacAlliance / % sudo xcodebuild -license accept
jeanhunter@MacAlliance / %

Bon, la catastrophe pour rien. Installation d'une version vierge de Catalina, puis installation dans l'ordre de :
fpc-3.0.4-macos-x86_64-laz-2.pkg
fpc-src-3.0.4-laz.pkg
LazarusIDE-2.0.8-macos-x86_64.pkg

Compilation Lazarus profil normal Cocoa -- Darwin -- x86_64

Résultat :

Bonjour

Dans le fichier fpc.cfg, je n'ai :
ni -->-Fl/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/

ni --> #ifdef cpux86_64

J'ai fait l'installation de Lazarus sur une machine Catalina vierge. Ce n'est pas une mise à jour, mais un disque complètement réinstaller.
Bien que certains d'entre nous puissent communiquer en français, nous ne devrions pas le faire ici.
S'il vous plaît, veuillez vous exprimer en anglais.

Although some of us can communicate in French, we should not do it here.
Please, express yourself in English.
Title: Re: Lazarus Release 2.0.8
Post by: papillon33 on April 29, 2020, 11:24:12 am
Il suffit de faire un click droit sur le bord gauche de la page pour que google fasse une traduction automatique. Quand vous écrivez en Anglais, c'est ce que je fais. La politesse doit être réciproque.
Title: Re: Lazarus Release 2.0.8
Post by: trev on April 29, 2020, 01:27:07 pm
I have attached a correct fpc.cfg from a new FPC install on Catilina. Copy the fpc.txt file to /etc/fpc.cfg
Title: Re: Lazarus Release 2.0.8
Post by: papillon33 on April 29, 2020, 02:54:10 pm
Merci beaucoup.
J'ai donc remplacer le fpc.cfg dans le répertoire et Lazarus démarre. Il accepte de compiler un exemple de programme qui se compile très bien et marche normalement avec la version Windows. J'ai installé la version windows sous windows 7 dans une machine Parallel Desktop.
La version windows marche normalement, la version Mac ne marche pas, pas d'accès au fichier comme sur la vue d'écran.

Donc suite à cela je recompile Lazarus et la problème Id Warning: building for mac os 10.5 deprecated

Je persiste car je pense que cela peut servir à la communauté.
Title: Re: Lazarus Release 2.0.8
Post by: Martin_fr on April 29, 2020, 03:38:53 pm
ADMIN / MODERATION note:

Please kindly note: This forum (except for the boards marked otherwise) uses English.
We do welcome anyone, with any level of knowledge in English. This does include anyone who uses google translate or similar.

However everyone is expected to include an English translation. And that is in every post they make.

As I wrote before, if you use automated translation, or otherwise think your English may not be good enough, you are welcome to include a copy of your text in your native language.
In this case your post must have both: English and your native language.

Best to do both. Translated and original.
(Includes les Francais avec les translation)

Everyone will be able to read the English immediately.
Other people, who speak your language can add clarifications.


P.s.: This note is public, as there already is a small discussion on the topic. This means this note is also for all future readers of this thread, who may be in a similar situation.
Title: Re: Lazarus Release 2.0.8
Post by: papillon33 on April 29, 2020, 03:45:26 pm
Cela ne résout pas mon problème.
En plus vous voulez de l'Anglais ou du dialecte Etats Uniens ?
Ceci étant chaque langue est respectable. Je ne comprend pas votre demande.
Si je ne m'y soumet pas, es-ce un raison d'exclusion.

This does not solve my problem.
In addition you want English or American dialect?
That said, each language is respectable. I do not understand your request.
If I do not submit to it, is this a reason for exclusion.
Title: Re: Lazarus Release 2.0.8
Post by: Martin_fr on April 29, 2020, 04:08:08 pm
Everyone else is posting in English (or at least with an English translation).
And many people here are not native English speakers (neither am I)

It would be chaos, if everyone posted in their own language only. And if everyone makes the effort to use English, then why should you not make the effort too?


If you want help, you can not expect the other people on the forum  to translate from your French.
If you do write in French, you will probably get less people to answer (as people will ignore you / that is every readers decision, not mine).


As for moderation, one or two posts in French may get ignored by the moderators (or may get flagged).
Anyone continuously ignoring the rules, will eventually get warned, and may then get excluded.
I really hope this will not be necessary.


As for posting in 2 Languages (English + native), that is simple an offer to help the communication.
If the English translation is not clear (because google sometimes does that), then add the original, so others who speak the other language can help improving the English translation.
But the English must be included, so every user of the forum can read it, and get an idea what the topic is about.

You can post in English only, if you want. But if people have problems understanding it, then they will not answer. Posting in both languages may increase your chances of getting an answer.
In the end, this is in your own interest.
Title: Re: Lazarus Release 2.0.8
Post by: howardpc on April 29, 2020, 04:16:20 pm
It does not matter if you use UK or US spelling in your posts. Both are equally acceptable as "English", though each has its distinctive flavour/flavor.
Title: Re: Lazarus Release 2.0.8
Post by: papillon33 on April 29, 2020, 04:21:14 pm
"Mais l'anglais doit être inclus, afin que chaque utilisateur du forum puisse le lire et se faire une idée du sujet."
Le monde est plus moderne que cela. J'ai bien vu en venant sur le site que l'essentiel était en Anglais. Mon google chrome me traduit tout automatiquement et relativement correctement.
Donc sans vouloir polémiquer c'est un mode de fonctionnement archaïque. Je pense que le utilisateur de Lazarus d'autres pays trouveraient plus d'intérêt à y trouver des articles dans diverses langues.

"But English must be included, so that every forum user can read it and get a sense of the subject."
The world is more modern than that. I saw when coming to the site that most of it was in English.
My google chrome translates everything automatically and relatively correctly. So without wanting to argue it is an archaic mode of operation. I think the user of Lazarus from other countries would find more interest in finding articles in various languages.
Title: Re: Lazarus Release 2.0.8
Post by: 440bx on April 29, 2020, 04:44:05 pm
Il suffit de faire un click droit sur le bord gauche de la page pour que google fasse une traduction automatique. Quand vous écrivez en Anglais, c'est ce que je fais. La politesse doit être réciproque.
Some strange logic there.

When you go to a different country, say Laos, you expect everyone to carry a French to Lao translator because you carry a Lao to French one.  The result is, the Laotian tries to speak French while the French tries to speak Laotian.  Politeness would definitely be a big plus considering what an effective means of communication that is.

What an interesting communication method...
Title: Re: Lazarus Release 2.0.8
Post by: lucamar on April 29, 2020, 04:47:25 pm
My google chrome translates everything automatically and relatively correctly. So without wanting to argue it is an archaic mode of operation. I think the user of Lazarus from other countries would find more interest in finding articles in various languages.

Not everyone here uses Chrome, and of those who do not everyone uses the automatic translation. Imagine how useful would the forum be if you asked i French, I answered in Spanish and somebody chimed in with German. Instead, we all use (more o less correctly) a comon language which, as it happens, is English even though most of us are not native English speakers.

In the end, the question is not whether you want to use French or not, but of how many other users you alienate by using it exclusively.
Title: Re: Lazarus Release 2.0.8
Post by: papillon33 on April 29, 2020, 04:53:31 pm
Je sens que les trolls sont de sortie et pas un seul d'entre eux ne m'aidera à résoudre pour moi et pour tous les problème de Lazarus sur Catalina. Je rappelle aux Trolls que l'Anglais n'est parler que par 400 ou 500 million d'individus pour 7 milliard d'humains.
Soyez gentil, laissez les gens qui ont une compétence lazarus me répondre dans la langue de leur choix.

I feel that the trolls are out and not one of them will help me solve for me and for all the problems of Lazarus on Catalina. I remind the Trolls that English is only spoken by 400 or 500 million people out of 7 billion humans. Be nice, let the people who have Lazarus skills answer me in the language of their choice.
Title: Re: Lazarus Release 2.0.8
Post by: papillon33 on April 29, 2020, 04:54:34 pm
Rappel :
Le sujet c'est Lazarus 2.0.8

Reminder :
The subject is Lazarus 2.0.8
Title: Re: Lazarus Release 2.0.8
Post by: 440bx on April 29, 2020, 05:22:55 pm
Je sens que les trolls sont de sortie et pas un seul d'entre eux ne m'aidera à résoudre pour moi et pour tous les problème de Lazarus sur Catalina.
if I could help you with Catalina related problems, at least I would try, in English, of course!.


Je rappelle aux Trolls que l'Anglais n'est parler que par 400 ou 500 million d'individus pour 7 milliard d'humains.
Not only you expect people to accommodate your preference for French (the preference is understandable, your expecting other people to accommodate it... not so much) but you provide incorrect information to support your unfounded expectations. I can't help you with the Catalina problem but, I can help update your knowledge of how many people speak English and how many speak French.  Obviously, the figures are estimates but, they are along these lines: 1.5 to 2 BILLION (that's millard in French - see... very kind and accomodating) people speak English and the majority of them speak it as a second language.  There are about 270 MILLION (same in French) people who speak French (and that number includes people who _believe_ they speak French (e.g Cajun) which is not the same as actually speaking French.)

And that doesn't take into account that, in the computer field, English is the "Lingua Franca". 

It's like if an American asked the French to trade their Champagne for Coca-Cola because, in addition to having bubbles just like Champagne does, it is cheaper and faster to produce, not to mention much easier to open the bottle.  No doubt such a suggestion would be welcome with open arms in France.

Seriously, think of it as an opportunity to learn English and most everyone will gladly help you in both areas, learning English and solving whatever problems you may have with FPC/Lazarus.


Title: Re: Lazarus Release 2.0.8
Post by: Martin_fr on April 29, 2020, 05:30:28 pm
Indeed, lets stop the English / none English discussion here.

And return to 2.0.8 related issues.

Thanks



And also lets not get into "clever worded" analogies. => This is not about who speaks what and why. (both sides).

This is merely about what is custom at this forum.

MODERATION NOTE; continue on a new thread if you must.
Title: Re: Lazarus Release 2.0.8
Post by: papillon33 on April 29, 2020, 05:40:09 pm
merci

Thanks
Title: Re: Lazarus Release 2.0.8
Post by: 440bx on April 29, 2020, 05:41:16 pm
merci

Thanks
De rien.  You're welcome.
Title: Re: Lazarus Release 2.0.8
Post by: trev on April 30, 2020, 01:20:40 am
Merci beaucoup.
J'ai donc remplacer le fpc.cfg dans le répertoire et Lazarus démarre. Il accepte de compiler un exemple de programme qui se compile très bien et marche normalement avec la version Windows. J'ai installé la version windows sous windows 7 dans une machine Parallel Desktop.
La version windows marche normalement, la version Mac ne marche pas, pas d'accès au fichier comme sur la vue d'écran.

Donc suite à cela je recompile Lazarus et la problème Id Warning: building for mac os 10.5 deprecated

Je persiste car je pense que cela peut servir à la communauté.

As I have fixed your initial problem, PLEASE start a new thread in an appropriate forum.
Title: Re: Lazarus Release 2.0.8
Post by: Giorgio Tani on May 03, 2020, 09:16:18 pm
Hello, I've noticed an issue with TListview multiple selection on Windows, with Lazarus 2.0.8.

To replicate the issue: create an empty application, place a TListview on the form and populate it with a few test items, check Multiselect true for the TListview.

Running the application, if I have selected multiple items and then I click on one of the already selected items, the previous (multi)selection is lost as soon as the mouse button is pressed.

On Windows, previous (multi)selection should be lost only when mouse button is released.

I've tested the same code with Lazarus 1.8.4 and it works as expected on Windows: selection is changed when the mouse button is released.

I don't know if this was already submitted as a bug, or if it is an intended modification.
Title: Re: Lazarus Release 2.0.8
Post by: Martin_fr on May 03, 2020, 09:25:30 pm
Hello, I've noticed an issue with TListview multiple selection on Windows, with Lazarus 2.0.8.

To replicate the issue: create an empty application, place a TListview on the form and populate it with a few test items, check Multiselect true for the TListview.
The issue will be fixed in 2.2
https://bugs.freepascal.org/view.php?id=35362
Title: Re: Lazarus Release 2.0.8
Post by: Giorgio Tani on May 03, 2020, 09:42:18 pm
Thank you, keep up the good work!
Title: Re: Lazarus Release 2.0.8
Post by: papillon33 on May 04, 2020, 04:57:42 pm
Merci beaucoup.
J'ai donc remplacer le fpc.cfg dans le répertoire et Lazarus démarre. Il accepte de compiler un exemple de programme qui se compile très bien et marche normalement avec la version Windows. J'ai installé la version windows sous windows 7 dans une machine Parallel Desktop.
La version windows marche normalement, la version Mac ne marche pas, pas d'accès au fichier comme sur la vue d'écran.

Donc suite à cela je recompile Lazarus et la problème Id Warning: building for mac os 10.5 deprecated

Je persiste car je pense que cela peut servir à la communauté.

As I have fixed your initial problem, PLEASE start a new thread in an appropriate forum.
Mr Trev n'a rien compris. J'ai écrit que le programme exemple se compilait bien sur Lazarus WINDOWS. Mais je m'en fout, je veux utiliser la version MAC Catalina.
Donc résumé :
- Il n'a apporté aucune solution à mon problème Catalina
- Installé en bricolant, on peut compiler le programme créer automatiquement, mais on ne peut pas recompiler Lazarus (Phénomène interessant, après tentative de compilation Lazarus vous jettes et re démarre en Anglais. Une tentative des Trolls pour imposer L'anglais ? )
- Les exemples figurants dans Lazarus ne peuvent pas être compilé, parce que ça oblige à créer un répertoire dans le dossier de l'exemple qui est dans \Lazarus 2.0.8\bibliotheque\Lazarus\examples qui est un répertoire interdit par Catalina en écriture.
Un forum d'entraide est un forum d'aide mutualisé, Je préfèrerais avoir affaire à des gens sympa et compatissants, Ce qui n'est pas le cas de Mr Trev.

Mr. Trev didn't understand anything. I wrote that the sample program compiles well on Lazarus WINDOWS. But I don't care, I want to use the MAC Catalina version.
So summary:
- He did not solve my Catalina problem
- Installed by tinkering, we can compile the program to create automatically, but we cannot recompile Lazarus (Interesting phenomenon, after attempting to compile Lazarus you throw and start again in English. An attempt by the Trolls to impose English?)
- The examples appearing in Lazarus cannot be compiled, because that obliges to create a directory in the folder of the example which is in \ Lazarus 2.0.8 \ bibliotheque \ Lazarus \ examples which is a directory prohibited by Catalina in writing .
A support forum is a mutual help forum, I would prefer to deal with nice and compassionate people, which is not the case for Mr Trev.
Title: Re: Lazarus Release 2.0.8
Post by: Otto on May 04, 2020, 06:06:08 pm
Salut.

[...]
- The examples appearing in Lazarus cannot be compiled, because that obliges to create a directory in the folder of the example which is in \ Lazarus 2.0.8 \ bibliotheque \ Lazarus \ examples which is a directory prohibited by Catalina in writing .

Right now I don't have a Mac to test, but I think you could try copying the sample files to a folder with write permissions. I believe that this operation, commonly done in Linux and Windows, can also be applied on Mac.

Au revoir.
Title: Re: Lazarus Release 2.0.8
Post by: papillon33 on May 04, 2020, 06:13:14 pm
Merci, on y a pensé, effectivement la plupart des fichiers de Lazarus ou de fpc sont dans des répertoires bloqués. Mais ça ne suffit pas.

Soyons clair, Lazarus a trois intérêts pour moi :
- Créer des programmes en 64 bits
- Créer des programmes en version Windows 64 bits et MAC 64 bits
- C'est un EDI proche du pascal dans lequel j'ai développé des gros programmes et dont je pourrais récupérer beaucoup d'outils, de fonctions, de classes déjà développés. (En les vérifiant évidemment)

Thank you, we thought about it, indeed most of the Lazarus or fpc files are in blocked directories. But that is not enough.

Let's be clear, Lazarus has three interests for me:
- Create programs in 64 bits
- Create programs in 64-bit Windows and 64-bit MAC versions
- It is an EDI close to Pascal in which I have developed large programs and from which I could recover many tools, functions, classes already developed. (By checking them obviously)
Title: Re: Lazarus Release 2.0.8
Post by: Otto on May 04, 2020, 06:36:15 pm
I understand, in this situation you would also have difficulty installing a new package for Lazarus.

Surely there will be an optimal solution to your problem; while you wait, you may see how Lazarus works on a Linux/Windows VM.
For my group I realized a Linux VM (Arch Linux derivative) with installed everything necessary to develop in Lazarus and other tools. This allows us to avoid many problems of configuration of the development environment and facilitates the communication of problems.

I'm sorry I can't help you.
Title: Re: Lazarus Release 2.0.8
Post by: mischi on May 04, 2020, 07:30:08 pm
How about trying to install lazarus with fink or macport on Catalina? I claim, that i have resolved the issues, but would definitely be interested in feed back.

Mischi.
Title: Re: Lazarus Release 2.0.8
Post by: papillon33 on May 04, 2020, 07:33:47 pm
Voulez vous m'expliquer comment faire et j'accepte de faire le cobaye.
Pour information, je l'ai installé sur une machine virtuelle Windows 7 et cette version fonctionne.

Do you want to explain to me how to do it and I agree to do the guinea pig.
For information, I installed it on a Windows 7 virtual machine and this version works.
Title: Re: Lazarus Release 2.0.8
Post by: mischi on May 04, 2020, 08:24:25 pm
Do you want to explain to me how to do it and I agree to do the guinea pig.
For information, I installed it on a Windows 7 virtual machine and this version works.
1) Install macport according to their homepage (https://www.macports.org/install.php)
2) Install lazarus from a terminal with "port install lazarus". This will give you the cocoa variant of lazarus, version 2.0.8 based on fpc 3.0.4. After installation you can start it by a double-click on the link in /Applications/MacPorts

MiSchi
Title: Re: Lazarus Release 2.0.8
Post by: dbannon on May 07, 2020, 05:28:31 am
...... An attempt by the Trolls to impose English?)
.......nice and compassionate people, which is not the case for Mr Trev.

I feel a real need to correct the record here.  Firstly, I don't think Lazarus developers are Trolls. Secondly, can any one suggest Trev lacks compassion and is not a nice person on the basis of the last weeks comments from him ? reproduced below -
Quote
Did you install the packages in that order? (ie 1, 2, 3 as listed above)
Quote
Which problem?
Maybe this is related to installations where you already have a copy installed? For new installations on a "clean system" (ie newly installed operating system) I've not had to change anything for it to work.
Quote
I have attached a correct fpc.cfg from a new FPC install on Catilina. Copy the fpc.txt file to /etc/fpc.cfg
Quote
As I have fixed your initial problem, PLEASE start a new thread in an appropriate forum.

Davo
Title: Re: Lazarus Release 2.0.8
Post by: papillon33 on May 07, 2020, 10:15:45 am
Mr dbannon, ou avez vous lu de ma part ou de quiconque que les devellopeurs de Lazarus auraient pu être des trolls. Quand je parle de troll, c'est par rappord aux fanatiques qui veulent imposer le parler anglais exclusif. Lesquels principalement Etats Uniens feraient bien de se mettre à l'Espagnol qui est la langue la plus parlé en Amérique et au US.

Mr Trev
Quote
Quel problème?
Peut-être que cela est lié aux installations où vous avez déjà installé une copie? Pour les nouvelles installations sur un "système propre" (c'est-à-dire un système d'exploitation nouvellement installé), je n'ai rien eu à changer pour que cela fonctionne.

Quel mépris !!!
Sauf que si vous lisez bien toutes ses citations, il a installé Lazarus sur Mojave après avoir reconstruit sa station.
Je n'en veux pas à Mr Trev, mais le problème n'est pas réglé et mis à part le sermon, il ne m'a rien apporté. Donc je préfèrerai qu'il s'abstienne.

En résumé, Lazarus sur Catalina ne se compile pas ni par les commandes de l'IDE, ni par le terminal en exécutant les commande prescrites dans les fichiers README.txt

Mr. dbannon, where have you read from me or anyone that the Lazarus devellopers could have been trolls. When I speak of troll, it is in reference to the fanatics who want to impose the exclusive English language. Which mainly United States would do well to get into Spanish which is the most spoken language in America and in the US.

Mr trev
Quote
What problem?
Maybe this is related to installations where you have already installed a copy? For new installations on a "clean system" (that is, a newly installed operating system), I didn't have to change anything to make it work.

What contempt !!!
Except if you read all of his quotes, he installed Lazarus on Mojave after rebuilding his station.

I don't hold it against Mr. Trev, but the problem is not resolved and apart from the sermon, it has brought me nothing. So I would prefer that he abstain.

In summary, Lazarus on Catalina is not compiled either by IDE commands or by the terminal by executing the commands prescribed in the README.txt files
Title: Re: Lazarus Release 2.0.8
Post by: 440bx on May 07, 2020, 10:29:54 am
When I speak of troll, it is in reference to the fanatics who want to impose the exclusive English language.
That rings a bell but, the last one of those fanatics I saw was trying to impose french in the English section of the forum.  Imposing English in the English section of the forum... what a "strange" thing to do... it's obvious everyone should post in french in the English section.
Title: Re: Lazarus Release 2.0.8
Post by: Ñuño_Martínez on May 07, 2020, 11:30:02 am
This is an English forum, so use English.  There are sub-forums for other languages (https://forum.lazarus.freepascal.org/index.php#c11).  You can suggest French, and if there's base enough it will be created for sure.
Title: Re: Lazarus Release 2.0.8
Post by: mdalacu on May 07, 2020, 12:18:52 pm
This forum needs an an way for a user to get points like ubuntu forums or stack exchange. Or posts to get votes...
Title: Re: Lazarus Release 2.0.8
Post by: fred on May 07, 2020, 12:56:55 pm
Quote
Lucamar:
To do that you can either insert a {$WARN number OFF}  directive in your code or use fpc's option -vm<x>. You can find them in FPC's Programer's Guide and apendix A of the Users Guide respectively.
For now I will use the default Lazarus with fpc 3.0.4
I wish I had time to play more with fpc 3.2.0 beta, well, some day :)
Title: Re: Lazarus Release 2.0.8
Post by: lucamar on May 07, 2020, 02:48:44 pm
Quote
To do that you can either insert a {$WARN number OFF}  directive in your code or use fpc's option -vm<x>. You can find them in FPC's Programer's Guide and apendix A of the Users Guide respectively.
For now I will use the default Lazarus with fpc 3.0.4
I wish I had time to play more with fpc 3.2.0 beta, well, some day :)

I don't use the 3.2 beta; what I told you works well in 3.0.x and in fact I use it quite a lot :)
Title: Re: Lazarus Release 2.0.8
Post by: JanRoza on May 07, 2020, 05:47:39 pm
So other followers/readers of this forum have to use translation tools to read your message because you are to lazy to do that?
My native language is Dutch but I still only communicate in English on this forum as a courtesy to every forum visitor, it would be nice if other forum visitors would also have that courtesy.
The world is not just you, but we are all the world so lets be a little bit social on this forum.
Just my humble opinion.
Title: Re: Lazarus Release 2.0.8
Post by: Martin_fr on May 07, 2020, 05:59:12 pm
MODERATION NOTE: Removing none English topics / topics without full English translation.

Also: Any further discussion on language of the forum should go here https://forum.lazarus.freepascal.org/index.php/board,8.0.html

It will be removed from this thread.
Title: Re: Lazarus Release 2.0.8
Post by: Frogfather on May 08, 2020, 08:37:56 pm
Downloaded 2.0.8 for mac today. Super easy install - well done to all involved.  8-)

First thoughts:
The good: the little descriptions on the palette items now actually show what the item is - previously a lot of them showed the same name!

The slightly less good - I had to adjust all my strToDate methods to include the separator. Previously StrToDate('2020-05-01) worked, now it needs to be StrToDate('2020-05-01','-'). Not a big problem really.

The mildly confusing - the DateTimePicker component requires the DateTimePicker unit to be explicitly added to your project - this isn't related to 2.0.8, it happened in 2.0.6 too. While this isn't a big deal it may confuse some as it's completely at variance with all the other components on the palette.

Title: Re: Lazarus Release 2.0.8
Post by: JuhaManninen on May 09, 2020, 10:52:58 am
The mildly confusing - the DateTimePicker component requires the DateTimePicker unit to be explicitly added to your project - this isn't related to 2.0.8, it happened in 2.0.6 too.
In trunk this works. If it really was fixed recently it should have been merged to 2.0.8. Anyway it will work in future 2.2.0.
Title: Re: Lazarus Release 2.0.8
Post by: wp on May 09, 2020, 11:16:43 am
I just installed Laz 2.0.8 for Win64, the DateTimePicker is installed by default. I cannot imagine that mac OS should be different here.

As for the StrToDate issue: StrToDate is a function of FPC, and the FPC versions has not been changed for a long time for the Lazarus versions. So I guess, this issue is in your code somewhere. Did you change the FormatSettings.DateSeparator (or DefaultFormatSettings.DateSeparator, that's the same)? It is used by the StrToDate function when no dedicated DateSeparator is specified as second argument. What is the value of FormatSettings.ShortDateFormat? Again, it is used by the StrToDate function.
Title: Re: Lazarus Release 2.0.8
Post by: PascalDragon on May 09, 2020, 10:01:52 pm
I just installed Laz 2.0.8 for Win64, the DateTimePicker is installed by default. I cannot imagine that mac OS should be different here.

Frogfather meant that they need to add the unit DateTimePicker manually after they'd added the component to their form.
Title: Re: Lazarus Release 2.0.8
Post by: wp on May 09, 2020, 10:14:06 pm
Yes, but I checked that, too (although my response was rather unclear in this regard).
Title: Re: Lazarus Release 2.0.8
Post by: dbannon on May 10, 2020, 02:56:00 am
The unit (for DateTimePicker) was auto added to form when the component was dropped on to the form, for both fixes and trunk on Linux and Mac. In all cases, self built Lazarus, maybe as much as a few weeks old ?

Perhaps the issue only exists in a Lazarus installed from a package, frogfather was not clear how he installed ?

Davo
Title: Re: Lazarus Release 2.0.8
Post by: Martin_fr on May 10, 2020, 03:13:07 am
The slightly less good - I had to adjust all my strToDate methods to include the separator. Previously StrToDate('2020-05-01) worked, now it needs to be StrToDate('2020-05-01','-'). Not a big problem really.
Maybe locale settings?

Quote
The mildly confusing - the DateTimePicker component requires the DateTimePicker unit to be explicitly added to your project - this isn't related to 2.0.8, it happened in 2.0.6 too. While this isn't a big deal it may confuse some as it's completely at variance with all the other components on the palette.
Could be various things.

Maybe the IDE was unable to parse your unit. E.g. if it had an error. Normally it should then refuse to add the component at all. But....
Can it be reproduced with a new app, empty form?

Maybe some problem with the package installation. (if you upgraded from an earlier version of Lazarus)
Go To Package > open Package file (lpk)
Open the DateTimePicker package (in the install dir, under components...)
Repeat for the DateTimePickerDsgn package

Tools > Configure build Lazarus: check "clean all" and rebuild
Restart the IDE.

Does the issue persist?


Title: Re: Lazarus Release 2.0.8
Post by: nachoap on May 12, 2020, 07:16:27 pm
Thank you very very much!!!

Every app is working after Lazarus 2.0.8 compiling. I only had a little trouble with zeos and my sqlite 3 database: I can't do a "vacuum" command if db is opened, and with my previous Lazarus version and my old zeos component I could. But it was a minor problem and I've solved easily.

Thanks again. I love Pascal and working with Lazarus is really great.
Title: Re: Lazarus Release 2.0.8
Post by: Birger52 on June 01, 2020, 12:35:16 pm
Been working 2.0.6 for some month - a couple of apps.
One of them, uses two timers.
Now I get an "EOutOfResources" - no timers available - error when the previously running app programmatically creates a timer (Well - actually when it sets Event handlers - not when creating the timer).
Happens in FormCreate - and no, it's not in any loop.
Code: Pascal  [Select][+][-]
  1.   FClipTimer := TClipTimer.Create(Self, Settings.PlayTimerInterval);
  2.   FClipTimer.OnStart := @ClipTimerStart;
  3.   FClipTimer.OnStop := @ClipTimerStop;
  4.   FClipTimer.OnTimer := @ClipTimerTick;
  5.  
Call stack sets error at the line where OnTimer eventhandler is set.

Win 7 64bit 16GB 2x3.5GHz
Running at 15% CPU using 2Gb memory.
There is no way this error is reflecting reality.
Title: Re: Lazarus Release 2.0.8
Post by: ASerge on June 01, 2020, 03:40:45 pm
Now I get an "EOutOfResources" - no timers available - error when the previously running app programmatically creates a timer (Well - actually when it sets Event handlers - not when creating the timer).
Happens in FormCreate - and no, it's not in any loop.
Code: Pascal  [Select][+][-]
  1.   FClipTimer := TClipTimer.Create(Self, Settings.PlayTimerInterval);
  2.   FClipTimer.OnStart := @ClipTimerStart;
  3.   FClipTimer.OnStop := @ClipTimerStop;
  4.   FClipTimer.OnTimer := @ClipTimerTick;
  5.  
Call stack sets error at the line where OnTimer eventhandler is set.
I don't see an error in this piece of code. Need more info.
Title: Re: Lazarus Release 2.0.8
Post by: wp on June 01, 2020, 04:05:20 pm
What is TClipTimer? I cannot find this identifier among all files of a standard Lazarus installation. Are you sure that this component is working correctly? Third-party components are often poorly maintained.
Title: Re: Lazarus Release 2.0.8
Post by: Ñuño_Martínez on June 02, 2020, 11:38:47 am
I'm still having problems with the Configuration dialog.  It throws an "Access violation" error. Using Xubuntu 19.10, installed using SourceForge's deb files.

Is it only my computer?
Title: Re: Lazarus Release 2.0.8
Post by: Birger52 on June 02, 2020, 12:52:12 pm
@ ASerge & @wp
TClipTImer is a specialized timer, derived from TTimer.
(Checks a value in registry at given intervals)
And yes, I'm sure it is functioning as intended - it has been for half a year...

There is no errors in the code.
The exception raised, is/was "EOutOfResources" - not a source code error.

I have located the error - and it has noting to do with a resource problem.
For some reason values in Setting (read from registry at startup), has been changed, so the value set for Interval was negative.
And this apparently just happened to happen at the same time I updated from 2.0.6 to 2.0.8 - unrelated I hope...
Title: Re: Lazarus Release 2.0.8
Post by: jamie on June 02, 2020, 01:23:52 pm
There is limited number of timers. U cant create one for each instant of your control
The proper way to handle this is to create a global timer and connect your control it and disconnect from it when free your control.
This is a coding issue not lazarus.
Title: Re: Lazarus Release 2.0.8
Post by: Birger52 on June 02, 2020, 06:27:06 pm
Setting a negative interval, gives the error.
The error is not the reported resource-problem.
Title: Lazarus 1.9.2 for FPC 3.2 and ExtPascal
Post by: matthius on June 12, 2020, 12:57:30 am
Hello !

That is here :
https://sourceforge.net/projects/extpascal-restore/files/ (https://sourceforge.net/projects/extpascal-restore/files/)
Title: Re: Lazarus 1.9.2 for FPC 3.2 and ExtPascal
Post by: ASerge on June 20, 2020, 01:31:46 pm
Is the version planned on FPC 3.2.0?
Title: Re: Lazarus 1.9.2 for FPC 3.2 and ExtPascal
Post by: JuhaManninen on June 20, 2020, 01:44:13 pm
That is here :
https://sourceforge.net/projects/extpascal-restore/files/ (https://sourceforge.net/projects/extpascal-restore/files/)
@matthius, please create a new thread instead of replying and then changing the subject line.
Your post was clearly not related to Lazarus 2.0.8 release.

In fact many posts in this thread were out of topic. Please don't hijack threads people.
TinyPortal © 2005-2018