Well, I am not a windows programmer, but I think I am fast becoming a
half-decent detective.
The ActiveState help file had a useful message about this kind of error
under the 'load' command documentation
This led me to install Visual C++ Express 2008, which has a debug tool
called dumpbin.exe
Running this from the Visual C++ Express cmd prompt..
dumpbin.exe
/EXPORTS:c:\tcl\lib\teapot\package\win32-ix86\lib\dom_libxml22.6\tcldomxml26.dll
..shows it is attempting to import 3 dlls. Turns out 1 is not found on my
system: iconv.dll.
This is not a native Windows file, but is provided with GnuPG amongst other
packages. It can be downloaded directly from
http://www.gnupg.org/download/iconv.en.html. I copied to my system32 folder
and this particular issue solved.
Steve, if you have the time, it would be really great to see the active
state teapot repository updated with the latest versions, and also to see
these kind of dependancies documented in some way through the teapot
metadata.
cheers,
B
On Tue, Sep 15, 2009 at 11:45 PM, Ben Carbery <ben...@gm...> wrote:
> I am now trying to port my app to windows and running into some problems
> with libxml2.
> I am using the v2.6 teapots (3.x not in the repository) and have installed
> all required packages to work with the code in the last post.
> However I get a load error which I assume is because it can't find
> libxml2.dll:
>
> couldn't load library
> "f:/bin/tcl/lib/teapot/package/win32-ix86/lib/dom_libxml22.6/tcldomxml26.d
> ll": this library or a dependent library could not be found in library path
> while executing
> "load
> f:/bin/tcl/lib/teapot/package/win32-ix86/lib/dom_libxml22.6/tcldomxml26.dll"
>
> tcldomxml26.dll is at that path, so the error must be for "a dependant
> library".
>
> My question is where do I put the library? I can get copies of libxml2.dll
> form their website, but I think the issue may be I don't know where the
> tcldom dll is going to look for it. I am guessing this would have been set
> by whoever compiled the teapot
> but I don't know where this came form, it's just in the ActiveState
> repository. I tried the same folder, and also System32 folder but no luck.
>
> B
>
|