I have make fresh Kubuntu installation and installed Lazarus 4.0.0 and now, many problems where raised.
The first problem is that Tesseract ver 4 is gone from repository, replaced by version 5, thus old TesseractOCR4 is obsolete now. I have found TesseractOCR5 interface for Lazarus, but that can't compile.
https://github.com/amancini/TTesseractOCR5I have no idea where procedure SetDllDirectory come from, for instance, since this is 2 years old and new version of Lazarus/FPC may do not have it anymore.
Anyone is able to fix this?
P.S. It seems to me this is just for Windows environment.
Fixed old interface. Seems that leptonica also have new version.