Sign in Join

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

Mailing lists / fpc-pascal / 2002-07

FPC and GTK+

6 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Fernando Lozano

Hi there,

I used to try simple GTK+ apps using FPC for Windows and the GTK+ DLLs provided by Dia and Gimp. Now, using FPC 1.0.6, Dia 0.90 and Gimp 1.2.3 (both from the installer packages) I found the GTK+ DLLs have different names from the ones expected by FPC.

What would be the steps to recompile the GTK+ unit from w32full106.zip on Windows 98? Could you consider building a new distro from 1.0.6 using the latest GTK+ for Windows binaries?

[]s, Fernando Lozano

Reply by email

Olaf Leidinger
to Fernando Lozano

Hi!

What would be the steps to recompile the GTK+ unit from w32full106.zip on

Windows 98? Could you consider building a new distro from 1.0.6 using the latest GTK+ for Windows binaries?

If you'd like to patch the names you need to change the constants in glib, gdk, gtk and so on. I think the name of the constants are gliblib, gtklib and gdklib. Then simply compile it like a normal program.

But if you are interrested in a gtk2 unit have a look at http://sourceforge.net/projects/gtk2forpascal/ . It's not complete, yet but it's promising ;-)

You probably want the latest version from cvs. The tarball is a bit outdated.

Ciao,

Olaf

Reply by email

Fernando Lozano

Hi Olaf,

Show quoted text 7 lines
> What would be the steps to recompile the GTK+ unit from w32full106.zip on Windows 98? Could you consider building a new distro from 1.0.6 using the latest GTK+ for Windows binaries? If you'd like to patch the names you need to change the constants in glib, gdk, gtk and so on. I think the name of the constants are gliblib, gtklib and gdklib. Then simply compile it like a normal program.

The latest releases of Dia and Gimp use libgtk_0.dll, libgdk.dll and so on.

But if you are interrested in a gtk2 unit have a look at http://sourceforge.net/projects/gtk2forpascal/ . It's not complete, yet but it's promising ;-)

So far I want just a simple install for my students. :-)

[]s, Fernando Lozano

Reply by email

Fernando Lozano

Hi there,

It looks like if I copy libgtk-0.dll from newer releases of Gimp and Dia for Windows to gtk-1.3.dll everything works fine.

But I still need help with the OO wrappers for event handlers. :-)

[]s, Fernando Lozano

Reply by email

Fernando Lozano
to Florian Klaempfl

Hi Florian,

Show quoted text 6 lines
> It looks like if I copy libgtk-0.dll from newer releases of Gimp and > Dia for Windows to gtk-1.3.dll everything works fine. libgtk-0.dll is a developement version that's the reason of the strange version number. GTK-Win32 is still classified as unstable I think.

Well, it works very well with Gimp, Dia and Ethereal, which are big apps. :-)

Mozilla and OpenOffice for Windows are also GTK-based, but use custom patched versions.

I also discovered a Windows port of Glade. It works very nice! Now I have to find a Win32 port of libglade.Compiling the Pascal bindings for libglade was easy, but I have no GLADE.DLL availabe. :-(

> But I still need help with the OO wrappers for event handlers. :-) Ever looked at https://sourceforge.net/projects/gtkpas/ ?

Thanks for the hint. But my attempts to hack the makefiles for Win32 didn't worked. They miss symbols from the GTK Unit (!)

[]s, Fernando Lozano

Reply by email