Lazarus

Announcements => Lazarus => Topic started by: mattias on November 01, 2019, 12:33:13 pm

Title: Lazarus Release 2.0.6
Post by: mattias on November 01, 2019, 12:33:13 pm
The Lazarus team is glad to announce the release of Lazarus 2.0.6.

This release was built with FPC 3.0.4.
The previous release Lazarus 2.0.4 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.6" directory.

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

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.12; Carbon (32bit), Cocoa (64bit), qt and qt5 (32 or 64bit).

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

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: Lazrus Release 2.0.6
Post by: silvestre on November 01, 2019, 12:50:07 pm
¡Gracias por vuestro trabajo!
Title: Re: Lazrus Release 2.0.6
Post by: Renato Ricci on November 01, 2019, 01:55:12 pm
Hello.. I´ve downloaded and installed Lazarus 2.0.6 x32 from sourceforge.net but Kaspersky found a Trojan-downloader.win32-upatre.iekl.. Did someone already reported?

See attachement.

Thanks

Renato

Title: Re: Lazrus Release 2.0.6
Post by: Martin_fr on November 01, 2019, 02:38:36 pm
I believe this is a false positive. I reported it with Kaspersky. You may choose to wait until they update their AV.

https://metadefender.opswat.com/results#!/file/bzE5MTEwMVNrLWVLWGhLcUhySmZlRm1oSzVC/regular/multiscan
https://www.virustotal.com/gui/file/14530cfa4e1b8069eb802cfcd5d345e9a8840ca2aaca31e91ca5720da67fd499/detection

It is likely that some AV (on virustotal) share the database with Kaspersky.
Title: Re: Lazrus Release 2.0.6
Post by: Renato Ricci on November 01, 2019, 02:41:50 pm
Thanks a lot!
Title: Re: Lazrus Release 2.0.6
Post by: Martin_fr on November 01, 2019, 02:44:34 pm
Also if I strip the lazarus.exe
 ./fpc/3.0.4/bin/i386-win32/strip.exe lazarus.exe

Then reports are clean.
That means the offending byte sequence is in the debuginfo.
The debug info is normally not executed. Of course a virus could hide there and have a loader in the normal code. Unlikely though that it hides in the debug info without encrypting/scrambling to avoid detection... .My 2 cents)

https://www.virustotal.com/gui/file/77738bde2abd1446f2dcd19f1925c9e658e88aef54289c2e152bfcd4e5d82a42/detection
https://metadefender.opswat.com/results#!/file/bzE5MTEwMUIxLTh4ODJZY0hTSk1MeDgydDVI/regular/overview


Title: Re: Lazrus Release 2.0.6
Post by: Renato Ricci on November 01, 2019, 03:00:01 pm
Perfect!! How about generate a new lazarus install file with the lazarus.exe file already stripped? That sounds great !! :)

About my posts, do you want me do delete them after we found a solution for it?

Thanks!
Renato
Title: Re: Lazrus Release 2.0.6
Post by: Martin_fr on November 01, 2019, 03:24:42 pm
keep the posts. Others may want to read up on it.

The installer always has debug info... But I uploaded a copy of the exe to
https://sourceforge.net/projects/lazarus-snapshots/files/Window%2032/2.0.6%20stripped%20lazarus.exe/

You can also rebuild the exe with lazbuild (which is part of the install too). But I would need to search the wiki for the steps.

Or if you can stop your AV from deleting the exe, you can strip it yourself. strip is part of the install, or can be used from any previous install, or downloaded from various sites on the net (including the fpc svn somewhere....)

Title: Re: Lazrus Release 2.0.6
Post by: Renato Ricci on November 01, 2019, 03:49:04 pm
Thanks! Have a good one.
Renato
Title: Re: Lazrus Release 2.0.6
Post by: nouzi on November 01, 2019, 04:07:32 pm
  Good news 😘😘😘💖💖💖
Title: Re: Lazrus Release 2.0.6
Post by: jwdietrich on November 01, 2019, 06:48:18 pm
Thanks.

It works like a charm on macOS Sierra, but on macOS Mojave I got the following error after trying to compile a simple demo app:

Quote
controls.pp(473,1) Error: Internal error 200611031

However, after recompiling the IDE it works well now. This hint may be useful for other Mac users.
Title: Re: Lazrus Release 2.0.6
Post by: Martin_fr on November 01, 2019, 08:43:24 pm
Quote
Hello.. I´ve downloaded and installed Lazarus 2.0.6 x32 from sourceforge.net but Kaspersky found a Trojan-downloader.win32-upatre.iekl.. Did someone already reported?

Kaspersky confirmed that it was a false detection. They will update their signatures
Title: Re: Lazrus Release 2.0.6
Post by: jamie on November 01, 2019, 10:24:35 pm
I just installed the 2.0.6 on a Win10 PRo,

 It seems for what ever reason nothing that has been talked about being merged in this release, actually is there ?

  For me it looks exactly like the 2.0.4 with no changes except for what the release build and version number is.

 I have been waiting for this release to come out because there were a few things that were claimed to be fixed, I don't see any of it ?

 1. The LazHelp file is in error, I fixed that and posted the fix some time ago, never made it.

 2. The TShellTreeView was suppose to have an added OnAddItem event, never made it.

 3. The LABEL editing on the form has issues with auto sizing and word wrap, that was suppose to be fixed ? Never made it.

 so for the short term I am not going to bother down loading 2.0.6 for the other PC's I use because there isn't any difference that I can see? The one I did today I'll over write the source files with the corrected one's I fixed I guess and leave the others as is for now..

 Thanks for the hard work but if there was something that actually changed other than the version number I am not seeing it.
Title: Re: Lazrus Release 2.0.6
Post by: Bart on November 01, 2019, 10:36:48 pm
2. The TShellTreeView was suppose to have an added OnAddItem event, never made it.

No, it was NOT supposed to have that in fixes branch, as I have explained to you before.
It is not a bugfix but a new feature, and therefore does not belong in the fixes branch.

If you really need this, you're probably OK with just copying shellctrsl.pas from trunk (nothing much else has changed).

Bart
Title: Re: Lazrus Release 2.0.6
Post by: lucamar on November 01, 2019, 10:41:44 pm
For me it looks exactly like the 2.0.4 with no changes except for what the release build and version number is.

There seem to be quite a lot of fixes, though most are not "visible" (at least on most widgetsets) but internal to the IDE.

I have a lot more testing to do yet*, but I like most of what I'm seeing.


* We have just ended the update to 2.0.4 (a bare month or so ago) in all our dev machines. You release too quickly for us  ;D
Title: Re: Lazrus Release 2.0.6
Post by: Martin_fr on November 01, 2019, 10:42:19 pm
I don't know about the individual issues on your list (the 2nd sounds like a feature not a bug, see below). The individuals that have worked on those issues would have to comment on your items.... But in general:

The list of fixes that "made it" can be found here: https://wiki.lazarus.freepascal.org/Lazarus_2.0_fixes_branch#Fixes_for_2.0.6_.28merged.29

If the fix is on that list, then there are the following possibilities (most are rare):
- the fix is incomplete, but no one has noticed that before now. 
  It could be incomplete in "trunk" or it could be that there is another bug that does make it incomplete in fixes only.
- The fix works in trunk, but not or not always in fixes  (this is really rather rare)

If it is not on that list, but the issue was marked as fixed on the bugtracker, then the issue was not merged.
That could be
- an oversight (unfortunately that happens, I have myself squeezed issues into a busy day, and forgotten to mark them for merging)
- technical problems with merging. Maybe the fix did not work in fixes and would have needed extra tweaks, but no-one has done them.
- it was not a bug fix. Normally only bug fixes are merged.


"trunk" is the preparation for the next major release 2.2
"fixes" is a subset of the trunk changes and what goes into 2.0.6 (or 2.0.8)
"merge" means a change from trunk was also added to fixes



Some issues about what might be merged were discussed here: https://forum.lazarus.freepascal.org/index.php/topic,47061.0.html
Some items only got to our attention after the deadline. (After building had commenced)

Title: Re: Lazrus Release 2.0.6
Post by: Martin_fr on November 01, 2019, 10:45:41 pm
* We have just ended the update to 2.0.4 (a bare month or so ago) in all our dev machines. You release too quickly for us  ;D

Well it's free software (as in free = freedom to ...).
You are free to update, but there is no force. ;)

If 2.0.4 works well for you, you can keep using it.
Title: Re: Lazrus Release 2.0.6
Post by: jamie on November 01, 2019, 10:56:08 pm
2. The TShellTreeView was suppose to have an added OnAddItem event, never made it.

No, it was NOT supposed to have that in fixes branch, as I have explained to you before.
It is not a bugfix but a new feature, and therefore does not belong in the fixes branch.

If you really need this, you're probably OK with just copying shellctrsl.pas from trunk (nothing much else has changed).

Bart

Ok, I can go with that, but I also showed a problem with the LazHtmlhelp example and the problem file, which is a BUG!
I uploaded the fixed file with what I think was plenty of time to get it in there.

  Oh well, no worries, I am the middle of overwriting a bunch of files now with fixes...

 --
 The issue with me doing the work in the Shell code is that when one day when you decide to change it then my work goes out the door and compiled projects fail.. This is why I was waiting (Hoping) that you put it in there.

 Oh well. Guess I can keep the distro (corrected one) with projects compiled by it.
Title: Re: Lazrus Release 2.0.6
Post by: Bart on November 01, 2019, 10:59:56 pm
Ok, I can go with that, but I also showed a problem with the LazHtmlhelp example and the problem file, which is a BUG!
I uploaded the fixed file with what I think was plenty of time to get it in there.

And that fix was wrong (or in the wrong file).

Bart
Title: Re: Lazrus Release 2.0.6
Post by: lucamar on November 01, 2019, 11:26:28 pm
* We have just ended the update to 2.0.4 (a bare month or so ago) in all our dev machines. You release too quickly for us  ;D

Well it's free software (as in free = freedom to ...).
You are free to update, but there is no force. ;)

If 2.0.4 works well for you, you can keep using it.

We try to keep up to date but there are two problems: 1) Too many machines (close to 50, IIRC) and 2) machines that should be kept at some release or with alternate, fully functional installs (say, the ones where we still do maintenance for Windows 9x). And that's not counting the pure DOS (only FPC updates, thank the Gods!) and the mostly "static" CP/M dinosaurs. All in all, a little nightmare for updates: 95% in a week and the next three (or six!) months for the rest  :D
Title: Re: Lazrus Release 2.0.6
Post by: jamie on November 01, 2019, 11:29:48 pm
Ok Bart, what ever you say...

 All I did was change the TProcess procedural code over to the ShellEexcute code when ever a shell Link was detected in the file name... The existing code still works with TProcess and I have tested this all the way back to W2k. Works in all windows targets and up to Win10..

 If you think that was the wrong code then you must know what the correct code is which only means its a bug...

 I don't want to get into a battle of wits over this, I normally fully test changes with all versions of windows before offering a fix..

  Carry on, I'll just craw back in my corner an change the 2.0.6 distro files so they work
properly.

 Have a nice day and thanks for the update, what ever it was that got updated.


 
Title: Re: Lazrus Release 2.0.6
Post by: Bart on November 02, 2019, 12:14:14 am
Have a nice day and thanks for the update, what ever it was that got updated.

As posted in the first post in this thread:
Quote
Here is the list of fixes for Lazarus 2.0.x:
http://wiki.freepascal.org/Lazarus_2.0_fixes_branch (http://wiki.freepascal.org/Lazarus_2.0_fixes_branch)

So, that's what got changed (fixed actually).

Bart
Title: Re: Lazrus Release 2.0.6
Post by: dbannon on November 02, 2019, 04:35:14 am
We try to keep up to date but there are two problems: 1) Too many machines (close to 50, IIRC) ..... and the mostly "static" CP/M dinosaurs.

Oh, wow, CP/M, Lazarus on 50 machines ?  Lucamar, you will have to tell us a bit more about what you do please ?

Anyway, given that 206 is (almost) exclusively fixes, if you are not being bitten by those particular bugs, why would you bother to update ?

CP/M ? really ?

Davo
Title: Re: Lazrus Release 2.0.6
Post by: willbprog9933 on November 02, 2019, 06:20:58 am
Unable to install on macOS Catalina.
Title: Re: Lazrus Release 2.0.6
Post by: Rusik on November 02, 2019, 12:01:07 pm
It seems that there is misprint.
                  :-[
"Topic: Lazrus Release 2.0.6"
Title: Re: Lazrus Release 2.0.6
Post by: avra on November 02, 2019, 12:56:26 pm
We try to keep up to date but there are two problems: 1) Too many machines (close to 50, IIRC)
I set one fpcupdeluxe based Lazarus on main dev pc, and when finished I just copy to the same dir on all other dev pc. Shortcut is copied, too. Lazarus is 32 bit (64 has some cross compilation issues), and running on WinXP, Win7 and Win10 machines. Some machines with 32-bit and some with 64-bit OS. I compile IDE with -O2 -g- -Xs -CpPENTIUM4 -CfSSE3 to have it running even on some very old WinXP machines with old CPUs. Once I set up the IDE, running it on all other machines takes less then an hour. Similar thing is with linux machines.
Title: Re: Lazrus Release 2.0.6
Post by: lucamar on November 02, 2019, 01:29:54 pm
Oh, wow, CP/M, Lazarus on 50 machines ?  Lucamar, you will have to tell us a bit more about what you do please ?

We are just kind of a loosy group of programmers working together and some of us have got too many machines. I myself have an old 386 (FreeDOS/Minix), a Pentium (FreeDOS/Windows 9x/Linux), a Pentium 4 laptop (WinXP/Linux), a couple Core Duo laptops (Win7/Linux), an Atom notebook (Win7/Linux), an I5 laptop (Win10/Linux), etc.

The thing is that between us all we should have exact (or almost) duplicates of the machines our customers have got, so we can program/test in the "peace of home" and be (mostly) sure the customer's machines won't have (many) surprises waiting for us.

Quote
Anyway, given that 206 is (almost) exclusively fixes, if you are not being bitten by those particular bugs, why would you bother to update ?

We are rather conservative in that respect (one or two of us check/test the new release for as long as needed before the rest updates) but we like to use the latest release so that if a problem arises we can make meaningfull reports. In that respect, the slow update cycle of Free Pascal helps.

Quote
CP/M ? really ?

Yeah, we have two customers who are mighty happy with their 80s computers. One of them still has (and requires support for) some Amstrad PCW. The other one has a couple Amstrads too but also uses some computers/controllers based around a Z80 which we designed for him and which run a CP/M-compatible "OS", so we can program them with Pascal MT+/Turbo Pascal. I do have a couple of heavily modified Amstrad PCW8256's for these CP/M related tasks.

As you see, pretty much your "standard" software shop :D
Title: Re: Lazrus Release 2.0.6
Post by: Martin_fr on November 02, 2019, 01:58:26 pm
Unable to install on macOS Catalina.
We are aware of this. Last I heard was that there were some issues to create that installer. So some work is needed. No idea how long that will take.
Title: Re: Lazarus Release 2.0.6
Post by: wittbo on November 02, 2019, 08:53:29 pm
@jwdietrich:  Did you recompile as 32Bit Carbon-based or  64bit Cocoa based IDE?
If 64 Bit, how are your experiences on MacOS Mojave?
Title: Re: Lazarus Release 2.0.6
Post by: Ariador on November 03, 2019, 03:36:30 pm
Regretfully couldn't manage to be so glad with new Lazarus 2.0.6 at my Ubuntu 19.10.

I have downloaded all 3 files from SourceForge via your link, installed FPC 3.0.4 and its sources then installed "lazarus-project_2.0.6-0_amd64.deb" and started Lazarus. And Lazarus IDE had immediately frozen my desktop at all. I had to switch to another one with Ctrl-Alt-F8 and restart. Tried then to recompile Lazarus to Qt widgetset with "make clean all LCL_PLATFORM=qt" but had finally just a fatal error:

    ...
    (9022) Compiling resource ../units/x86_64-linux/qt/lazarus.or
    (9015) Linking ../lazarus
    /usr/bin/ld: warning: ../link.res contains output sections; did you forget -T?
    /usr/bin/ld: cannot find -lQt4Pas
    /usr/share/lazarus/2.0.6/ide/lazarus.pp(165,1) Error: (9013) Error while linking
    /usr/share/lazarus/2.0.6/ide/lazarus.pp(165,1) Fatal: (10026) There were 1 errors compiling module, stopping
    Fatal: (1018) Compilation aborted
    make[2]: *** [Makefile:4144: lazarus] Error 1
    make[2]: Leaving directory '/usr/share/lazarus/2.0.6/ide'
    make[1]: *** [Makefile:4572: ide] Error 2
    make[1]: Leaving directory '/usr/share/lazarus/2.0.6/ide'
    make: *** [Makefile:3381: ide] Error 2

So I must assume, new Lazarus is not happy with GTK2 and GTK3 (my current distro provided GTK 2.24.32 and GTK 3.24.12) and also it's not friendly with some Qt5 (namely Qt 5.12 with 5.62 libs as it comes with distro). For there's only Qt5 at my system, lQt4Pas can't be found in /usr/bin/ld which is a link to x86_64-linux-gnu-ld.bfd, I guess.

So what can you suggest for the case?
Do I need to downgrade to older GTK or Qt or there is a fix? I'd not like to dig into all these makefiles myself :(
Title: Re: Lazarus Release 2.0.6
Post by: zeljko on November 03, 2019, 04:05:32 pm
You must install libQt4Pas (or qt4pas) , don't know how it's named under ubuntu.
Also for Qt5 you must build your own libQt5Pas v.1.2.7 from lcl/interfaces/qt5/cbindings since distros aren't updated
for latest libQt5Pas
Title: Re: Lazarus Release 2.0.6
Post by: mischi on November 03, 2019, 04:57:24 pm
@jwdietrich:  Did you recompile as 32Bit Carbon-based or  64bit Cocoa based IDE?
If 64 Bit, how are your experiences on MacOS Mojave?
Pull requests for Fink packages for carbon, cocoa, gtk2, Qt4 and Qt5 are out. According to my minimal tests on Mojave, all work.
Title: Re: Lazarus Release 2.0.6
Post by: Zvoni on November 04, 2019, 11:31:20 am
Regretfully couldn't manage to be so glad with new Lazarus 2.0.6 at my Ubuntu 19.10.

I have downloaded all 3 files from SourceForge via your link, installed FPC 3.0.4 and its sources then installed "lazarus-project_2.0.6-0_amd64.deb" and started Lazarus. And Lazarus IDE had immediately frozen my desktop at all. I had to switch to another one with Ctrl-Alt-F8 and restart. Tried then to recompile Lazarus to Qt widgetset with "make clean all LCL_PLATFORM=qt" but had finally just a fatal error:

    ...
    (9022) Compiling resource ../units/x86_64-linux/qt/lazarus.or
    (9015) Linking ../lazarus
    /usr/bin/ld: warning: ../link.res contains output sections; did you forget -T?
    /usr/bin/ld: cannot find -lQt4Pas
    /usr/share/lazarus/2.0.6/ide/lazarus.pp(165,1) Error: (9013) Error while linking
    /usr/share/lazarus/2.0.6/ide/lazarus.pp(165,1) Fatal: (10026) There were 1 errors compiling module, stopping
    Fatal: (1018) Compilation aborted
    make[2]: *** [Makefile:4144: lazarus] Error 1
    make[2]: Leaving directory '/usr/share/lazarus/2.0.6/ide'
    make[1]: *** [Makefile:4572: ide] Error 2
    make[1]: Leaving directory '/usr/share/lazarus/2.0.6/ide'
    make: *** [Makefile:3381: ide] Error 2

So I must assume, new Lazarus is not happy with GTK2 and GTK3 (my current distro provided GTK 2.24.32 and GTK 3.24.12) and also it's not friendly with some Qt5 (namely Qt 5.12 with 5.62 libs as it comes with distro). For there's only Qt5 at my system, lQt4Pas can't be found in /usr/bin/ld which is a link to x86_64-linux-gnu-ld.bfd, I guess.

So what can you suggest for the case?
Do I need to downgrade to older GTK or Qt or there is a fix? I'd not like to dig into all these makefiles myself :(

I had the same, but with older Lazarus. Steps should still apply
https://forum.lazarus.freepascal.org/index.php/topic,44607.0.html
Title: Re: Lazarus Release 2.0.6
Post by: dbannon on November 04, 2019, 11:47:40 am
Regretfully couldn't manage to be so glad with new Lazarus 2.0.6 at my Ubuntu 19.10.

I have downloaded all 3 files from SourceForge via your link, installed FPC 3.0.4 and its sources then installed "lazarus-project_2.0.6-0_amd64.deb" and started Lazarus. And Lazarus IDE had immediately frozen my desktop at all. I had to switch to another one with Ctrl-Alt-F8 and restart. Tried then to recompile Lazarus to Qt widgetset with "make clean all LCL_PLATFORM=qt" but had finally just a fatal error:

Ariador, are your trying QT because of the freeze-ups ?  The problem is not the widget set, there is "some issue" with U1910 I am afraid. GTK2 works fine on other distros and even other Ubuntu desktops but is very prone to do this freeze up on the default Gnome Desktop. People have found it works better using Wayland as display server (click the small gear symbol under the password field during log on and select Ubuntu on Wayland. GTK3 is experimental and quite a bit dodgy on Wayland by the way.

https://forum.lazarus.freepascal.org/index.php/topic,47240.0/topicseen.html

Davo
Title: Re: Lazarus Release 2.0.6
Post by: Zvoni on November 04, 2019, 12:11:52 pm
Ariador, are your trying QT because of the freeze-ups ?  The problem is not the widget set, there is "some issue" with U1910 I am afraid. GTK2 works fine on other distros and even other Ubuntu desktops but is very prone to do this freeze up on the default Gnome Desktop. People have found it works better using Wayland as display server (click the small gear symbol under the password field during log on and select Ubuntu on Wayland. GTK3 is experimental and quite a bit dodgy on Wayland by the way.

https://forum.lazarus.freepascal.org/index.php/topic,47240.0/topicseen.html

Davo
AFAIK, with U1910 they switched Gnome to GTK3 as the "standard"-widget-set.
On the other hand it would mean: any other Desktop/Window-Manager not using GTK3 as its standard should not have those issues.
Title: Re: Lazarus Release 2.0.6
Post by: zeljko on November 04, 2019, 02:52:16 pm

Ariador, are your trying QT because of the freeze-ups ?  The problem is not the widget set, there is "some issue" with U1910 I am afraid. GTK2 works fine on other distros and even other Ubuntu desktops but is very prone to do this freeze up on the default Gnome Desktop. People have found it works better using Wayland as display server (click the small gear symbol under the password field during log on and select Ubuntu on Wayland. GTK3 is experimental and quite a bit dodgy on Wayland by the way.

https://forum.lazarus.freepascal.org/index.php/topic,47240.0/topicseen.html

Davo

I've tested qt and qt5 under ubuntu 19.10 today and all I can say it works out of the box (default ubuntu 19.10) installation. Haven't tested with wayland since x11 is started as default. Even libQt5Pas is recent 1.2.7 version :)
Title: Re: Lazarus Release 2.0.6
Post by: Zvoni on November 04, 2019, 03:56:50 pm

Ariador, are your trying QT because of the freeze-ups ?  The problem is not the widget set, there is "some issue" with U1910 I am afraid. GTK2 works fine on other distros and even other Ubuntu desktops but is very prone to do this freeze up on the default Gnome Desktop. People have found it works better using Wayland as display server (click the small gear symbol under the password field during log on and select Ubuntu on Wayland. GTK3 is experimental and quite a bit dodgy on Wayland by the way.

https://forum.lazarus.freepascal.org/index.php/topic,47240.0/topicseen.html

Davo

I've tested qt and qt5 under ubuntu 19.10 today and all I can say it works out of the box (default ubuntu 19.10) installation. Haven't tested with wayland since x11 is started as default. Even libQt5Pas is recent 1.2.7 version :)

FPC/Laz installed from Repo or from deb's?
Asking because i don't know if install from deb's forces dependency-install of libqt5pas
Title: Re: Lazarus Release 2.0.6
Post by: BIT on November 04, 2019, 08:49:25 pm
Just Thank You!
Title: Re: Lazarus Release 2.0.6
Post by: dbannon on November 05, 2019, 12:11:41 am
AFAIK, with U1910 they switched Gnome to GTK3 as the "standard"-widget-set.
GTK3 has been the 'standard' widgetset for some time. Its just that they are now no longer also including GTK2 in there. It needs to be added by you or as a result of a dependency check. Easy to resolve at the expense of a short download.

If you install using the debs, then they know they need GTK2 and it will be installed as a dependency. But only if you use an installer that resolves dependencies !  I strongly suggest gdebi. If you use the Gnome supplied "software installer" it will not resolve dependencies (and lies to you about anything not from its repos being proprietary).

If you plan to build Lazarus from source, then you are still advised to install FPC and FPC-SRC from a deb. And, again, using gdebi all dependencies will be resolved.  (Thats how I recommend every one install by the way!).

Neither FPC nor Lazarus have formal dependencies on QT, if you want to work with QT, you need to install its specific dependencies manually.

Davo
Title: Re: Lazarus Release 2.0.6
Post by: ermeneuta on November 08, 2019, 12:16:01 am
It would be nice if somebody could write an installer for Raspbian (the Debian incarnation for the Raspberry)...
I would do it myself, but lack the needed skills...

TNX

Alberto
 
Title: Re: Lazarus Release 2.0.6
Post by: dbannon on November 08, 2019, 03:38:34 am
Quote
...Raspbian...

Install FPC, FPC-Src and subversion (for the svn command) all from Buster repository.

You probably need to increase swap space, see a previous post on the subject, probably by Thaddy.

Download the lazarus source and type "make bigide"

Details on the "installing Lazarus on linux" wiki page. https://wiki.freepascal.org/Installing_Lazarus_on_Linux

Please report how you go, maybe update that wiki page ?  Please especially report if my advice is wrong!

Davo
Title: Re: Lazarus Release 2.0.6
Post by: Thaddy on November 08, 2019, 07:19:17 am
It would be nice if somebody could write an installer for Raspbian (the Debian incarnation for the Raspberry)...
I would do it myself, but lack the needed skills...

TNX

Alberto
Raspbian Buster has already fpc3.0.4 and Laz 2.0 in the repositories.
Simply sudo apt-get install lazarus That's all. This will install Lazarus, FPC and all dependencies. Increase the swap file to 512MB or higher.
But indeed, if you want to build from source afterwards (this is not necessary!) , increase the swapfile to 1 GB. This is not necessary for a RPi 4 with 2 or 4 GB memory.
This is the recommended way, unless you absolutely want fpc 3.2.0 or higher and / or Lazarus 2.0.6 or higher. Then you still install from apt first, install subversion and checkout the versions you want. Then build make clean all install useride. useride will keep any changes you have already made for installed packages.
bigide is also OK but is a bit overkill for most.

Basically, what you asked is already done: Buster has - good and recent -  installers by default. Raspbian always contained FPC and Lazarus.
To increase the swap file follow these steps: https://www.bitpi.co/2015/02/11/how-to-change-raspberry-pis-swapfile-size-on-rasbian/

I might add it is a good idea to add backports to your apt configuration: Debian updates come usually rather conservative, but the Debian package maintainers seem to be fond of Lazarus and FPC, so the newer versions usually come - for Debian - pretty quick into backports.  :D 8-)
Title: Re: Lazarus Release 2.0.6
Post by: dbannon on November 08, 2019, 08:09:21 am
Ah, thanks Thaddy (swap space issues).  If you don't mind, I might push those notes to the wiki page ?
Quote
....
Then build make clean all install useride.

Disagree, 'install' is quite unnecessary, from memory it wants to push everything up unto /usr/ again. And thats really not useful. And 'bigide' gets you the OnlinePackage Manager (unless I am mistaken). I would suggest everyone will want the Onlinepackage Manager sooner or later !  'useride' is a new one on me. I find that when starting a newly compiled (fixes) IDE, as long as you point to the same config, that config gets 'imported' and all previous packages are still there. I think ...

Davo

Title: Re: Lazarus Release 2.0.6
Post by: Thaddy on November 08, 2019, 08:29:17 am

Disagree, 'install' is quite unnecessary, from memory it wants to push everything up unto /usr/ again.
Actually /usr/local where it belongs! e.g. fpcdeluxe has a non-conformant install... Follow the guidelines  unless you need multiple parallel installs, usually advanced users. And even that is debatable because FPC installs to a versioned directory.
Quote
And 'bigide' gets you the OnlinePackage Manager (unless I am mistaken).
Bigide installs way too much and OPM can be installed afterwards. Two clicks away. Bigide is not a good idea on very basic, resource starved platforms like a Raspberry Pi, unless you have a Pi4 with 4 GB.
Do not install things you never need. But OPM is indeed useful and easily installed aftwards, just like the sparta packages and sqldb and the likes.
bigide also slows down building after package installs that alone is a reason not do use bigide. E.g. on RPi 1 and 2. or Pi zero it hampers rather than aids. And it is a memory hog install.
Go ahead, make your machine only able to compile hello world....
Quote
'useride' is a new one on me.
Now you know. It is usually the better option for existing installs.

If you are actually using Raspberry Pi's you will know this is sound advice.
It simply gives you a better user experience.

Of course you can do bigide and then remove things afterwards, but I suggest adding packages to an existing basic install is way more appropriate.
Title: Re: Lazarus Release 2.0.6
Post by: dbannon on November 08, 2019, 12:22:36 pm
Actually /usr/local where it belongs
Think you are confusing fpc and lazarus, never mind.
Bigide installs way too much and OPM can be installed afterwards. Two clicks away.
OK, that makes sense. Thanks
If you are actually using Raspberry Pi's you will know this is sound advice.
While I know its probably sound advice, I have never tried to use a Pi interactively. I have a couple running some 'housekeeping tasks' written in Python but never tried FPC on there. Thats why I am trying, politely, to collect some information about how to do it. And get that information on the wiki.

Davo
Title: Re: Lazarus Release 2.0.6
Post by: zeljko on November 08, 2019, 02:19:14 pm
I've tested qt and qt5 under ubuntu 19.10 today and all I can say it works out of the box (default ubuntu 19.10) installation. Haven't tested with wayland since x11 is started as default. Even libQt5Pas is recent 1.2.7 version :)

FPC/Laz installed from Repo or from deb's?
Asking because i don't know if install from deb's forces dependency-install of libqt5pas

Fpc 3.2.0 (fixes) + lazarus trunk installed with fpcupdeluxe, manually installed qt5pas with apt-get.
Title: Re: Lazarus Release 2.0.6
Post by: del on November 08, 2019, 05:38:01 pm
I'm using Linux Mint 19.1 Tessa. Ever since 1.8 I've been installing Lazarus using the .deb downloads from SourceForge - with gdebi-gtk. My problem with 2.0.6 is I get this error when I build:

Quote
Error: Internal error 200611031

At line 469 of /usr/share/lazarus/2.0.6/lcl/controls.pp.

Here's the code (build stops/breaks at constructor Create(AControl: TControl); override;

Code: Pascal  [Select][+][-]
  1.   { TDragObjectEx }
  2.  
  3.   TDragObjectEx = class(TDragObject)
  4.   public
  5.     constructor Create(AControl: TControl); override;
  6.   end;
  7.  

So I'll uninstall 2.0.6 and reinstall 2.0.4. But if there's a way I can fix this let me know. It looks like this problem has come up before. I hope I don't "have a f*cked up install" cuz that sounds pretty f*cking serioso. Clean up and build ... doesn't help. The fpc amd64 debs haven't changed since my last successful build of laz-proj 2.0.4.

Title: Re: Lazarus Release 2.0.6
Post by: del on November 08, 2019, 06:40:54 pm
Fixed it - you gotta move fast around me. I just made this little change as root "sudo":

Code: Pascal  [Select][+][-]
  1. //added this comment ...
  2.   { TDragObjectEx }
  3.  
  4.   TDragObjectEx = class(TDragObject)
  5.   public
  6.     constructor Create(AControl: TControl); override;
  7.   end;
  8.  

See the magic C++ comment? It was more powerful than the Voodoo that was breaking the build. Now I'm rocking 2.0.6 style. With the AnchorDocking stuff - that's really cool.
 :D
Title: Re: Lazarus Release 2.0.6
Post by: BeniBela on November 08, 2019, 07:37:44 pm
I'm using Linux Mint 19.1 Tessa. Ever since 1.8 I've been installing Lazarus using the .deb downloads from SourceForge - with gdebi-gtk. My problem with 2.0.6 is I get this error when I build:

Quote
Error: Internal error 200611031

At line 469 of /usr/share/lazarus/2.0.6/lcl/controls.pp.


That number looks familiar (https://bugs.freepascal.org/view.php?id=32352)
Title: Re: Lazarus Release 2.0.6
Post by: jamie on November 08, 2019, 11:27:24 pm
@del

 So you triggered a change in a file there by forcing a rebuild of the files and now it works.

 that tells me the BIN files don't match the source files, I've seen this before.

 
Title: Re: Lazarus Release 2.0.6
Post by: del on November 09, 2019, 12:30:30 am
@del

 So you triggered a change in a file there by forcing a rebuild of the files and now it works.

 that tells me the BIN files don't match the source files, I've seen this before.
I was just throwing the dice - somebody somewhere else mentioned that deleting some blank lines allowed a successful build. I added the comment with the same idea, thinking that maybe an uninitialized variable would take on a different random value and the error wouldn't happen. I can repeat the condition with another install if that would help answer any questions. At any rate I'm a happy camper.
Title: Re: Lazarus Release 2.0.6
Post by: Martin_fr on November 09, 2019, 12:50:03 am
I was just throwing the dice - somebody somewhere else mentioned that deleting some blank lines allowed a successful build. I added the comment with the same idea, thinking that maybe an uninitialized variable would take on a different random value and the error wouldn't happen. I can repeat the condition with another install if that would help answer any questions. At any rate I'm a happy camper.
"make clean" would have done it.

The compiler compiles each units, and maintains ppu files (with checksums to know when they are outdated).
And (most likely) something goes wrong there. A ppu is outdated, but not detected. It could be circular, then changing this file may affect the other ppu.

It is hard to say exactly what happens, since it happens at random.

If you have exact steps, how to reproduce on a system on which there never ever before was any fpc or Lazarus (maybe a fresh installed OS), then you should report it with those steps on the fpc bugtracker.
Title: Re: Lazarus Release 2.0.6
Post by: del on November 09, 2019, 01:09:27 am
I was just throwing the dice - somebody somewhere else mentioned that deleting some blank lines allowed a successful build. I added the comment with the same idea, thinking that maybe an uninitialized variable would take on a different random value and the error wouldn't happen. I can repeat the condition with another install if that would help answer any questions. At any rate I'm a happy camper.
"make clean" would have done it.

The compiler compiles each units, and maintains ppu files (with checksums to know when they are outdated).
And (most likely) something goes wrong there. A ppu is outdated, but not detected. It could be circular, then changing this file may affect the other ppu.

It is hard to say exactly what happens, since it happens at random.

If you have exact steps, how to reproduce on a system on which there never ever before was any fpc or Lazarus (maybe a fresh installed OS), then you should report it with those steps on the fpc bugtracker.
I do "make clean" several times each day at work for C++ stuff. I didn't know it was an option with Lazarus. I did try "Clean up and Build ...". I'm probably not gonna have a fresh OS in a while, but I'm curious about the "make clean" for future reference. I'll uninstall  and reinstall 2.0.6 to see if the problem comes back. Then I'll try "make clean". Not sure how to do that but one step at a time.
Title: Re: Lazarus Release 2.0.6
Post by: del on November 09, 2019, 01:38:28 am
OK guys, I not gonna consume any more of your time with this. I uninstalled 2.0.6, then installed 2.0.4 and had the same problem (which I didn't have before). Running "sudo make clean" then "sudo make" in /usr/share/lazarus/2.0.4 didn't fix it. But changing the file did:

Code: Pascal  [Select][+][-]
  1. //now problem with 2.0.4
  2.   { TDragObjectEx }
  3.  
  4.   TDragObjectEx = class(TDragObject)
  5.   public
  6.     constructor Create(AControl: TControl); override;
  7.   end;
  8.  
  9.  

At any rate I'm having peculiar problems and I have a peculiar cure. Life goes on. I'll now successfully go back to 2.0.6 using my peculiar method. Lazarus is great - don't take any of this as criticism.
Title: Re: Lazarus Release 2.0.6
Post by: Martin_fr on November 09, 2019, 01:58:01 am
I do "make clean" several times each day at work for C++ stuff. I didn't know it was an option with Lazarus. I did try "Clean up and Build ...". I'm probably not gonna have a fresh OS in a while, but I'm curious about the "make clean" for future reference. I'll uninstall  and reinstall 2.0.6 to see if the problem comes back. Then I'll try "make clean". Not sure how to do that but one step at a time.
If the error is in LCL or packages, you can open the package, and from the toolbar "more" choose "recompile clean".

That may not be enough if it is dependent packages.... Go to menu Tools > Configure build Lazarus.
And there is a radio box "clean all" and you can rebuild the IDE, and with it most packages.
Title: Re: Lazarus Release 2.0.6
Post by: del on November 09, 2019, 09:05:35 am
That may not be enough if it is dependent packages.... Go to menu Tools > Configure build Lazarus.
And there is a radio box "clean all" and you can rebuild the IDE, and with it most packages.

THIS worked. There was a standard TCheckBox "Clean common files". I checked that and the build went fine. Thanks for the great advice!
 :)
Title: Re: Lazarus Release 2.0.6
Post by: Bart on November 09, 2019, 01:08:28 pm
But changing the file did:

I have the same issue regurarly in some win32wsmenus.pp (happens almost everytime I edit grids.pas and thenrebuild LCL).
What helps for me is just adding an invalid token (e.g. an 'X') at the point the caret is in that file (win32wsmenus.pp)
Recompile -> syntax error.
Remove the invalid token
Recompile: OK.

It's faster than doing a clean build.

Bart
Title: Re: Lazarus Release 2.0.6
Post by: nouzi on November 09, 2019, 02:41:37 pm
But changing the file did:

I have the same issue regurarly in some win32wsmenus.pp (happens almost everytime I edit grids.pas and thenrebuild LCL).
What helps for me is just adding an invalid token (e.g. an 'X') at the point the caret is in that file (win32wsmenus.pp)
Recompile -> syntax error.
Remove the invalid token
Recompile: OK.

It's faster than doing a clean build.

Bart

Woow :o :o :o
Title: Re: Lazarus Release 2.0.6
Post by: del on November 12, 2019, 08:33:35 pm
But changing the file did:

I have the same issue regurarly in some win32wsmenus.pp (happens almost everytime I edit grids.pas and thenrebuild LCL).
What helps for me is just adding an invalid token (e.g. an 'X') at the point the caret is in that file (win32wsmenus.pp)
Recompile -> syntax error.
Remove the invalid token
Recompile: OK.

It's faster than doing a clean build.

Bart

Woow :o :o :o
I love learning the Old Indian Tricks.
 :D
Title: Re: Lazarus Release 2.0.6
Post by: nouzi on November 12, 2019, 11:55:28 pm
But changing the file did:

I have the same issue regurarly in some win32wsmenus.pp (happens almost everytime I edit grids.pas and thenrebuild LCL).
What helps for me is just adding an invalid token (e.g. an 'X') at the point the caret is in that file (win32wsmenus.pp)
Recompile -> syntax error.
Remove the invalid token
Recompile: OK.

It's faster than doing a clean build.

Bart

Woow :o :o :o
I love learning the Old Indian Tricks.
 :D

Good for sher this trick  O:-)
Title: Re: Lazarus Release 2.0.6
Post by: laguna on November 13, 2019, 01:09:27 pm
This versione is not compatible with Catalina 64bit.

I install the files from https://sourceforge.net/projects/lazarus/files/Lazarus%20macOS%20x86-64/

installation is abort for this programs: LazarusIDE-2.0.6-macos-x86_64.pkg  and fpc-3.0.4-macos-x86_64-laz.pkg

XCode is installated

Please Help Me.

Thanks
LaGuNa
Title: Re: Lazarus Release 2.0.6
Post by: Rainbow6 on November 13, 2019, 03:05:34 pm
Try using FPCUpDeluxe and install in a user folder.

And you have to switch off GateKeeper.
Title: Re: Lazarus Release 2.0.6
Post by: willbprog9933 on November 13, 2019, 09:58:04 pm
This versione is not compatible with Catalina 64bit.

Try using FPCUpDeluxe and install in a user folder.
And you have to switch off GateKeeper.

I am on Catalina and this is very frustrating for me.  I know this is not a paid product and that the developers are doing what they can, but I think that...

This stinks for everyone who wants to use Lazarus/FPC on Catalina.  :'(
Title: Re: Lazarus Release 2.0.6
Post by: mattias on November 14, 2019, 07:07:22 am
This versione is not compatible with Catalina 64bit.

 :o

I created and tested it on Catalina.

I install the files from https://sourceforge.net/projects/lazarus/files/Lazarus%20macOS%20x86-64/

installation is abort for this programs: LazarusIDE-2.0.6-macos-x86_64.pkg  and fpc-3.0.4-macos-x86_64-laz.pkg

Were you able to install fpc-3.0.4-macos-x86_64-laz.pkg ?

Are there any error messages in /var/log/install.log?

Mattias
Title: Re: Lazarus Release 2.0.6
Post by: Thaddy on November 14, 2019, 07:47:15 am
[[/li][li]There should be a clear warning when attempting to download the macOS version that it's not yet compatible with Catalina[/li][/list]
[
What *exactly* are the problems, because I can not reproduce them...(I did not test cross- compilation yet)
Title: Re: Lazarus Release 2.0.6
Post by: willbprog9933 on November 14, 2019, 08:11:13 am
Were you able to install fpc-3.0.4-macos-x86_64-laz.pkg ?

Are there any error messages in /var/log/install.log?

Installing the latest FPC does not work.  It fails with the error: "Install failed. The installer encountered an error that caused the install to fail."

The installer log says this:

Code: [Select]
Nov 13 23:06:31 Mac-mini-2018 Installer[1598]: @(#)PROGRAM:Install  PROJECT:Install-1000
Nov 13 23:06:31 Mac-mini-2018 Installer[1598]: @(#)PROGRAM:Installer  PROJECT:Installer-965.1
Nov 13 23:06:31 Mac-mini-2018 Installer[1598]: Hardware: Macmini8,1 @ 3.20 GHz (x 12), 16384 MB RAM
Nov 13 23:06:31 Mac-mini-2018 Installer[1598]: Running OS Build: Mac OS X 10.15.1 (19B88)
Nov 13 23:06:31 Mac-mini-2018 Installer[1598]: fpc-macos-x86-64-laz  Installation Log
Nov 13 23:06:31 Mac-mini-2018 Installer[1598]: Opened from: /Users/will/Downloads/fpc-3.0.4-macos-x86_64-laz.pkg
Nov 13 23:06:31 Mac-mini-2018 Installer[1598]: Package Authoring Error: <background_scaling> has an unsupported MIME type: X-NSObject/NSNumber
Nov 13 23:06:31 Mac-mini-2018 Installer[1598]: Package Authoring Error: <background_alignment> has an unsupported MIME type: X-NSObject/NSNumber
Nov 13 23:06:31 Mac-mini-2018 Installer[1598]: Package Authoring Error: <layout-direction> has an unsupported MIME type: X-NSObject/NSNumber
Nov 13 23:06:31 Mac-mini-2018 Installer[1598]: Failed to load specified background image
Nov 13 23:06:31 Mac-mini-2018 Installer[1598]: Could not load resource readme: (null)
Nov 13 23:06:43 Mac-mini-2018 Installer[1598]: ================================================================================
Nov 13 23:06:43 Mac-mini-2018 Installer[1598]: User picked Standard Install
Nov 13 23:06:43 Mac-mini-2018 Installer[1598]: Choices selected for installation:
Nov 13 23:06:43 Mac-mini-2018 Installer[1598]: Install: "fpc-macos-x86-64-laz"
Nov 13 23:06:43 Mac-mini-2018 Installer[1598]: Install: "fpc-macos-x86-64-laz"
Nov 13 23:06:43 Mac-mini-2018 Installer[1598]: ================================================================================
Nov 13 23:06:43 Mac-mini-2018 Installer[1598]: Configuring volume "macOS SSD"
Nov 13 23:06:43 Mac-mini-2018 Installer[1598]: Free space on "macOS SSD": 155.46 GB (155457888256 bytes).
Nov 13 23:06:43 Mac-mini-2018 Installer[1598]: Create temporary directory "/var/folders/dn/2kt85pb54pbf4yff9_62070m0000gp/T//Install.1598Zrixdd"
Nov 13 23:06:43 Mac-mini-2018 Installer[1598]: IFPKInstallElement (1 packages)
Nov 13 23:06:43 Mac-mini-2018 Installer[1598]: PackageKit: Enqueuing install with framework-specified quality of service (utility)
Nov 13 23:06:43 Mac-mini-2018 installd[1222]: PackageKit: ----- Begin install -----
Nov 13 23:06:48 Mac-mini-2018 installd[1222]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “fpc-3.0.4-macos-x86_64-laz.pkg”." UserInfo={NSFilePath=./postinstall, NSURL=file:///Users/will/Downloads/fpc-3.0.4-macos-x86_64-laz.pkg#fpc-macos-x86-64-laz.pkg, PKInstallPackageIdentifier=org.freepascal.pkg.fpc-macos-x86-64-laz, NSLocalizedDescription=An error occurred while running scripts from the package “fpc-3.0.4-macos-x86_64-laz.pkg”.} {
    NSFilePath = "./postinstall";
    NSLocalizedDescription = "An error occurred while running scripts from the package \U201cfpc-3.0.4-macos-x86_64-laz.pkg\U201d.";
    NSURL = "file:///Users/will/Downloads/fpc-3.0.4-macos-x86_64-laz.pkg#fpc-macos-x86-64-laz.pkg";
    PKInstallPackageIdentifier = "org.freepascal.pkg.fpc-macos-x86-64-laz";
}
Nov 13 23:06:48 Mac-mini-2018 Installer[1598]: Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.
Nov 13 23:06:48 Mac-mini-2018 Installer[1598]: IFDInstallController 33B2B80 state = 8
Nov 13 23:06:48 Mac-mini-2018 Installer[1598]: Displaying 'Install Failed' UI.
Nov 13 23:06:48 Mac-mini-2018 Installer[1598]: 'Install Failed' UI displayed message:'The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.'.
Title: Re: Lazarus Release 2.0.6
Post by: willbprog9933 on November 14, 2019, 08:16:29 am
What *exactly* are the problems, because I can not reproduce them...(I did not test cross- compilation yet)

It doesn't install.  That's a pretty big problem. :P
Title: Re: Lazarus Release 2.0.6
Post by: Thaddy on November 14, 2019, 10:22:51 am
Then why do I have it running? And Matthias too? (native, not a VM) Can you check at least your install.log
Quote
It doesn't install.  That's a pretty big problem. :P
on its own is not very helpful.

But maybe a case of https://blog.codinghorror.com/the-works-on-my-machine-certification-program/ :
Title: Re: Lazarus Release 2.0.6
Post by: mattias on November 14, 2019, 12:27:43 pm
Installing the latest FPC does not work.  It fails with the error: "Install failed. The installer encountered an error that caused the install to fail."

Note for others: This is not an official FPC release. I repackaged it using the x86-64 files from the FPC 3.0.4a release.

About:
...Nov 13 23:06:31 Mac-mini-2018 Installer[1598]: Failed to load specified background image
Nov 13 23:06:31 Mac-mini-2018 Installer[1598]: Could not load resource readme: (null)...

That's normal, I didn't specify a background image, nor a readme.

Did you run in a terminal before installing:
xcode-select --install
?

Mattias
Title: Re: Lazarus Release 2.0.6
Post by: laguna on November 14, 2019, 12:40:21 pm
Mattias, please test "Lazarus" in new machine with Catalina!

I installed  in new machine 
1) Catalina
2) XCode
3) Tools XCode
4) Down files Lazarus

This Errore when installed "Installing the latest FPC does not work"

Thanks
LaGuNa


Title: Re: Lazarus Release 2.0.6
Post by: mattias on November 14, 2019, 12:43:39 pm
Mattias, please test "Lazarus" in new machine with Catalina!

Where/how can I get a new machine?

I installed  in new machine 
3) Tools XCode

Did you do "xcode-select --install"?
Title: Re: Lazarus Release 2.0.6
Post by: willbprog9933 on November 14, 2019, 06:18:08 pm
Did you run in a terminal before installing:
xcode-select --install
?

In my case, yes.  I use the xcode command-line tools for other things, as well.
Title: Re: Lazarus Release 2.0.6
Post by: willbprog9933 on November 14, 2019, 06:19:26 pm
Note for others: This is not an official FPC release. I repackaged it using the x86-64 files from the FPC 3.0.4a release.

My attempt at installing came directly from SourceForge.  Did you post a link for a special package?

Thanks :)
Title: Re: Lazarus Release 2.0.6
Post by: laguna on November 15, 2019, 08:22:53 am
Mattias, please  view images attachments.

Thanks.
Title: Re: Lazarus Release 2.0.6
Post by: laguna on November 15, 2019, 10:11:53 am

I did it like this:

Download Release v1.6.4d of fpcupdeluxe-x86_64-darwin-cocoa.zip

this file not have permiss for excecute

cd  fpcupdeluxe-x86_64-darwin-cocoa.app/Contents/MacOS
sudo chmod +x fpcupdeluxe-x86_64-darwin-cocoa

run fpcupdeluxe-x86_64-darwin-cocoa.app   
but not correct show setting
abort run fpcupdeluxe-x86_64-darwin-cocoa.app   

open folder  fpcupdeluxe-x86_64-darwin-cocoa.app/Contents/MacOS
and run with mouse fpcupdeluxe-x86_64-darwin-cocoa

Run is OK

Setting in cross CPU x86_64  and in OS Darwin
finally install fpc stable version

(Lazarus not install of fpcudeluxe)

Lazarus install with source code
in catalina not write in /usr/lib
for write
sudo mount -uw /

sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/crt1.10.5.o  /usr/lib/crt1.10.5.o

cd fpcupdeluxe
mkdir lazarus
cd lazarus
svn checkout https://svn.freepascal.org/svn/lazarus/branches/fixes_2_0 laz_fixes
// wait some time ....
cd laz_fixes
make LCL_PLATFORM=cocoa CPU_TARGET=x86_64 bigide
// wait some time .....
open startlazarus.app --args "--pcp=~/.laz_fixes"

Running

LaGuNa

Title: Re: Lazarus Release 2.0.6
Post by: willbprog9933 on November 16, 2019, 05:44:50 am
I'm wondering -- why can't the macOS version just be completely packaged in a Lazarus.app bundle?  I mean, FPC, FPC-SRC and Lazarus all together in one app bundle, then it can just be dragged to the Applications folder instead of doing an install?  :)
Title: Re: Lazarus Release 2.0.6
Post by: mischi on November 16, 2019, 02:39:15 pm
Simply because no one had the time to fully port Lazarus from other unixoides and windows to macOS.
Title: Re: Lazarus Release 2.0.6
Post by: mattias on November 17, 2019, 07:41:37 pm
I'm wondering -- why can't the macOS version just be completely packaged in a Lazarus.app bundle?  I mean, FPC, FPC-SRC and Lazarus all together in one app bundle, then it can just be dragged to the Applications folder instead of doing an install?  :)

Theoretically you can create one FPCLaz bundle.

The reason is flexibility and keeping the number of FPC releases small, which helps reducing the confusion in the bug tracker and forums.
Normally Lazarus simply uses the FPC release and adds a FPCSrc and Lazarus package.
Many users install the FPC package and then use Lazarus trunk.
As the FPC team has not yet created a Catalina release yet I had to create one. The FPC 3.2 release will hopefully provide a macOS package for Catalina, which Lazarus can then use.
Title: Re: Lazarus Release 2.0.6
Post by: willbprog9933 on November 20, 2019, 07:38:08 am
As the FPC team has not yet created a Catalina release yet I had to create one. The FPC 3.2 release will hopefully provide a macOS package for Catalina, which Lazarus can then use.

I ended up just building trunk and using that. 

Note to everyone, you will most likely need to add the platform variable to the end of the make command for Catalina and possibly others, otherwise you'll get an error during compilation saying cocoabars.pp can't be made.  So following the instructions here (https://wiki.lazarus.freepascal.org/Installing_Lazarus_on_MacOS_X#Download_the_sources_via_svn), I ended up using this as my make command for Lazarus:

Code: Text  [Select][+][-]
  1. make bigide LCL_PLATFORM=cocoa

:D
Title: Re: Lazarus Release 2.0.6
Post by: Igor Kokarev on November 22, 2019, 09:00:44 am
I get error when try to compile any from my apps on macOS Catalina:

"ld: file not found: /usr/lib/crt1.10.5.o'

I already performed:
xcode-select --install"

I tried to add
Code: Pascal  [Select][+][-]
  1. -Fl/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/
but I have no permission to edit fpc.cfg
Title: Re: Lazarus Release 2.0.6
Post by: mattias on November 22, 2019, 09:22:44 am
"ld: file not found: /usr/lib/crt1.10.5.o'

Does your fpc.cfg contain
-XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
?
Title: Re: Lazarus Release 2.0.6
Post by: Igor Kokarev on November 22, 2019, 09:52:41 am
No, this line doesn't exist.

To my shame I cannot edit fpc.cfg in Catalina. No file rights.
Title: Re: Lazarus Release 2.0.6
Post by: mattias on November 22, 2019, 10:59:59 am
No, this line doesn't exist.

To my shame I cannot edit fpc.cfg in Catalina. No file rights.

Then you should ask the administrator to add the line.
Alternatively you can add the option in Lazarus as global option:
https://wiki.freepascal.org/IDE_Window:_Compiler_Options#Add_a_flag_to_all_projects_and_packages
Title: Re: Lazarus Release 2.0.6
Post by: Igor Kokarev on November 22, 2019, 11:17:42 am
I own this Macbook, just can't remember how to edit /etc/fpc.cfg - macOS doesn't allow modify this file.
Title: Re: Lazarus Release 2.0.6
Post by: Zvoni on November 22, 2019, 11:23:29 am
I own this Macbook, just can't remember how to edit /etc/fpc.cfg - macOS doesn't allow modify this file.
On a Terminal elevate yourself to superuser (su/sudo)?
On Linux i just do "sudo gedit /etc/fpc.cfg" with gedit being my Texteditor
Title: Re: Lazarus Release 2.0.6
Post by: mattias on November 22, 2019, 12:10:50 pm
I own this Macbook, just can't remember how to edit /etc/fpc.cfg - macOS doesn't allow modify this file.

Open Terminal
 sudo nano /etc/fpc.cfg
Title: Re: Lazarus Release 2.0.6
Post by: willbprog9933 on November 23, 2019, 02:08:56 am
"ld: file not found: /usr/lib/crt1.10.5.o'

Does your fpc.cfg contain
-XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk?

I have the same problem.  Everything was building fine then -- BOOM -- "ld: file not found: /usr/lib/crt1.10.5.o".  I *did* have the 'CommandLineTools' line in my fpc.cfg and they are installed, still no joy.

I've had enough of this monkey-business.  I give up on Lazarus on Mac.  I'm actually even selling my Mac because not being able to run Lazarus on it successfully was the last straw.  Now I will try building on FreeBSD and see what happens.
Title: Re: Lazarus Release 2.0.6
Post by: Igor Kokarev on November 23, 2019, 05:03:47 pm
I performed sudo nano /etc/fpc.cfg and added suggested option line.

Now Lazarus 2.0.6 works on macOS Catalina and compiles my apps.

Thanks!
Title: Re: Lazarus Release 2.0.6
Post by: Igor Kokarev on November 23, 2019, 05:13:51 pm
I compiled and installed manualdock.lpk with re-compilation of Lazarus. It was OK. Lazarus restarted and I enabled docked mode for messages.

However it was another duplicated copy of Lazarus. When I closed it and launched Lazarus as usually from Apps I didn't see any docked messages.

So it seems that re-compiled Lazarus in Catalina appears in another folder, and doesn't replace original files of Lazarus, as it was in Mojave.
Title: Re: Lazarus Release 2.0.6
Post by: Martin_fr on November 23, 2019, 05:49:51 pm
So it seems that re-compiled Lazarus in Catalina appears in another folder, and doesn't replace original files of Lazarus, as it was in Mojave.
Yes, it goes into the user conf folder.
There should be a startlazarus app that takes care of always starting the correct IDE.

Afaik, if you recompile as admin, you can update the global copy (for all users)
Title: Re: Lazarus Release 2.0.6
Post by: Igor Kokarev on November 24, 2019, 03:16:08 pm
Martin,

Thanks for your reply. It seems too complicated for me :)
I mainly have experience with Windows, not with Mac.

I'll use default Lazarus without any packages.

It would be great if Lazarus could include docking of windows (or at least manualdock) by default.
Title: Re: Lazarus Release 2.0.6
Post by: nouzi on December 25, 2019, 11:03:35 am
install lazarus 2.0.6 in last version  linux mint 19.3
thank lazarus/fpc   Team
Title: Re: Lazarus Release 2.0.6
Post by: young_nandy on January 19, 2020, 02:30:15 am
does this application now stop? because I saw the website has not been updated since launching version 2.0.6
Title: Re: Lazarus Release 2.0.6
Post by: jamie on January 19, 2020, 03:01:16 am
nope, its not stopped, its going very strongly... Working out the bugs for the next release  :D

Title: Re: Lazarus Release 2.0.6
Post by: Martin_fr on January 19, 2020, 03:11:21 am
nope, its not stopped, its going very strongly... Working out the bugs for the next release  :D
Did you mean "removing bugs"?

Or did you (as the smiley might suggest) indeed mean "working out" (i.e., "arranging for")?
Title: Re: Lazarus Release 2.0.6
Post by: PascalDragon on January 19, 2020, 09:58:36 am
does this application now stop? because I saw the website has not been updated since launching version 2.0.6

There is no new version currently as the next major version is being worked on, so there's no need to update the website.

nope, its not stopped, its going very strongly... Working out the bugs for the next release  :D
Did you mean "removing bugs"?

Or did you (as the smiley might suggest) indeed mean "working out" (i.e., "arranging for")?

Considering that we're talking about software both would be true: fixing old bugs and (accidentally) introducing new ones by adding new code.  :P
Title: Re: Lazarus Release 2.0.6
Post by: matthius on January 30, 2020, 11:56:42 am
Hello !

I am the initial programmer of Extended Man/XML Frames, framework wich began in 2003 in MICROCELT Enterprise service.

I use LINUX MINT and EMMABUNTUS on the same hard disk. tmp and home are in their own partitions.

Can anyone give proof that this is false for GNU LINUX OS :
https://archive.org/download/Oeufs/FPC%203.2%20for%20Lazarus%20Web%20and%20FPC%20for%20itself%20only%20for%20me%20so%20other%20is%20rubish.png

Thanks !
Title: Re: Lazarus Release 2.0.6
Post by: PascalDragon on January 31, 2020, 09:13:41 am
Can anyone give proof that this is false for GNU LINUX OS :

Proof for what? FPC 3.2 is not yet released. Lazarus supports FPC 3.2 as well as 3.0.x and 3.3.1. If you want to use FPC 3.2 you currently need to compile it yourself (or use FPCUpDeluxe as mentioned in that mail).

Sidenote: this is the wrong forum thread to ask this.
Title: Re: Lazarus Release 2.0.6
Post by: Paul_ on February 04, 2020, 10:36:14 pm
For first time I tried 64 bit version and there is some problem with recompiling IDE, it recompile IDE with new packages (e.g. anchordocking) but after new start nothing happend. It's same as previous. I also tried packages from online package manager, clean&build etc. No errors in output

In 32bit it's working fine.

(Windows 10 64bit)
Title: Re: Lazarus Release 2.0.6
Post by: Zvoni on February 05, 2020, 09:01:27 am
For first time I tried 64 bit version and there is some problem with recompiling IDE, it recompile IDE with new packages (e.g. anchordocking) but after new start nothing happend. It's same as previous. I also tried packages from online package manager, clean&build etc. No errors in output

In 32bit it's working fine.

(Windows 10 64bit)
sounds like using wrong "startlazarus"
Title: Re: Lazarus Release 2.0.6
Post by: Paul_ on February 21, 2020, 12:14:13 pm
Not sure where was problem, I reinstalled OS (for different reason) and now it's working.
Title: Re: Lazarus Release 2.0.6
Post by: Ñuño_Martínez on February 25, 2020, 11:38:14 am
I've updated Xubuntu to 19.10 and it includes this Release in the repository, but it doesn't allow to access to the configuration dialog via menu:  It returns an "Access violation" and asks to ignore the error or stop the program.

I've then uninstalled, downloaded from the website and installed again but problem remains.  I've also removed the configuration directory and still not work.

I can access to some parts of the configuration (i.e. Editor) using pop-up menu (i.e. right mouse button in the code editor).

I didn't found any bug about it.
Title: Re: Lazarus Release 2.0.6
Post by: Ñuño_Martínez on February 28, 2020, 11:14:29 am
Somebody tells me (in another thread (https://forum.lazarus.freepascal.org/index.php/topic,48681.msg350978.html#msg350978)) he doesn't understand, so I try to clarify:

Unless you're talking about Lazarus running in 19.10. Then I have only one issue (https://forum.lazarus.freepascal.org/index.php/topic,47269.msg350743.html#msg350743) with it (still not crashing though).
Yeah, I saw that post.  I was not sure what you meant by the "configuration dialog via menu", is that the dialog that pops up the first time you run a new install ?  I guess you installed from a deb, did you use the startlazarus command ?
No, I don't mean that.  I mean using menu "Tools>Options..." it raises the exception, but I can right-click in some parts (for example the source code editor) to access to part of the configuration.
Title: Re: Lazarus Release 2.0.6
Post by: del on March 22, 2020, 10:00:01 pm
Great results with Manjaro (Linux). I switched over to Manjaro and using its package manager (pamac-manager) was very easy. Lazarus version 2.0.6-2, and the Help-About in Lazarus said it was built today (2020-03-22). That's pretty current. And the Lazarus Online Package Manager installed BGRABitmapPack with no hiccups. This is the easiest install I've ever done!
Title: Re: Lazarus Release 2.0.6
Post by: Leledumbo on March 25, 2020, 05:56:19 pm
Great results with Manjaro (Linux). I switched over to Manjaro and using its package manager (pamac-manager) was very easy. Lazarus version 2.0.6-2, and the Help-About in Lazarus said it was built today (2020-03-22). That's pretty current. And the Lazarus Online Package Manager installed BGRABitmapPack with no hiccups. This is the easiest install I've ever done!
Lazarus maintainer in Manjaro team seems to be a saner person than the one in that more well known distro.
Title: Re: Lazarus Release 2.0.6
Post by: useroflazarus on March 30, 2020, 03:52:45 pm
Hello. When will the Lazarus 2.0.8 be released?
Title: Re: Lazarus Release 2.0.6
Post by: JuhaManninen on March 30, 2020, 04:13:04 pm
Hello. When will the Lazarus 2.0.8 be released?
Most probably never. The energy now goes towards the next major version, Lazarus 2.2, which will be branched around the time FPC 3.2 gets released. Then there will be release candidates before the actual release.

The current fixes_2_0 branch has still got some bug fixes. You can download and build it yourself. Lazarus is very easy to build once you have FPC installed in your computer.

[Edit] Now it seems Lazarus 2.0.8 may be released after all. I don't decide such things because it mostly depends on the people actually preparing the fixes branch and building it.
It means Mattias and Martin building for different platforms and Dmitry backporting many Cocoa fixes.
This is good news as Lazarus 2.2 is still far away.
Title: Re: Lazarus Release 2.0.6
Post by: mercurhyo on March 30, 2020, 04:53:44 pm
actualy v2.07 is the version I use. it installs when you select fixes 2.0 on fpcupdeluxe 1.6.8i
Title: Re: Lazarus Release 2.0.6
Post by: dbannon on March 31, 2020, 02:42:18 am
......
The energy now goes towards the next major version, Lazarus 2.2, which will be branched around the time FPC 3.2 gets released. Then there will be release candidates before the actual release.

And that prompts a question that has been nagging me for some time.  If we see a Lazarus 2.2.0 release, will it be based on Lazarus trunk or Lazarus fixes ?   While the process is clear in the minds of the developers, it would help people like me if it was a bit more transparent.  I have assumed every release is based on Fixes. But I see patches go into trunk that do not make it to fixes, that leaves me wondering if such patches are worthwhile ?

Davo

Title: Re: Lazarus Release 2.0.6
Post by: PascalDragon on March 31, 2020, 09:27:11 am
It's the same for both FPC and Lazarus: the last number of x.y.z is based on a fixes branch. The second number is a new branch that's branched from trunk. E.g. 2.0.0 was branched from Lazarus trunk back then and 2.0.2 is a fixes release based on that. Trunk then became 2.1. Now 2.2.0 will be branched from trunk as well and 2.2.2 will be based on that fixes branch (and trunk will then become 2.3).
Title: Re: Lazarus Release 2.0.6
Post by: JuhaManninen on March 31, 2020, 12:24:26 pm
If we see a Lazarus 2.2.0 release, will it be based on Lazarus trunk or Lazarus fixes ?   While the process is clear in the minds of the developers, it would help people like me if it was a bit more transparent.
It is completely transparent. Every trunk revision backported to fixes_2_0 branch is listed here :
 https://wiki.lazarus.freepascal.org/Lazarus_2.0_fixes_branch
There is also a web interface for the actual SVN sources:
 https://svn.freepascal.org/svn/lazarus/branches/fixes_2_0/

At the bottom of the "Lazarus_2.0_fixes_branch" wiki page you find "Other branches", listing the fixes branches for other release versions.
 https://wiki.lazarus.freepascal.org/Lazarus_0.9.30_fixes_branch
 https://wiki.lazarus.freepascal.org/Lazarus_1.0_fixes_branch
 https://wiki.lazarus.freepascal.org/Lazarus_1.2_fixes_branch
 https://wiki.lazarus.freepascal.org/Lazarus_1.4_fixes_branch
 https://wiki.lazarus.freepascal.org/Lazarus_1.6_fixes_branch
 https://wiki.lazarus.freepascal.org/Lazarus_1.8_fixes_branch

All backported revisions are listed. How would you make it more transparent?
Title: Re: Lazarus Release 2.0.6
Post by: dbannon on March 31, 2020, 02:23:38 pm
PascalDragon's answer made it clear to me.  Thanks PascalDragon.

Juha, thanks, I am sure the information I asked for is also in the wiki page you quote. Somewhere in that page....

(I have looked at that page from time to time, at no point did I come away with the information I asked about. But I am sure its there.)

Davo

Title: Re: Lazarus Release 2.0.6
Post by: JuhaManninen on March 31, 2020, 05:33:41 pm
Juha, thanks, I am sure the information I asked for is also in the wiki page you quote. Somewhere in that page....

(I have looked at that page from time to time, at no point did I come away with the information I asked about. But I am sure its there.)
The process itself is explained here :
 https://wiki.lazarus.freepascal.org/Lazarus_Development_Process
Many details are outdated but the actual process is remains the same.
TinyPortal © 2005-2018