« GTK+ code rewriter | Main | Devhelp assistant »

GTK+ OS X framework

Finally we have a binary build for the native GTK+ Mac OS X port! You can check it out here. The download is an installer that comes with frameworks for GTK+ and friends. The installed frameworks can be used directly in the Xcode IDE and come with a project template that sets all the necessary flags and variables to build against the frameworks.

You can also use the frameworks for building normal autotools based projects. This requires a bit of magic, so you will need a special jhbuild setup for it to work, which is currently work in progress but should be ready soon.

What is missing still is support for creating standalone apps, i.e. packages that contain the run-time parts of the frameworks needed to run the app. Also note that this is a beta version so please let me know if you run into any problems so we can work them out.

The binaries are Intel only, and require Mac OS X 10.4 or newer. Note that the Xcode integration is only tested with 3.x so feedback on using 2.5 is appreciated.

Comments

Cool! Be great if there was a gtkmm framework too.

It's quite easy to extend the build to produce more frameworks from the GNOME stack, so I might look into that once the basic stuff is solid and done.

Great! I just wanted to try to compile it myself today! Thanks!

Awesome! Any chance for Universal or PowerPC-specific binaries?

thank you. I was trying to do the same thing... but you did first. thank you..btw, it would be cool have a TODO list online so people interested can help you..

@Sandy, it would certainly be possible, but I won't spend time on it myself, at least not in the near future. I tried to do it automatically in the same jhbuild setup as we normally build but it required a bit of manual work so I gave up the idea for now.

@giskard, I plan to add a page on the developer site with plans/TODO items etc soon.


That is great news! Thank you for your work and keep up the good things!

There is a problem with the gtkapplication package. When installing as a network user, the installer (running as root via sudo) does not have permission to create files in user directories. This appears to impact the postflight and the gtktemplate directory. Apple's installer error is "The Installer could not create the folder /var/tmp/gtktemplate". (which is linked into a user directory) I completed the installation by running installer from the command-line as root.

@Ryan, ah good catch. I'll see what I can do about that, thanks for reporting the problem!

The screenhots lately and the new ones at the GTK+ OS X Developer page don't show the Quartz theme. Has it been abandoned?

I too can't test this because I'm (for now stuck) on PowerPC.

The quartz theme is not really usable yet, that's why it's not used

Is there any way to cross-compile for macos from linux (like mingw32 for windows)? I'd rather not have to deal with proprietary operating systems.

Congrats on the release! Keep it up, we appreciate the effort :)

@foo: No, not that I'm aware of.

@Panos: Thanks :)

I'm working on a gtk+ based game called GtkMoo(Alpha Stage) for Mac OS, and other unix based OS.
(See gtk-moo.sourceforge.net).

There are few bugs I would like to report:
1. Image fails to load during run time.(png, jpeg)
But, when the appliaction is executed through XCode using Build and Run, image loads.
2. xpm files don't show up at all, nothing is displayed if we use a xpm image or include it in source.
3. Lastly, can you help me on making standalone application like the way GIMP and other gtk+ apps on MAC OS do. Can you refer any tutorial or something.

Finally, thanks for taking time in reading this message, please mail me at:
rohit_yadav@users.sourceforge.net