Building wxPython 2.9.x.x with Cygwin

Hi I am trying to build wxPython 2.9.x.x with Cygwin, but have had no success so far.

Here is the error I get when trying to run python2.6.5 wxPython/build-wxpython.py

tmp/gm_build/work/wxPython-src-2.9.2.4/wxPython/wxpy-bld/bk-deps g++ -c -o gldl_msw_glcanvas.o -D__WXMSW__ -DWXBUILDING -I/tmp/gm_build/work/wxPthon-src-2.9.2.4/src/regex -DWXUSINGDLL -DWXMAKINGDLL_GL -Wall -Wundef -Wunued-parameter
-Wno-ctor-dtor-privacy -Woverloaded-virtual -D_FILE_OFFSET_BITS=6

-I/tmp/gm_build/work/wxPython-src-2.9.2.4/wxPython/wxpy-bld/lib/wx/include/mswunicode-2.9 -I/tmp/gm_build/work/wxPython-src-2.9.2.4/include -O2 -fno-strict-aiasing /tmp/gm_build/work/wxPython-src-2.9.2.4/src/msw/glcanvas.cpp

reating library file: /tmp/gm_build/work/wxPython-src-2.9.2.4/wxPython/wxpy-bld

lib/libwx_baseu-2.9.dll.a

asedll_filename.o:filename.cpp:(.text+0x2161): undefined reference to `_IID_IPesistFile’
collect2: ld returned 1 exit status

Makefile:14061: recipe for target `/tmp/gm_build/work/wxPython-src-2.9.2.4/wxPython/wxpy-bld/lib/cygwxbase292u_gcc_custom-2.dll’ failed

make: *** [/tmp/gm_build/work/wxPython-src-2.9.2.4/wxPython/wxpy-bld/lib/cygwxbase292u_gcc_custom-2.dll] Error 1

make: *** Waiting for unfinished jobs…

Error building

ERROR: failed building wxWidgets

Traceback (most recent call last):

File “build-wxpython.py”, line 352, in

wxbuild.main(wxscript, build_options)

File “/tmp/gm_build/work/wxPython-src-2.9.2.4/build/tools/build-wxwidgets.py”,

line 438, in main

exitIfError(wxBuilder.build(dir=buildDir, options=args), “Error building”)

File “/tmp/gm_build/work/wxPython-src-2.9.2.4/build/tools/build-wxwidgets.py”,

line 62, in exitIfError

raise builder.BuildError, msg

BuildError

Does anyone have any instructions how to do this for Python 2.9.x.x?