[Pidgin] #70: Unable to build Pidgin on Windows (with solution).
Pidgin
trac at pidgin.im
Mon Apr 9 17:56:00 EDT 2007
#70: Unable to build Pidgin on Windows (with solution).
-----------------------------------------+----------------------------------
Reporter: Anandir | Type: patch
Status: new | Priority: major
Milestone: Go public with Pidgin 2.0.0 | Component: pidgin (gtk)
Version: 2.0 | Keywords:
-----------------------------------------+----------------------------------
When I try to build Pidgin on my Windows machine I got this
error:[[BR]][[BR]]
gcc.exe -O2 -Wall -Waggregate-return -Wcast-align -Wdeclaration-after-
statement -Werror-implicit-function-declaration -Wextra -Wno-sign-compare
-Wno-unused-parameter -Winit-self -Wmissing-declarations -Wmissing-
prototypes -Wnested-externs -Wpointer-arith -Wundef -pipe -mno-cygwin
-mms-bitfields -g -DVERSION=\"2.0.0beta7devel\" -DHAVE_CONFIG_H
-I../libpurple -I../libpurple/win32 -I.. -I../../win32-dev/gtk_2_0/include
-I../../win32-dev/gtk_2_0/include/glib-2.0
-I../../win32-dev/gtk_2_0/lib/glib-2.0/include
-I../pidgin/win32/IdleTracker -I../pidgin -I../pidgin/win32
-I../../win32-dev/gtk_2_0/include/gtk-2.0
-I../../win32-dev/gtk_2_0/include/pango-1.0
-I../../win32-dev/gtk_2_0/include/atk-1.0
-I../../win32-dev/gtk_2_0/lib/gtk-2.0/include
-I../../win32-dev/gtkspell-2.0.6 -I../../win32-dev/aspell-
dev-0-50-3-3/include -o win32/gtkdocklet-win32.o -c win32/gtkdocklet-
win32.c[[BR]]
win32/gtkdocklet-win32.c: In function `create_alpha_bitmap':[[BR]]
win32/gtkdocklet-win32.c:171: error: `BITMAPV5HEADER' undeclared (first
use in this function)[[BR]]
win32/gtkdocklet-win32.c:171: error: (Each undeclared identifier is
reported only once[[BR]]
win32/gtkdocklet-win32.c:171: error: for each function it appears
in.)[[BR]]
win32/gtkdocklet-win32.c:171: error: syntax error before "bi"[[BR]]
win32/gtkdocklet-win32.c:175: error: `bi' undeclared (first use in this
function)[[BR]]
make[2]: *** [win32/gtkdocklet-win32.o] Error 1[[BR]]
make[2]: Leaving directory `/home/giacomo/pidgin/pidgin'[[BR]]
make[1]: *** [../pidgin/pidgin.dll.a] Error 2[[BR]]
make[1]: Leaving directory `/home/giacomo/pidgin/pidgin'[[BR]]
make: *** [all] Error 2[[BR]]
[[BR]]
The solution is to add the following structure to the file
C:\msys\1.0\mingw\include\wingdi.h:[[BR]]
typedef struct {[[BR]]
DWORD bV5Size;[[BR]]
LONG bV5Width;[[BR]]
LONG bV5Height;[[BR]]
WORD bV5Planes;[[BR]]
WORD bV5BitCount;[[BR]]
DWORD bV5Compression;[[BR]]
DWORD bV5SizeImage;[[BR]]
LONG bV5XPelsPerMeter;[[BR]]
LONG bV5YPelsPerMeter;[[BR]]
DWORD bV5ClrUsed;[[BR]]
DWORD bV5ClrImportant;[[BR]]
DWORD bV5RedMask;[[BR]]
DWORD bV5GreenMask;[[BR]]
DWORD bV5BlueMask;[[BR]]
DWORD bV5AlphaMask;[[BR]]
DWORD bV5CSType;[[BR]]
CIEXYZTRIPLE bV5Endpoints;[[BR]]
DWORD bV5GammaRed;[[BR]]
DWORD bV5GammaGreen;[[BR]]
DWORD bV5GammaBlue;[[BR]]
DWORD bV5Intent;[[BR]]
DWORD bV5ProfileData;[[BR]]
DWORD bV5ProfileSize;[[BR]]
DWORD bV5Reserved;[[BR]]
} BITMAPV5HEADER, *PBITMAPV5HEADER;[[BR]]
[[BR]]
I put it just after the BITMAPV4HEADER, but it'sn't necessary :).[[BR]]
[[BR]]
I hope this help^^.
--
Ticket URL: <http://developer.pidgin.im/ticket/70>
Pidgin <http://pidgin.im>
Pidgin
More information about the Tracker
mailing list