Lazarus
Programming => General => Topic started by: Raf20076 on November 22, 2020, 10:06:53 am
-
Hi Guys
I want to install JPLib component from https://github.com/jackdp/JPLib and I got error
Update it happens when I try install any component.
chmreader.pas(80,12) Fatal: Can't find unit chmreader used by ChmLangRef
My Lazarus IDE is 2.0.10 FPC 3.2.0 SVN 63526 is fresh installed without any extra components.
This error reffers to chmreader unit,
line 80 function FindBlocksFromUnCompressedAddr(var ResetTableEntry: TPMGListChunkEntry;
Have you got any idea what happens? It happens during installation (rebuilding IDE)
I have found this solution but it doesn't work https://bugs.freepascal.org/view.php?id=35721
Thanks
-
I cannot present you a solution for how to fix this unit not found issue, but a workaround. Looking at the package units in the package editor I see that none of them shows the green triangle, i.e. none of them contains registration code. This means that it is not necessary to "install" the package, just opening it in the package editor (and maybe compiling) is enough so that the IDE knows where the package is located.
-
I have found solution
https://forum.lazarus.freepascal.org/index.php/topic,50528.0.html https://forum.lazarus.freepascal.org/index.php/topic,50528.msg368954.html#msg368954
In Lazarus IDE -> Package -> Open Package File (.lpk) -> Choose (C:\lazarus\components\sparta\generics\sparta_genericks.lpk)
Then click source/generic..pas files and tick off all of them in Use unit in File Properties at the bottom of window.
Close window and save changes. Then remove folder lib in C:\lazarus\components\sparta\generics\lib
So there is a bug and it should be fixed. https://bugs.freepascal.org/view.php?id=35721 The problem keeps going unsolved yet. It supposed to be fixed in Lazarus 2.0.10 but it's not.
Thanks
-
So there is a bug and it should be fixed. https://bugs.freepascal.org/view.php?id=35721 The problem keeps going unsolved yet. It supposed to be fixed in Lazarus 2.0.10 but it's not.
It's fixed in Lazarus trunk. As Juha wrote in the other thread there were merge conflicts when trying to merge it to fixes, thus this will stay a known problem until 2.2 is released.
-
Hi,
the problem is still present under the new version 2.0.12.
Thanks
-
the problem is still present under the new version 2.0.12
As the Dragon wrote, the fix will be incorporated for release 2.2.0 so it won't be in any 2.0.xx fixes release. You (and everyone else) will have to wait, probably, about 6 months (around late summer, early autumn), though even that is not (yet) written in stone.