Re: GTK + OSX
| From: | Christopher Logan | Date: | Tue, 31 Jan 2006 22:16:11 +0000 |
| Subject: | Re: GTK + OSX | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-6628@lists.php.net to get a copy of this message | ||
Here is how I got PHP-GTK working on OSX these instructions do need
refinement:
Requires
Mac OS X 10.3 or later
XCode
BSD Tools
X11 SDK
PHP 5.1
DarwinPorts
port install gtk
PHP-GTK2
autoconf
pkgconfig
glib2-devel
gtk2-devel
atk-devel
fontconfig-devel
freetype-devel
pango-devel
xorg-x11-devel
Download PHP 5.1.x
http://www.php.net/downloads.php
./configure --disable-cgi
make
make install
Download Latest CVS PHP-GTK2
cvs -d :pserver:cvsread@cvs.php.net:/repository co php-gtk
./buildconf --with-phpize=/usr/local/bin/phpize
./configure --disable-libglade --disable-scrollpane --disable-sqpane
--disable-piemenu --disable-spaned --disable-combobutton
--with-php-config=/usr/local/bin/php-config
make
make install
cp php.ini-recommended /usr/local/lib/php.ini
php.ini
Change
extension_dir = "./"
extension_dir = "/usr/local/lib/php/extensions"
Add
extension=php_gtk2.so
Move
php_gtk2.so
from
/usr/local/lib/php/extensions/no-debug-non-zts-20050922
to
/usr/local/lib/php/extensions/
And then I would use php -c location_of_php.ini location_of_application
Dan Rossi wrote:
Hi there, can someone let me know of a process on how to install GTK on OSX. This site claims you can use it without X11 ! However, downloading the CVS as it suggested didnt work, all the autogen.sh files were broken and i had to edit them, and most still broke. I downloaded the latest releases, and used the compile flags as suggested here and no luck. In the end GTK didnt compiled was asking for X11 which is what i dont want i even ran the compile flag via X11. This is the 11th time ive tried. Ive never bothered with gtk because its very linux centric and obviouslly I run OSX. I dont think gtk will get anywhere if its so hard to install. Maybe some should build a variant to use the cocoa libs instead PHPCocoa :D Let me know thanks.