[gtk+osx] gtk for a GNU/configure program?
Status: Beta
Brought to you by:
jralls
From: Paul E. <pa...@ch...> - 2004-03-05 17:10:40
|
Hi Gtk-OSX developers, I would like to use gtk-osx for my project, it looks great, just the job! My project is built around the GNU autotools, rather than Xcode. It is not clear to me how to compile with gtk-osx in that system. I downloaded gtk+-1.2.10 (says) and tried to compile (just) the example buttons: First I set the path so that the gtk-config found is the one for gtk-osx: i.e. gtk-config --cflags returns: -I/Library/Frameworks/GDK.framework/Headers -F/Library/Frameworks -I/Library/Frameworks/GLib.framework/Headers gtk-config --libs returns: -F/Library/Frameworks -F/Library/Frameworks -framework GLib -framework GDK -framework GTK -I/Library/Frameworks/GLib.framework/Headers -lm So I compile buttons: $ gcc `gtk-config --cflags` buttons.c -o buttons `gtk-config --libs` and run it $ ./buttons A new gtk-osx window pops up - hooray! But when I click on the the call back doesn't work - boo! Why is that? I notice that gtktestthing has a Carbon.framework thing that buttons does not have: $ otool -L buttons buttons: /Library/Frameworks/GLib.framework/Versions/A/GLib (compatibility version 1.0.0, current version 1.0.0) /Library/Frameworks/GDK.framework/Versions/A/GDK (compatibility version 1.0.0, current version 1.0.0) /Library/Frameworks/GTK.framework/Versions/A/GTK (compatibility version 1.0.0, current version 1.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 71.0.0) $ otool -L gtktestthing gtktestthing: /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 128.0.0) /Library/Frameworks/GDK.framework/Versions/A/GDK (compatibility version 1.0.0, current version 1.0.0) /Library/Frameworks/GLib.framework/Versions/A/GLib (compatibility version 1.0.0, current version 1.0.0) /Library/Frameworks/GTK.framework/Versions/A/GTK (compatibility version 1.0.0, current version 1.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 71.0.0) I would be very grateful if you could help me out. Thanks, Paul. |