HELP: about Building wxPython in Cygwin

I’m trying to build wxPython 2.8.10.1 under Cygwin following the
instructions on http://gnuradio.org/trac/wiki/wxPythonCygwin.

I have successfully done this previously --> …/configure --with-msw
In next setp “make”, I get following error message…
What can I do?

[email protected] /usr/src/wxPython-src-2.8.10.1/build-local
$make
/usr/src/wxPython-src-2.8.10.1/build-local/bk-deps g++ -c -o
coredll_msw_timer.o
-D__WXMSW__ -I…/src/tiff -I…/src/jpeg -I…/src/png
-DWXUSINGDLL -DWX
MAKINGDLL_CORE -DwxUSE_BASE=0 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-I/usr/src/
wxPython-src-2.8.10.1/build-local/lib/wx/include/msw-ansi-release-2.8
-I…/inclu
de -Wall -Wundef -Wno-ctor-dtor-privacy -O2 -fno-strict-aliasing
…/src/msw/time
r.cpp
…/src/msw/timer.cpp:73: error: expected class-name before ‘{’ token
…/src/msw/timer.cpp:92: error: wxModule' has not been declared ../src/msw/timer.cpp: In static member functionstatic wxObject*
wxTimerHiddenW
indowModule::wxCreateObject()’:
…/src/msw/timer.cpp:92: error: cannot convert
wxTimerHiddenWindowModule*' to
wxObject*’ in return
make: *** [coredll_msw_timer.o] Error 1

“Li ¬ü¤å” [email protected] wrote:

I’m trying to build wxPython 2.8.10.1 under Cygwin following the
instructions on http://gnuradio.org/trac/wiki/wxPythonCygwin.

I have successfully done this previously --> …/configure --with-msw
In next setp “make”, I get following error message…
What can I do?

I think you need an extra patch to the code. In
/usr/src/wxPython-src-2.8.10.1/src/msw/timer.cpp, after the line

 #include "wx/hashmap.h"

add the line

 #include "wx/module.h"

Let us know if this works; if it does, I will update the wiki.

– Don W.

“Li ¬ü¤å” [email protected] wrote:

src/helpers.cpp: In member function int wxPyInputStream::tell()': src/helpers.cpp:1345: error:m_wxis’ undeclared (first use this function)
src/helpers.cpp: In constructor
wxPyCBInputStream::wxPyCBInputStream(PyObject*, PyObject*, PyObject*, bool)': src/helpers.cpp:1354: error: classwxPyCBInputStream’ does not have any
field n
amed wxInputStream' src/helpers.cpp: At global scope: src/helpers.cpp:1410: error:wxFileOffset’ does not name a type
. . .

Did you include COMPILER=cygwin in your command (I don’t see it in the
listing above)?

There are a lot of errors here, and I don’t know what caused them. You
may
need to do your own debugging. (To get you started, it looks like m_wxis
is
defined in pyistream.h, which is included in helpers.cpp.) Or you might
start with a new download, in case one or more files got corrupted.

I didn’t get these errors when I built wxPython 2.8.10.1 on Cygwin, but
it
is possible that you are using newer compilers or other Cygwin
components.

Good luck, and let us know what you find.

– 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