Advice for Linux users. Some distros contain an older version of ld, that does not work well. If building hangs during linking please see http://forum.lazarus.freepascal.org/index.php/topic,31578.msg202509
By the way, I think it is a good time to change link "What's New" at Lazarus Homepagecommitted, will be uploaded soon
congrats to the new release
btw is this site http://www.getlazarus.org/ also yours? or are they fake?
I deleted the old ~/.lazarus directory and uninstalled Lazarus and FPC. I then installed Lazarus 1.6 with FPC 3.0.
It's a Debian system. I used the .deb packages.
Guys, are you aware of http://bugs.freepascal.org/view.php?id=29176 (http://bugs.freepascal.org/view.php?id=29176)? It's a pretty serious bug in fpc 3.0.0 IMO. I don't know if it affects Lazarus, like whether Lazarus uses dateutils from the FPC RTL but I think someone should make sure that this issue doesn't actually affect Lazarus. Just sayin'.
congrats to the new release
btw is this site http://www.getlazarus.org/ also yours? or are they fake?
GetLazarus is by no means fake, but a website by a Lazarus user. It is not the official website if that is what you mean.
It contains a lot of useful information and builds that are not yet in the official release.
But official releases are only from https://sourceforge.net/projects/lazarus/files/ .
Just installed and then tried a rebuild (to use my extra components)Same issue here:
which gives me this error:
Fatal: Kann sslsockets nicht finden verwendet von fphttpclient. Make sure all ppu files of a package are in its output directory. ppu im falschen Verzeichnis=D:\Dev\Lazarus\fpc\3.0.0\units\i386-win32\fcl-net\sslsockets.ppu..
RC2 worked without problems, so should I go back?
Problem was solved by making a CLEAN install of LNET 0.6.6 !
Same issue here:
fphttpclient.pp(285,6) Fatal: Cannot find sslsockets used by fphttpclient. Make sure all ppu files of a package are in its output directory. ppu in wrong directory=C:\lazarus\fpc\3.0.0\units\i386-win32\fcl-net\sslsockets.ppu..
http://forum.lazarus.freepascal.org/index.php/topic,31095.msg200779.html#msg200779 (http://forum.lazarus.freepascal.org/index.php/topic,31095.msg200779.html#msg200779)
This is not fixed in the release, it makes using Lazarus painful if I have to edit the library paths by editing the underlying files....
Jim
I just installed on OS X and giving it a spin. I can confirm this bug on OS X:
@JimKueneman
The same thing happens when trying to add a new image in the ImageList Editor. Clicking on "Add" opens the "Add Image" dialog, which locks up and requires a force quit.
This makes it impossible to add an icon to a toolbar. :(
Cheers,
VTwin
The same thing happens when trying to add a new image in the ImageList Editor. Clicking on "Add" opens the "Add Image" dialog, which locks up and requires a force quit.
Is there a snapshot of 1.4.4 sources somewhere that I can download to help debug what is different?
To anyone, it is possible to run the SVN version of Lazarus from within Lazarus?- Start trunk as a 2nd install using --primary-config-path=new_conf_dir
I would not try to compare with 1.4.4, despite only some month between the releases, the actual difference is about a full year.
1.4.4 only is on the 1.4 branch which was created a year ago, and the 1.4 branch only received a subset of all the changes made since.
I do not know if this is only my impression. But Lazarus 1.6 looks much faster.
I do not know if this is only my impression. But Lazarus 1.6 looks much faster.
Which part is faster? The startup got noticeably faster already in Lazarus 1.4.x when drawing the component palette was optimized.
The new compiler can make some difference in speed but it is not always faster.
Otherwise I don't know of any big speedups.
Hope this hasn't created much fuss from my side.
I would not try to compare with 1.4.4, despite only some month between the releases, the actual difference is about a full year.
1.4.4 only is on the 1.4 branch which was created a year ago, and the 1.4 branch only received a subset of all the changes made since.
You will need an svn client to get different sources from trunk (step by step / or intersecting, by going back half way since the branch, and then keep halfing).
For OS X users if you use ShowModal in any of your production code I would not use 1.6 yet, you may get some unhappy users.:o
I compared the Carbon Interface files for the show modal code and they are virtually identical between 1.4.4 and 1.6 so it has to be somewhere in the window class creation which I have not found where this is exactly.
Ok found the change that broke things
That was Ondrej's patch to fix popupparent behaviour, so pls open an issue about it. It's regression for carbon ws (and probably cocoa).
Style := Style and not Cardinal(WS_GROUP or WS_TABSTOP or WS_CHILD); if WndParent <> 0 then Style := Style or WS_CHILD;
Curiosity got the best of me. Downloaded the source and tried this. Yes this fixes it as well but I can see that could be an issue because CreateParams is for all windows. Somehow the LCL would need to know that the window is a Form and that it is going to created as a child of another Form before the Handle is created. I can image that is not something that is easy to do. Maybe in the ShowModal call the LCL can set the ParentHandle then recreate the Window Handle before it is shown?
I just don't know the LCL enough to understand the issues doing something like this would cause.
Jim
I don't know if this is an install issue, but I am now getting:
Error: unit not found: StrUtils
Apparently FPC can find find it, as the code compiles, but Lazarus can not. I'm puzzled. Any suggestions would be greatly appreciated.
Cheers,
VTwin
Check out that you have installed FPC source code and have correct directory (which points to FPC sources) in Tools->Options->Environment->Files->FPC source directory.
I don't mind running strip, but this seems like a bug.
Thanks Jim,
Hopefully someone with LCL and Carbon expertise can shed some additional light on this. I'll use the 1.4.4 patch for now. Thanks for tracking it down.
No. Should I? I don't use Norton or such.
Yes, Defender + Malwarebytes Anti-Malware at home, a commercial AVG at work. But I never noticed problems with those.
It's not a good upgrade, 1.2 .. 1.4.4 worked flawlessly.
The official fix that seem to work.
http://bugs.freepascal.org/view.php?id=29694 (http://bugs.freepascal.org/view.php?id=29694)
Jim
Thank you very much for this excellent release, I installed it with no problems on Windows 32 / 64 bit, and Linux (RPM) both i386 and x86_64.
I've found new Unicode model on Windows working very well and I've re-written of consequence platform-specific PeaZip code involving handling extended characters.
Thank you for keeping providing me the ideal development tool for my now ten years old project - I started writing it with Lazarus 0.9.10 and updated to 0.9.18 by the end of 2006!
Run without debugger still hasn't been implemented. :-\
Run without debugger still hasn't been implemented. :-\
No it hasn't. I don't see this in Lazarus. Delphi has this since version 1.
This is like essential for development.
http://www.atmel.com/webdoc/atmelstudio/images/debugmenu_StartWithoutDebugging.PNG
type
cTestClass = class(TPersistent)
protected
function getValue (Idx : Integer) : string; overload; virtual; abstract;
function getValue (const Key : string) : string; overload; virtual; abstract;
procedure setValue (Idx : Integer; Value : string); overload; virtual; abstract;
procedure setValue (const Key : String; Value : string); overload; virtual; abstract;
public
property Value [Idx : Integer] : string read getValue write setValue; {$IFNDEF FPC } default; {$ENDIF }
property Value [const Key : string] : string read getValue write setValue; default;
end;
You can access the properties like:var testClass : cTestClass;
testClass.Value['Hello'] := 'World';
testClass.Value[1] := 'Another value';
Classes that use overloaded array properties don't get compiled anymore. Lazarus now shows the error "Duplicate identifier.
...I can confirm this.
But if you change the window disposal you might get brokens desktops by changing between standard and debugging.
Even if you load an other desktop it doesn't help.
Only restarting the IDE helps the get the standard desktop back but changing to the debugging desktop breaks both desktops again.
I have attached screenshots and the xml files of my desktop right after creating and screenshots after changing to debug and back to standard mode.
Can someone confirm my error?
...I can confirm this.
But if you change the window disposal you might get brokens desktops by changing between standard and debugging.
Even if you load an other desktop it doesn't help.
Only restarting the IDE helps the get the standard desktop back but changing to the debugging desktop breaks both desktops again.
I have attached screenshots and the xml files of my desktop right after creating and screenshots after changing to debug and back to standard mode.
Can someone confirm my error?
Changing between debug- and standard result in a broken desktop.
Restarting the IDE was the only thing what helped me too.
My solution: Don't use the debug-desktop ...
My conclution: AnchorDockingDsgn 0.5 still needs a LOT of work before getting a 1 before the point.
I don't share your conclusion. It is the only bug left in AnchorDocking that I am aware about: http://mantis.freepascal.org/view.php?id=29200Agreed. Without tabbed docking everything works as expected. Attached is my config if any of you wants to test.
Don't dock to tabs and you are good to go.
...I can confirm this.
But if you change the window disposal you might get brokens desktops by changing between standard and debugging.
Even if you load an other desktop it doesn't help.
Only restarting the IDE helps the get the standard desktop back but changing to the debugging desktop breaks both desktops again.
I have attached screenshots and the xml files of my desktop right after creating and screenshots after changing to debug and back to standard mode.
Can someone confirm my error?
Changing between debug- and standard result in a broken desktop.
Restarting the IDE was the only thing what helped me too.
My solution: Don't use the debug-desktop ...
My conclution: AnchorDockingDsgn 0.5 still needs a LOT of work before getting a 1 before the point.
I don't share your conclusion. It is the only bug left in AnchorDocking that I am aware about: http://mantis.freepascal.org/view.php?id=29200
Don't dock to tabs and you are good to go.
Agreed. Without tabbed docking everything works as expected. Attached is my config if any of you wants to test.Wow, without tabs it's much better, but it's a pain to arrange everything ...
luca, please report it to the bugtracer.
I have found another strange thing using function CopyDirTree in fileutil.
I think that Items.clear should reset to -1 FLastClickedItemIndex.
I build Lazarus 1.6 with fpc 2.6.4 (linux)
it's wrong way?
var
hFindFile : THandle;
SearchRec : TSearchRec;
..
hFindFile := FindFirstUTF8( PathUTF8 + '*.*', faAnyFile, SearchRec);
.. still works fine. ShowMessage( SearchRec.Name +#13
+UTF8ToSys( SearchRec.Name)+#13
+UTF8ToConsole( SearchRec.Name));
do ALL deliver UTF8 strings (shown as valid UTF8 strings in this MessageBox)I then fail on converting this string to a SYS string as requested by the next steps
UTF8ToSys() does not give back a valid Windows Sys string
in case I have (for example) one of the letters Ä Ö Ü ä ö ü ß in the folder name.
What is the problem? The string encoding is UTF-8 just like it should be.
In ListView the Icon is found.
In TreeView not .. :-(
Icon? I thought the problem was with filenames.
The problem is SHGetFileInfo()? I don't know why you give only small drops of information each time. Maybe it feels funny for you.I don't want to upset anybody. Not You, not anybody else.
Quality release! Why would anyone spend a ludicrous $5000+ dollars on Delphi in a world where Lazarus exists? For a bunch of mediocre database backends that no one uses? I mean, come on, FireDAC? In 2016? Give me a break! Keep up the good work and you might just put Embarcadero out of business. ;)
If you want to add packages, you'll need to recompile Laz and this needs FPC 3.
Lazarus 1.6 can still be built with fpc 2.6.4.So what is a correct answer? :) . If I install 1.6 and go to Tools -> Build Lazarus then it will be rebuild with my FPC 2.6.4?
Bart
On a 64-Bit-Windows, shall I use the win64 version now ?
And it still builds 32-bit-exe-files per default ?
And it still builds 32-bit-exe-files per default ?
If 1.6 cannot be built with fpc 2.6.4 the this is a bug and it should be fixed.Tried install Lazarus 1.6 DEB package but dependency is FPC >=3.0.0 and can't install it by ubuntu package manager
Bart
Tried install Lazarus 1.6 DEB package but dependency is FPC >=3.0.0 and can't install it by ubuntu package manager
That does not mean it cannot be built with 2.64.
Better ask on mailing list wether this (require fpc >= 3.0.0) is indeed a bug.
Where I can download last version of sources of Lazarus? I found link https://sourceforge.net/p/lazarus/code/HEAD/tree/, but recent changes have been made 2013-05-29...From the svn server (http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/?root=lazarus), or in case that doesn't ring a bell, from the ftp site (http://ftp://ftp.freepascal.org/pub/lazarus/snapshots/).
From the svn server (http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/?root=lazarus), or in case that doesn't ring a bell, from the ftp site (http://ftp://ftp.freepascal.org/pub/lazarus/snapshots/).thanks :)
^^ i am not going to fight this stupidity forum software anymore. figure out the correct ftp link yourself please.
program ArithmeticFunction;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Classes
{ Arithmetic Standard Functions};
CONST
Pi = 3.14159;
begin
Writeln('SQR(3) : ', SQR(3)); {Power of 2}
Writeln('SQR(3) * 3 : ', SQR(3) * 3); {Power of 3}
Writeln('SQR(SQR(3)) : ', SQR(SQR(3))); {Power of 4}
Writeln('SQR(2.5) : ', SQR(2.5) :0:2);
Writeln('SQRT(16) : ', SQRT(16) :0:2);
Writeln('ABS(-45.65) : ', ABS(-45.65) :0:2);
Writeln('LN(EXP(1) : ', LN(EXP(1)) :0:2);
Writeln('ARCTAN(1) : ', ARCTAN(1) * 180/Pi :0:0, ' degrees');
Writeln('FRAC(8.22) : ', FRAC(8.22):2:2); { Fractional function}
Writeln('INT(8.22) : ', INT(8.22):2:2); {Fractional function}
Writeln(RANDOM:2:2);
Writeln(RANDOM(5));
Readln;
end.
Please Friends, I have uninstalled the old Lazarus IDE - 1.4.2 and downloaded the latest IDE, also have installed it. As a newbie and still learning the language by using the IDE; on the old one - Lazarus IDE 1.4.2, I have some tutorial questions or DIY assignment program from a book am learning from as the book do give some questions at the end of every chapter. After I have installed the new version 1.6.0, I tried to continue with the tutorial but I realized that compiling and running a program from the 1.6.0 version fails, went back to the old programs I have written before and tried to open anyone of them, none could compile and run, the "begin.... end." statement is what is highlighted as the error and I don't know why. If you guys don't mind me posting a simple DIY program done by me:Code: [Select]program ArithmeticFunction;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Classes
{ Arithmetic Standard Functions};
CONST
Pi = 3.14159;
begin
Writeln('SQR(3) : ', SQR(3)); {Power of 2}
Writeln('SQR(3) * 3 : ', SQR(3) * 3); {Power of 3}
Writeln('SQR(SQR(3)) : ', SQR(SQR(3))); {Power of 4}
Writeln('SQR(2.5) : ', SQR(2.5) :0:2);
Writeln('SQRT(16) : ', SQRT(16) :0:2);
Writeln('ABS(-45.65) : ', ABS(-45.65) :0:2);
Writeln('LN(EXP(1) : ', LN(EXP(1)) :0:2);
Writeln('ARCTAN(1) : ', ARCTAN(1) * 180/Pi :0:0, ' degrees');
Writeln('FRAC(8.22) : ', FRAC(8.22):2:2); { Fractional function}
Writeln('INT(8.22) : ', INT(8.22):2:2); {Fractional function}
Writeln(RANDOM:2:2);
Writeln(RANDOM(5));
Readln;
end.
THE ERROR MESSAGE BELOW:
Compile Project, Target: ArithmeticFunction.exe: Exit code 1, Errors: 13
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol PASCALMAIN
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol main
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol INITFINAL
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol FPC_THREADVARTABLES
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol FPC_RESOURCESTRINGTABLES
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol FPC_WIDEINITTABLES
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol FPC_RESSTRINITTABLES
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol __heapsize
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol __fpc_valgrind
ArithmeticFunction.pas(27,1) Error: Multiple defined symbol $unwind$main
ArithmeticFunction.pas(27,1) Error: Undefined symbol: IID_$TYPES_$$_ISTREAM
ArithmeticFunction.pas(27,1) Error: Undefined symbol: IIDSTR_$TYPES_$$_ISTREAM
ArithmeticFunction.pas(27,1) Error: Undefined symbol: RTTI_$TYPES_$$_ISTREAM
Please, I need someone, anyone to help me rectify this bug. Thanks and God bless
primary-config-path=
is where your config is stored. How do I config Lazarus 1.6 so this dialog (see attachments) will be back?
The Lazarus team is glad to announce the release of Lazarus 1.6.
This release was built with FPC 3.0.0.
The previous release Lazarus 1.4.4 was built with FPC 2.6.4.
Can U tell me a hopefully date when version 1.7 would be released ?
I am waiting that very much :)
Historically at least from my observations FPC releases are a pretty long time coming.Now FPC 3.0.2 is taking exceptionally long. Last time I asked in April or early May they were just about to release but it still has not happened at late September.
Now FPC 3.0.2 is taking exceptionally long. Last time I asked in April or early May they were just about to release but it still has not happened at late September.
I believe they have their reasons. Many things had been merged etc.
It will be a good release once it comes out.
There will be release candidates for us to test right ?
Can somebody say when approximately may be released 1.8 RC1 ?Not anytime soon. It was not planned or discussed yet. There is some interesting development that must stabilize first.
Mainly interesting "not earlier than ..."
Can somebody say when approximately may be released 1.8 RC1 ?Not anytime soon. It was not planned or discussed yet. There is some interesting development that must stabilize first.
Mainly interesting "not earlier than ..."
I would say "not earlier than summer 2017".
On the other hand there will hopefully be many dot releases for 1.6 before that (1.6.4, 1.6.6 ... ?).
Will the next dot releases be based on FPC 3.0.2 (assuming it's released soon enough) ?Of course, but don't assume anything. FPC 3.0 was released well over a year ago but still no dot release ...
I'd like to release a new version of Coedit but unfortunately I've switched to FPC 3.0.2 as the minnimal compiler version required. Also I have to wait for a new official Laz version that would fix a clipboard problem with the GTK widgetset...In fine I start wondering if I haven't shoot myself in the foot (e.g if next Laz version includes the fix but not FPC 3.0.2 that's bad for my plans)...Revisions merged to Lazarus 1.6 fixes branch are listed here:
Revisions merged to Lazarus 1.6 fixes branch are listed here:The fix I'm intereseted by is merged, that's already that. :D
http://wiki.freepascal.org/Lazarus_1.6_fixes_branch