Building with GdiPlus on MS Windows
If you are using a Microsoft Compiler then compiling with gdiplus is straightforward. Just ensure you have a Platform SDK installed.
If you are using one of the mingw gcc compilers, you can still build with gdiplus by following the steps below.
Install a Platform SDK.
You need to install a Platform SDK from Microsoft to get the necessary header files that will allow you to build with gdiplus. The SDK that the PPMs on this site use for gdiplus is the 2003 R2 Platform SDK.
GCC Patches and Libraries
This downloadable zip contains the required libgdiplus.a and a patch file for the headers in the SDK.
The zip archive contains
include\gdiplus.patch
lib32\libgdiplus.a
lib64\libgdiplus.a
IMPORTANT: The zip does not contain the required header files. The only way to get the necessary header files is to download and install a platform SDK from Microsoft.
Once the zip file has been downloaded and extracted, copy the gdiplus headers from your Platform SDK Include directory to the include directory of your extracted location. There are 30 files named
GdiPlus.h
GdiPlusBase.h
GdiPlusBitmap.h
GdiPlusBrush.h
GdiPlusCachedBitmap.h
GdiPlusColor.h
GdiPlusColorMatrix.h
GdiPlusEnums.h
GdiPlusFlat.h
GdiPlusFont.h
GdiPlusFontCollection.h
GdiPlusFontFamily.h
GdiPlusGpStubs.h
GdiPlusGraphics.h
GdiPlusHeaders.h
GdiPlusimageAttributes.h
GdiPlusImageCodec.h
GdiPlusImaging.h
GdiPlusInit.h
GdiPlusLineCaps.h
GdiPlusMatrix.h
GdiPlusMem.h
GdiPlusMetaFile.h
GdiPlusMetaHeader.h
GdiPlusPath.h
GdiPlusPen.h
GdiPlusPixelFormats.h
GdiPlusRegion.h
GdiPlusStringFormat.h
GdiPlusTypes.h
Apply the patch gdiplus.patch that is in the include directory. You can now use the headers and libraries to build wxWidgets with the USE_GDIPLUS option.
The lib32\libgdiplus.a library is suitable for use with the 32 bit MinGW and mingw-w32 compiler tool sets.
The lib64\libgdiplus.a library is for the 64 bit mingw-w64 compiler toolset.