Hi Anant,
I tried the installer on a fresh install of OSX 10.5.
When I tried to run a simple PHP hello_world.php,
<?php
$window = new GtkWindow();
$window->connect_simple('destroy', array('Gtk','main_quit'));
$window->add(new GtkLabel("hello world!"));
$window->show_all();
Gtk::main();
?>
this is the error message:
dyld: NSLinkModule() error
dyld: Library not loaded: /usr/local/lib/libintl.3.dylib
Referenced from: /usr/local/php-gtk/lib/php/extensions/no-debug-non-zts-20060613/php_gtk2.so
Reason: image not found
Trace/BPT trap
Did I forget to load any other libraries? Where could I find this libintl.3.dylib?
Thanks and Regards,
/kksou
Anant Narayanan wrote:
Hey,
For all you Mac users out there, I've made an installer for the latest
stable version of PHP-GTK. It installs all the pre-requisites for PHP-
GTK so you can get started as quickly as possible. That's not all, the
applications will also run without an X server, and present a really
nice Aqua interface (thanks to the wonderful folks at Imendio for
writing a Quartz backend for GTK+)
Grab it from:
http://www.kix.in/php-gtk2/PHP-GTK-2.0.0.dmg (33MB - The
size is a little big because of the mammoth number of dependencies
that both PHP and GTK+ have). The installer will work only on Intel
Macs - OS X versions 10.4 and 10.5 only.