Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2000-01

gtk-dlls don't match source in cvs

8 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael A. Hess

From: Peter Vreman

Vincent Snijders wrote 27 lines
Hi, I got a compiled version of lazarus on windows 98 :-), but it doesn't run ;-( When I start the program windows show a messagebox complaining that the executable is linked to a missing export GDK-1.3.dll:gdk_time_get. I downloaded the dlls from: ftp://lazarus.freepascal.org/lazarus/gtk-dlls.zip This function is defined in the include file gdkmain.pp which I got out of cvs, but it is not in de dll (I checked with depends) The following test program can be used to reproduce the error. program testgtk; uses gdk; begin writeln('Hi, I do compile,'); writeln('but I can''t run'); end. Are the dll's in gtk-dlls.zip stale or should gdkmain.pp be adjusted.

Fixed. But some maybe used functions are also gone. gdk_draw_pixmap() which was at least use by scribble-simple example.

Reply by email

Peter Vreman
to Michael A. Hess
"Michael A. Hess" wrote 25 lines
From: Peter Vreman Vincent Snijders wrote: > > Hi, > > I got a compiled version of lazarus on windows 98 :-), > but it doesn't run ;-( > > When I start the program windows show a messagebox complaining that > the executable is linked to a missing export > program testgtk; > > uses gdk; > > begin > writeln('Hi, I do compile,'); > writeln('but I can''t run'); > end. > > Are the dll's in gtk-dlls.zip stale or should gdkmain.pp be adjusted. Fixed. But some maybe used functions are also gone. gdk_draw_pixmap() which was at least use by scribble-simple example.

It's fixed in the 0.99.14 release. Maybe you can take that as the default compiler needed for lazarus instead of snapshots.

Reply by email

Snijders, V.
Show quoted text 11 lines
> From: Peter Vreman > > > Are the dll's in gtk-dlls.zip stale or should gdkmain.pp be adjusted. > > Fixed. But some maybe used functions are also gone. gdk_draw_pixmap() > which was at least use by scribble-simple example. It's fixed in the 0.99.14 release. Maybe you can take that as the default compiler needed for lazarus instead of snapshots.

What is fixed in the 0.99.14 release?
Has the scribble-simple example stopped using gdk_draw_pixmap? Or
Is gdk_draw_pixmap back in release 0.99.14?

Reply by email

Vincent Snijders

Hi,

I got a compiled version of lazarus on windows 98 :-), but it doesn't run ;-(

When I start the program windows show a messagebox complaining that the executable is linked to a missing export GDK-1.3.dll:gdk_time_get.

I downloaded the dlls from:
ftp://lazarus.freepascal.org/lazarus/gtk-dlls.zip

This function is defined in the include file gdkmain.pp which I got out of cvs, but it is not in de dll (I checked with depends)

The following test program can be used to reproduce the error.

program testgtk;
uses gdk;
begin
  writeln('Hi, I do compile,');
  writeln('but I can''t run');
end.

Are the dll's in gtk-dlls.zip stale or should gdkmain.pp be adjusted.

TIA,

Vincent Snijders

Reply by email

Peter Vreman
to Snijders, V.: What is fixed in the 0.99.14 release? Has the scribble-simple example stopped using…
you wrote 16 lines
> > From: Peter Vreman > > > > > Are the dll's in gtk-dlls.zip stale or should gdkmain.pp > be adjusted. > > > > Fixed. But some maybe used functions are also gone. > gdk_draw_pixmap() > > which was at least use by scribble-simple example. > > It's fixed in the 0.99.14 release. Maybe you can take that as the > default compiler needed for lazarus instead of snapshots. What is fixed in the 0.99.14 release? Has the scribble-simple example stopped using gdk_draw_pixmap? Or Is gdk_draw_pixmap back in release 0.99.14?

No, that's the problem for the gtk-win32 guys. I only update the pascal bindings (which is nothing some declarations of procedures) to run, so if the gdk_draw_pixmap must be turned off for win32, then I turn it off. If i don't do that the programs won't

Reply by email

Peter Vreman
to Vincent Snijders: Who are the gtk-win32 guys? I have been looking further into this problem. The reason that
Show quoted text 12 lines
> >What is fixed in the 0.99.14 release? > >Has the scribble-simple example stopped using gdk_draw_pixmap? > >Or > >Is gdk_draw_pixmap back in release 0.99.14? > No, that's the problem for the gtk-win32 guys. I only update the pascal > bindings (which is nothing some declarations of procedures) to run, so if > the gdk_draw_pixmap must be turned off for win32, then I turn it off. If i > don't do that the programs won't run at all. > > > Peter Who are the gtk-win32 guys?

The ppl who are porting the gtk to win32.

Show quoted text 17 lines
I have been looking further into this problem. The reason that gdk_draw_pixmap (and others) is missing in the gdk-1.3.dll is that is has been replace by (renamed to) gdk_draw_drawable. I adjusted the declaration in gdkmain.pp so that the declared procedure doesn't try import gdk_draw_pixmap but gdk_draw_drawable. The new declaration is then: procedure gdk_draw_pixmap( ... );cdecl;external gdkdll name 'gdk_draw_drawable'; Which functions have been replaced can be seen in the gdkcompat.h file, which is in gtk+-dev-19990828.zip. The examples seem to run fine and so does lazarus, so I think this a way out. An other possibility would be to rebuild the dll's so that they export the gtk 1.2 functions. Your feedback, please, on how to go on.

Insert the calls at between {$ifdef win32} with their correct names. The names will also change in the near future for linux.

Peter

Reply by email

Vincent Snijders
to Peter Vreman: No, that's the problem for the gtk-win32 guys. I only update the pascal bindings (which…
Show quoted text 11 lines
>What is fixed in the 0.99.14 release? >Has the scribble-simple example stopped using gdk_draw_pixmap? >Or >Is gdk_draw_pixmap back in release 0.99.14? No, that's the problem for the gtk-win32 guys. I only update the pascal bindings (which is nothing some declarations of procedures) to run, so if the gdk_draw_pixmap must be turned off for win32, then I turn it off. If i don't do that the programs won't run at all. Peter

Who are the gtk-win32 guys?

I have been looking further into this problem. The reason that gdk_draw_pixmap (and others) is missing in the gdk-1.3.dll is that is has been replace by (renamed to) gdk_draw_drawable. I adjusted the declaration in gdkmain.pp so that the declared procedure doesn't try import gdk_draw_pixmap but gdk_draw_drawable. The new declaration is then:

procedure gdk_draw_pixmap( ... );cdecl;external gdkdll name
'gdk_draw_drawable';

Which functions have been replaced can be seen in the gdkcompat.h file, which is in gtk+-dev-19990828.zip.

The examples seem to run fine and so does lazarus, so I think this a way out. An other possibility would be to rebuild the dll's so that they export the gtk 1.2 functions.

Your feedback, please, on how to go on.

Reply by email