Theos PowerBasic Museum 2017

General Category => General Discussion => Topic started by: Chris Holbrook on August 07, 2013, 10:08:43 AM

Title: Using GTK with PowerBASIC
Post by: Chris Holbrook on August 07, 2013, 10:08:43 AM
Moderator, please feel free to move this if there is a better place!

I have also posted a similar message on PowerBASIC.

Can anyone provide a fairly foolproof install-and-go guide for this? I've located GTK-server and downloaded it, but it's calling for a library (libglib-2.0-0.dll) which is part of the MinGW setup. Do I need all of minGW too?

(I suspect that John Spikowski has the answer!)

Thanks!
Title: Re: Using GTK with PowerBASIC
Post by: Aslan Babakhanov on August 07, 2013, 02:03:51 PM
http://www.gtk.org/download/win32.php

I suppose, that you need to download and install GLib. That should resolve your issue.

Mingw can be used as a toolchain.
Title: Re: Using GTK with PowerBASIC
Post by: José Roca on August 07, 2013, 03:06:55 PM
It is included in the GLib package, available in the link that Aslan has posted above.
Title: Re: Using GTK with PowerBASIC
Post by: John Spikowski on August 07, 2013, 06:06:10 PM
GTK-Server is no longer maintained by Peter and Gtk for windows is a kludge to work with. Gtk 2 was all but abandoned until someone had the idea of porting Gtk 3 to Windows and started the nightmare all over again.  My advice is to look at IUP as a cross platform GUI toolkit. If all your looking for is a FFI interface, take a peek at Charles's SB/DLLC or ThinBasic's O2 JIT virtual dynamic linked library interface for Windows.

Title: Re: Using GTK with PowerBASIC
Post by: Chris Holbrook on August 08, 2013, 08:50:33 AM
Thanks all, Aslan's link got me on the right road.
Title: Re: Using GTK with PowerBASIC
Post by: John Spikowski on August 08, 2013, 09:15:19 AM
If your going to install Gtk for Windows, you might as well install a current version of it. (Gtk 3.4.2 - 32 bit - includes Vala as a bonus)

http://www.tarnyko.net/en/?q=node/1

My first Gtk-Server / PowerBASIC example. (2006)

http://www.gtk-server.org/demo-lib.pb.txt

Title: Re: Using GTK with PowerBASIC
Post by: Chris Holbrook on August 08, 2013, 08:53:40 PM
Thanks John.
Title: Re: Using GTK with PowerBASIC
Post by: John Spikowski on August 08, 2013, 09:19:05 PM
Keep us in the loop how your GTK-Server and PowerBASIC adventures pan out.