Cross-compiling from Linux to Windows
Timm Bla
tymmm1 at gmail.com
Sat Feb 15 09:37:02 EST 2014
Thank you,
that made a lot clearer.
Unfortunately now I'm not able to build Pidgin for Windows.
The cross-compilation process fails when trying to link libgg.dll.
»/usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/libssp.a(ssp.o):(.text+0x100):
multiple definition of `___stack_chk_fail'
../../../libpurple/libpurple.dll.a(d000002.o):(.text+0x0): first defined
here
collect2: ld returned 1 exit status«
See here for the full log: http://pastebin.com/TcQw5w3p
Same error for both pidgin-2.10.7 and pidgin-2.10.9.
I'm using the win32api of my distribution (Debian Wheezy) since it didn't
compile at all after manually trying to use the most recent version from
the mingw website.
Any ideas are much appreciated.
Best, Timm
2014-02-14 17:37 GMT+01:00 Daniel Atallah <daniel.atallah at gmail.com>:
> On Fri, Feb 14, 2014 at 6:22 AM, Timm Bla <tymmm1 at gmail.com> wrote:
>
>> Hello devel-list,
>>
>> I'm the author of this small pidgin/finch plugin:
>> https://github.com/tymm/command-execute
>>
>> Until now I only have a precompiled version for 64-bit Linux.
>> Yesterday a user asked me to offer also a precompiled version for Windows
>> (https://github.com/tymm/command-execute/issues/5).
>>
>> I tried to cross-compile it to Windows with mingw for several hours but
>> failed.
>> So far I can get the object file but linking fails (
>> http://pastebin.com/yR4caqWu)
>>
>> Compiling works and looks like this: http://pastebin.com/Vgv3i44L
>>
>
> There are a number of things that are wrong
> * you're compiling against your native headers (pkgconfig...) when you
> need to be compiling against the headers for the windows version.
> * even if you were compiling against the right architecture headers,
> you're asking for GTK+ 3.0.0 stuff, which is wrong, it needs to be GTK+2
>
> You'll need to compile pidgin itself using the instructions at
> https://developer.pidgin.im/wiki/BuildingWinPidgin and then you can
> compile your plugin pretty easily by following the instructions in the FAQ
> for compiling a simple plugin.
>
> -D
>
>
>
>
>>
>> If someone knows what to do or maybe even has a working environment to
>> compile my plugin to Windows, I would be very grateful.
>>
>> Best, Timm
>>
>>
>>
>> _______________________________________________
>> Devel mailing list
>> Devel at pidgin.im
>> https://pidgin.im/cgi-bin/mailman/listinfo/devel
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pidgin.im/pipermail/devel/attachments/20140215/096acbc7/attachment.html>
More information about the Devel
mailing list