-
Notifications
You must be signed in to change notification settings - Fork 1
/
INSTALL
61 lines (39 loc) · 3.78 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
for instructions on using codeblocks to compile see:
http://www.autohotkey.com/forum/viewtopic.php?t=31475
GDK+ is not included in GCC. It is a proprietary Microsoft package and requires a genuine copy of windows. Here is a link to the download: http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en. At the bottom of the page is a "Files in This Download" section that allows you to bypass the validation, if you know the system architecture you are compiling on. Once you have that file, chose custom and install only the SDK base. This will give you the files you need (All the header files that start with GdiPlus and PopPack.h)
In gdiplusenums.h
L534: enum EmfPlusRecordType; >> //enum EmfPlusRecordType
L538: #define GDIP_WMF_RECORD_TO_EMFPLUS(n) ((EmfPlusRecordType)((n) | GDIP_WMF_RECORD_BASE)) >> #define GDIP_WMF_RECORD_TO_EMFPLUS(n) (/*(EmfPlusRecordType)*/((n) | GDIP_WMF_RECORD_BASE))
In GdiplusImaging.h
L156: PixelFormat PixelFormat; >> INT PixelFormat
In GdiplusHeaders.h
L247: friend Graphics; >> friend class Graphics;
GdiplusEnums.h 534: comment out (//enum EmfPlusRecordType)
GdiplusEnums.h 538: Comment out EmfPlusRecordType (/*(EmfPlusRecordType*/((n)...)
GdiplusImaging.h 156: PixelFormat PixelFormat; -> INT PixelFormat;
GDiplusHeaders.h 653: friend Graphics; -> friend class Graphics;
/usr/i586-mingw32msvc/lib/
C:\CodeBlocks\MinGW\lib
C:\CodeBlocks\MinGW\lib\libcomctl32.a;C:\CodeBlocks\MinGW\lib\libwinmm.a;C:\CodeBlocks\MinGW\lib\libgdi32.a;C:\CodeBlocks\MinGW\lib\libole32.a;C:\CodeBlocks\MinGW\lib\liboleaut32.a;C:\CodeBlocks\MinGW\lib\libcomdlg32.a;C:\CodeBlocks\MinGW\lib\libversion.a;C:\CodeBlocks\MinGW\lib\libws2_32.a;C:\CodeBlocks\MinGW\lib\libuuid.a
/usr/i586-mingw32msvc/lib/libcomctl32.a;/usr/i586-mingw32msvc/lib/libwinmm.a;/usr/i586-mingw32msvc/lib/libgdi32.a;/usr/i586-mingw32msvc/lib/libole32.a;/usr/i586-mingw32msvc/lib/liboleaut32.a;/usr/i586-mingw32msvc/lib/libcomdlg32.a;/usr/i586-mingw32msvc/lib/libversion.a;/usr/i586-mingw32msvc/lib/libws2_32.a;/usr/i586-mingw32msvc/lib/libuuid.a
/usr/lib/wine/libcomctl32.dll.so;/usr/lib/wine/libwinmm.dll.so;/usr/lib/wine/libgdi32.dll.so;/usr/lib/wine/libole32.dll.so;/usr/lib/wine/liboleaut32.dll.so;/usr/lib/wine/libcomdlg32.dll.so;/usr/lib/wine/libversion.dll.so;/usr/lib/wine/libws2_32.dll.so;/usr/lib/wine/libuuid.dll.so
and this one is in YOUR_PROJECT_DIRECTORY\lib
GdiPlus.lib
removed a bunch of #defines from gdiplus that force compiler warnings / errors
GdiPlusEnums.h:543:// enum EmfPlusRecordType; # ahkgcc
GdiPlusEnums.h:548:// # ahkgcc
GdiPlusImaging.h:163: INT PixelFormat; // PixelFormat # ahkgcc changed type
GdiplusFlat.h:2347: ImageCodecInfo *decoders); // ahkgcc removed __out_bcount(size)
GdiplusFlat.h:2355: ImageCodecInfo *encoders); // ahkgcc removed __out_bcount(size)
GdiplusFlat.h:2388: LPWSTR name, // ahkgcc removed __out_ecount(LF_FACESIZE)
GdiplusFontFamily.h:123: LPWSTR name, // ahkgcc removed __out_ecount(LF_FACESIZE)
GdiplusFontFamily.h:124: WCHAR language // ahkgcc replaced IN LANGID with WCHAR
GdiplusHeaders.h:196: LPWSTR name, // ahkgcc removed __out_ecount(LF_FACESIZE)
GdiplusHeaders.h:197: WCHAR language = 0 // ahkgcc replaced IN LANGID with WCHAR
GdiplusHeaders.h:707: friend class Graphics; // # ahkgcc although line numbers didn't match
GdiplusTypes.h:744: BYTE* Types; // ahkgcc removed __field_ecount_opt(Count)
removed mscvr70 dependency: libmsvcr70.a
in util.h, added
#define _strtoi64 strtoll // ahkgcc to remove msvcrt dep
#define _strtoui64 strtoull // ahkgcc to remove msvcrt dep
libcomctl32.a;libwinmm.a;libgdi32.a;libole32.a;liboleaut32.a;libcomdlg32.a;libversion.a;libws2_32.a;libuuid.a;GdiPlus