Building with Cygwin/Mingw
Building with Cygwin/Mingw

Here, we do not use DevCPP, but provided configure/Makefiles with
Cygwin's GCC, with -mno-cygwin, more or less equivalant to mingw.

You have first to compile wxwidgets, then agg and finally
wxSvg.

Examples:
WxWidgets:
CC="gcc -mno-cygwin -mwindows" \
CXX="g++ -mno-cygwin -mwindows" \
LDFLAGS="-mno-cygwin -mwindows" \
../configure \
--with-msw \
--build=i686-pc-mingw32 \
--enable-unicode \
--enable-geometry \
--enable-display \
--enable-shared \
--with-expat=builtin \
--with-regex=builtin \
--with-zlib=builtin

Patch AGG-2.5 with that patch.
Once patched, build AGG:
CC="gcc -mno-cygwin -mwindows" \
CXX="g++ -mno-cygwin -mwindows" \
LDFLAGS="-mno-cygwin -mwindows" \
./configure \
--build=i686-pc-mingw32 \
--host=i686-pc-mingw32 \
--enable-win32tt \
--disable-freetype \
--disable-shared \
--enable-static

Then, wxSVG:
cd $(WXSVG); \
libtoolize --force; \
./autogen.sh
CC="gcc -mno-cygwin -mwindows" \
CXX="g++ -mno-cygwin -mwindows" \
LDFLAGS="-mno-cygwin -mwindows" \
./configure \
--build=i686-pc-mingw32 \
--host=i686-pc-mingw32 \
--enable-render=agg \
--disable-ffmpeg \
--with-libagg=$(PATH_TO_MY_AGG_INSTALL) \
--with-wxdir=$(WXBUILDDIR)

cd $(WXSVG)/svgview;\
./svgview.exe

Et voila ! Hope it will help.