Page 1 of 1

Installing zcomponent.lpk package on Lazarus

Posted: 25.03.2022, 17:36
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.

Re: Installing zcomponent.lpk package on Lazarus

Posted: 29.03.2022, 13:01
by marsupilami
Hello Eric,

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

Best regards,

Jan