• Welcome to Theos PowerBasic Museum 2017.

Using GTK with PowerBASIC

Started by Chris Holbrook, August 07, 2013, 10:08:43 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Chris Holbrook

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!

Aslan Babakhanov

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.

José Roca

It is included in the GLib package, available in the link that Aslan has posted above.

John Spikowski

#3
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.


Chris Holbrook

Thanks all, Aslan's link got me on the right road.

John Spikowski

#5
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


Chris Holbrook


John Spikowski

Keep us in the loop how your GTK-Server and PowerBASIC adventures pan out.