Lazarus

Announcements => Lazarus => Topic started by: Martin_fr on July 01, 2017, 01:25:03 am

Title: Lazarus Release Candidate 3 of 1.8
Post by: Martin_fr on July 01, 2017, 01:25:03 am
The Lazarus team is glad to announce the third release candidate of Lazarus 1.8.

This release was built with FPC 3.0.2.
The previous release Lazarus 1.6.4 was built with FPC 3.0.2 too.
The Linux releases are built with FPC 3.0.3 r36408 due to bug
https://bugs.freepascal.org/view.php?id=31629

Here is the list of fixes for Lazarus 1.8.x:
http://wiki.freepascal.org/Lazarus_1.8_fixes_branch

Here is the list of changes for Lazarus and Free Pascal:
http://wiki.lazarus.freepascal.org/Lazarus_1.8.0_release_notes
http://wiki.lazarus.freepascal.org/User_Changes_3.0.2

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

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

Checksums for the SourceForge files:
http://www.lazarus-ide.org/index.php?page=checksums#1_8_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, not stable), qt and qt5 (32 or 64bit).

The svn tag is
http://svn.freepascal.org/svn/lazarus/tags/lazarus_1_8_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 1.8 fixes branch. The resulting 1.8RC3 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.6 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 1.8.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 1.8 RC3.
- On Windows you can install as a 2ndary install, that will not affect your current install:
  http://wiki.lazarus.freepascal.org/Multiple_Lazarus#Installation_of_multiple_Lazarus
- On other platforms, if you install to a new location you need to use --primary-config-path

In either case you should make backups. (including your primary config)

Open your project in the current Lazarus (1.6.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

Title: Re: Lazarus Release Canditate 3 of 1.8
Post by: fred on July 01, 2017, 04:44:43 pm
Nice! thanks to the Lazarus team! downloaded...  8)
Title: Re: Lazarus Release Canditate 3 of 1.8
Post by: lainz on July 01, 2017, 04:59:36 pm
The autocomplete hits again, "Canditate" in title.
Title: Re: Lazarus Release Canditate 3 of 1.8
Post by: mdbs99 on July 01, 2017, 06:41:50 pm
Congratulations! Good job!
Title: Re: Lazarus Release Canditate 3 of 1.8
Post by: mogenslarsen on July 02, 2017, 07:12:13 am
It looks weird on UHD laptops.
My notebook has a 3840x2160 display. So I use 300% scaling (otherwise all texts and icons are extremely tiny). Most applications are either DPI-aware (and do OK when scaling) or DPI-unaware (and Windows 10 itself automatically scales them).
The Lazarus IDE claims DPI-aware itself. It mostly scales 300% indeed, but, for example, the Object Inspector is only partially 300% scaled.

You don't need to have UHD display to see these distorted things. Simply temporally change the scaling from 100% to 300% (or 150%, 200%) on a regular 1280x720 (or 1920x1080) display before launching the Lazarus IDE.

Here is a screenshot (I have cut off the bottom part of the image to fit the 250 Kb limit):
Title: Re: Lazarus Release Canditate 3 of 1.8
Post by: wp on July 02, 2017, 10:11:15 am
Why don't you resize the main Lazarus windows as well as the Object Inspector to be usable? During installation did you erase your profile? Does Lazarus come up with these sizes if you start from a clean user profile, normally in c:\users\<user name>\appdata\local\lazarus, or the directory specified in lazarus.cfg. Temporarily rename this directory and restart Lazarus to have default settings. After you have set up window sizes correctly store the Lazarus desktop (last icon in the first row, or "Tools" > "Desktops").
Title: Re: Lazarus Release Canditate 3 of 1.8
Post by: ASwedans on July 02, 2017, 11:09:21 am
thank you. downloading...
Title: Re: Lazarus Release Canditate 3 of 1.8
Post by: mogenslarsen on July 02, 2017, 01:37:10 pm
Thank you for your reply.
I have downloaded and installed Lazarus onto my new UHD laptop first time (from a clean user profile). Before that, I used Lazarus with my old 1200x800 without any size problem.

After I resized all the IDE windows and the columns in the Object Inspector window, the appearance of the IDE became much better. However, as you can see on the screenshot, some icons remained tiny on my laptop. By the way, the "resize cursor" for moving the columns boundary is tiny too, so the columns resizing was a funny aiming exercise.

Title: Re: Lazarus Release Canditate 3 of 1.8
Post by: Ondrej Pokorny on July 02, 2017, 02:14:05 pm
However, as you can see on the screenshot, some icons remained tiny on my laptop. By the way, the "resize cursor" for moving the columns boundary is tiny too, so the columns resizing was a funny aiming exercise.

Please report to mantis: mantis.freepascal.org (http://mantis.freepascal.org). Thanks.
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: ahiggins on July 03, 2017, 11:43:01 am
Great work as always. Thank you  :)
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: bobihot on July 05, 2017, 10:04:18 pm
On Linux Mint 17.3 x64 give me error in rtl/linux/system.pp - is missing and can not compile. on 1.8RC2 was not problem. I returning and compiling. The same was with 1.8RC1. I think not give permition to access this file?
On 1.8RC2 was give this err, but compile.
Edit:
Compile only empti form. When have some component(s) again give error, that can not find? I give path manualy (the same) and not difference.
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: jc99 on July 05, 2017, 11:49:29 pm
Great work as always. Thank you  :)
+1
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: JuhaManninen on July 05, 2017, 11:50:22 pm
@bobihot, you attached a screenshot showing that your FPC source path is wrong as indicated by the red graph. Just remove the last 2 parts, "rtl/linux/".
The setting should not affect compilation though, it is only used by the IDE.
The problem is not caused by 1.8RC3, you have screwed the installation or settings somehow.
Title: Re: Lazarus Release Canditate 3 of 1.8
Post by: michaelthuma on July 06, 2017, 03:45:44 pm
Apart from that. Simply use a different resolution. I do have such a laptop too.

My notebook has a 3840x2160 display.
Title: Package IndustrialStuff no more available ?
Post by: Jurassic Pork on July 08, 2017, 03:18:11 am
hello,
First thanks for this new release 1.8RC3 !
In the folder components of this release (linux - lazarus-project_1.8.0RC3-0_amd64.deb) there is an industrialStuff folder but with only folders (no file). Is it normal ?
I have tried to install the package industrialStuff of the Lazarus CCR , it 's OK.
Friendly, J.P
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: Eugene Loza on July 08, 2017, 04:10:09 am
Thanks a lot!!!  :D
Installed at Debian Jessie 64, everything is working. IDE rebuilds perfectly.
This issue still persists: http://forum.lazarus.freepascal.org/index.php/topic,37128.msg249998.html#msg249998 (however, it's not anywhere near being important).
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: JuhaManninen on July 08, 2017, 11:10:27 am
This issue still persists: http://forum.lazarus.freepascal.org/index.php/topic,37128.msg249998.html#msg249998 (however, it's not anywhere near being important).
Yes, you must choose between the 2 bugs. Choose the one that bothers you less.
You can also use QT bindings which has no such bugs.
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: Eugene Loza on July 08, 2017, 11:12:25 am
Yes, you must choose between the 2 bugs. Choose the one that bothers you less.
Yes, as I've already written, it's no problem at all at the moment. Just a note.
Title: Re: Package IndustrialStuff no more available ?
Post by: JuhaManninen on July 08, 2017, 11:31:38 am
In the folder components of this release (linux - lazarus-project_1.8.0RC3-0_amd64.deb) there is an industrialStuff folder but with only folders (no file). Is it normal ?
Is it there right after a clean installation? It should not be.
If you start a Lazarus binary with IndustrialStuff already installed, it may create the directory.

Quote
I have tried to install the package industrialStuff of the Lazarus CCR , it 's OK.
Yes, it was moved to CCR.
Title: Re: Package IndustrialStuff no more available ?
Post by: Jurassic Pork on July 08, 2017, 11:43:05 am
hello
In the folder components of this release (linux - lazarus-project_1.8.0RC3-0_amd64.deb) there is an industrialStuff folder but with only folders (no file). Is it normal ?
Is it there right after a clean installation? It should not be.
If you start a Lazarus binary with IndustrialStuff already installed, it may create the directory.
thanks for the answer. Yes it's after a clean install but also after a not clean uninstall of an older version (hard way -> in french "à l'arrache")  :-[   .
Friendly, J.P
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: jc99 on July 08, 2017, 06:28:45 pm
Is it something new ?
I just clicked on a Drop-Down box, a accidentally moved the scroll-wheel.
Result :
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: T-Khan on July 10, 2017, 03:09:50 pm
That's a really nice work done in 1.8, but... Several default components, such as TPageControl, TEditButton, TComboBoxEx, still don't support Hi-DPI in terms that they do nothing with images I put inside them. For now, only TImage actually has some new properties for stretching. Is this planned to change in some future releases?
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: wp on July 10, 2017, 07:50:05 pm
Look at the attached project. It contains some experimental code of a TScaledImageList. The basic idea is as follows:
Now, when the program starts the ScaledImageList compares the current ppi with the BasePixelsPerInch, selects the imagelist for which the image size is closest to the scaled BaseWidth/BaseHeight. If an imagelist is found to match within some tolerance (10% ATM) its images are copied into the ScaledImageList. If not then the images of that best-matching imagelist are stretchdrawn into the ScaledImageList.

If, for example, the three image lists contain 16x16, 24x24 and 32x32 pixel icons, BaseWidth and BaseHeight are 16 and BasePixelsPerInch is 96, and the program runs on a 144 ppi screen (150%) then the 24x24 images will be selected. If the programs runs on a 96 ppi screen (100%), then the 16x16 images will be selected. On a 300% screen the 32x32 icons will be extrapolated to 48x48. The quality of the extrapolation (and interpolation if no match is found between the input sizes) depends on the pixel interpolation method which can be controlled by means of the corresponding property - it selects one of the methods provided by fpc in fp-image.
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: ASwedans on July 17, 2017, 11:55:35 am
thank you very much.

when will you release the stable 1.8.0 ?
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: M+AUDIO on July 17, 2017, 01:45:28 pm
Look at the attached project. It contains some experimental code of a TScaledImageList. The basic idea is as follows:
  • Put the same images into up to three imagelists of different sizes, eg. 16x16, 24x24, and 32x32 pixels. Attach these image lists to the SmallImages, MediumImages and LargeImages of the TScaledImageList.
  • Then you decide in which image size you are designing. Usually the menu images are 16x16 pixels at standard resolution of 96ppi. So, you specifiy BaseWidth and BaseHeight to be 16, and BasePixelsPerInch to be 96.
  • Link the ScaledImageList to the Images property of the control needing the images.
Hi,
Talking about Glyph's,
Someday I came up with the same idea, but not as far as you (screenshot attached). sure it works.
But, exporting with different DPI's in the first place consumes a lot of time. Especially when there are lots of glyph's.
Cant't standard TImageList have those scaling abilities built-in? so we can have our ImageList with our hi-res data stored, and then the ImageList provides a well down-scaled copy of it at runtime without affecting original data?
 
My wish list:
It would be very nice If there was a TVectorImageList or TVecorGlyphList etc with methods to get its vectors in bitmap at desired size. and even possibly retouch them (hue, brightness, contrast etc).

btw, Where can I find unit ScaledImageList used by your example project? I'm using trunk. thanks.
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: T-Khan on July 17, 2017, 03:58:58 pm
On higher DPIs TEditButton grows wrong. On 200% total width (Button + Edit) is OK but Button itself grows twice of size it needed to be (therefore Edit becomes narrower than needed).
P.S. Probably should report this to Mantis.
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: RAW on July 17, 2017, 10:27:09 pm
Hi, I don't know if this is the right place, but I get an error only in LAZARUS RC3 FPC 3.0.2.
SIGSEGV only in DEBUG mode, no problem if set to RELEASE mode and only if I click on the bitmap-window (layered window).
I need somebody who can read ASM...  :)

If I use LAZARUS 1.6.4. FPC 3.0.2 then there is no problem at all (RELEASE and DEBUG mode).

BTW: I used BGRABitmap 9.5 github master..
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: howardpc on July 17, 2017, 10:33:13 pm
The CallStack debug window (Ctrl-Alt-S) would give you more useful information - hopefully the line number of the offending procedure, so you can single-step and watch values etc.
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: wp on July 17, 2017, 10:48:17 pm
On higher DPIs TEditButton grows wrong. On 200% total width (Button + Edit) is OK but Button itself grows twice of size it needed to be (therefore Edit becomes narrower than needed).
P.S. Probably should report this to Mantis.
Yes, please.
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: RAW on July 17, 2017, 10:54:06 pm
Thanks @howardpc... right now it works as it should, I didn't use the second boolean var, but it's strange though...
If I use "Assigned" instead then everything is fine...

Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: d.oertel on July 18, 2017, 06:28:45 pm
Thank to all -
I have a highDPI problem (Bug) with 1.8RC3 here:
steps to reproduce:
1. create a new application
2. in project options set :
- 'use LCL scaling'
- use manifest (with dpiawareness= on)
compiling and run on a non hihghDPI win10 works fine
The same on a HighDPI win8.1 gives a sigsev Exceptiion while creating the form

Any Ideas ?
More information needed ?

cheers
d.oertel
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: Ondrej Pokorny on July 18, 2017, 06:42:29 pm
The same on a HighDPI win8.1 gives a sigsev Exceptiion while creating the form

Any Ideas ?
More information needed ?

Yes. A stack trace.

Does the error occur as well if you disable 'use LCL scaling' but keep manifest?
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: balazsszekely on July 18, 2017, 06:59:54 pm
@d.oertel
Yes. A stack trace.
http://wiki.freepascal.org/Creating_a_Backtrace_with_GDB
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: JuhaManninen on July 18, 2017, 07:07:47 pm
when will you release the stable 1.8.0 ?
When it is ready.  :)
There may be another RC, too, because the compiler version will be updated. Let's see.
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: d.oertel on July 19, 2017, 11:00:58 am
@Ondrej Pokorny

Quote
Does the error occur as well if you disable 'use LCL scaling' but keep manifest?
No - than the Application starts.

Stack Trace will come tomorrow (out of office today).
The error occur after finishing the fCreateForm Event and before the showForm Event.
cheers
d.oertel
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: d.oertel on July 20, 2017, 11:01:26 am
@Ondrej Pokorny

Here comes the stack trace:
#0 ?? at :0
#1 TWIN32WIDGETSET__GETDPIFORMONITOR(65537, MDT_EFFECTIVE_DPI, 210, 524, <error reading variable>) at win32winapi.inc:1889
#2 TMONITOR__GETPIXELSPERINCH(<error reading variable>) at .\include\monitor.inc:34
#3 TCUSTOMFORM__AFTERCONSTRUCTION(<error reading variable>) at .\include\customform.inc:162
#4 TFORM__CREATE(0x252c68, 0xffffffff, <error reading variable>) at .\include\customform.inc:3128
#5 TAPPLICATION__CREATEFORM(<incomplete type>, <error reading variable: Attempt to dereference a generic pointer.>, <error reading variable>) at .\include\application.inc:2206
#6 main at highdpitest.lpr:19


the code line is the GetDpiForMonitor call in win32winapi.inc:
Code: Pascal  [Select][+][-]
  1. function TWin32WidgetSet.GetDpiForMonitor(hmonitor: HMONITOR; dpiType: TMonitorDpiType; out dpiX: UINT; out dpiY: UINT): HRESULT;
  2. begin
  3.   if WindowsVersion >= wv8_1 then
  4.     Result := Win32Int.GetDpiForMonitor(hmonitor, dpiType, dpiX, dpiY)
  5.   else
  6.     Result := S_FALSE;
  7. end;  

The machine is a win 8.1 Pro 64 Bit. Program compield to 32 Bit Binary.
If you interested i can give you test results from the same Hardware but with
win10 or win7.
Can I give any more information ?

@GetMem:
Thanks for the Link

d.oertel
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: Ondrej Pokorny on July 20, 2017, 11:49:06 am
Hmm GetDPIForMonitor is said to be supported since 8.1: https://msdn.microsoft.com/de-de/library/windows/desktop/dn280510(v=vs.85).aspx
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: d.oertel on July 20, 2017, 01:10:53 pm
@Ondrej Pokorny

Here comes the stack trace compiled as win64 same machine):
#0 ?? at :0
#1 XGETDPIFORMONITOR(65537, MDT_EFFECTIVE_DPI, 524, 524) at win32int.pp:318
#2 GETDPIFORMONITOR(0x12edd40, 65537, MDT_EFFECTIVE_DPI, 524, 524) at win32winapi.inc:1889
#3 GETPIXELSPERINCH(0x1285940) at include\monitor.inc:34
#4 AFTERCONSTRUCTION(0x12d1a30) at include\customform.inc:162
#5 CREATE(0x12d1a30, 0xffffffffffffffff, 0x1295f30) at include\customform.inc:3128
#6 CREATEFORM(0x1295f30, 0x10019f508, 0) at include\application.inc:2206
#7 main at highdpitest.lpr:19


By the way: the cross-compiling add-on packages for 32 or 64 Bit both do not work
out of the box for me: I alway get a 'The current FPC has no config file' Error.

cheers
d.oertel
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: michaelthuma on July 24, 2017, 12:29:58 pm
Works great so far

The Lazarus team is glad to announce the third release candidate of Lazarus 1.8.
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: wp on July 24, 2017, 01:03:45 pm
My wish list:
It would be very nice If there was a TVectorImageList or TVecorGlyphList etc with methods to get its vectors in bitmap at desired size. and even possibly retouch them (hue, brightness, contrast etc).

btw, Where can I find unit ScaledImageList used by your example project? I'm using trunk. thanks.

ScaledImageList has not been published so far, just use the attached source in the post above. If you only attach a single image list to the ScaledImageList then the images are still extrapolated to the size that you need. Just run the demo in the post above, uncheck the 24x24 and 32x32 image sizes and enter 32 in the "Size needed" box. This means that you provide only and 16x16 images but need them at 32x32.  You'll see in the list box that the size increases to 32. Of course, the image quality is reduced - check 32x32 to see the difference. You could try a different interpolation method, but in many cases the default ("sharp") is the best option.

As far as I know there are no plans for a VectorImageList. The main reason is that there is no svg reader available within Lazarus/fpc libraries.
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: Fred vS on August 01, 2017, 12:44:51 pm
Hello.

Do you have plan to give a zipped version of Lazarus for Linux (not a DEB file, a zip like fpc does) ?
This because using DEB file gives lot of problem with Linux Ubuntu/Mint.

Or, better, if you do not want to give zip files, please update Ubuntu-Mint repository with last release.

Thanks.

Fre;D
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: m.abudrais on August 01, 2017, 04:19:51 pm
Hello.

Do you have plan to give a zipped version of Lazarus for Linux (not a DEB file, a zip like fpc does) ?
This because using DEB file gives lot of problem with Linux Ubuntu/Mint.

Or, better, if you do not want to give zip files, please update Ubuntu-Mint repository with last release.

Thanks.

Fre;D
me too, using DEB file gives lot of problem with Ubuntu, i hope there is a plane for that.
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: balazsszekely on August 01, 2017, 04:35:37 pm
@Fred vS, @m.abudrais
Quote
Do you have plan to give a zipped version of Lazarus for Linux (not a DEB file, a zip like fpc does) ?
This because using DEB file gives lot of problem with Linux Ubuntu/Mint.
Or, better, if you do not want to give zip files, please update Ubuntu-Mint repository with last release.
I think this question should be asked in the mailing list. More chance to got a response, much quicker.
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: Bart on August 01, 2017, 09:42:37 pm
Just download the source, then build from the console,

Bart
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: JuhaManninen on August 01, 2017, 11:07:32 pm
Just download the source, then build from the console,
Exactly. Building Lazarus is so easy it does not necessarily need an installation .tar.gz package.
When you use the fixes_1_8 branch, you also get the latest bug fixes.
Then either start from console or create a desktop shortcut.
Another option is to use a rolling distro which have the latest versions of everything.
Installing FPC is more difficult and the installation package is needed more.

Or, better, if you do not want to give zip files, please update Ubuntu-Mint repository with last release.
We cannot change Ubuntu or Mint repositories as you should know.
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: Fred vS on August 01, 2017, 11:30:59 pm
@ Juha. > We cannot change Ubuntu or Mint repositories as you should know.

I know this and it is why I do not understand why you choose to give  only DEB package (highly linked with update from Ubuntu/Mint).
It would not be problems if there was no Lazarus package in the Ubuntu/Mint repository.

But there are and always outdated --> this make conflict.

And of course it is possible to use source and built all Lazarus.  But I think to all the no-guru people.

By the way, would it be so difficult that one of the Lazarus team compress his /Lazarus/ folder and gives it for release ?

Fre;D
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: Martin_fr on August 02, 2017, 01:17:40 am
I don't know all the details about the various linux installers.

But afaik, the point is that they install dependencies (like various ...-dev packages).

So if you never had Lazarus installed on / or a new setup linux system, then simply copying someone else's folder will not work. You will get errors when you try to work with it.

The same applies to building from source.

I do not know if a script could easily solve this. But it would have - on each system - to successfully detect the exact syntax for installing each dependency.

I always thought that was why dep and rpm exist.

-----------------
From what I read in this thread:
- The problem is not deb/rpm itself, but that they (there content) conflicts.

So what exactly conflicts?

The name? The install directory?

I don't build those installers, so I don't know if any of this here will end up to change them.
But hypothetically would it help if name and target dir would be changed?

Btw does the installer that executes the deb file has option to specify overrides?
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: RayoGlauco on August 02, 2017, 08:58:15 am
I use Linux Mint and I know the Lazarus package on this repository is always outdated. So, I download the last version of .deb Lazarus package from http://lazarus-ide.org/
I think it is not so annoying or difficult.
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: Thaddy on August 02, 2017, 10:19:30 am
And of course it is possible to use source and built all Lazarus.  But I think to all the no-guru people.

By the way, would it be so difficult that one of the Lazarus team compress his /Lazarus/ folder and gives it for release ?

Fre;D
That's nonsense
It is a no brainer to build from source. Learn once, works everywhere... ;D ;D ;D
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: Handoko on August 02, 2017, 10:36:52 am
Do you have plan to give a zipped version of Lazarus for Linux (not a DEB file, a zip like fpc does) ?
This because using DEB file gives lot of problem with Linux Ubuntu/Mint.

What is the problem of using Lazarus deb file on Ubuntu? Can you provide more info or screenshots?

I've been using Lazarus using deb file installation on Ubuntu Mate but never have any serious problem. I admit sometimes it said something conflicting but simply ignoring that message then everything will work correctly.
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: m.abudrais on August 02, 2017, 11:50:48 am
when you try to install any software after lazarus
you get errors like this:
Code: Pascal  [Select][+][-]
  1. Unmet dependencies. Try ‘apt-get -f install’ with no packages (or specify a solution)
and
Code: Pascal  [Select][+][-]
  1. fp-units-fcl : Depends: fp-units-fcl-3.0.0 (= 3.0.0+dfsg-2) but it is not going to be installed
  2. thi
that was ubuntu 16 ,(in virtual box)
in ubuntu 17 i have no problem.
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: JuhaManninen on August 02, 2017, 12:09:21 pm
that was ubuntu 16 ,(in virtual box)
in ubuntu 17 i have no problem.
Indeed the problems depend on OS version. This makes the task for Lazarus team quite difficult. There should be installation packages for many distros and even many versions of them.
Mattias has built the .deb and .rpm packages so far. I believe he has also many other things to do.
If many different installation packages are really needed, somebody must volunteer to build and deliver them. Anybody?

A valid solution for people struggling with those packages is to switch to a rolling distro.
Their package systems are more advanced than DEB or RPM systems. Things have advanced in the last 15+ years ...
For example when FPC 3.0.4 will be released, my Manjaro will have it in a week or 2 without any effort from my side. The same will happen with the coming Lazarus 1.8.
Recommended.
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: Handoko on August 02, 2017, 01:27:14 pm
when you try to install any software after lazarus
you get errors like this:
Code: Pascal  [Select][+][-]
  1. Unmet dependencies. Try ‘apt-get -f install’ with no packages (or specify a solution)
and
Code: Pascal  [Select][+][-]
  1. fp-units-fcl : Depends: fp-units-fcl-3.0.0 (= 3.0.0+dfsg-2) but it is not going to be installed
  2. thi
that was ubuntu 16 ,(in virtual box)
in ubuntu 17 i have no problem.

Please provide more information. Did you install it using Ubuntu Software Center or deb files provided by Lazarus team?

You should not use Ubuntu Software Center, it is a very bad tool. Alternatively you can try Synaptic Package Manager. Here is how I install Lazarus on Ubuntu Mate:

1. Remove all of them (Lazarus, FPC, FPC sources)
2. Retart you computer. Yes, do it. It ever caused me headache.
3. Download the 3 deb files.
4. Install fpc_3.0.2-170225_amd64.deb
5. Install fpc-src_3.0.2-170225_amd64.deb
6. Install lazarus-project_1.6.4-0_amd64.deb
7. Use Synaptic Package Manager to lock version of the installed things

Notes:
- The file names in step #4, #5, #6 may be different.
- If you get version conflict warning, ignore it and nothing bad will happen
- Ubuntu will ask you to use their version, don't use theirs.
- Your installation will be replace with Ubuntu's version when updating software, so you need to do step #7
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: Fred vS on August 02, 2017, 01:39:44 pm
> That's nonsense

No, God Thaddy Who Knows All Better Than Others And That Criticize Code Without To Read It, it has sense.  fpc does it (+ give a install-script), CT does it (and it works perfectly), MSEgui-ide does it, ideU does it.

Fre;D
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: ecrypt on August 02, 2017, 01:41:28 pm
when you try to install any software after lazarus
you get errors like this:
Code: Pascal  [Select][+][-]
  1. [b]Unmet dependencies[/b]. Try ‘apt-get -f install’ with no packages (or specify a solution)
and
Code: Pascal  [Select][+][-]
  1. fp-units-fcl : Depends: fp-units-fcl-3.0.0 (= 3.0.0+dfsg-2) but it is not going to be installed
  2. thi
that was ubuntu 16 ,(in virtual box)
in ubuntu 17 i have no problem.

That is an error, because dependencies not completed install
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: Fred vS on August 02, 2017, 01:51:47 pm
> Can you provide more info or screenshots?

And, sorry, but fpc.cfg is there in /etc/.

Fre;D
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: Fred vS on August 02, 2017, 02:01:17 pm
That's nonsense
It is a no brainer to build from source. Learn once, works everywhere... ;D ;D ;D

For me, a release 1.8 that has is called 1.6.4 (in deb package)  has no sense.
Also, IMHO, a release is a compiled version of a program, not source that must be compiled.

And for you Thaddy:

Read once before to comment everywhere...

Fre;D
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: JuhaManninen on August 02, 2017, 02:13:21 pm
Also, IMHO, a release is a compiled version of a program, not source that must be compiled.
Yes, true, but the fact remains that Lazarus is easier to build from sources than eg. FPC.
It does not really require installation, just start it from its directory from console or by a shortcut.
So, building from sources is a good workaround for this problem.

In a perfect world we would have installation packages for every OS and all their versions, but we don't until somebody builds and maintans them.
Maybe you could help with the packages?

That is an error, because dependencies not completed install
No, I think it is related to the distro (Ubuntu, Mint) version. I remember similar reports earlier. I don't know details of what cause it.
Yes, it is a problem but not a big one because we have easy workarounds and solutions.
My personal favorite solution is to use a rolling Linux distro.
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: Handoko on August 02, 2017, 04:00:05 pm
> Can you provide more info or screenshots?

And, sorry, but fpc.cfg is there in /etc/.

Fre;D

Maybe you can try to completely remove the leftovers of the previous installation before you install/update the newer version:

01. Uninstall lazarus, fpc, fpc-src
02. Delete ~/.lazarus, except: editoroptions, environmentoptions
03. Delete /etc/fp.*
04. Delete /usr/share/fpcsrc
05. Delete /usr/lib/fpc
06. Delete /usr/bin/ppc*

The steps above tested on Ubuntu Mate, so far it never fails me. On the step #2 I keep editoroptions and environmentoptions because I want to keep the settings I have made on my IDE.
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: jc99 on August 02, 2017, 04:05:20 pm
Also, IMHO, a release is a compiled version of a program, not source that must be compiled.

And for you Thaddy:

Read once before to comment everywhere...

Fre;D
I'am a little in between, for me it's still a release, if the source is compiled on installation. But after that, it has to be usable, meaning after installaton there have to be binaries, ready to use.
JEDI used to do something like that in their installation.     
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: Fred vS on August 02, 2017, 07:33:47 pm
Maybe you can try to completely remove the leftovers of the previous installation before you install/update the newer version:
Thanks  Handoko (I know this... :-X), but it is not "out of the box", takes time, works "maybe", is for gurus, ...

Maybe you could help with the packages?
With pleasure.  O:-)

Fre;D
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: nurettin on August 03, 2017, 08:46:05 am
1.8 motivated me to drop delphi, thanks for the awesome work!
bpg and dpr conversions worked and I switched my project and all my components to lazarus completely.

Unfortunately a friend of mine reported that my 1.8 project doesn't open in his 1.6.4 version because of breaking changes.

Can you please patch 1.6.4 so it can ignore lfm properties it doesn't know?

That would help us collaborate with stable version users easily while I'm testing the latest release candidates.
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: JuhaManninen on August 03, 2017, 09:38:30 am
Unfortunately a friend of mine reported that my 1.8 project doesn't open in his 1.6.4 version because of breaking changes.
Details please.

Quote
Can you please patch 1.6.4 so it can ignore lfm properties it doesn't know?
Lazarus 1.6.4 is already released, so it will not be patched.
What properties it doesn't know?
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: Fred vS on August 03, 2017, 12:52:17 pm
Maybe you could help with the packages?

Hello.
Where may I upload lazarus180rc3_64_ubun_mint.tar.xz (with included script installlazdep.sh (to install Lazarus dependencies if first installation) ?

Size : 90.1 megas.

Fre;D
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: JuhaManninen on August 03, 2017, 01:17:23 pm
Where may I upload lazarus180rc3_64_ubun_mint.tar.xz (with included script installlazdep.sh (to install Lazarus dependencies if first installation) ?
Size : 90.1 megas.
Wow!
First you should upload it to a server of your choosing to be tested. The final 1.8 version should go to SourceForge together with the other packages, if it works well.
Does it work only for Ubuntu and Mint? Which versions? What about other distros? I thought the goal was to have a distro agnostic installation package, just like FPC has.
Is the package name suffix really .xz instead of .gz?
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: mdalacu on August 03, 2017, 01:30:15 pm
Please, just make an snap package...it will be the best.
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: tr_escape on August 03, 2017, 04:45:42 pm
Hello Lazarus team,

I am trying to install pascalscada package into lazarus 1.8RC3 in Linux Mint 32bit.
Pascalscada has got BRGABitmap package too but when I try to install lazarus say there is a link problem.

I tried other packages like LNET and LazSerial they worked.
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: Fred vS on August 03, 2017, 05:59:25 pm
Wow.
Thanks.  :-[

First you should upload it to a server of your choosing to be tested.
Huh, I do not have a server.  I can try to upload it to a GitHub release repository but not sure they will accept 90 megas.
Or maybe you know a other way...

Does it work only for Ubuntu and Mint? Which versions? What about other distros?
I did a script for Debian distros (this include Ubuntu + Mint).
But the excellent news is that a other great Open-Source project, Code Typhon gives all that scripts for free and tested.
So yes, all the existing Linux distro will have their installlazdeb.sh script.
Idem for FreeBSD.
Give me 10 minutes and it is done.

Is the package name suffix really .xz instead of .gz?
It was compressed with xz parameter (better compression) and tar executable recognize that .xz extension.
But if you prefer a other compress format, no problems.

Fre;D
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: JuhaManninen on August 03, 2017, 06:22:54 pm
Huh, I do not have a server.  I can try to upload it to a GitHub release repository but not sure they will accept 90 megas.
Or maybe you know a other way...
There are free servers like DropBox, some Google service, MS OneDrive etc.
For example I can create a public link to a file uploaded to DropBox and it stays there infinitely.

Quote
It was compressed with xz parameter (better compression) and tar executable recognize that .xz extension.
But if you prefer a other compress format, no problems.
Ok, xz sounds good then. I didn't know about it.
I am curious what the package contains because it is so big.
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: JuhaManninen on August 03, 2017, 06:28:46 pm
Pascalscada has got BRGABitmap package too but when I try to install lazarus say there is a link problem.
Do you mean BRGABitmap is included in Pascalscada. I think they should be separate packages.
Did you use the new Online Package Manager to install them? It is now the easiest and best way.
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: Fred vS on August 03, 2017, 09:13:41 pm
Quote
I am curious what the package contains because it is so big.

Yes, the same size as lazarus-project_1.8.0RC3-0_32/64.deb

With the complete last Lazarus binary release, to install out of the box.  ;)
And install_dependencies scripts for Debian (included Ubuntu+Mint), ArchLinux, Fedora, Suse, Mandriva, RedHat OS.

[EDIT] Added release 32 bit too.

You may download and test it here:

https://github.com/fredvs/lazzip/releases/

Here steps how to do:

Download and unzip lazarus180RC3_linXX.zip.

There will have a readme.txt, a /script folder and the lazarus180RC3_linXX.tar.xz file.

First:  --> readme.txt !

To install Lazarus, decompress lazarus180RC3_linXX.tar.xz in the directory of your choice.

To install Lazarus dependencies (if needed), there are scripts in /script.

  In console do:

  # cd /the_directory_of/script
  # ./installdep_xxxx.sh   // for example ./installdep_debian.sh --> for Ubuntu, Mint and Debian OS.

- To run lazarus:
  # /the_directory_choosed_for/lazarus/1.8.0RC3/lazarus

The source of the install-dependencies are here:

https://github.com/fredvs/lazzip

Enjoy. ;-)
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: tr_escape on August 04, 2017, 02:19:27 pm
Pascalscada has got BRGABitmap package too but when I try to install lazarus say there is a link problem.
Do you mean BRGABitmap is included in Pascalscada. I think they should be separate packages.
Did you use the new Online Package Manager to install them? It is now the easiest and best way.

Yes it has got ( I think for all in one package) but the main problem is in the "/usr/share/lazarus/1.8.0RC3/components/opengl" package. When I attempt to install gives the message.
But I didn't understand the log is not giving details. It is compiling but not installing.

If I remove this package recompiling of lazarus is successfully finishing.

Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: JuhaManninen on August 06, 2017, 01:03:45 am
Yes it has got ( I think for all in one package) but the main problem is in the "/usr/share/lazarus/1.8.0RC3/components/opengl" package.
So the problem is with Opengl instead of Pascalscada and BRGABitmap?

P.S.
 Fred vS, I have not forgotten your package. I will test it this Sunday. Had other things going on...
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: balazsszekely on August 06, 2017, 06:38:05 am
@tr_escape
Quote
Yes it has got ( I think for all in one package) but the main problem is in the "/usr/share/lazarus/1.8.0RC3/components/opengl" package. When I attempt to install gives the message.
But I didn't understand the log is not giving details. It is compiling but not installing.

If I remove this package recompiling of lazarus is successfully finishing
It was discussed many time before. In order to install opengl, you need libgl-dev:
1. sudo apt-get install libgl-dev
2. rebuild lazarus
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: Fred vS on August 06, 2017, 11:58:43 am
Quote
Fred vS, I have not forgotten your package. I will test it this Sunday. Had other things going on...

Ha, ok.  By the way, I am not in plan to make a other repository of Lazarusn attachment.  The lazzip directory is there only to help you.
Please, when you have tested it, say it and I will delete the lazzip directory.

[EDIT] @ Juha, in attachment, script to install Lazarus for nearly all Linux distro.
For the compressed file of the Lazarus release, the easy way is to use the DEB file of Mattias, decompress it somewhere (a DEB file is a tar compressed file).
Go in the decompressed file to the directory /usr/share/ and compress /Lazarus directory.
This will be the compressed file for the release.

PS: I will delete https://github.com/fredvs/lazzip in 10 minutes.

Fre;D
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: JuhaManninen on August 07, 2017, 11:31:09 am
[EDIT] @ Juha, in attachment, script to install Lazarus for nearly all Linux distro.
For the compressed file of the Lazarus release, the easy way is to use the DEB file of Mattias, decompress it somewhere (a DEB file is a tar compressed file).
Go in the decompressed file to the directory /usr/share/ and compress /Lazarus directory.
This will be the compressed file for the release.
Sorry, I was busy all yesterday and then fell asleep early. I am getting old ...

Anyway, your scripts for installing dependencies look impressive! Have you really tested with all those distros?
The ArchLinux version may not be as useful as the others because a rolling distro updates their own repo very quickly with the latest Lazarus release. Anyway, a script for it does not harm either.
For Debian, Fedora, Mandriva, RedHat and SuSe they are very useful.
I will test some of them later but I don't promise to test all.
I may suggest you as an assistant release manager for Mattias. Now he does it out of responsibility although I know he is busy with other tasks.
That is, if you want it. That would maybe imply write access to the SourceForge project directories. I don't see why there should be middle men.

I wonder why nobody tested the installation files. I personally don't need them but many others asked for them.
m.abudrais was only one of them.
I would have imagined that all those people rush with enthusiasm to test, but no.  :(
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: Fred vS on August 07, 2017, 04:17:57 pm
Hello.

@Juha --> ok, thanks.

For people who have problems when installing in Linux the last Lazarus release (dependencies missing, fpc stuff missing, fpc.cfg not good, etc...).

Here a  way to install a new release for any Linux distro without changing you actual config:

1 ) Download the official DEB release from the official Lazarus download page.
   (Here example using lazarus-project_1.8.0RC3-0_amd64.deb)

2 ) Copy that DEB file somewhere (example /home/you)

3 ) Extract the DEB file:
   In console do:
   # cd /the_directory_of_the _deb_file
   # ar vx lazarus-project_1.8.0RC3-0_amd64.deb

   This will create control.tar.gz and data.tar.xz.

4 ) Extract data.tar.xz with:
   # tar xvf data.tar.xz

5 ) Copy from the extracted file: /usr/share/lazarus

6 ) Paste that directory where you want (example /home/you).

7 ) Run your new release with:
   # /the_directory_you_choose/lazarus.

8 ) If dependencies are missing, run the the installdep_youros script (in previous topic: ---> attachment ---> /script)
   # cd /the_diretory_of_the_script
   # ./installdep_youros.sh

9) Enjoy.

Fre;D
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: knuckles on August 11, 2017, 03:04:04 pm
There is one feature that I would like to see implemented correctly and that is the alignment of child controls on the form.

For example drop a panel on the form, and then drop say a button into the panel as a child, right click the button and select "Align ..." menu item, now if you choose to align "Center in window" in Delphi the button would be aligned central to the parent, eg the panel but in Lazarus the button is aligned center to the form. I don't know if this is a bug or by design but this is something I would like to see work more like Delphi does.
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: mobilevil on August 12, 2017, 02:23:58 pm
I saw RC4 files in source forge dated 8 Aug but download count is 0 and I can't download them. mistake?
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: JuhaManninen on August 12, 2017, 02:43:51 pm
I saw RC4 files in source forge dated 8 Aug but download count is 0 and I can't download them. mistake?
Maybe there is something cooking for 1.8RC4. :)

@knuckles, you should open a new thread for the alignment issue. It is not specific to 1.8RC3 anyhow.
The mailing list can be used, too, to better reach the developers.
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: Zath on August 13, 2017, 10:55:08 am
Trying to get this version and the links are broken or the files aren't there.
Thanks.
1.8.0. RC4

https://sourceforge.net/projects/lazarus/files/Lazarus%20Windows%2064%20bits/Lazarus%201.8RC4/

I see my post is a bit behind the times. Sorry.
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: fred on August 13, 2017, 11:26:45 am
I had the same problem but found RC4 in the mirrors link http://mirrors.iwi.me/lazarus/ (http://mirrors.iwi.me/lazarus/)
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: McStep on August 13, 2017, 11:43:38 am
I used fpcupdeluxe version 1.4.0k and everything worked fine.
https://github.com/newpascal/fpcupdeluxe/releases

But this surely does not increase the counts on sourceforge.

Edit: I forgot to mention, that I used the "fixes"-branch and it worked for w7 and ubuntu 17.04.
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: Martin_fr on August 13, 2017, 05:48:49 pm
This seems to be a sourceforge issue.

Need to see what can be done...
Title: Re: Lazarus Release Candidate 3 of 1.8
Post by: Martin_fr on August 13, 2017, 07:09:17 pm
re-uploaded some of them / the others seem to have fixed themself.

should work now.
TinyPortal © 2005-2018