Recent

Author Topic: Lazarus Release Candidate 3 for 2.0  (Read 103485 times)

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9754
  • Debugger - SynEdit - and more
    • wiki
Lazarus Release Candidate 3 for 2.0
« on: December 24, 2018, 11:32:30 am »
The Lazarus team is glad to announce the third release candidate of Lazarus 2.0.
  • This release was built with FPC 3.0.4.
  • The previous release Lazarus 1.8.4 was built with FPC 3.0.4 as well.

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

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

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

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

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

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, beta), qt and qt5 (32 or 64bit).

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

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/

Why should everybody (including you) test the release candidate?

In the past weeks the Lazarus team has stabilized the 2.0 fixes branch. The resulting 2.0RC3 is now stable enough to be used by any one for test purposes.

However many of the fixes and new features that where committed since the release of 1.8 required changes to the code of existing features too. While we have tested those ourself, there may still be problems that only occur with very specific configurations or one project in a million.

Yes, it may be that you are the only person with a project, that will not work in the new IDE. So if you do not test, we can not fix it.

Please do not wait for the final release, in order to test. It may be too late. Once the release is out we will have to be more selective about which fixes can be merged for further 2.0.x releases. So it may be, that we can not merge the fix you require. And then you will miss out on all the new features.

How to test

Download and install the 2.0 RC3.
In either case you should make backups. (including your primary config)

Open your project in the current Lazarus (1.8.x), and use "Publish Project" from the project menu. This creates a clean copy of your
project.

You can then open that copy in the RC3. Please test:
  • If you can edit forms in the designer
    • rename components / change properties in Object inspector / Add new events
    • Add components to form / Move components on form
    • Frames, if you use them
  • If you can navigate the source code (e.g. jump to implementation)
  • Auto completion in source code
  • Compile, debug and run
  • Anything else you use in your daily work



jc99

  • Hero Member
  • *****
  • Posts: 553
    • My private Site
Re: Lazarus Release Candidate 3 for 2.0
« Reply #1 on: December 24, 2018, 01:40:40 pm »
Great !
OS: Win XP x64, Win 7, Win 7 x64, Win 10, Win 10 x64, Suse Linux 13.2
Laz: 1.4 - 1.8.4, 2.0
https://github.com/joecare99/public
'~|    /''
,_|oe \_,are
If you want to do something for the environment: Twitter: #reduceCO2 or
https://www.betterplace.me/klimawandel-stoppen-co-ueber-preis-reduzieren

VTwin

  • Hero Member
  • *****
  • Posts: 1215
  • Former Turbo Pascal 3 user
Re: Lazarus Release Candidate 3 for 2.0
« Reply #2 on: December 24, 2018, 03:57:43 pm »
Excellent! Thanks to the Lazarus team for all the work on this.
“Talk is cheap. Show me the code.” -Linus Torvalds

Free Pascal Compiler 3.2.2
macOS 12.1: Lazarus 2.2.6 (64 bit Cocoa M1)
Ubuntu 18.04.3: Lazarus 2.2.6 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.2.6 (64 bit on VBox)

jwdietrich

  • Hero Member
  • *****
  • Posts: 1232
    • formatio reticularis
Re: Lazarus Release Candidate 3 for 2.0
« Reply #3 on: December 24, 2018, 05:43:56 pm »
A first test on macOS Mojave delivered excellent results. Thanks for your efforts!
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 2.2.6 | FPC 3.2.2 | PPC, Intel, ARM | macOS, Windows, Linux

Josh

  • Hero Member
  • *****
  • Posts: 1270
Re: Lazarus Release Candidate 3 for 2.0
« Reply #4 on: December 24, 2018, 10:06:31 pm »
Hi

Carbon I386, border is not shown in STRINGRID.

Place a stringgrid on a form, set its border style to bsSingle, in code set bordercolor and borderwidth to valid values and the border is not drawn.
On windows just setting borderstyle to bsSingle generates a border around grid.
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

VTwin

  • Hero Member
  • *****
  • Posts: 1215
  • Former Turbo Pascal 3 user
Re: Lazarus Release Candidate 3 for 2.0
« Reply #5 on: December 25, 2018, 05:42:44 am »
Is svn my best bet for running RC3 64 bit cocoa? I have successfully been running trunk 64 bit cocoa.

lazarus-2.0.0RC3-i686-macosx.dmg installs 32 bit carbon, and I'm having no luck trying to cross compile. I'm happy to subbmit bug reports to improve cocoa, but carbon is not really an option for me anymore.

Is it possible to create a 64 bit cocoa install package?

« Last Edit: December 25, 2018, 06:01:20 am by VTwin »
“Talk is cheap. Show me the code.” -Linus Torvalds

Free Pascal Compiler 3.2.2
macOS 12.1: Lazarus 2.2.6 (64 bit Cocoa M1)
Ubuntu 18.04.3: Lazarus 2.2.6 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.2.6 (64 bit on VBox)

VTwin

  • Hero Member
  • *****
  • Posts: 1215
  • Former Turbo Pascal 3 user
Re: Lazarus Release Candidate 3 for 2.0
« Reply #6 on: December 25, 2018, 05:50:38 am »
A first test on macOS Mojave delivered excellent results. Thanks for your efforts!

Are you compiling for 64 bit cocoa? If, so I'd appreciate any tips.
“Talk is cheap. Show me the code.” -Linus Torvalds

Free Pascal Compiler 3.2.2
macOS 12.1: Lazarus 2.2.6 (64 bit Cocoa M1)
Ubuntu 18.04.3: Lazarus 2.2.6 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.2.6 (64 bit on VBox)

dbannon

  • Hero Member
  • *****
  • Posts: 2778
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Release Candidate 3 for 2.0
« Reply #7 on: December 25, 2018, 10:45:20 am »
VTwin, is your question about Mojave specifically ?  I use Sierra and this works like a dream. I use fixes_2_0 which I am reliably informed is always at least as up to date as the RCs. I (conservatively) build a 32bit version of Lazarus and LCL and then, set it to produce 64bit cocoa apps. This assumes there is a functional fpc, 3.0.4 installed.

Code: Pascal  [Select][+][-]
  1. svn checkout https://svn.freepascal.org/svn/lazarus/branches/fixes_2_0
  2. cd fixes_2_0
  3. make CPU_TARGET=i386        -- or ---
  4. make LCL_PLATFORM=cocoa CPU_TARGET=x86_64
  5. open startlazarus.app --args "--pcp=~/.fixes_2_0"

I am not sure if the 64bit IDE build defaults to building 64bit apps or not, I always build using modes that specify widgetset AND cpu_target. Even if you don't use build modes, make sure you set BOTH cpu_target AND widgetset in Project Options, Compiler and Target.

Davo
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

salvadordf

  • New Member
  • *
  • Posts: 47
    • BriskBard
Re: Lazarus Release Candidate 3 for 2.0
« Reply #8 on: December 25, 2018, 10:51:09 am »
I installed RC3 in Linux Mint 19.1 and the "double key pressed" bug is gone! 

Great job!  :D
« Last Edit: December 25, 2018, 12:31:31 pm by salvadordf »
Maintainer of the CEF4Delphi, WebView4Delphi, WebUI4Delphi and WebUI4CSharp projects

Wallaby

  • Jr. Member
  • **
  • Posts: 78
Re: Lazarus Release Candidate 3 for 2.0
« Reply #9 on: December 25, 2018, 01:52:44 pm »
Is it possible to create a 64 bit cocoa install package?

Why not just take fpcupdeluxe and build Cocoa x64 from fixes2.0?

I got a relatively stable IDE by choosing FPC fixes3.2 and Lazarus fixes2.0.

VTwin

  • Hero Member
  • *****
  • Posts: 1215
  • Former Turbo Pascal 3 user
Re: Lazarus Release Candidate 3 for 2.0
« Reply #10 on: December 25, 2018, 06:59:18 pm »
Thanks dbannon & Wallaby. I will keep a 2.0 fixes branch, with fpc 3.0.4 for now. I'd like to stay synchronized with the stable installations on windows and linux as much as possible. Mohave is not presently an issue, except for my users on Mohave. I am still on El Capitan, and in no hurry to upgrade.

On macOS I had the stable 1.8.4 release, a trunk branch, and a 2.0 fixes branch. Using svn update on the 2.0 fixes branch updates me to 59910, which should follow dbannon's recommendation. The two branches are (were) both 64 bit cocoa.

Unfortunately, I am now getting warnings about fpc missing a config file, and not finding the x86_64 binaries. This was not a problem prior to installing RC3, and I have not made changes (that I am aware of) to fpc. 

fpc, run from the command line, is 3.0.4 [2017/11/26] for x86_64.

Any thoughts on how to address the new fpc issue?



« Last Edit: December 25, 2018, 07:17:19 pm by VTwin »
“Talk is cheap. Show me the code.” -Linus Torvalds

Free Pascal Compiler 3.2.2
macOS 12.1: Lazarus 2.2.6 (64 bit Cocoa M1)
Ubuntu 18.04.3: Lazarus 2.2.6 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.2.6 (64 bit on VBox)

Researching

  • Full Member
  • ***
  • Posts: 121
Re: Lazarus Release Candidate 3 for 2.0
« Reply #11 on: December 25, 2018, 09:44:01 pm »
How do you do!
Is there still a possibility of feature request?
1. File / project templates with external folder - to use it with different Lazarus versions at the same time.
2. Easier help navigation / m.b. make access to existing settings?
3. Export/import project/IDE settings (Create default user settings)
4. Set User Libraries folder
5. FunctionsSearcher - a tool to try finding an implementation of needed functions by *nameWildcard* inside a folder - full of soursecode.
6. horizontal view split in editor.

// And any advise appreciated: Where to get introduced with IDE internals, to change/compile the IDE source for Android/winMobile -- single window (MDI?) interface needed? (Yes, I want to have a minimal version with visual editor in my pocket.)
With respect,
Researching.

« Last Edit: December 25, 2018, 09:47:01 pm by Researching »

dbannon

  • Hero Member
  • *****
  • Posts: 2778
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Release Candidate 3 for 2.0
« Reply #12 on: December 25, 2018, 11:07:36 pm »
...
Unfortunately, I am now getting warnings about fpc missing a config file, and not finding the x86_64 binaries. This was not a problem prior to installing RC3, and I have not made changes (that I am aware of) to fpc. 

fpc, run from the command line, is 3.0.4 [2017/11/26] for x86_64.

Any thoughts on how to address the new fpc issue?
As I routinely compile a 'kit' pulled down from my github repo, I end up with the compiler set to fpc and usually (?) have to manually set it to ppcx64 if I am using the Lazarus IDE - from memory (my Mac is out of reach) its /usr/bin/ppcx64 but, obviously, thats depends on where yours is installed. I don't know why fpc (which just redirects to an appropriate compiler) does not work but I have just. sort of, got used to doing that.  My 'official' builds are done using a script from the command line and it does call ppcx64 directly.

Davo
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

VTwin

  • Hero Member
  • *****
  • Posts: 1215
  • Former Turbo Pascal 3 user
Re: Lazarus Release Candidate 3 for 2.0
« Reply #13 on: December 26, 2018, 01:00:40 am »
Thanks Davo,

I also have generally had to change the compiler settings when doing an install, but from ppc386 to fpc, which is the 64 bit compiler. So I am still puzzled.

The selected compiler (/usr/local/bin/fpu)  is 64 bit, and the two lazarus branches are built as x86_64-darwin. Both branches were working previously, but apparently I lost the fpu config file, and am not sure why, or how to fix it. 

I'll dig around for answers, but appreciate any suggestions.

Cheers,
VTwin   
“Talk is cheap. Show me the code.” -Linus Torvalds

Free Pascal Compiler 3.2.2
macOS 12.1: Lazarus 2.2.6 (64 bit Cocoa M1)
Ubuntu 18.04.3: Lazarus 2.2.6 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.2.6 (64 bit on VBox)

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9754
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Release Candidate 3 for 2.0
« Reply #14 on: December 26, 2018, 01:34:17 am »
Just in general / not sure if it applies to your issues

fpc  is a wrapper that will call the correct compiler depending on the target (cpu)

ppcx64 is for 64 bit
ppci386 is for 32 bit

If you want to be able to change targets in the ide, then the IDE must be configured with fpc as the compiler.

---
If you are looking for a config file, compile a simple program with -va

This will get lots of output ("copy all and original" in messages window). It will show every path that the compiler looked for any file.
Not all of them need to be present. But one fpc.cfg should be found.
There is fpcmcfg to generate one. But you need to google that.

 

TinyPortal © 2005-2018