Native GTK + Mac OS X + BaconGUI (UPDATED)
Nov 8, 2011 13:34:26 GMT 1
Post by ibob on Nov 8, 2011 13:34:26 GMT 1
Hi! (UPDATED)
I been having problems getting the latest native GTK Framework for the Mac, simply because they dropped support to this and now there's a tool that will compile your C/C++ GTK apps automatically, instead of a framework. But well, I figured that Mono (www.mono-project.com) had the lates GTK libraries compiled under their lib install, and well I took them (just gtk and glib libraries), then compiled gtksourceview, and packed all together into an installer for SL and Lion i386, that will install Gtk.framework under your /Library/Frameworks folder, and you will be ready to make native GTK apps for your bacon projects.
Of course it would be great to have native COCOA libraries, but its not an easy task. GTK works very good anyway with quartz backend, but you need to install this framework...
UPDATE: Mono.framework libraries didn't work because the folder and other files dependency, so Now I've compiled (using MacPort) the universal version (32 and 64bit) binary of the GTK libraries.
You can download GTKNativeMacIntelUniv.zip, and there you will find two packages, one is "GTK_Native_Mac_Libraries_Installer.pkg" that is used to install the libraries in the opt folder on your system disk, so then you can use /opt/local/lib in your programs to reference libraries. And the second package (needed) is "GTK_Config_Extras.pkg" that will install the theme and a couple of config files gtk use in your home user folder.
Note: The only library I wasn't able to compile in universal mode was gtksourceview, so it's 64 bits only. If you need/want it in 32 bit you need to compile yourself and replace the 64 bit version under /opt/local/lib... Another thing to note is that is the pkg file is 220MB in size, but after installed it will eat 1gb of space because all the headers files and things... And an extra one, this contains gtk, glade, glib, cairo, gobject, and even sqlite3, libraries, but I haven't compiled GLUT and these, only what was needed for GUI and the libraries that were needed to satisfy dependencies. The good thing is that you get a bunch of extra libraries, like I said, sqlite, curl, xml, tiff, and other, and all of them in 32+64 bits (universal), use "file lib.dylib" to get info about the file, to know if it's 32 or 64, or universal...
So here you go:
www.ibobx.com/Software/GTKNativeMacIntelUniv.zip
Also, compiled BaconGui (again) into a 64 bit binary and bundled it into an .app file here:
www.ibobx.com/Software/BaconGui.zip
Hope it's useful,
Thanks, Roberto.
I been having problems getting the latest native GTK Framework for the Mac, simply because they dropped support to this and now there's a tool that will compile your C/C++ GTK apps automatically, instead of a framework. But well, I figured that Mono (www.mono-project.com) had the lates GTK libraries compiled under their lib install, and well I took them (just gtk and glib libraries), then compiled gtksourceview, and packed all together into an installer for SL and Lion i386, that will install Gtk.framework under your /Library/Frameworks folder, and you will be ready to make native GTK apps for your bacon projects.
Of course it would be great to have native COCOA libraries, but its not an easy task. GTK works very good anyway with quartz backend, but you need to install this framework...
UPDATE: Mono.framework libraries didn't work because the folder and other files dependency, so Now I've compiled (using MacPort) the universal version (32 and 64bit) binary of the GTK libraries.
You can download GTKNativeMacIntelUniv.zip, and there you will find two packages, one is "GTK_Native_Mac_Libraries_Installer.pkg" that is used to install the libraries in the opt folder on your system disk, so then you can use /opt/local/lib in your programs to reference libraries. And the second package (needed) is "GTK_Config_Extras.pkg" that will install the theme and a couple of config files gtk use in your home user folder.
Note: The only library I wasn't able to compile in universal mode was gtksourceview, so it's 64 bits only. If you need/want it in 32 bit you need to compile yourself and replace the 64 bit version under /opt/local/lib... Another thing to note is that is the pkg file is 220MB in size, but after installed it will eat 1gb of space because all the headers files and things... And an extra one, this contains gtk, glade, glib, cairo, gobject, and even sqlite3, libraries, but I haven't compiled GLUT and these, only what was needed for GUI and the libraries that were needed to satisfy dependencies. The good thing is that you get a bunch of extra libraries, like I said, sqlite, curl, xml, tiff, and other, and all of them in 32+64 bits (universal), use "file lib.dylib" to get info about the file, to know if it's 32 or 64, or universal...
So here you go:
www.ibobx.com/Software/GTKNativeMacIntelUniv.zip
Also, compiled BaconGui (again) into a 64 bit binary and bundled it into an .app file here:
www.ibobx.com/Software/BaconGui.zip
Hope it's useful,
Thanks, Roberto.