Recent

Author Topic: OPM: Failed installing RichMemo  (Read 4536 times)

Handoko

  • Hero Member
  • *****
  • Posts: 5149
  • My goal: build my own game engine using Lazarus
OPM: Failed installing RichMemo
« on: June 07, 2022, 07:35:54 pm »
I couldn't install RichMemo on my Lazarus 2.20 FPC 3.3.2 x86_64-linux-gtk2 using Online Package Manager.

Did anyone success to install RichMemo on Lazarus 2.20 Linux GTK2 using OPM?

Handoko

  • Hero Member
  • *****
  • Posts: 5149
  • My goal: build my own game engine using Lazarus
Re: OPM: Failed installing RichMemo
« Reply #1 on: June 08, 2022, 05:38:00 am »
I tried to manually build the package downloaded from:
https://github.com/skalogryz/richmemo

And I got this error:

Fred vS

  • Hero Member
  • *****
  • Posts: 3168
    • StrumPract is the musicians best friend
Re: OPM: Failed installing RichMemo
« Reply #2 on: June 08, 2022, 07:16:58 am »
Hello.

Maybe, try to compile with parameter: -dRMLCLTRUNK
« Last Edit: June 08, 2022, 07:20:31 am by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

Handoko

  • Hero Member
  • *****
  • Posts: 5149
  • My goal: build my own game engine using Lazarus
Re: OPM: Failed installing RichMemo
« Reply #3 on: June 08, 2022, 07:59:20 am »
Yes, after added the parameter I managed to install the component. Thank you.

If OPM's maintainer read this post, please fix the installation issue. And someone please add the required compiling parameter in the wiki page:
https://wiki.freepascal.org/RichMemo

I've just tested it. Unfortunately TRichMemo.Undo command did not work, at least on GTK2.

dbannon

  • Hero Member
  • *****
  • Posts: 2789
    • tomboy-ng, a rewrite of the classic Tomboy
Re: OPM: Failed installing RichMemo
« Reply #4 on: June 08, 2022, 09:14:55 am »
Handoko, I use KMemo and have a reasonably well working undo for that. Would you like to follow it up ?

Davo

EDIT : demo project at https://github.com/davidbannon/kmemo_undo
« Last Edit: June 08, 2022, 10:53:01 am by dbannon »
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

Handoko

  • Hero Member
  • *****
  • Posts: 5149
  • My goal: build my own game engine using Lazarus
Re: OPM: Failed installing RichMemo
« Reply #5 on: June 08, 2022, 10:25:46 am »
I installed and checked the source code, the undo feature hasn't implemented yet. I only need a simple text editor with undo feature. Thank you, but I choose the easiest TMemo + tomitomy's solution:

https://forum.lazarus.freepascal.org/index.php/topic,54069.0.html

Nicole

  • Hero Member
  • *****
  • Posts: 970
Re: OPM: Failed installing RichMemo
« Reply #6 on: July 11, 2022, 06:24:06 pm »
Thank you so much for the answers.
It gave me a lot of attempts, not sure, which one worked.
But it is there now.

af0815

  • Hero Member
  • *****
  • Posts: 1291
Re: OPM: Failed installing RichMemo
« Reply #7 on: July 11, 2022, 07:08:01 pm »
If OPM's maintainer read this post, please fix the installation issue.
The owner of the component have to do this, not the maintainer of OPM. After this the package can updated in OPM. If it is a blocker, it should remove from OPM.
regards
Andreas

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: OPM: Failed installing RichMemo
« Reply #8 on: July 11, 2022, 08:21:39 pm »
*sigh*
gtk2 ws seems to be changing constantly.

Curt Carpenter

  • Sr. Member
  • ****
  • Posts: 402
Re: OPM: Failed installing RichMemo
« Reply #9 on: December 31, 2022, 01:05:00 am »
Running Ubuntu 18 and Lazarus 2.2.4, I too had problem installing RichMemo using OPM.  I downloaded it's .lpk from github (see below) and compiled it though, and it then showed up as an uninstalled package in the package manager.  Installed it in the usual way, and it now seems to be working for me.  I noted that the code on GitHub had been revised in July, so perhaps the OPM just needs to be updated.

Or it may be that I just don't really know what I'm doing and wasn't paying enough attention in the first place, so apologies in advance  %)

balazsszekely

  • Guest
Re: OPM: Failed installing RichMemo
« Reply #10 on: December 31, 2022, 08:19:21 am »
@Curt Carpenter
I updated the package in OPM.

Curt Carpenter

  • Sr. Member
  • ****
  • Posts: 402
Re: OPM: Failed installing RichMemo
« Reply #11 on: December 31, 2022, 03:56:57 pm »
I uninstalled then installed RichMemo from OPM, and the procedure seems to work fine now. 

Not able to make RichMemo component work for me though on Linux + Lazarus 2.2.4.  Attempting to handle a keypress event results in "error: unit not found: StdCtrls."   Any ideas where I would find the StdControls unit?
I suspect that there are some installation steps that I don't understand.

Edited to correct use of "StdControls" in origninal to "StdCtrls" here.  Sorry for the error.
« Last Edit: January 02, 2023, 06:35:26 pm by Curt Carpenter »

wp

  • Hero Member
  • *****
  • Posts: 11906
Re: OPM: Failed installing RichMemo
« Reply #12 on: December 31, 2022, 04:04:00 pm »
I uninstalled then installed RichMemo from OPM, and the procedure seems to work fine now. 

Not able to make RichMemo component work for me though on Linux + Lazarus 2.2.4.  Attempting to handle a keypress event results in "error: unit not found: StdControls."   Any ideas where I would find the StdControls unit?
I suspect that there are some installation steps that I don't understand.
There is no unit "StdControls". It is called "StdCtrls". Which unit reports this error?

Curt Carpenter

  • Sr. Member
  • ****
  • Posts: 402
Re: OPM: Failed installing RichMemo
« Reply #13 on: January 01, 2023, 10:23:48 pm »
Thanks for the response. 

An update to what I had written:  I have been able to recreate the problem with RichMemo.  Using Ubuntu 18 (Linux) with Lazarus2.2.4.
 
I create a new application, and place a TRichMemo component on its form as RichMemo1.  The project compiles successfully, using unit RichMemo which seems to be added to my "uses" clause automatically.

Using the object inspector then, I select the RichMemo1 object and view its events tab.  If I click on any one of the events to set it, I get the following error message:

   code tools,Errors: 1
   richmemo.pas(30,33) Error: unit not found: stdCtrls.

(I am getting this error if I put a button on the form and try to set its "onclick" event too.)

Somehow though, if I terminate lazarus completely and start it again, everything works and the events appear in my unit1 as usual. 

FInally, the good news for me seems to be that the code tools errors go away if I uninstall the richmemo component.

Sorry for the confusion about my  "StdControls" mistake earlier.
« Last Edit: January 02, 2023, 06:10:45 pm by Curt Carpenter »

Curt Carpenter

  • Sr. Member
  • ****
  • Posts: 402
Re: OPM: Failed installing RichMemo
« Reply #14 on: January 02, 2023, 07:06:56 pm »

Using Linux (Ubuntu) and Lazarus 2.2.4. 

After a few repeated tests, I'm pretty sure installing RichMemo from OPM causes codetools "unit not found" errors which effect all components.  Uninstalling RichMemo eliminates the errors.  And sometimes, by some mysterious magic, the problem just doesn't occur.   I'm way out of my depth to understand what's going on.

This may very well be due to some operator error on my part, I don't know.

 

TinyPortal © 2005-2018