Recent

Author Topic: KControls installation issue  (Read 4062 times)

bobonwhidbey

  • Hero Member
  • *****
  • Posts: 592
    • Double Dummy Solver - free download
KControls installation issue
« on: June 07, 2021, 06:14:52 pm »
I downloaded KControls 1.7.3 and installed two packages:
   KControlsBase
   KControlsLaz
Now,whether or not my program is using a KControl I get a warning message:
  other unit files search path of "KControlsLaz 1.73 contains .... which belongs to package KControlsBase
  other unit files search path of "KControlsBase 1.73 contains .... which belongs to package KControlsLaz

Is there a way to stop getting these warnings, short of uninstalling the KControls packages?
Lazarus 3.0RC2, FPC 3.2.2 x86_64-win64-win32/win64

wp

  • Hero Member
  • *****
  • Posts: 11912
Re: KControls installation issue
« Reply #1 on: June 07, 2021, 06:31:57 pm »
As far as I can see from the package files, both packages have their associated units in the same folder. This is bad. Package source files should always be in separate folders.

So, the package owner should "re-package" the units. Or somebody (you?) should clone the git repo (https://github.com/kryslt/KControls) and send the maintainer a pull request. But be warned: the maintainer wants to keep Delphi compatibility, so moving some source files to other folders will break the Delphi packages...


bobonwhidbey

  • Hero Member
  • *****
  • Posts: 592
    • Double Dummy Solver - free download
Re: KControls installation issue
« Reply #2 on: June 07, 2021, 06:36:10 pm »
Thanks. Is there another package with something like a RichMemo that works well?
Lazarus 3.0RC2, FPC 3.2.2 x86_64-win64-win32/win64

wp

  • Hero Member
  • *****
  • Posts: 11912
Re: KControls installation issue
« Reply #3 on: June 07, 2021, 06:47:34 pm »
TRichMemo? https://wiki.freepascal.org/RichMemo. Maintained by one of the Lazarus team members.

bobonwhidbey

  • Hero Member
  • *****
  • Posts: 592
    • Double Dummy Solver - free download
Re: KControls installation issue
« Reply #4 on: June 07, 2021, 07:44:52 pm »
I've downloaded lazarus-ccr-svn-r8048-components-richmemo. This package compiles but I can't install it. See attached.
Lazarus 3.0RC2, FPC 3.2.2 x86_64-win64-win32/win64

bobonwhidbey

  • Hero Member
  • *****
  • Posts: 592
    • Double Dummy Solver - free download
Re: KControls installation issue
« Reply #5 on: June 07, 2021, 08:56:15 pm »
There is only one package file in the downloaded:
   RichmemoPackage.lpk
It doesn't install in a "typical' way.

Is there another way to utilize this component?
Lazarus 3.0RC2, FPC 3.2.2 x86_64-win64-win32/win64

Zoran

  • Hero Member
  • *****
  • Posts: 1830
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: KControls installation issue
« Reply #6 on: June 07, 2021, 11:23:20 pm »
There is only one package file in the downloaded:
   RichmemoPackage.lpk

Look inside folder "ide".
There is another package file -- richmemo_design.lpk.

wp

  • Hero Member
  • *****
  • Posts: 11912
Re: KControls installation issue
« Reply #7 on: June 07, 2021, 11:28:47 pm »
Or you can also try the package in OPM, then you only have the usual 1-click installation.

bobonwhidbey

  • Hero Member
  • *****
  • Posts: 592
    • Double Dummy Solver - free download
Re: KControls installation issue
« Reply #8 on: June 08, 2021, 12:29:05 am »
Found that ...design.lpk and all seemed to install perfectly. Thanks.
Lazarus 3.0RC2, FPC 3.2.2 x86_64-win64-win32/win64

dbannon

  • Hero Member
  • *****
  • Posts: 2791
    • tomboy-ng, a rewrite of the classic Tomboy
Re: KControls installation issue
« Reply #9 on: June 08, 2021, 12:54:54 am »
bobonwhidbey, some comments that might help you choose between KControls and RichMemo.

The warning from KControls does no harm, I have been using KMemo fo a number of years and see that warning all the time. Its just, as WP said, not a good idea in principle.

Using TRichMemo will very much depend on your platform. Some things don't work on all platforms and on MacOS for example, quite a lot does not work.  Please see https://wiki.freepascal.org/RichMemo/WorkArounds

The author of KControls has indicated he is not planning to develop KControls further but it is quite complete now. He is quite responsive to bug reports and does fix issues.  He totally replaced his license for example when I had issues getting my app into Debian because of his license wording. Sometimes RichMemo's maintainer is a bit slow to respond. From time to time I revisit RichMemo and submit patches but they can sit there for some time time. eg https://bugs.freepascal.org/view.php?id=37894

I find that KMemo becomes a bit slow when the content exceeds, perhaps 40K to 50K bytes.  I am not sure about RichMemo's responsiveness, not enough of it works for me to have tested with large content. However I suspect RichMemo would be faster on platforms where it works.

So, as they say, your mileage may vary ....

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

 

TinyPortal © 2005-2018