Hi Robin,
I used --with-gtk=any option. Built wxWidgets using gtk 1.2.x. and
installed at /opt/wx/2.8.
Used python setup.py build_ext --inplace --debug with config.py edited for
no Unicode, wxport='gtk' but I get the same error below.
If you would, could you help me on both the error below.
Thanks, karl
python setup.py build_ext --inplace --debug
Preparing CORE...
Preparing GLCANVAS...
Preparing STC...
Preparing GIZMOS...
running build_ext
building '_core_' extension
creating build
creating build/temp.cygwin-1.5.24-i686-2.5
creating build/temp.cygwin-1.5.24-i686-2.5/src
creating build/temp.cygwin-1.5.24-i686-2.5/src/gtk
gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -g
-DSWIG_TYPE_TABLE=_wxPython_table -DSWIG_PYTHON_OUTPUT_TUPLE
-DWXP_USE_THREAD=1 -UNDEBUG -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-D__WXDEBUG__ -DWXUSINGDLL -D__WXGTK__ -Iinclude -Isrc
-I/opt/wx/2.8/lib/wx/include/gtk-ansi-debug-2.8 -I/opt/wx/2.8/include/wx-2.8
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include
-I/usr/X11R6/include -I/usr/include/python2.5 -c src/helpers.cpp -o
build/temp.cygwin-1.5.24-i686-2.5/src/helpers.o -g -O0
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -g
-DSWIG_TYPE_TABLE=_wxPython_table -DSWIG_PYTHON_OUTPUT_TUPLE
-DWXP_USE_THREAD=1 -UNDEBUG -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-D__WXDEBUG__ -DWXUSINGDLL -D__WXGTK__ -Iinclude -Isrc
-I/opt/wx/2.8/lib/wx/include/gtk-ansi-debug-2.8 -I/opt/wx/2.8/include/wx-2.8
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include
-I/usr/X11R6/include -I/usr/include/python2.5 -c src/gtk/_core_wrap.cpp -o
build/temp.cygwin-1.5.24-i686-2.5/src/gtk/_core_wrap.o -g -O0
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
src/gtk/_core_wrap.cpp: In function `PyObject*
_wrap_GetAccelFromString(PyObject*, PyObject*, PyObject*)':
src/gtk/_core_wrap.cpp:32501: warning: `wxGetAccelFromString' is deprecated
(declared at /opt/wx/2.8/include/wx-2.8/wx/utils.h:571)
src/gtk/_core_wrap.cpp:32501: warning: `wxGetAccelFromString' is deprecated
(declared at /opt/wx/2.8/include/wx-2.8/wx/utils.h:571)
src/gtk/_core_wrap.cpp: In function `PyObject*
_wrap_Window_SetDoubleBuffered(PyObject*, PyObject*, PyObject*)':
src/gtk/_core_wrap.cpp:36678: error: 'class wxWindow' has no member named
'SetDoubleBuffered'
error: command 'gcc' failed with exit status 1
ยทยทยท
-----Original Message-----
From: Karl Kobata [mailto:karl.kobata@syncira.com]
Sent: Wednesday, September 05, 2007 10:59 PM
To: 'wxPython-users@lists.wxwidgets.org'
Subject: RE: [wxPython-users] wxPython - cygwin setup.py errors
Hi robin,
You are right. The only option that compiled without error was by using the
-with-msw switch set. So I must correct my statement. mxMSW is compiles.
What changes will I need to make on setup.py and config.py to use wxMSW
using cygwin mingw32?
Thank you for the help.
karl
-----Original Message-----
From: Robin Dunn [mailto:robin@alldunn.com]
Sent: Wednesday, September 05, 2007 3:26 PM
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] wxPython - cygwin setup.py errors
Karl Kobata wrote:
Hi Robin,
I am trying to compile and get wxPython working in the cygwin. So it
would
be GTK version.
Well, theoretically either wxMSW or wxGTK would be possible, which is
why I asked. Do you want to have native win32 widgets or do you want to
use the GTK lib and run with an X11 server?
If your wxWidgets build didn't complain about the lack of pkg-config
then I suspect that it built wxMSW. If that's true then you'll need to
modify setup.py/config.py to be able to build on cygwin with gcc because
currently it is using some MSVC specific things.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!