Installing zcomponent.lpk package on Lazarus

The forum for ZeosLib 7.2 Report problems. Ask for help, post proposals for the new version and Zeoslib 7.2 features here. This is a forum that will be edited once the 7.2.x version goes into RC/stable!!

My personal intention for 7.2 is to speed up the internals as optimal a possible for all IDE's. Hope you can help?! Have fun with testing 7.2
Post Reply
devEric69
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: 25.03.2022, 17:07

Installing zcomponent.lpk package on Lazarus

Post by devEric69 »

Hello,

I'm writing to report, that when I want to install zcomponent.lpk under Lazarus, in an IDE configured with the -dDEBUG compiler directive which is included in the "Debug IDE" profile, I've got the message "FClientCP file not found", in the ZDbcStatement.pas file, procedure TZAbstractStatement.SetASQL, line 637 (release 7.2.14).
Obviously, removing this directive from the "Additions and overrides" menu list will allow my Zeos installation to proceed without any problems :D. For information, the use of {$IFDEF DEBUG}...\...{$ENDIF} exists in the Lazarus source code for only a few special cases. Not many, but they exist. And I'm currently testing such a special case :?. So, I'm just posting a suggestion (I don't know enough about the Zeos source codes to have a complete view of the ins and outs of my suggestion). I've seen that elsewhere Zeos uses {$IFDEF ZEOSDEBUG}...\...{$ENDIF} instead: my suggestion would be to use ZEOSDEBUG as a prefix everywhere in this package.
Of course, it would also be better if Lazarus and FPC logically did the same i.e. use LAZARUSDEBUG or FPCDEBUG everywhere. But in the current state of all the source codes, I'm concluding that pragmatically, as far as I'm concerned, reinstalling a package - without is\this debugging functionality - is faster than reinstalling an IDE profile (ceretis paribus).

Regards.
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1956
Joined: 17.01.2011, 14:17

Re: Installing zcomponent.lpk package on Lazarus

Post by marsupilami »

Hello Eric,

I did the changes according to your suggestion. Could you please try again?

Best regards,

Jan
Post Reply