Recent

Author Topic: lzRichEdit did not install in 1.6  (Read 18614 times)

bill0287

  • Full Member
  • ***
  • Posts: 146
lzRichEdit did not install in 1.6
« on: February 19, 2016, 01:42:32 am »
I downloaded the sourceforge version of lzRichEdit and tried to install it in Laz1.6 (win32 version) and got this error:

Code: Pascal  [Select][+][-]
  1. Compile package LazRichEdit 0.1.5: Exit code 1, Errors: 1
  2. gtk2wsrichbox.pas(41,29) Fatal: Cannot find Gtk2Proc used by Gtk2WSRichBox. Enable flag "Use Unit" of unit Gtk2Proc in package LCL.

any ideas?

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: lzRichEdit did not install in 1.6
« Reply #1 on: February 19, 2016, 02:40:04 am »
as the message says you open the package lcl, locate the file name gtk2proc in the project inspector right click and select use unit. REbuild everything and you should be fine.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

bill0287

  • Full Member
  • ***
  • Posts: 146
Re: lzRichEdit did not install in 1.6
« Reply #2 on: February 19, 2016, 04:32:27 am »
Taaz, I am sure your description makes perfect sense to most, but I can't figure out what to do with it.

I open the lpk, and when I try to install it, I get that error.  I am not sure how/where to "open the package LCL."

I have installed this component before in older versions of Laz without this issue.   

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: lzRichEdit did not install in 1.6
« Reply #3 on: February 19, 2016, 06:28:39 am »
I have installed this component before in older versions of Laz without this issue.
maybe it's time to switch to RichMemo? :)

bill0287

  • Full Member
  • ***
  • Posts: 146
Re: lzRichEdit did not install in 1.6
« Reply #4 on: February 19, 2016, 06:02:07 pm »
Is RichMemo as good or better than RichEdit?

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: lzRichEdit did not install in 1.6
« Reply #5 on: February 19, 2016, 06:17:44 pm »
Taaz, I am sure your description makes perfect sense to most, but I can't figure out what to do with it.

OK, what you do not understand? The open the lcl package part? you know there is an lcl.lpk that you can open right? In my 1.4.4 installation it can be found in <install directory>\lcl\interfaces.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

wp

  • Hero Member
  • *****
  • Posts: 11923
Re: lzRichEdit did not install in 1.6
« Reply #6 on: February 19, 2016, 06:21:09 pm »
I downloaded the sourceforge version of lzRichEdit and tried to install it in Laz1.6 (win32 version) and got this error:

Code: Pascal  [Select][+][-]
  1. Compile package LazRichEdit 0.1.5: Exit code 1, Errors: 1
  2. gtk2wsrichbox.pas(41,29) Fatal: Cannot find Gtk2Proc used by Gtk2WSRichBox. Enable flag "Use Unit" of unit Gtk2Proc in package LCL.

any ideas?
Why does lzRichEcit require gtk2 units under Windows? Looks like a package issue. I can confirm this compilation error with Laz 1.6, but also with Laz 1.4.4 --> nothing related to Laz 1.6.

And: I would not take the disadvantages of modifying a standard Lazarus package (LCL) for fixing a broken package.
« Last Edit: February 19, 2016, 07:38:55 pm by wp »

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: lzRichEdit did not install in 1.6
« Reply #7 on: February 19, 2016, 07:47:24 pm »
Is RichMemo as good or better than RichEdit?
It's exactly the same, since both are using the exactly same system provided controls.

polpero

  • Full Member
  • ***
  • Posts: 121
Re: lzRichEdit did not install in 1.6
« Reply #8 on: February 21, 2016, 10:33:52 pm »
My copy of lzRichEdit worked with the 2 previous releases of 1.6 (on windows)
But it won't install now...

///

Removing those files for Gtk2 from the package solves the problem...

« Last Edit: February 22, 2016, 02:00:36 pm by polpero »

Pancetto

  • Newbie
  • Posts: 5
Re: lzRichEdit did not install in 1.6
« Reply #9 on: February 24, 2016, 02:16:11 pm »
No, removing Gtk2-packages doesn't help. More times verify by me! There ara several errors with "illegal type conversion: LongWord to TStream" a.s.o. (unit Win32WSRichBox).

Other resolving for the problem?


skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: lzRichEdit did not install in 1.6
« Reply #10 on: February 24, 2016, 02:34:47 pm »
Other resolving for the problem?
try RichMemo. Don't forget to add RichMemoHelpers to your uses section, to make RichMemo more delphi compatible (as lzRichEdit does)

polpero

  • Full Member
  • ***
  • Posts: 121
Re: lzRichEdit did not install in 1.6
« Reply #11 on: February 25, 2016, 03:34:20 am »
Pancetto

Can you give me examples of the offending operations?
I can't yet replicate those error messages you state.

thanks


bill0287

  • Full Member
  • ***
  • Posts: 146
Re: lzRichEdit did not install in 1.6
« Reply #12 on: February 25, 2016, 07:04:26 am »
I opened the lzrichedit lpk and unchecked "use unit" for these three files and the component installed on windows, but the included demo would not compile.

interfaces/gtk2/gtk2wsrichbox.pas
interfaces/gtk2/gtk2wsrichboxfactory.pas
interfaces/gtk2/gtk2rtftool.pas
« Last Edit: February 25, 2016, 07:15:58 am by bill0287 »

wp

  • Hero Member
  • *****
  • Posts: 11923
Re: lzRichEdit did not install in 1.6
« Reply #13 on: February 25, 2016, 12:46:10 pm »
Here the compiler complains about a missing JvHtmlParser unit. I just removed the reference to it, and luckily the demo compiles.

But note that your way of solving the package compilation issue with the gtk2 files is just a work-around. If you'd once decide to compile your program for gtk2 then you'd have to modify the package again. That's not good.

Switch to RichMemo, I did not have any issues with it. Or contact the author of the component ("typo").

Pancetto

  • Newbie
  • Posts: 5
Re: lzRichEdit did not install in 1.6
« Reply #14 on: February 26, 2016, 12:34:50 pm »
Pancetto

Can you give me examples of the offending operations?
I can't yet replicate those error messages you state.

thanks

In the meanwhile I remove the dependencies for gtk2 in the install package of lzRichEdit as suggested, now it compiles an the error message isn't anymore. I've not yet tried to check my former progs with the component, if so I'll report this here.

« Last Edit: February 29, 2016, 10:42:16 pm by Pancetto »

 

TinyPortal © 2005-2018