Building wxPython in Cygwin

I am attempting to build wxPython under Cyqwin. Like the message posted
on the listserv September 14, I am getting an error message for a
missing CreateBitmap member in the class wxGraphicsRenderer. The
complete output from build step 9 showing all of the error messages
follows at the end of this message. I made the modifications to both
the setup.h file and the timer.cpp files as indicated in the build
instructions and the _gdi_wrap.cpp file as suggested in the previous
e-mail. The output below indicates that I still am seeing the same
problem even with the updated files. I have included snips from both
setup.h and _gdi_wrap.cpp with the modifications in the event that I
either entered the information incorrectly or that there is another
problem in the file that I have missed. The widgets installed fine and
run the test cases without a problem, so I would appreciate any
suggestions as to where to go from here to complete the wxPython build.

Thanks,
-CAS

File: Setup.h (starting at line 320)

#define wxUSE_COMBOBOX 1
#define wxUSE_DATAVIEWCTRL 0
#define wxUSE_DATEPICKCTRL 1
#define wxUSE_DATEPICKCTRL_GENERIC 1
#define wxUSE_DIRPICKERCTRL 1
#define wxUSE_FILEPICKERCTRL 1
#define wxUSE_FONTPICKERCTRL 1
#define wxUSE_GAUGE 1
#define wxUSE_HYPERLINKCTRL 1

File: _gdi_wrap.cpp (starting at line 4055)

virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo,
wxDouble yo,
wxDouble xc,
wxDouble yc, wxDouble radius,
const wxColour
&oColor, const wxColour &cColor) { return wxNullGraphicsBrush; }

virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & 

) { return wxNullGraphicsFont; }

/* Next line added per per web message regarding installation: CAS -
11/27/2009 */
virtual wxGraphicsBitmap CreateBitmap ( const wxBitmap & ) { return
wxNullGraphicsBitmap; }

wxGraphicsBitmap CreateBitmap( const wxBitmap &bitmap ) const {
return wxNullGraphicsBitmap; }

virtual wxGraphicsMatrix CreateMatrix( wxDouble, wxDouble, wxDouble, 

wxDouble,
wxDouble, wxDouble) {
return wxNullGraphicsMatrix; }

virtual void PushState() {}
virtual void PopState() {}

output from attempted build: (I included the Gizmos as I had build them
on the system)

python setup.py build_ext --inplace WXPORT=msw COMPILER=cygwin
BUILD_GLCANVAS=0 UNICODE=0

WARNING: WXWIN not set in environment. Assuming ‘…’
Found wx-config: /usr/local/bin/wx-config
Using flags: --toolkit=msw --unicode=no --version=2.8
Preparing CORE…
Preparing STC…
Preparing GIZMOS…
running build_ext
building ‘gdi’ extension
gcc -mcygwin -mdll -O -Wall -DSWIG_TYPE_TABLE=wxPython_table
-DSWIG_PYTHON_OUTPUT_TUPLE -DWXP_USE_THREAD=1 -UNDEBUG
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DWXUSINGDLL -D__WXMSW
_ -Iinclude
-Isrc -I/usr/local/lib/wx/include/msw-ansi-release-2.8
-I/usr/local/include/wx-2.8 -I/usr/include/python2.5 -c
src/msw/_gdi_wrap.cpp -o
build/temp.cygwin-1.5.25-i686-2.5/src/msw/_gdi_wrap.o -O3
src/msw/_gdi_wrap.cpp: In function wxPalette* new_wxPalette(const wxArrayInt&, const wxArrayInt&, const wxArrayInt&)': src/msw/_gdi_wrap.cpp:2884: warning: comparison between signed and unsigned integer expressions src/msw/_gdi_wrap.cpp:2884: warning: comparison between signed and unsigned integer expressions src/msw/_gdi_wrap.cpp: In member functionvirtual bool
wxGraphicsContext::SetLogicalFunction(int)’:
src/msw/_gdi_wrap.cpp:4076: warning: no return statement in function
returning non-void
src/msw/_gdi_wrap.cpp: In function PyObject* _wrap_GraphicsRenderer_CreateBitmap(PyObject*, PyObject*, PyObject*)': src/msw/_gdi_wrap.cpp:32229: error: 'class wxGraphicsRenderer' has no member named 'CreateBitmap' src/msw/_gdi_wrap.cpp: In functionPyObject*
_wrap_PenList_AddPen(PyObject*, PyObject*, PyObject*)’:
src/msw/_gdi_wrap.cpp:33879: warning: AddPen' is deprecated (declared at /usr/local/include/wx-2.8/wx/gdicmn.h:516) src/msw/_gdi_wrap.cpp: In functionPyObject*
_wrap_PenList_RemovePen(PyObject*, PyObject*, PyObject*)’:
src/msw/_gdi_wrap.cpp:33917: warning: RemovePen' is deprecated (declared at /usr/local/include/wx-2.8/wx/gdicmn.h:517) src/msw/_gdi_wrap.cpp: In functionPyObject*
_wrap_BrushList_AddBrush(PyObject*, PyObject*, PyObject*)’:
src/msw/_gdi_wrap.cpp:34010: warning: AddBrush' is deprecated (declared at /usr/local/include/wx-2.8/wx/gdicmn.h:526) src/msw/_gdi_wrap.cpp: In functionPyObject*
_wrap_BrushList_RemoveBrush(PyObject*, PyObject*, PyObject*)’:
src/msw/_gdi_wrap.cpp:34048: warning: RemoveBrush' is deprecated (declared at /usr/local/include/wx-2.8/wx/gdicmn.h:527) src/msw/_gdi_wrap.cpp: In functionPyObject*
_wrap_FontList_AddFont(PyObject*, PyObject*, PyObject*)’:
src/msw/_gdi_wrap.cpp:34200: warning: AddFont' is deprecated (declared at /usr/local/include/wx-2.8/wx/gdicmn.h:539) src/msw/_gdi_wrap.cpp: In functionPyObject*
_wrap_FontList_RemoveFont(PyObject*, PyObject*, PyObject*)’:
src/msw/_gdi_wrap.cpp:34238: warning: `RemoveFont’ is deprecated
(declared at /usr/local/include/wx-2.8/wx/gdicmn.h:540)
error: command ‘gcc’ failed with exit status 1

[email protected] wrote:

incorrectly or that there is another problem in the file that I have
#define wxUSE_DATAVIEWCTRL 0

/* Next line added per per web message regarding installation: CAS -
11/27/2009 */
virtual wxGraphicsBitmap CreateBitmap ( const wxBitmap & ) { return
wxNullGraphicsBitmap; }

This line was added in the wrong place; it should be added at about line
4156. The instructions at http://gnuradio.org/trac/wiki/wxPythonCygwin
include a patch that does this for you.

wxGraphicsBitmap CreateBitmap( const wxBitmap &bitmap ) const { return
wxNullGraphicsBitmap; }

– Don W.