Open Draghtnod opened 9 years ago
Ok some header is adding an underscore in front of the glib functions. That seems not to be correct. Which distros and packages are you using to build this?
Edit 1: I found out that this error only appears with ./configure --host i586-mingw32msvc No matter if it is the real i586 mingw or the newer i686-w64 version, the error is the same. The project compiles fine without defining a target host.
Edit 2: It could be the glib_cv_uscore flag that is set wrong from the configure script. I don't know how to fix that yet. :/
Edit 3: Ok renaming /usr/lib/x86_64-linux-gnu/libglib-2.0.a helps. That forces the underscore check to the supplied libglib-2.0.dll and make succeeds, producing a pidgin_gpg.dll! Very very hacky approach but it works, yayy! BUT: Pidgin isnt able to load that plugin! Debug window tells: plugins: C:\Program Files (x86)\Pidgin\plugins\pidgin_gpg.dll is not loadable: `C:\Program Files (x86)\Pidgin\plugins\pidgin_gpg.dll': Das angegebene Modul wurde nicht gefunden.
Looking into depends of pidgin_gpg.dll shows that the library names it depends on are messed up. Renaming them to libgpgme-11.dll and libglib-2.0-0.dll doesn't help. The libpurple.dll is is missing depending libraries itself. The original one in the pidgin main folder too. This looks all very messed up. Getting this plugin to work on win32 is really painful.. :(
Edit 4: Ok i got it working by putting only the renamed libgpgme-11.dll and libgpg-error-0.dll in the pidgin main folder. This win32 mode really needs some love!
There are missing glib references when linking in win32 mode. I had to install gcc-multilib to be able to compile, otherwise bits/predefs.h is missing. I am cross-compiling from debian wheezy with gcc-mingw32. Any ideas?