Advertisement

running gtk on OS X

Started by October 05, 2007 01:52 AM
-1 comments, last by basement 17 years, 1 month ago
After some googling it looks like there are several solutions to build gtk apps on Mac, but no "official" one? I have downloaded all the gtk libraries and binaries via Fink Commander and basically just dumped all the libraries into my Xcode project's tree. With a bit of tinkering I got the project to compile without errors (the code runs just fine on Windows, too) I have installed X11.app and the Gimp works. X11.app is running right now, but if I execute my own program from the terminal I get a bunch of glib errors and gtk crashes somewhere in gtk_window_new(). Is there anything else I'm missing to get this to run? I have also tried running the program from an xterm but same thing. These are just a few of all the errors I get:

GLib-CRITICAL **: file ghash.c: line 138 (g_hash_table_lookup): assertion
`hash_table != NULL' failed.

Gtk-WARNING **: gtk_type_create(): unknown parent type `21'.

GLib-CRITICAL **: file ghash.c: line 138 (g_hash_table_lookup): assertion
`hash_table != NULL' failed.

Gtk-WARNING **: gtk_type_create(): unknown parent type `21'.

GLib-CRITICAL **: file ghash.c: line 138 (g_hash_table_lookup): assertion
`hash_table != NULL' failed.

GLib-CRITICAL **: file ghash.c: line 152 (g_hash_table_insert): assertion
`hash_table != NULL' failed.

GLib-CRITICAL **: file ghash.c: line 138 (g_hash_table_lookup): assertion
`hash_table != NULL' failed. 
[Edited by - basement on October 5, 2007 2:53:03 AM]

This topic is closed to new replies.

Advertisement