Celebration! PHP-GTK 1.x App released for OSX!
| From: | Benjamin Smith | Date: | Fri, 23 Jun 2006 23:38:33 +0000 |
| Subject: | Celebration! PHP-GTK 1.x App released for OSX! | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-7024@lists.php.net to get a copy of this message | ||
Perusing the list the last few weeks makes it pretty obvious that 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 a "double-click and run" icon that fits well with OSX,
and FileStorm to create the installer package. (look in the ".../src"
directory in my most recent package)
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
--
"The best way to predict the future is to invent it."
- XEROX PARC slogan, circa 1978