Vampyre Imaging Library Forum

Imaging Category => Help & Questions => Topic started by: Martin on 28 September 2007, 14:31:46

Title: Problem compiling with lazarus
Post by: Martin on 28 September 2007, 14:31:46
Problem compiling from lazarus v0.9.22 and gtk2.

/home/dualcore/local/lazarus/paquetes/Imaging/Source/ImagingComponents.pas(834,81) Error: Incompatible type for arg no. 2: Got "GDK2.PGdkGC", expected "GDK.PGdkGC"

Line:

  gdk_draw_rgb_32_image(TDeviceContext(Dest).Drawable, TDeviceContext(Dest).GC,
      DstX, DstY, SrcWidth, SrcHeight, GDK_RGB_DITHER_NONE,
      @PLongWordArray(ImageData.Bits)[SrcY * ImageData.Width + SrcX], ImageData.Width * 4);
Title: Re: Problem compiling with lazarus
Post by: Galfar on 8 October 2007, 16:18:54
Problem fixed and uploaded to SVN repository.
GTK2 was detected incorrectly and it used some units from GTK1 causing that incompatible args error.