Re: gtklib
- Posted by Irv Mullins <irvm at ellijay.com> Mar 20, 2002
- 646 views
On Sunday 10 February 2002 11:09 am, Chris Burch wrote: > What assumptions do you make re the requirements to run the library. > I seem to have gtk 1.2.8 installed (SuSE Linux system) - are there any > other requirements? > > I can get the graphapp euphoria library to work. Hi Chris: You'll need libgtk and libgdk, plus the little eugtk.so supplied with the package. I don't think the version matters a lot, I'm not using any bleeding-edge stuff here. So far, I've had no problem running this in Mandrake 7.1, 8.0, 8.1, RedHat 7.1, SuSE 6.4, or TurboLinux (something or other). Anyway, if you want to test to see if you can actually run any gtk programs, copy the following code and save it as gtkwin.c: /* Basic GTK+ app */ #include <gtk/gtk.h> gint main (gint argc, gchar *argv[]) { GtkWidget * TheWindow; gtk_init( &argc, &argv); TheWindow = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_widget_show(TheWindow); gtk_main(); return 0; } Next, compile it using gcc gtkwin.c -o gtkwin `gtk-config --cflags --libs` (Note: Those are back-tic's) If it compiles, the needed libraries must be there. If not, let me know what the error messages are. Regards, Irv