pleiszenburg / zugbruecke

Calling routines in Windows DLLs from Python scripts running under Linux, MacOS or BSD
https://zugbruecke.readthedocs.io/en/latest/
GNU Lesser General Public License v2.1
111 stars 11 forks source link

fail to run examples #22

Closed yssource closed 6 years ago

yssource commented 6 years ago

It seems that it is not able to load demo_dll.dll. And I have complied the dll by x86_64-w64-mingw32-gcc

yssource commented 6 years ago

I think it is caused by x86_64-w64-mingw32-gcc. Any one know how to make a good one dll under fedora27? Thanks.

s-m-e commented 6 years ago

@yssource How did you compile the DLL? Looks like you used a 64 bit version of mingw, producing a 64 bit DLL. zugbruecke by default runs on top of 32 bit versions of Wine and Python for Windows. You can either try to install a 32 bit version of mingw and compile the DLL in 32 bit mode or configure zugbruecke to run in 64 bit mode (with 64 bit versions of Wine and Python for Windows), see the arch parameter.

Besides, have you tried the basic example given in the project's readme file? It will call a DLL (msvcrt.dll), which is provided as a part of WIne.

yssource commented 6 years ago

With i686-w64-mingw32-gcc, now it's working.

Thanks.