Recent

Author Topic: Jujiboutils no longer compiles  (Read 5051 times)

JD

  • Hero Member
  • *****
  • Posts: 1832
Jujiboutils no longer compiles
« on: May 05, 2021, 09:05:55 pm »
Hi there everyone,

Recently, after installing Lazarus/FPC using fpcup on another machine, I've discovered that Jujiboutils no longer compiles

Here is the Wiki page for the component/package
https://wiki.freepascal.org/jujiboutils

The problem is line 247 in the file JLabel.pas, it says Identifier not found: DoMeasureTextPosition (see screenshot)

Can anybody help me resolve this problem and compile/install the package?

I'm using Lazarus 2.1.0/FPC 3.2

Cheers,

JD
Windows (10), Linux Mint - Lazarus 2.1/FPC 3.2, Delphi

Indy 10.6 series; mORMot; Zeos 7.3; SQLite, Firebird, PostgreSQL & MariaDB; VirtualTreeView 5.5.3 R1

wp

  • Hero Member
  • *****
  • Posts: 8550
Re: Jujiboutils no longer compiles
« Reply #1 on: May 05, 2021, 10:47:05 pm »
There is a recent change in TCustomLabel of trunk in which this method was removed. I contacted the committer, maybe it can be reverted.
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

JD

  • Hero Member
  • *****
  • Posts: 1832
Re: Jujiboutils no longer compiles
« Reply #2 on: May 06, 2021, 09:47:58 am »
Thanks wp. I look forward to hearing from you on whatever is decided.

JD
Windows (10), Linux Mint - Lazarus 2.1/FPC 3.2, Delphi

Indy 10.6 series; mORMot; Zeos 7.3; SQLite, Firebird, PostgreSQL & MariaDB; VirtualTreeView 5.5.3 R1

jujibo

  • Jr. Member
  • **
  • Posts: 91
Re: Jujiboutils no longer compiles
« Reply #3 on: May 06, 2021, 08:07:57 pm »
I'll wait too before fixing it.

@JD In the meantime, synchronize to a working version of trunk (before the change that WP refers)

jujibo

  • Jr. Member
  • **
  • Posts: 91
Re: Jujiboutils no longer compiles
« Reply #4 on: May 07, 2021, 10:57:29 am »
I have a fix ready, but will wait for the Lazarus developer's decision.

He has reimplemented the paint method and removed the DoMeasureTextPosition procedure, breaking compatibility with existing code.
If someone wants to delete a protected method, it's probably best to mark it as deprecated before deleting it. Inherited classes make use of protected procedures, for some reason they are protected and not private  :D

Regards

wp

  • Hero Member
  • *****
  • Posts: 8550
Re: Jujiboutils no longer compiles
« Reply #5 on: May 07, 2021, 11:32:30 am »
I still don't have a feedback. If I don't get feedback within, say, a few more days I'll re-add DoMeasureTextposition and mark it as deprecated. But I don't think that this will become reverted, so you could fix the issue right now anyway.
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

jujibo

  • Jr. Member
  • **
  • Posts: 91
Re: Jujiboutils no longer compiles
« Reply #6 on: May 07, 2021, 12:04:55 pm »
I still don't have a feedback. If I don't get feedback within, say, a few more days I'll re-add DoMeasureTextposition and mark it as deprecated. But I don't think that this will become reverted, so you could fix the issue right now anyway.

Thanks WP. Next week I'll commit all the changes. First, I have to check other components changes. Probably I'll release a new version with more features.

If this isn't going to be reverted, don't worry about restoring and marking it as deprecated. Lazarus trunk users could sync to a prev version in the meantime.

Ondrej Pokorny

  • Full Member
  • ***
  • Posts: 220
Re: Jujiboutils no longer compiles
« Reply #7 on: May 07, 2021, 06:34:59 pm »
Hello, I'll take a look :)

jujibo

  • Jr. Member
  • **
  • Posts: 91
Re: Jujiboutils no longer compiles
« Reply #8 on: May 09, 2021, 07:24:15 pm »

Can anybody help me resolve this problem and compile/install the package?

JD

Hi JD. There is a new version available:
https://sourceforge.net/projects/lazarus-ccr/files/Jujiboutils/jujiboutils-2.4.zip/download


JD

  • Hero Member
  • *****
  • Posts: 1832
Re: Jujiboutils no longer compiles
« Reply #9 on: May 12, 2021, 12:10:37 am »

Can anybody help me resolve this problem and compile/install the package?

JD

Hi JD. There is a new version available:
https://sourceforge.net/projects/lazarus-ccr/files/Jujiboutils/jujiboutils-2.4.zip/download

Thanks a million jujibo. I'll test it tomorrow and let you know how everything turns out.

JD
Windows (10), Linux Mint - Lazarus 2.1/FPC 3.2, Delphi

Indy 10.6 series; mORMot; Zeos 7.3; SQLite, Firebird, PostgreSQL & MariaDB; VirtualTreeView 5.5.3 R1

JD

  • Hero Member
  • *****
  • Posts: 1832
Re: Jujiboutils no longer compiles
« Reply #10 on: May 15, 2021, 11:45:34 am »
The latest version of Jujiboutils now compiles.

Thanks a million to all who helped me.

JD
Windows (10), Linux Mint - Lazarus 2.1/FPC 3.2, Delphi

Indy 10.6 series; mORMot; Zeos 7.3; SQLite, Firebird, PostgreSQL & MariaDB; VirtualTreeView 5.5.3 R1

jujibo

  • Jr. Member
  • **
  • Posts: 91
Re: Jujiboutils no longer compiles
« Reply #11 on: May 15, 2021, 12:24:19 pm »
The latest version of Jujiboutils now compiles.

Thanks a million to all who helped me.


Thanks to you for reporting it.

JD

  • Hero Member
  • *****
  • Posts: 1832
Re: Jujiboutils no longer compiles
« Reply #12 on: May 15, 2021, 02:31:09 pm »
I should thank you. I am now also able to compile it in Linux for the first time.  :D

JD
Windows (10), Linux Mint - Lazarus 2.1/FPC 3.2, Delphi

Indy 10.6 series; mORMot; Zeos 7.3; SQLite, Firebird, PostgreSQL & MariaDB; VirtualTreeView 5.5.3 R1

wp

  • Hero Member
  • *****
  • Posts: 8550
Re: Jujiboutils no longer compiles
« Reply #13 on: July 16, 2021, 01:13:02 pm »
Hello, I'll take a look :)
Ondrej, I think this issue is still open because there is now another discussion in which it plays a role... (https://forum.lazarus.freepascal.org/index.php/topic,55391.0.html)
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

jujibo

  • Jr. Member
  • **
  • Posts: 91
Re: Jujiboutils no longer compiles
« Reply #14 on: July 16, 2021, 01:49:11 pm »
Hello, I'll take a look :)
Ondrej, I think this issue is still open because there is now another discussion in which it plays a role... (https://forum.lazarus.freepascal.org/index.php/topic,55391.0.html)

Hi
AFAIK, there is no problem compiling jujiboutils with lazarus trunk. The problem reported in the link you posted, is related to another component: https://sites.google.com/site/lazpde/english/components/tmylabel

 

TinyPortal © 2005-2018