Sign in Join

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

Mailing lists / lazarus / 1999-10

GTK header

8 messages · 6 people ·

Reply by email Subscribe to this list Your subscription

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

Sergio A. Kessler
to Florian Klaempfl: In the gtk headers, there were a lot declaration like function gtk_label_new…

Florian Klaempfl el d�a Wed, 20 Oct 1999 22:15:01 +0200, escribi�:

Show quoted text 9 lines
glibdll must be set to gdk-1.3: const gdkdll='gdk-1.3'; glibdll='gdk-1.3'; else the whole gdk_* calls are imported from glib-1.3.dll which is wrong! After that I was able to compile and run the lazarus IDE with win98. Should I commit it or is there any objection?

gtk 1.3 and gdk 1.3 are _beta_ versions (in reality they aren't even alpha versions, the 1.3 branch just get reorganized just a few weeks ago), the gtk guys want to revamp some code... (probably a lot of code)

Sergio

Reply by email

Florian Klaempfl
to Florian Klaempfl: In the gtk headers, there were a lot declaration like function gtk_label_new…
Show quoted text 5 lines
After that I was able to compile and run the lazarus IDE with win98. Should I commit it or is there any objection?

I commited the changes, if you encounter problems contact Peter or me.

BTW: On the web page "Lazarus Win32 How To" are some small mistakes: The libraries are called now:
gtk+-dev-19990828.zip
and
glib-dev-19990828.zip
remark the additional dev
Further,
extralibs-dev-19990828.zip
is necessary for gnu-intl.dll

Reply by email

Shane Miller

I don't see any problem with this. I am still on gtk 1.2. so I hope that doesn't cause any trouble but other than that, it seems ok.

BTW, thanks for the update to classesh.inc

Shane

>> Florian Klaempfl 10/20/99 03:07PM >>>

In the gtk headers, there were a lot declaration like

function  gtk_label_new (str:pchar):PGtkWidget;cdecl;external gtkdll name 'gtk_label_new ';

remark the trailing space after the import name! This prevents the gtk for win32 working on win98

In gtkbindings.h is
#define gtk_binding_entry_add gtk_binding_entry_clear so in the pascal headers the import name of gtk_bindings_entry_add should be gtk_binding_entry_clear!

Then I had to remove the declaration of
gtk_drag_source_unset in gtkdnd.pp it isn't in gtk-1.3.dll!

At last in gdk.pp

glibdll must be set to gdk-1.3:
  const
    gdkdll='gdk-1.3';
    glibdll='gdk-1.3';
else the whole gdk_* calls are imported from glib-1.3.dll which is wrong!

After that I was able to compile and run the lazarus IDE with win98.

Should I commit it or is there any objection?

_________________________________________________________________ To unsubscribe: mail with
"unsubscribe" as the Subject
archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Jeff Wormsley
to Florian Klaempfl: In the gtk headers, there were a lot declaration like function gtk_label_new…
Florian Klaempfl wrote
function gtk_label_new (str:pchar):PGtkWidget;cdecl;external gtkdll name 'gtk_label_new '; remark the trailing space after the import name! This prevents the gtk for win32 working on win98

That explains why I haven't been able to get things to work this week..

Should I commit it or is there any objection?

I for one would appreciate it.

BTW, did you happen to see where the GTK dependency crept back in? If you go to Interfaces.pp and take out the GTK define, and put back in the WIN32 define, you can compile, but you still get a GTK error when you try to execute.

Jeff.

Reply by email

Florian Klaempfl

In the gtk headers, there were a lot declaration like

function  gtk_label_new (str:pchar):PGtkWidget;cdecl;external gtkdll name 'gtk_label_new ';

remark the trailing space after the import name! This prevents the gtk for win32 working on win98

In gtkbindings.h is
#define gtk_binding_entry_add gtk_binding_entry_clear so in the pascal headers the import name of gtk_bindings_entry_add should be gtk_binding_entry_clear!

Then I had to remove the declaration of
gtk_drag_source_unset in gtkdnd.pp it isn't in gtk-1.3.dll!

At last in gdk.pp

glibdll must be set to gdk-1.3:
  const
    gdkdll='gdk-1.3';
    glibdll='gdk-1.3';
else the whole gdk_* calls are imported from glib-1.3.dll which is wrong!

After that I was able to compile and run the lazarus IDE with win98.

Should I commit it or is there any objection?

Reply by email

Jeff Wormsley
to Florian Klaempfl
Florian Klaempfl wrote 9 lines
BTW: On the web page "Lazarus Win32 How To" are some small mistakes: The libraries are called now: gtk+-dev-19990828.zip and glib-dev-19990828.zip remark the additional dev Further, extralibs-dev-19990828.zip is necessary for gnu-intl.dll

Thanks for the corrections. I'll update that and send it to Michael as soon as I can. May not be until Satutrday, though.

Jeff.

Reply by email

Viincent Snijders
to Florian Klaempfl: In the gtk headers, there were a lot declaration like function gtk_label_new…

extralibs-dev-19990828.zip contains more than just one or two dll's. It also contains *.lib, *.h and *.a files. Do I need to install those too or just gnu-intl.dll (and possibly pthread.dll).

If I need to install the non-dll files, where in the directory do you think I should put the those files?

Vincent Snijders

Earlier message 13 lines
----- Original Message ----- From: Florian Klaempfl To: Sent: Thursday, October 21, 1999 9:37 AM > BTW: On the web page "Lazarus Win32 How To" are some small mistakes: > The libraries are called now: > gtk+-dev-19990828.zip > and > glib-dev-19990828.zip > remark the additional dev > Further, > extralibs-dev-19990828.zip > is necessary for gnu-intl.dll

Reply by email