Recent

Author Topic: [Solved] How to install "Generics Collections" in Lazarus 3.2 ?  (Read 2360 times)

jcmontherock

  • Sr. Member
  • ****
  • Posts: 274
I found the source at:
https://github.com/maciej-izak/generics.collections/blob/master/Makefile
but there is no "lpk" file to install the package. I seems to me that it was before included in the general installation of Lazarus.
« Last Edit: March 08, 2024, 11:33:16 pm by jcmontherock »
Windows 11 UTF8-64 - Lazarus 4RC1-64 - FPC 3.2.2

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11986
  • FPC developer.
Re: How to install "Generics Collections" in Lazarus 3.2 ?
« Reply #1 on: March 08, 2024, 05:13:31 pm »
That branch was integrated into FPC years ago, so it should already be in your lazarus.

dsiders

  • Hero Member
  • *****
  • Posts: 1324
Re: How to install "Generics Collections" in Lazarus 3.2 ?
« Reply #2 on: March 08, 2024, 05:21:22 pm »
I found the source at:
https://github.com/maciej-izak/generics.collections/blob/master/Makefile
but there is no "lpk" file to install the package. I seems to me that it was before included in the general installation of Lazarus.

That looks like a dead repo to me. At least it hasn't been updated in the last 5 years.

Besides, you already have that code in the fpc/3.2.2/source/packages/rtl-generics/src/generics.collections.pas directory. And it has been updated recently.

Edit: @marcov was quicker...
Preview the next Lazarus documentation release at: https://dsiders.gitlab.io/lazdocsnext

Thaddy

  • Hero Member
  • *****
  • Posts: 16363
  • Censorship about opinions does not belong here.
Re: How to install "Generics Collections" in Lazarus 3.2 ?
« Reply #3 on: March 08, 2024, 06:20:46 pm »
and fcl-generics contains bug fixes. Just do not use that repo unless you are on a very old Lazarus and/or fpc.
There is nothing wrong with being blunt. At a minimum it is also honest.

jcmontherock

  • Sr. Member
  • ****
  • Posts: 274
Re: How to install "Generics Collections" in Lazarus 3.2 ?
« Reply #4 on: March 08, 2024, 11:09:15 pm »
I found it in fpc directory. But how do I install it ? It's not by default in version 3.2. It didn't find sparta_generics.
« Last Edit: March 08, 2024, 11:17:28 pm by jcmontherock »
Windows 11 UTF8-64 - Lazarus 4RC1-64 - FPC 3.2.2

TRon

  • Hero Member
  • *****
  • Posts: 3787
Re: How to install "Generics Collections" in Lazarus 3.2 ?
« Reply #5 on: March 08, 2024, 11:27:53 pm »
I found it in fpc directory. But how do I install it ?
It is just there. There is no need to install it, just use it by declaring it in the unit/program uses list.

Quote
It's not by default in version 3.2.
Yes it is.

Quote
It didn't find sparta_generics.
That is something else.
I do not have to remember anything anymore thanks to total-recall.

jcmontherock

  • Sr. Member
  • ****
  • Posts: 274
Re: How to install "Generics Collections" in Lazarus 3.2 ?
« Reply #6 on: March 08, 2024, 11:31:37 pm »
I'm finding what it happen: package "sparta_generics" was mandatory in project in old Lazarus versions. It's not necessary now. I didn't recompile my application for a long time. I suppress this dependency in project and now it's OK.
Thanks to everybody.
Windows 11 UTF8-64 - Lazarus 4RC1-64 - FPC 3.2.2

 

TinyPortal © 2005-2018