Recent

Author Topic: Problem installing GifAnim  (Read 6586 times)

clauslack

  • Sr. Member
  • ****
  • Posts: 275
Problem installing GifAnim
« on: January 15, 2011, 09:12:14 pm »
Hello

I can't install GifAnim 1.4 in newer versions of Lazarus.
(http://wile64.perso.neuf.fr/download/download.php?cat=4)


With Lazarus 0.9.29 svn 29023 fpc 2.4.2 the error is:
Package "pkg_gifanim 1.4" has no valid output directory: ""

With Lazarus 0.9.31 svn 29023 fpc 2.4.3 the error is:
C:\lazarus.svn\components\gifanim\gifanim.pas(86,15) Hint: Type "TGifImage" redefinition
C:\lazarus.svn\components\gifanim\gifanim.pas(196,20) Error: There is no method in an ancestor class to be overridden: "class TGifAnim.GetControlClassDefaultSize:<record type>;"
C:\lazarus.svn\components\gifanim\gifanim.pas(238,1) Fatal: There were 1 errors compiling module, stopping


With Lazarus 0.9.28.3 svn 27726 fpc 2.4.0 install fine.

Tested under Windows 7 64 bits (Lazarus 32 bits)

Under Linux Slackware 13 GTK2 with Lazarus 0.9.28.3 svn 28470 fpc 2.4.2 install fine, but when run lazarus show:
The package "pkg_gifanim" is installed, but no valid package file (.lpk) was found.


Any idea ?
Regards


Leledumbo

  • Hero Member
  • *****
  • Posts: 8112
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Problem installing GifAnim
« Reply #1 on: January 16, 2011, 03:57:53 pm »
I only use 0.9.31, so I can only help in this case. The component was written for quite some time, and since that time LCL code might get refactored or changed. You should look for GetControlClassDefaultSize in the previous release and what's the replacement. Additionally, the hint Type "TGifImage" redefinition might say that current LCL already has that type as well.

clauslack

  • Sr. Member
  • ****
  • Posts: 275
Re: Problem installing GifAnim
« Reply #2 on: January 17, 2011, 01:29:48 am »

clauslack

  • Sr. Member
  • ****
  • Posts: 275
Re: Problem installing GifAnim
« Reply #3 on: January 18, 2011, 02:15:34 am »
The other problem is in controls.pp
http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/lcl/controls.pp?root=lazarus&r1=25190&r2=25204
 use TSize instead of TPoint

Gifanim use TPoint, so I change all to TSize.
Then revert svn 26758(later I will change the class name TGifImage in gifanim.pas ) and compile fine under Lazarus 0.9.31 svn

Work fine now
Regards