a compile error in pidgin whit gcc in windows

Daniel Atallah daniel.atallah at gmail.com
Thu Dec 1 07:48:03 EST 2011


2011/12/1 Neil Luo <neilhappyneil at gmail.com>:
> Hello,
>       Thanks for your last reply.My gcc version is :
>       gcc (tdm-1) 4.6.1
>      Copyright (C) 2011 Free Software Foundation, Inc.
>     This is free software; see the source for copying conditions.  There is
> NO
>      warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> PURPOSE.
>
>      And the error is :
> D:\MINGW>cd D:\pidgin\pidgin-2.10.0\pidgin-2.10.0
>
> D:\pidgin\pidgin-2.10.0\pidgin-2.10.0>make
> make: *** No targets specified and no makefile found.  Stop.
>
> D:\pidgin\pidgin-2.10.0\pidgin-2.10.0>make -f Makefile.mingw
> (cd . && mtn --root=. automate get_base_revision_id) 2>/dev/null
>>package_revisi
> on_raw.txt \
> || rm -f package_revision_raw.txt
> if [ -f package_revision_raw.txt ]; then \
>         sed 's/^\(.\{1,\}\)$/#define REVISION "\1"/'
> package_revision_raw.txt >
> package_revision.h; \
> fi
> [ -f package_revision.h ] || echo "#define REVISION \"unknown\"" >
> package_revis
> ion.h
> make -C ./libpurple -f Makefile.mingw
> make[1]: Entering directory
> `/d/pidgin/pidgin-2.10.0/pidgin-2.10.0/libpurple'
> gcc.exe -O2 -Wall -Waggregate-return -Wcast-align
> -Wdeclaration-after-statement
> -Werror-implicit-function-declaration -Wextra -Wno-sign-compare
> -Wno-unused-para
> meter -Winit-self -Wmissing-declarations -Wmissing-prototypes
> -Wnested-externs -
> Wpointer-arith -Wundef -pipe -mno-cygwin -mms-bitfields -g -DHAVE_CYRUS_SASL
> -DH
> AVE_CONFIG_H -DWIN32_LEAN_AND_MEAN -I../libpurple -I../libpurple/win32 -I..
> -I..
> /../win32-dev/gtk_2_0-2.14/include
> -I../../win32-dev/gtk_2_0-2.14/include/glib-2
> .0 -I../../win32-dev/gtk_2_0-2.14/lib/glib-2.0/include
> -I../../win32-dev/libxml2
> -2.7.4/include/libxml2 -o account.o -c account.c
> cc1.exe: error: unrecognized command line option '-mno-cygwin'
>
> make[1]: *** [account.o] Error 1
> make[1]: Leaving directory `/d/pidgin/pidgin-2.10.0/pidgin-2.10.0/libpurple'
> make: *** [all] Error 2
>
>       The last error log that I sent to you was compiled in gcc 4.3.2.So I
> use a new version but there is still errors.Please tell me your
> idea.Thanks very much.


Please reply to the mailing list and not to me directly.

The problem is that you haven't followed the instructions at
http://d.pidgin.im/wiki/BuildingWinPidgin

You're not using the recommended gcc version (you're using a TDM
packaged 4.6.1 version, not the vanilla MinGW 4.4.0).
You also don't appear to be using the cygwin bash shell to do the compilation.

Both of the above are things that theoretically are possible to work
around if you're familiar enough with the tools, but since you're
experiencing problems, the best thing to do is to follow the
instructions exactly as they are written since they're known to work.

-D




More information about the Support mailing list