PHP-GTK 1.x on Macintosh OSX

Contact Ben Smith

Sources:

Pay attention to the doit.sh script - it should give a basic idea of what I'm trying to accomplish. Your mileage may vary - but I hope it's useful.

Binary

Here's the most recent binary that I made that seems to work OK. If you're serious, I recommend building the whole package above.
I've been trying to hammer out a workable, easily-installed, Mac-OSX PHP-GTK environment to support the PHP-GTK app being sold by our growing company.

And I'm pleased to announce that it's now officially released!

I ran into many issues, such as:
1) php-templates could not be loaded as a module into either A) PHP binary shipped with OSX, or B) PHP binary shipped with fink. To get around this, I had to build this into PHP.
2) Macintosh autoconf is broken, and can't be used to build a php extension into PHP, so finishing #1 proved to be more work than expected.
3) GTK/GLIB 1.x needs to be patched to compile usefully on OSX.
4) Never could get GtkScintilla to work - ended up wrapping GtkText with a Scintilla emulator class, with connect signals and methods that emulated GtkScintilla's so my application works with either one. (If you need this, feel free to ask)

I have all this work put together into a buildit script, complete with everything needed to run an installer on Mac OSX 10.4. It should be pretty much "plug and play" for 10.4 Tiger. You can get it here: http://chico.benjamindsmith.com/phpgtk_osx/ Look for notes therein (README, issues) and look thru the doit.sh script if you're curious. To minimize dependencies, everything compiles to its own directory ("/opt/SchoolPathways").

I used Platypus to make (free!) a "double-click and run" icon that fits well with OSX, and FileStorm to create the installer package. ($80 for the "pro" version that doesn't have "UNREGISTERED" plastered all over it)

The end result is... basically perfect! The program looks like an OSX program, complete with the Aqua/Quartz buttons on the top left, it looks, acts, and feels native. I had no issues getting the shell "open" command to open PDF files and websites, so the functionality was clean. (I wish I could say that about the Windows release!)

I hope this helps - you are certainly free to use my modified, compile sources in whatever projects you may desire.

-Ben