Re: Problems loading gd2.dll with GTK compilde php.exe

From: Date: Tue, 19 Dec 2006 05:03:20 +0000
Subject: Re: Problems loading gd2.dll with GTK compilde php.exe
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-7527@lists.php.net to get a copy of this message
Devon Yates-2 wrote: > > Hello, > I am trying to run GTK 2, with the ability to use JPGraph 2, to create > plots from within a GUI. This requires the library php_gd2.dll, which > does not come included in the GTK 2 zip file. When I take the > php_gd2.dll from the ext dir in my php 5.2.0 installation and put it > into the ext dir in the GTK 2 installation directory, I get the error: > > PHP Warning: PHP Startup: gd: Unable to initialize module > Module compiled with module API=20060613, debug=0, thread-safety=1 > PHP compiled with module API=20050922, debug=0, thread-safety=1 > These options need to match > in Unknown on line 0 > > I am able to load jpgraph in my php 5 installation, but not in my GTK > installation. Does anybody have any suggestions? > Regards, > Devon Yates > > Hi Devon, Please refer to Christian Weiske's reply: http://www.nabble.com/gd2-in-php-gtk-tf2716413.html#a7574045 In summary, GD2 library was not included in the current php-gtk2 compilation of Gnope Installer. And we don't know when it will be included. If you're on linux, you could easily recompile everything to include gd2. If you're on windows, and you really would like to use gd2 right now, you have two options. 1) Compile your own php-gtk2. There's a good one from Elizabeth Smith: http://elizabethmariesmith.com/2006/11/15/how-to-compile-php52-and-php-gtk2-on-windows-using-visual-c-express/ 2) Make use of your web copy of php that has gd2.dll. I've a couple of examples at: http://www.kksou.com/php-gtk2/articles/rotate-an-image.php http://www.kksou.com/php-gtk2/articles/imprint-date-on-photo.php Though it's a bit troublesome, it works. And you can make full use of gd2 with php-gtk2 rightaway. Regards, /kksou -- View this message in context: http://www.nabble.com/Problems-loading-gd2.dll-with-GTK-compilde-php.exe-tf2842853.html#a7941755 Sent from the Php - GTK - General mailing list archive at Nabble.com.

« previous php.gtk.general (#7527) next »