About Building wxPython in Cygwin ‏

When I do the setp (9) (http://gnuradio.org/trac/wiki/wxPythonCygwin on
windows)

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

I get sfollowing error message…
What can I do?

[email protected] /usr/src/wxPython-src-2.8.10.1/wxPython
$ python setup.py build_ext --inplace WXPORT=msw COMPILER=cygwin
BUILD_GLCANVAS
=0 BUILD_GIZMOS=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…
running build_ext
building ‘core’ extension
creating build
creating build/temp.cygwin-1.5.25-i686-2.5
creating build/temp.cygwin-1.5.25-i686-2.5/src
creating build/temp.cygwin-1.5.25-i686-2.5/src/msw
gcc -mcygwin -mdll -O -Wall -DSWIG_TYPE_TABLE=wxPython_table
-DSWIG_PYTHON_OUTP
UT_TUPLE -DWXP_USE_THREAD=1 -UNDEBUG -D_FILE_OFFSET_BITS=64
-D_LARGE_FILES -DWXU
SINGDLL -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/helpers.cpp -o
build/temp.cygwin-1.5.25-i686-2.5/src/helpers.o -O3
src/helpers.cpp: In function bool wxColour_helper(PyObject*, wxColour**)': src/helpers.cpp:2933: warning: comparison between signed and unsigned integer ex pressions gcc -mcygwin -mdll -O -Wall -DSWIG_TYPE_TABLE=_wxPython_table -DSWIG_PYTHON_OUTP UT_TUPLE -DWXP_USE_THREAD=1 -UNDEBUG -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DWXU SINGDLL -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/_core_wrap. cpp -o build/temp.cygwin-1.5.25-i686-2.5/src/msw/_core_wrap.o -O3 src/msw/_core_wrap.cpp: In functionPyObject*
_wrap_GetAccelFromString(PyObject
, PyObject, PyObject*)’:
src/msw/_core_wrap.cpp:33938: warning: wxGetAccelFromString' is deprecated (dec lared at /usr/local/include/wx-2.8/wx/utils.h:571) src/msw/_core_wrap.cpp:33938: warning:wxGetAccelFromString’ is
deprecated (dec
lared at /usr/local/include/wx-2.8/wx/utils.h:571)
src/msw/_core_wrap.cpp: In member function virtual bool wxPyEvtHandler::Process Event(wxEvent&)': src/msw/_core_wrap.cpp:3931: warning: 'rval' might be used uninitialized in this function src/msw/_core_wrap.cpp: In functionPyObject*
_wrap_ImageHandler_CanReadStream(
PyObject*, PyObject*, PyObject*)’:
src/msw/_core_wrap.cpp:15311: warning: ‘created2’ might be used
uninitialized in
this function
src/msw/_core_wrap.cpp: In function PyObject* _wrap_new_ImageFromStream(PyObjec t*, PyObject*, PyObject*)': src/msw/_core_wrap.cpp:16567: warning: 'created1' might be used uninitialized in this function src/msw/_core_wrap.cpp: In functionPyObject*
_wrap_new_ImageFromStreamMime(PyO
bject*, PyObject*, PyObject*)’:
src/msw/_core_wrap.cpp:16634: warning: ‘created1’ might be used
uninitialized in
this function
src/msw/_core_wrap.cpp: In function PyObject* _wrap_new_ImageFromDataWithAlpha( PyObject*, PyObject*, PyObject*)': src/msw/_core_wrap.cpp:16841: warning: 'arg6' might be used uninitialized in thi s function src/msw/_core_wrap.cpp: In functionPyObject*
_wrap_Image_SaveStream(PyObject*,
PyObject*, PyObject*)’:
src/msw/_core_wrap.cpp:18575: warning: ‘created2’ might be used
uninitialized in
this function
src/msw/_core_wrap.cpp: In function PyObject* _wrap_Image_SaveMimeStream(PyObje ct*, PyObject*, PyObject*)': src/msw/_core_wrap.cpp:18640: warning: 'created2' might be used uninitialized in this function src/msw/_core_wrap.cpp: In functionPyObject*
_wrap_Image_CanReadStream(PyObjec
t*, PyObject*, PyObject*)’:
src/msw/_core_wrap.cpp:18708: warning: ‘created1’ might be used
uninitialized in
this function
src/msw/_core_wrap.cpp: In function PyObject* _wrap_Image_LoadStream(PyObject*, PyObject*, PyObject*)': src/msw/_core_wrap.cpp:18760: warning: 'created2' might be used uninitialized in this function src/msw/_core_wrap.cpp: In functionPyObject*
_wrap_Image_LoadMimeStream(PyObje
ct*, PyObject*, PyObject*)’:
src/msw/_core_wrap.cpp:18838: warning: ‘created2’ might be used
uninitialized in
this function
src/msw/_core_wrap.cpp: In function PyObject* _wrap_Image_SetAlphaData(PyObject *, PyObject*, PyObject*)': src/msw/_core_wrap.cpp:19388: warning: 'arg3' might be used uninitialized in thi s function src/msw/_core_wrap.cpp: In functionPyObject*
wrap_Image_SetAlphaBuffer(PyObje
ct*, PyObject*, PyObject*)’:
src/msw/core_wrap.cpp:19455: warning: ‘arg3’ might be used
uninitialized in thi
s function
writing build/temp.cygwin-1.5.25-i686-2.5/src/core.def
g++ -mcygwin -shared -s build/temp.cygwin-1.5.25-i686-2.5/src/helpers.o
build/te
mp.cygwin-1.5.25-i686-2.5/src/msw/core_wrap.o
build/temp.cygwin-1.5.25-i686-2.5
/src/core.def -L/usr/local/lib -L/usr/lib/python2.5/config
-lwx_msw_richtext-2
.8 -lwx_msw_aui-2.8 -lwx_msw_xrc-2.8 -lwx_msw_qa-2.8 -lwx_msw_html-2.8
-lwx_msw

adv-2.8 -lwx_msw_core-2.8 -lwx_base_xml-2.8 -lwx_base_net-2.8
-lwx_base-2.8 -lpy
thon2.5 -o wx/core.dll
building ‘gdi’ extension
gcc -mcygwin -mdll -O -Wall -DSWIG_TYPE_TABLE=wxPython_table
-DSWIG_PYTHON_OUTP
UT_TUPLE -DWXP_USE_THREAD=1 -UNDEBUG -D_FILE_OFFSET_BITS=64
-D_LARGE_FILES -DWXU
SINGDLL -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/drawlist.cpp -o
build/temp.cygwin-1.5.25-i686-2.5/src/drawlist.o -O3
gcc -mcygwin -mdll -O -Wall -DSWIG_TYPE_TABLE=wxPython_table
-DSWIG_PYTHON_OUTP
UT_TUPLE -DWXP_USE_THREAD=1 -UNDEBUG -D_FILE_OFFSET_BITS=64
-D_LARGE_FILES -DWXU
SINGDLL -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/pseudodc.cpp -o
build/temp.cygwin-1.5.25-i686-2.5/src/pseudodc.o -O3
src/pseudodc.cpp: In function void GreyOutImage(wxImage&)': src/pseudodc.cpp:60: warning: 'mr' might be used uninitialized in this function src/pseudodc.cpp:60: warning: 'mg' might be used uninitialized in this function src/pseudodc.cpp:60: warning: 'mb' might be used uninitialized in this function gcc -mcygwin -mdll -O -Wall -DSWIG_TYPE_TABLE=_wxPython_table -DSWIG_PYTHON_OUTP UT_TUPLE -DWXP_USE_THREAD=1 -UNDEBUG -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DWXU SINGDLL -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.c pp -o build/temp.cygwin-1.5.25-i686-2.5/src/msw/_gdi_wrap.o -O3 src/msw/_gdi_wrap.cpp: In functionwxPalette* new_wxPalette(const
wxArrayInt&,
const wxArrayInt&, const wxArrayInt&)’:
src/msw/_gdi_wrap.cpp:2884: warning: comparison between signed and
unsigned inte
ger expressions
src/msw/_gdi_wrap.cpp:2884: warning: comparison between signed and
unsigned inte
ger expressions
src/msw/_gdi_wrap.cpp: In member function virtual bool wxGraphicsContext::SetLo gicalFunction(int)': src/msw/_gdi_wrap.cpp:4073: warning: no return statement in function returning n on-void src/msw/_gdi_wrap.cpp: In functionPyObject*
_wrap_GraphicsRenderer_CreateBitma
p(PyObject*, PyObject*, PyObject*)’:
src/msw/_gdi_wrap.cpp:32226: error: ‘class wxGraphicsRenderer’ has no
member nam
ed ‘CreateBitmap’
src/msw/_gdi_wrap.cpp: In function PyObject* _wrap_PenList_AddPen(PyObject*, Py Object*, PyObject*)': src/msw/_gdi_wrap.cpp:33876: warning:AddPen’ is deprecated (declared
at /usr/l
ocal/include/wx-2.8/wx/gdicmn.h:516)
src/msw/_gdi_wrap.cpp: In function PyObject* _wrap_PenList_RemovePen(PyObject*, PyObject*, PyObject*)': src/msw/_gdi_wrap.cpp:33914: warning:RemovePen’ is deprecated
(declared at /us
r/local/include/wx-2.8/wx/gdicmn.h:517)
src/msw/_gdi_wrap.cpp: In function PyObject* _wrap_BrushList_AddBrush(PyObject* , PyObject*, PyObject*)': src/msw/_gdi_wrap.cpp:34007: warning:AddBrush’ is deprecated (declared
at /usr
/local/include/wx-2.8/wx/gdicmn.h:526)
src/msw/_gdi_wrap.cpp: In function PyObject* _wrap_BrushList_RemoveBrush(PyObje ct*, PyObject*, PyObject*)': src/msw/_gdi_wrap.cpp:34045: warning:RemoveBrush’ is deprecated
(declared at /
usr/local/include/wx-2.8/wx/gdicmn.h:527)
src/msw/_gdi_wrap.cpp: In function PyObject* _wrap_FontList_AddFont(PyObject*, PyObject*, PyObject*)': src/msw/_gdi_wrap.cpp:34197: warning:AddFont’ is deprecated (declared
at /usr/
local/include/wx-2.8/wx/gdicmn.h:539)
src/msw/_gdi_wrap.cpp: In function PyObject* _wrap_FontList_RemoveFont(PyObject *, PyObject*, PyObject*)': src/msw/_gdi_wrap.cpp:34235: warning:RemoveFont’ is deprecated
(declared at /u
sr/local/include/wx-2.8/wx/gdicmn.h:540)
error: command ‘gcc’ failed with exit status 1


ç”¨éƒ¨è½æ ¼åˆ†äº«ç…§ç‰‡ã€å½±éŸ³ã€è¶£å‘³å°å·¥å…·å’Œæœ€æ„›æ¸…å–®ï¼Œç›¡æƒ…ç§€å‡ºä½ è‡ªå·± — Windows Live Spaces
http://home.spaces.live.com/?showUnauth=1&lc=1028

Li 美文 wrote:

When I do the setp (9) (http://gnuradio.org/trac/wiki/wxPythonCygwin on
windows)

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

I get sfollowing error message…
What can I do?

[snipped]

gcc -mcygwin -mdll -O -Wall -DSWIG_TYPE_TABLE=wxPython_table -DSWIG_PYTHON_OUTP
UT_TUPLE -DWXP_USE_THREAD=1 -UNDEBUG -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-DWXU
SINGDLL -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.c
pp -o build/temp.cygwin-1.5.25-i686-2.5/src/msw/_gdi_wrap.o -O3
[warnings snipped]
src/msw/_gdi_wrap.cpp: In function `PyObject*
_wrap_GraphicsRenderer_CreateBitma
p(PyObject*, PyObject*, PyObject*)’:
src/msw/_gdi_wrap.cpp:32226: error: ‘class wxGraphicsRenderer’ has no
member nam
ed ‘CreateBitmap’

In wxPython/src/msw/_gdi_wrap.cpp, after the line

virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) {
return wxNullGraphicsFont; }

you need to add the line

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

– Don W.

When I do the setp (9) (http://gnuradio.org/trac/wiki/wxPythonCygwin
on windows)

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

I get sfollowing error message…
What can I do?

[email protected] /usr/src/wxPython-src-2.8.10.1/wxPython
$ python setup.py build_ext --inplace WXPORT=msw COMPILER=cygwin
BUILD_GLCANVAS
=0 BUILD_GIZMOS=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…
running build_ext
building ‘controls’ extension
writing build/temp.cygwin-1.5.25-i686-2.5/src/msw/controls.def
g++ -mcygwin -shared -s
build/temp.cygwin-1.5.25-i686-2.5/src/msw/controls_wrap
.o build/temp.cygwin-1.5.25-i686-2.5/src/msw/controls.def
-L/usr/local/lib -L/
usr/lib/python2.5/config -lwx_msw_richtext-2.8 -lwx_msw_aui-2.8
-lwx_msw_xrc-2.8
-lwx_msw_qa-2.8 -lwx_msw_html-2.8 -lwx_msw_adv-2.8 -lwx_msw_core-2.8
-lwx_base

xml-2.8 -lwx_base_net-2.8 -lwx_base-2.8 -lpython2.5 -o wx/controls.dll
build/temp.cygwin-1.5.25-i686-2.5/src/msw/_controls_wrap.o:_controls_wrap.cpp:(.
text+0xce4e8): undefined reference to
__imp___ZTV23wxDatePickerCtrlGeneric' build/temp.cygwin-1.5.25-i686-2.5/src/msw/_controls_wrap.o:_controls_wrap.cpp:(. text+0xce4f3): undefined reference to__imp___ZN23wxDatePickerCtrlGeneric4InitE
v’
build/temp.cygwin-1.5.25-i686-2.5/src/msw/_controls_wrap.o:_controls_wrap.cpp:(.
text+0xce55e): undefined reference to
__imp___ZN23wxDatePickerCtrlGeneric6Creat eEP8wxWindowiRK10wxDateTimeRK7wxPointRK6wxSizelRK11wxValidatorRK8wxString' build/temp.cygwin-1.5.25-i686-2.5/src/msw/_controls_wrap.o:_controls_wrap.cpp:(. text+0xceeed): undefined reference to__imp___ZTV23wxDatePickerCtrlGeneric’
build/temp.cygwin-1.5.25-i686-2.5/src/msw/_controls_wrap.o:_controls_wrap.cpp:(.
text+0xceef8): undefined reference to
__imp___ZN23wxDatePickerCtrlGeneric4InitE v' build/temp.cygwin-1.5.25-i686-2.5/src/msw/_controls_wrap.o:_controls_wrap.cpp:(. text+0xcf41d): undefined reference to__imp___ZN23wxDatePickerCtrlGeneric6Creat
eEP8wxWindowiRK10wxDateTimeRK7wxPointRK6wxSizelRK11wxValidatorRK8wxString’
collect2: ld returned 1 exit status
error: command ‘g++’ failed with exit status 1

Li Mei-Wen wrote:

$ python setup.py build_ext --inplace WXPORT=msw COMPILER=cygwin
g++ -mcygwin -shared -s
build/temp.cygwin-1.5.25-i686-2.5/src/msw/controls_wrap
.o
build/temp.cygwin-1.5.25-i686-2.5/src/msw/controls.def -L/usr/local/lib
-L/
usr/lib/python2.5/config -lwx_msw_richtext-2.8 -lwx_msw_aui-2.8 -lwx_msw_xrc-2.8
-lwx_msw_qa-2.8 -lwx_msw_html-2.8 -lwx_msw_adv-2.8 -lwx_msw_core-2.8 -lwx_base

xml-2.8 -lwx_base_net-2.8 -lwx_base-2.8 -lpython2.5 -o wx/controls.dll
build/temp.cygwin-1.5.25-i686-2.5/src/msw/_controls_wrap.o:_controls_wrap.cpp:(.
text+0xce4e8): undefined reference to
`__imp___ZTV23wxDatePickerCtrlGeneric’
[snipped]

Did you make the change to setup.h described in step (4)?
Note: In versions 2.8.8.1, 2.8.9.1, and 2.8.10.1 you will need to find
the
file build-local/lib/wx/include/msw-ansi-release-2.8/wx/setup.h and
after
the line:

#define wxUSE_DATEPICKCTRL 1
add another line:

#define wxUSE_DATEPICKCTRL_GENERIC 1
before going to the next step.

– Don W.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs