Installing a component in dclusr.dpk will damage other components

First I installed RX library 2.75 and some others.
Then I try to install a custom (not mine) component TMyLookupEditthat is derived from TRxLookupEdit.
I do this through the main menu β†’ Component β†’ Install Component ... and select the .pas file for the components

And when Delphi tries to rebuild dclusr.dpk, I get something like this (I don’t remember to play it, I did not find any other way than reinstalling Delphi):

Can't load package c:\program files\borland\delphi6\Projects\Bpl\dclrx6.bpl.
Cannot load package 'RxCtl6.'  It contains unit 'FileUtil,'which is also contained in package 'RxCtl660'

The IDE then tells me that the component is MyLookupEditinstalled and about 100 other components are installed un . All RX components have disappeared from the palette.

I am sure that I installed only RxCtl6 and not RxCtl6 60 . But they are both located in C: \ Program Files \ Borland \ Delphi6 \ Projects \ Bpl. The only key I have is that #define in the dclusr.dpk file (see below)

How can I get RX and this component to work together?


Here is my dclusr.dpk (most #defines omitted):

{$LIBSUFFIX '60'}

requires
  rtl,
  vcl,
  designide,
  vcldb,
  dbrtl,
  vclx,
  VclSmp,
  RxCtl6,
  RxDB6;

contains
  RegGrid in '..\..\..\..\_work\Delphi\__Install\__Components\No-package components\RegGrid\RegGrid.pas',
  Tabenter in '..\..\..\..\_work\Delphi\__Install\__Components\No-package components\TABENTER.PAS',
  MyLE in '..\..\..\..\_work\Delphi\__Install\__Components\No-package components\MyLookupEdit\MyLE.pas';

end.

Decision

  • Remove {$ LIBSUFFIX '60'} from dclusr.dpk
  • Delete the dclusr60.bpl file
  • Rebuild dclusr.dpk

Many thanks to Serg for the directions!

+3
source share
1

, RxCtl6 RxCtl660. C:\Program Files\Borland\Delphi6\Projects\BPL

RxCtl6.bpl RxCtl660.bpl , RxCtl6 - {$ LIBSUFFIX '60'}.

TeeChart, , TeeChart, . RxCtl6 RxDB6 RxCtl660 RxDB660 "". RX *.dpk {$ LIBSUFFIX '60'} - {$ LIBSUFFIX '60'}.

Delphi, - Delphi ,

  • IDE;
  • .
+1

Source: https://habr.com/ru/post/1777866/


All Articles