On Mon, Jan 07, 2013 at 12:41:00PM -0800, YTC wrote:
> When I import gwy.pyd in environment outside gwyddion, it asks
> for libgwyddion2.dll and a couple of other dll files. But the actual files
> in the /bin folder are libgwyddion2-0.dll. It seems the dll file names in
> the gwy.pyd were not updated. After I made copies of those files with names
> corrected, it all worked.
Thanks for the report. This is actually good news because at present
the standalone gwy Python module is just packaged optimistically
(opportunistically), hoping that someone figures out how to make it
really work.
I don't know how to fix the DLL name mismatch though because running
objdump -p gwy.pyd | grep DLL
prints
DLL Name: libgwyapp2-0.dll
DLL Name: libgwydraw2-0.dll
DLL Name: libgwyddion2-0.dll
DLL Name: libgwydgets2-0.dll
DLL Name: python27.dll
DLL Name: libgwymodule2-0.dll
DLL Name: libgwyprocess2-0.dll
DLL Name: libgdk-win32-2.0-0.dll
DLL Name: libgdk_pixbuf-2.0-0.dll
DLL Name: libglib-2.0-0.dll
DLL Name: libgmodule-2.0-0.dll
DLL Name: libgobject-2.0-0.dll
DLL Name: libgtk-win32-2.0-0.dll
DLL Name: KERNEL32.dll
DLL Name: msvcrt.dll
and it indeed seems gwy.pyd (which is just a DLL with changed extension)
contains the right references to other DLLs. Also if I run Dependency
Walker in Wine on gwy.pyd I get
Error: At least one module has an unresolved import due to a missing export
function in an implicitly dependent module.
but the DLLs marked red (unresolved) are kernel32.dll and such, not
Gwyddion ones. It has probably something to do with running under
Wine. The Gwyddion ones are to libgwy*2-0.dll and resolved all right.
I cannot find any reference to libgwyddion2.dll and such.
I will try to import gwy into Win32 Python running under Wine but could
you please try to run Dependency Walker or a similar tool on gwy.pyd
(preferrably of current devel spanshot) on your machine and check what
DLLs it depends on?
Yeti
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
_______________________________________________
Gwyddion-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gwyddion-users