Recent

Author Topic: Installing Lazarus Release 2.2.0  (Read 1211 times)

Lansdowne

  • New Member
  • *
  • Posts: 30
Installing Lazarus Release 2.2.0
« on: January 24, 2022, 04:51:10 pm »
It looks like I'm the only one with this trouble.

Project > New Project > Run > Image related.
It can't run my old projects too. I can't run anything.

I've updated it from Lazarus 2.0.12.
What did I do wrong?

The Note messages are telling you that you have duplicate code in components/freetype and components/lazutils. FreeType was moved into its own package in 2.2.0. https://wiki.lazarus.freepascal.org/Lazarus_2.2.0_release_notes#LazFreeType

I don't know how you updated from 2.0.12 to 2.2.0... but it has remnants of the old version.

Probably the same problem.

I have just now updated my Lazarus (Windows 32bit version) but can't proceed.

When I loaded my project and pressed F9 to compile, it starts compiling the whole of FPC/Laz but stops with these messages:
Quote
Warning: Recompiling EasyLazFreeType, checksum changed for C:\lazarus\components\lazutils\lib\x86_64-win64\lazutf8.ppu

lazfreetypeintfdrawer.pas(10,14) Fatal: Cannot find EasyLazFreeType used by LazFreeTypeIntfDrawer, incompatible ppu=C:\lazarus\components\lazutils\lib\x86_64-win64\easylazfreetype.ppu, multiple packages: freetypelaz, LazUtils

Seems to me this is a bug i.e. something that hasn't been tidied up before release.

Any ideas how I proceed?


Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9792
  • Debugger - SynEdit - and more
    • wiki
Re: Installing Lazarus Release 2.2.0
« Reply #1 on: January 24, 2022, 05:00:21 pm »
Seems to me this is a bug i.e. something that hasn't been tidied up before release.

Any ideas how I proceed?

Usually this happens when you install over an existing (older) version (without uninstall). That does not always work....

Tools > Configure Build Lazarus > radio button "clean all" > build

usually solves this.

Lansdowne

  • New Member
  • *
  • Posts: 30
Re: Installing Lazarus Release 2.2.0
« Reply #2 on: January 24, 2022, 05:17:50 pm »
Hi, thanks for the quick reply and the suggestion, it looked as if was working then it stopped with a stranger message

Warning: Recompiling Graphics, checksum changed for C:\lazarus\components\lazutils\lib\x86_64-win64\graphmath.ppu
graphics.pp(29,17) Fatal: Can't find unit Graphics used by IntfGraphics
Warning: Recompiling Graphics, checksum changed for C:\lazarus\components\lazutils\lib\x86_64-win64\graphmath.ppu
graphics.pp(41,37) Fatal: Can't find unit Graphics used by IntfGraphics

it can't find unit Graphics while compiling unit graphics?


Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9792
  • Debugger - SynEdit - and more
    • wiki
Re: Installing Lazarus Release 2.2.0
« Reply #3 on: January 24, 2022, 05:32:33 pm »
Warning: Recompiling Graphics, checksum changed for C:\lazarus\components\lazutils\lib\x86_64-win64\graphmath.ppu
graphics.pp(29,17) Fatal: Can't find unit Graphics used by IntfGraphics
Warning: Recompiling Graphics, checksum changed for C:\lazarus\components\lazutils\lib\x86_64-win64\graphmath.ppu
graphics.pp(41,37) Fatal: Can't find unit Graphics used by IntfGraphics

it can't find unit Graphics while compiling unit graphics?

It can't find "Graphics" while compiling "IntfGraphics" (which has a circular ref via implementation uses)
But that is not the issue with the above errors...

GraphMath in in LazUtils => it should have been compiled before, and should not be able to change (not going into all details here).

Yet it has.
So something is wrong.

Go into the folders
 C:\lazarus\components\lazutils\
 C:\lazarus\lcl
 C:\lazarus\units

and delete all *.o and *.ppu files that you can find (including sub folders)

Search *all* folders for any other occurrence of
graphmath.ppu  => that should only have been in  C:\lazarus\components\lazutils\lib / and only one file
IntfGraphics.ppu
Graphics.ppu



However, at that point it might be easier to unistall, delete any remains in c:\lazarus  and then do a new install.

All your config is in %AppData%
Menu View > Ide Internals > About IDE => search primary config path

Your config should be kept, even if you uninstall. But you can backup it too.

There is a slim change, you have something really wrong in your config. But unlikely.

Lansdowne

  • New Member
  • *
  • Posts: 30
Re: Installing Lazarus Release 2.2.0
« Reply #4 on: January 24, 2022, 08:01:11 pm »
Thanks, I cleared out the directory and reinstalled, and those messages did not recur.

 

TinyPortal © 2005-2018