« Return to Thread: 2.0.1 issue: complains about missing gtkhtml.3.0.dll

Re: 2.0.1 Dependency Hell, was:2.0.1 issue: complains about missing gtkhtml.3.0.dll

by Elizabeth M Smith :: Rate this Message:

Reply to Author | View in Thread

André Jansen wrote:

> On 28 May 2008 at 15:04, Elizabeth M Smith wrote:
>
>> You can try renaming the libgtkhtml-3.1.4.dll or whatever it is to the
>> expected filename.  It appears that the libraries I used to build gtkhtml
>> were messed up - you can get it to run after the rename.
>
> The missing DLL that php-win.exe complained about was called gtkhtml-
> 3.0.dll, so I made a copy of libgtkhtml-3.14-18 and renamed it. No luck,
> it loaded successfully BUT then there was a complaint about an entry
> point that could not be found :-(.
>
> I used Sysinternals' Process Explorer and Process Monitor to try to
> figure out what was happening, and I noticed that php-win.exe was loading
> quite some gtk stuff from another, older gtk runtime (gnope, methinks)
> that happened to be in my path.
> Just to make sure, I removed it from my path and tried again.
> There were *lots* of loud complaints about missing DLLs.
>

Actually, did you restart after removing them from your PATH?  No-one
has had any issues with the stock PHP-GTK2 2.0.1 (no php-gtk extensions)
using the supplied libraries - on a virgin system.  The issue is
changing the Windows PATH without restarting is ...flakey at best.  I
usually tell people to PLEASE make sure they don't have gnope installed
or have any other PHP or GTK in their PATH environment variables.  It
just turns using any version of GTK into dll hell (as you've seen).
Instead if you leave the gtk libraries in the same directory as php.exe
(or php-win.exe) they will be found and loaded.  The problem is that
windows searches PATH first - hence the issues.

As for gtkhtml, I'm not even sure the binaries provided by gnome work ;)
 I just don't have my own builds of those libraries completed yet and
people have been whining for the extension so I just used their builds.

It gets more complicated because gtk has changed the way they build the
windows libraries in the 2.12 series, they're using a different
libiconv, so stuff is even more confusing and prone to error.  At some
point PHP-GTK will have their own build of the required GTK libraries,
built with the Microsoft Compiler, and these issues will be a thing of
the past.  Until then we have to deal with the builds that gtk.org
provides for windows.

Thanks,
Elizabeth

--
PHP-GTK General Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

 « Return to Thread: 2.0.1 issue: complains about missing gtkhtml.3.0.dll