gcc compilation errors with wxPython 2.8

OS: scientific linux 6 (Red Hat 4.4.5-6); python 2.6.6; gcc 4.4.5;
following build_instructions (http://www.wxpython.org/BUILD-2.8.html);
I use the /opt/wx/2.8/bin/wx-config, the first two steps seem fine.
Problem occurs at step 3, "python setup.py build_ext --inplace --
debug",

Compilation results are as follows:

WARNING: WXWIN not set in environment. Assuming '..'
Found wx-config: /usr/local/bin/wx-config
    Using flags: --toolkit=gtk2 --unicode=yes --version=2.8

  Warning: No config found to match: /usr/local/bin/wx-config --
toolkit=gtk2 --unicode=yes --version=2.8 --cxxflags
           in /usr/local/lib/wx/config
  If you require this configuration, please install the desired
  library build. If this is part of an automated configuration
  test and no other errors occur, you may safely ignore it.
  You may use wx-config --list to see all configs available in
  the default prefix.

  Warning: No config found to match: /usr/local/bin/wx-config --
toolkit=gtk2 --unicode=yes --version=2.8 --libs
           in /usr/local/lib/wx/config
  If you require this configuration, please install the desired
  library build. If this is part of an automated configuration
  test and no other errors occur, you may safely ignore it.
  You may use wx-config --list to see all configs available in
  the default prefix.

  Warning: No config found to match: /usr/local/bin/wx-config --
toolkit=gtk2 --unicode=yes --version=2.8 --basename
           in /usr/local/lib/wx/config
  If you require this configuration, please install the desired
  library build. If this is part of an automated configuration
  test and no other errors occur, you may safely ignore it.
  You may use wx-config --list to see all configs available in
  the default prefix.

  Warning: No config found to match: /usr/local/bin/wx-config --
toolkit=gtk2 --unicode=yes --version=2.8 --release
           in /usr/local/lib/wx/config
  If you require this configuration, please install the desired
  library build. If this is part of an automated configuration
  test and no other errors occur, you may safely ignore it.
  You may use wx-config --list to see all configs available in
  the default prefix.

  Warning: No config found to match: /usr/local/bin/wx-config --
toolkit=gtk2 --unicode=yes --version=2.8 --prefix
           in /usr/local/lib/wx/config
  If you require this configuration, please install the desired
  library build. If this is part of an automated configuration
  test and no other errors occur, you may safely ignore it.
  You may use wx-config --list to see all configs available in
  the default prefix.

Preparing CORE...
Preparing STC...
Preparing GIZMOS...
running build_ext
building '_core_' extension
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-
D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-
size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g
-pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --
param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -
fwrapv -fPIC -g -DSWIG_TYPE_TABLE=_wxPython_table -
DSWIG_PYTHON_OUTPUT_TUPLE -DWXP_USE_THREAD=1 -UNDEBUG -Iinclude -Isrc -
I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/
atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/
glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/
include/freetype2 -I/usr/include/libpng12 -I/usr/include/python2.6 -c
src/helpers.cpp -o build-gtk2.unicode/temp.linux-x86_64-2.6/src/
helpers.o -g -O0
In file included from src/helpers.cpp:16:
include/wx/wxPython/wxPython_int.h:19:19: error: wx/wx.h: No such file
or directory
include/wx/wxPython/wxPython_int.h:21:25: error: wx/busyinfo.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:22:22: error: wx/caret.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:23:25: error: wx/choicebk.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:24:24: error: wx/clipbrd.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:25:25: error: wx/colordlg.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:26:23: error: wx/config.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:27:23: error: wx/cshelp.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:28:25: error: wx/dcmirror.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:29:21: error: wx/dcps.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:30:24: error: wx/dirctrl.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:31:23: error: wx/dirdlg.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:32:23: error: wx/numdlg.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:33:20: error: wx/dnd.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:34:24: error: wx/docview.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:35:24: error: wx/encconv.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:36:25: error: wx/fdrepdlg.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:37:25: error: wx/fileconf.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:38:24: error: wx/filesys.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:39:24: error: wx/fontdlg.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:40:24: error: wx/fs_inet.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:41:23: error: wx/fs_mem.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:42:23: error: wx/fs_zip.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:43:24: error: wx/gbsizer.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:44:25: error: wx/geometry.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:45:25: error: wx/htmllbox.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:46:22: error: wx/image.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:47:25: error: wx/imaglist.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:48:21: error: wx/intl.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:49:23: error: wx/laywin.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:50:25: error: wx/listbook.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:51:25: error: wx/minifram.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:52:25: error: wx/notebook.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:53:22: error: wx/print.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:54:25: error: wx/printdlg.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:55:24: error: wx/process.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:56:24: error: wx/progdlg.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:57:24: error: wx/sashwin.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:58:25: error: wx/spinbutt.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:59:25: error: wx/spinctrl.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:60:23: error: wx/splash.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:61:25: error: wx/splitter.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:62:25: error: wx/statline.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:63:23: error: wx/stream.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:64:23: error: wx/sysopt.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:65:24: error: wx/taskbar.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:66:23: error: wx/tglbtn.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:67:23: error: wx/tipwin.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:68:25: error: wx/toolbook.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:69:24: error: wx/tooltip.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:70:25: error: wx/treebook.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:71:22: error: wx/vlbox.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:72:24: error: wx/vscroll.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:73:24: error: wx/dateevt.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:74:25: error: wx/datectrl.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:75:22: error: wx/power.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:76:26: error: wx/hyperlink.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:77:27: error: wx/pickerbase.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:78:26: error: wx/clrpicker.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:79:27: error: wx/filepicker.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:80:31: error: wx/fontpicker.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:81:25: error: wx/collpane.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:82:25: error: wx/srchctrl.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:83:33: error: wx/generic/
datectrl.h: No such file or directory
src/helpers.cpp:53:25: error: wx/mimetype.h: No such file or directory
In file included from src/helpers.cpp:16:
include/wx/wxPython/wxPython_int.h:99: error: expected class-name
before ‘{’ token
include/wx/wxPython/wxPython_int.h:101: error: expected ‘)’ before
‘evtType’
include/wx/wxPython/wxPython_int.h:104: error: ISO C++ forbids
declaration of ‘wxEvent’ with no type
include/wx/wxPython/wxPython_int.h:104: error: ‘wxEvent’ declared as a
‘virtual’ field
include/wx/wxPython/wxPython_int.h:104: error: expected ‘;’ before ‘*’
token
include/wx/wxPython/wxPython_int.h:105: error: expected ‘;’ before ‘}’
token
include/wx/wxPython/wxPython_int.h:112: error: ‘wxPoint2DDouble’ does
not name a type
include/wx/wxPython/wxPython_int.h:113: error: ‘wxRect2DDouble’ does
not name a type
include/wx/wxPython/wxPython_int.h:136: error: variable or field
‘wxPyEventThunker’ declared void
include/wx/wxPython/wxPython_int.h:136: error: ‘wxObject’ was not
declared in this scope
include/wx/wxPython/wxPython_int.h:136: error: expected primary-
expression before ‘,’ token
include/wx/wxPython/wxPython_int.h:136: error: ‘wxEvent’ was not
declared in this scope
include/wx/wxPython/wxPython_int.h:136: error: ‘event’ was not
declared in this scope
include/wx/wxPython/wxPython_int.h:139: error: ISO C++ forbids
declaration of ‘wxChar’ with no type
include/wx/wxPython/wxPython_int.h:139: error: expected ‘,’ or ‘...’
before ‘*’ token
include/wx/wxPython/wxPython_int.h:141: error: ISO C++ forbids
declaration of ‘wxChar’ with no type
include/wx/wxPython/wxPython_int.h:141: error: expected ‘,’ or ‘...’
before ‘*’ token
include/wx/wxPython/wxPython_int.h:144: error: ISO C++ forbids
declaration of ‘wxChar’ with no type
include/wx/wxPython/wxPython_int.h:144: error: expected ‘,’ or ‘...’
before ‘*’ token
include/wx/wxPython/wxPython_int.h:145: error: ISO C++ forbids
declaration of ‘wxChar’ with no type
include/wx/wxPython/wxPython_int.h:145: error: expected ‘,’ or ‘...’
before ‘*’ token
include/wx/wxPython/wxPython_int.h:148: error: ISO C++ forbids
declaration of ‘wxString’ with no type
include/wx/wxPython/wxPython_int.h:148: error: expected ‘,’ or ‘...’
before ‘&’ token
include/wx/wxPython/wxPython_int.h:149: error: ‘wxString’ does not
name a type
include/wx/wxPython/wxPython_int.h:151: error: ‘wxObject’ was not
declared in this scope
include/wx/wxPython/wxPython_int.h:151: error: ‘source’ was not
declared in this scope
include/wx/wxPython/wxPython_int.h:151: error: expected primary-
expression before ‘bool’
include/wx/wxPython/wxPython_int.h:151: error: expected primary-
expression before ‘bool’
include/wx/wxPython/wxPython_int.h:151: error: initializer expression
list treated as compound expression
include/wx/wxPython/wxPython_int.h:152: error: ‘wxSizer’ was not
declared in this scope
include/wx/wxPython/wxPython_int.h:152: error: ‘source’ was not
declared in this scope
include/wx/wxPython/wxPython_int.h:152: error: expected primary-
expression before ‘bool’
include/wx/wxPython/wxPython_int.h:152: error: initializer expression
list treated as compound expression
include/wx/wxPython/wxPython_int.h:155: error: ‘wxWindow’ was not
declared in this scope
include/wx/wxPython/wxPython_int.h:155: error: ‘win’ was not declared
in this scope
include/wx/wxPython/wxPython_int.h:236: error: expected constructor,
destructor, or type conversion before ‘*’ token
include/wx/wxPython/wxPython_int.h:242: error: expected constructor,
destructor, or type conversion before ‘*’ token
include/wx/wxPython/wxPython_int.h:243: error: expected constructor,
destructor, or type conversion before ‘*’ token
include/wx/wxPython/wxPython_int.h:244: error: expected constructor,
destructor, or type conversion before ‘*’ token
include/wx/wxPython/wxPython_int.h:245: error: expected constructor,
destructor, or type conversion before ‘*’ token
include/wx/wxPython/wxPython_int.h:246: error: expected constructor,
destructor, or type conversion before ‘*’ token
include/wx/wxPython/wxPython_int.h:247: error: expected constructor,
destructor, or type conversion before ‘*’ token
include/wx/wxPython/wxPython_int.h:249: error: ‘wxSize’ has not been
declared
include/wx/wxPython/wxPython_int.h:250: error: ‘wxPoint’ has not been
declared
include/wx/wxPython/wxPython_int.h:251: error: ‘wxRealPoint’ has not
been declared
include/wx/wxPython/wxPython_int.h:252: error: ‘wxRect’ has not been
declared
include/wx/wxPython/wxPython_int.h:253: error: ‘wxColour’ has not been
declared
include/wx/wxPython/wxPython_int.h:254: error: ‘wxPoint2D’ has not
been declared
include/wx/wxPython/wxPython_int.h:255: error: ‘wxRect2D’ has not been
declared
include/wx/wxPython/wxPython_int.h:258: error: ISO C++ forbids
declaration of ‘wxChar’ with no type
include/wx/wxPython/wxPython_int.h:258: error: expected ‘,’ or ‘...’
before ‘*’ token
include/wx/wxPython/wxPython_int.h:269: error: ISO C++ forbids
declaration of ‘wxArrayString’ with no type
include/wx/wxPython/wxPython_int.h:269: error: expected ‘,’ or ‘...’
before ‘&’ token
include/wx/wxPython/wxPython_int.h:270: error: ISO C++ forbids
declaration of ‘wxArrayInt’ with no type
include/wx/wxPython/wxPython_int.h:270: error: expected ‘,’ or ‘...’
before ‘&’ token
include/wx/wxPython/wxPython_int.h:271: error: ISO C++ forbids
declaration of ‘wxArrayDouble’ with no type
include/wx/wxPython/wxPython_int.h:271: error: expected ‘,’ or ‘...’
before ‘&’ token
include/wx/wxPython/wxPython_int.h:290: error: expected class-name
before ‘{’ token
include/wx/wxPython/wxPython_int.h:291: error: ISO C++ forbids
declaration of ‘DECLARE_ABSTRACT_CLASS’ with no type
include/wx/wxPython/wxPython_int.h:292: error: expected ‘;’ before
‘public’
include/wx/wxPython/wxPython_int.h:297: error: ‘wxEvent’ has not been
declared
include/wx/wxPython/wxPython_int.h:326: error: expected class-name
before ‘,’ token
include/wx/wxPython/wxPython_int.h:327: error: ISO C++ forbids
declaration of ‘DECLARE_ABSTRACT_CLASS’ with no type
include/wx/wxPython/wxPython_int.h:328: error: expected ‘;’ before
‘public’
include/wx/wxPython/wxPython_int.h:333: error: ISO C++ forbids
declaration of ‘wxEvent’ with no type
include/wx/wxPython/wxPython_int.h:333: error: ‘wxEvent’ declared as a
‘virtual’ field
include/wx/wxPython/wxPython_int.h:333: error: expected ‘;’ before ‘*’
token
include/wx/wxPython/wxPython_int.h:334: error: expected ‘;’ before ‘}’
token
include/wx/wxPython/wxPython_int.h:337: error: expected class-name
before ‘,’ token
include/wx/wxPython/wxPython_int.h:338: error: ISO C++ forbids
declaration of ‘DECLARE_ABSTRACT_CLASS’ with no type
include/wx/wxPython/wxPython_int.h:339: error: expected ‘;’ before
‘public’
include/wx/wxPython/wxPython_int.h:344: error: ISO C++ forbids
declaration of ‘wxEvent’ with no type
include/wx/wxPython/wxPython_int.h:344: error: ‘wxEvent’ declared as a
‘virtual’ field
include/wx/wxPython/wxPython_int.h:344: error: expected ‘;’ before ‘*’
token
include/wx/wxPython/wxPython_int.h:345: error: expected ‘;’ before ‘}’
token
include/wx/wxPython/wxPython_int.h:375: error: ISO C++ forbids
declaration of ‘wxChar’ with no type
include/wx/wxPython/wxPython_int.h:375: error: expected ‘,’ or ‘...’
before ‘*’ token
include/wx/wxPython/wxPython_int.h:376: error: ISO C++ forbids
declaration of ‘wxChar’ with no type
include/wx/wxPython/wxPython_int.h:376: error: expected ‘,’ or ‘...’
before ‘*’ token
include/wx/wxPython/wxPython_int.h:377: error: ISO C++ forbids
declaration of ‘wxChar’ with no type
include/wx/wxPython/wxPython_int.h:377: error: expected ‘,’ or ‘...’
before ‘*’ token
include/wx/wxPython/wxPython_int.h:378: error: ISO C++ forbids
declaration of ‘wxChar’ with no type
include/wx/wxPython/wxPython_int.h:378: error: expected ‘,’ or ‘...’
before ‘*’ token
include/wx/wxPython/wxPython_int.h:387: error: ISO C++ forbids
declaration of ‘wxString’ with no type
include/wx/wxPython/wxPython_int.h:387: error: expected ‘;’ before ‘*’
token
include/wx/wxPython/wxPython_int.h:388: error: expected identifier
before ‘*’ token
include/wx/wxPython/wxPython_int.h:388: error: ISO C++ forbids
declaration of ‘wxString’ with no type
include/wx/wxPython/wxPython_int.h:388: error: ‘wxString’ declared as
function returning a function
include/wx/wxPython/wxPython_int.h:389: error: ISO C++ forbids
declaration of ‘wxString’ with no type
include/wx/wxPython/wxPython_int.h:389: error: expected ‘,’ or ‘...’
before ‘&’ token
include/wx/wxPython/wxPython_int.h:395: error: ISO C++ forbids
declaration of ‘wxPoint’ with no type
include/wx/wxPython/wxPython_int.h:395: error: expected ‘;’ before ‘*’
token
include/wx/wxPython/wxPython_int.h:396: error: ISO C++ forbids
declaration of ‘wxBitmap’ with no type
include/wx/wxPython/wxPython_int.h:396: error: expected ‘;’ before ‘*’
token
include/wx/wxPython/wxPython_int.h:397: error: ISO C++ forbids
declaration of ‘wxString’ with no type
include/wx/wxPython/wxPython_int.h:397: error: expected ‘;’ before ‘*’
token
include/wx/wxPython/wxPython_int.h:398: error: ISO C++ forbids
declaration of ‘wxAcceleratorEntry’ with no type
include/wx/wxPython/wxPython_int.h:398: error: expected ‘;’ before ‘*’
token
include/wx/wxPython/wxPython_int.h:400: error: ‘wxSize’ has not been
declared
include/wx/wxPython/wxPython_int.h:401: error: ‘wxPoint’ has not been
declared
include/wx/wxPython/wxPython_int.h:402: error: ‘wxRealPoint’ has not
been declared
include/wx/wxPython/wxPython_int.h:403: error: ‘wxRect’ has not been
declared
include/wx/wxPython/wxPython_int.h:404: error: ‘wxColour’ has not been
declared
include/wx/wxPython/wxPython_int.h:405: error: ‘wxPoint2D’ has not
been declared
include/wx/wxPython/wxPython_int.h:408: error: ISO C++ forbids
declaration of ‘wxChar’ with no type
include/wx/wxPython/wxPython_int.h:408: error: expected ‘,’ or ‘...’
before ‘*’ token
include/wx/wxPython/wxPython_int.h:417: error: expected ‘;’ before ‘(’
token
include/wx/wxPython/wxPython_int.h:418: error: expected ‘;’ before ‘(’
token
include/wx/wxPython/wxPython_int.h:422: error: ISO C++ forbids
declaration of ‘wxArrayString’ with no type
include/wx/wxPython/wxPython_int.h:422: error: expected ‘,’ or ‘...’
before ‘&’ token
include/wx/wxPython/wxPython_int.h:423: error: ISO C++ forbids
declaration of ‘wxArrayInt’ with no type
include/wx/wxPython/wxPython_int.h:423: error: expected ‘,’ or ‘...’
before ‘&’ token
include/wx/wxPython/wxPython_int.h:438: error: ISO C++ forbids
declaration of ‘wxArrayDouble’ with no type
include/wx/wxPython/wxPython_int.h:438: error: expected ‘,’ or ‘...’
before ‘&’ token
include/wx/wxPython/wxPython_int.h:439: error: ISO C++ forbids
declaration of ‘wxPoint2D’ with no type
include/wx/wxPython/wxPython_int.h:439: error: expected ‘;’ before ‘*’
token
include/wx/wxPython/wxPython_int.h:440: error: ‘wxRect2D’ has not been
declared
include/wx/wxPython/wxPython_int.h:458: error: expected class-name
before ‘{’ token
include/wx/wxPython/wxPython_int.h:477: error: expected class-name
before ‘{’ token
include/wx/wxPython/wxPython_int.h:519: error: expected class-name
before ‘{’ token
include/wx/wxPython/wxPython_int.h:530: error: expected ‘;’ before ‘(’
token
include/wx/wxPython/wxPython_int.h:531: error: expected ‘;’ before ‘(’
token
include/wx/wxPython/wxPython_int.h:532: error: expected ‘;’ before ‘(’
token
include/wx/wxPython/wxPython_int.h:539: error: ‘wxImage’ has not been
declared
include/wx/wxPython/wxPython_int.h:539: error: ‘wxInputStream’ has not
been declared
include/wx/wxPython/wxPython_int.h:541: error: ‘wxImage’ has not been
declared
include/wx/wxPython/wxPython_int.h:541: error: ‘wxOutputStream’ has
not been declared
include/wx/wxPython/wxPython_int.h:543: error: ‘wxInputStream’ has not
been declared
include/wx/wxPython/wxPython_int.h:544: error: ‘wxInputStream’ has not
been declared
include/wx/wxPython/wxPython_int.h:626: error: expected class-name
before ‘{’ token
include/wx/wxPython/wxPython_int.h:627: error: ISO C++ forbids
declaration of ‘DECLARE_ABSTRACT_CLASS’ with no type
include/wx/wxPython/wxPython_int.h:629: error: expected ‘;’ before
‘public’
include/wx/wxPython/wxPython_int.h:654: error: ‘wxEvent’ has not been
declared
include/wx/wxPython/wxPython_int.h:657: error: ISO C++ forbids
declaration of ‘wxString’ with no type
include/wx/wxPython/wxPython_int.h:657: error: expected ‘,’ or ‘...’
before ‘&’ token
include/wx/wxPython/wxPython_int.h:658: error: ISO C++ forbids
declaration of ‘wxString’ with no type
include/wx/wxPython/wxPython_int.h:658: error: expected ‘,’ or ‘...’
before ‘&’ token
include/wx/wxPython/wxPython_int.h:666: error: ‘wxString’ does not
name a type
include/wx/wxPython/wxPython_int.h:672: error: ISO C++ forbids
declaration of ‘wxString’ with no type
include/wx/wxPython/wxPython_int.h:672: error: expected ‘,’ or ‘...’
before ‘&’ token
In file included from src/helpers.cpp:17:
include/wx/wxPython/pyistream.h:27: error: ISO C++ forbids declaration
of ‘wxInputStream’ with no type
include/wx/wxPython/pyistream.h:27: error: expected ‘;’ before ‘*’
token
include/wx/wxPython/pyistream.h:30: error: expected ‘)’ before ‘*’
token
include/wx/wxPython/pyistream.h:63: error: ‘wxSeekMode’ has not been
declared
include/wx/wxPython/pyistream.h: In member function ‘char
wxPyInputStream::Peek()’:
include/wx/wxPython/pyistream.h:56: error: ‘m_wxis’ was not declared
in this scope
include/wx/wxPython/pyistream.h: In member function ‘char
wxPyInputStream::GetC()’:
include/wx/wxPython/pyistream.h:57: error: ‘m_wxis’ was not declared
in this scope
include/wx/wxPython/pyistream.h: In member function ‘size_t
wxPyInputStream::LastRead()’:
include/wx/wxPython/pyistream.h:58: error: ‘m_wxis’ was not declared
in this scope
include/wx/wxPython/pyistream.h: In member function ‘bool
wxPyInputStream::CanRead()’:
include/wx/wxPython/pyistream.h:59: error: ‘m_wxis’ was not declared
in this scope
include/wx/wxPython/pyistream.h: In member function ‘bool
wxPyInputStream::Eof()’:
include/wx/wxPython/pyistream.h:60: error: ‘m_wxis’ was not declared
in this scope
include/wx/wxPython/pyistream.h: In member function ‘bool
wxPyInputStream::Ungetch(char)’:
include/wx/wxPython/pyistream.h:61: error: ‘m_wxis’ was not declared
in this scope
include/wx/wxPython/pyistream.h: In member function ‘long unsigned int
wxPyInputStream::SeekI(long unsigned int, int)’:
include/wx/wxPython/pyistream.h:64: error: ‘m_wxis’ was not declared
in this scope
include/wx/wxPython/pyistream.h: In member function ‘long unsigned int
wxPyInputStream::TellI()’:
include/wx/wxPython/pyistream.h:65: error: ‘m_wxis’ was not declared
in this scope
include/wx/wxPython/pyistream.h: At global scope:
include/wx/wxPython/pyistream.h:72: error: expected class-name before
‘{’ token
include/wx/wxPython/pyistream.h:75: error: ‘wxFileOffset’ does not
name a type
include/wx/wxPython/pyistream.h:89: error: ‘wxFileOffset’ does not
name a type
include/wx/wxPython/pyistream.h:90: error: ‘wxFileOffset’ does not
name a type
include/wx/wxPython/pyistream.h:105: error: ISO C++ forbids
declaration of ‘wxOutputStream’ with no type
include/wx/wxPython/pyistream.h:105: error: expected ‘;’ before ‘*’
token
include/wx/wxPython/pyistream.h:108: error: expected ‘)’ before ‘*’
token
include/wx/wxPython/pyistream.h:134: error: ‘wxSeekMode’ has not been
declared
include/wx/wxPython/pyistream.h:134: error: ‘wxFromStart’ was not
declared in this scope
include/wx/wxPython/pyistream.h: In member function ‘void
wxPyOutputStream::PutC(char)’:
include/wx/wxPython/pyistream.h:132: error: ‘m_wxos’ was not declared
in this scope
include/wx/wxPython/pyistream.h: In member function ‘size_t
wxPyOutputStream::LastWrite()’:
include/wx/wxPython/pyistream.h:133: error: ‘m_wxos’ was not declared
in this scope
include/wx/wxPython/pyistream.h: In member function ‘long unsigned int
wxPyOutputStream::SeekO(long unsigned int, int)’:
include/wx/wxPython/pyistream.h:135: error: ‘m_wxos’ was not declared
in this scope
include/wx/wxPython/pyistream.h: In member function ‘long unsigned int
wxPyOutputStream::TellO()’:
include/wx/wxPython/pyistream.h:136: error: ‘m_wxos’ was not declared
in this scope
include/wx/wxPython/pyistream.h: At global scope:
include/wx/wxPython/pyistream.h:143: error: expected class-name before
‘{’ token
include/wx/wxPython/pyistream.h:146: error: ‘wxFileOffset’ does not
name a type
include/wx/wxPython/pyistream.h:160: error: ‘wxFileOffset’ does not
name a type
include/wx/wxPython/pyistream.h:161: error: ‘wxFileOffset’ does not
name a type
In file included from src/helpers.cpp:19:
include/wx/wxPython/twoitem.h:19: error: ISO C++ forbids declaration
of ‘wxChar’ with no type
include/wx/wxPython/twoitem.h:19: error: expected ‘,’ or ‘...’ before
‘*’ token
include/wx/wxPython/twoitem.h: In function ‘bool
wxPyTwoIntItem_helper(PyObject*, T**, int)’:
include/wx/wxPython/twoitem.h:24: error: ‘name’ was not declared in
this scope
include/wx/wxPython/twoitem.h:45: error: ‘wxString’ was not declared
in this scope
include/wx/wxPython/twoitem.h:45: error: expected ‘;’ before ‘msg’
include/wx/wxPython/twoitem.h:46: error: ‘msg’ was not declared in
this scope
include/wx/wxPython/twoitem.h:46: error: there are no arguments to
‘wxT’ that depend on a template parameter, so a declaration of ‘wxT’
must be available
include/wx/wxPython/twoitem.h:46: note: (if you use ‘-fpermissive’, G+
+ will accept your code, but allowing the use of an undeclared name is
deprecated)
include/wx/wxPython/twoitem.h:46: error: ‘name’ was not declared in
this scope
src/helpers.cpp: At global scope:
src/helpers.cpp:182: error: ‘wxApp’ has not been declared
src/helpers.cpp:182: error: expected constructor, destructor, or type
conversion before ‘;’ token
src/helpers.cpp:185: error: definition of implicitly-declared
‘wxPyApp::wxPyApp()’
src/helpers.cpp: In destructor ‘wxPyApp::~wxPyApp()’:
src/helpers.cpp:195: error: ‘wxApp’ has not been declared
src/helpers.cpp: In member function ‘int wxPyApp::MainLoop()’:
src/helpers.cpp:208: error: ‘DeletePendingObjects’ was not declared in
this scope
src/helpers.cpp:209: error: ‘wxTopLevelWindows’ was not declared in
this scope
src/helpers.cpp:211: error: ‘m_exitOnFrameDelete’ was not declared in
this scope
src/helpers.cpp:211: error: ‘Later’ was not declared in this scope
src/helpers.cpp:212: error: ‘Yes’ was not declared in this scope
src/helpers.cpp:215: error: ‘wxApp’ has not been declared
src/helpers.cpp: In member function ‘virtual bool
wxPyApp::OnInitGui()’:
src/helpers.cpp:224: error: ‘wxApp’ has not been declared
src/helpers.cpp: In member function ‘virtual int wxPyApp::OnExit()’:
src/helpers.cpp:239: error: ‘wxApp’ has not been declared
src/helpers.cpp: In member function ‘virtual void
wxPyApp::ExitMainLoop()’:
src/helpers.cpp:266: error: ‘wxApp’ has not been declared
src/helpers.cpp: At global scope:
src/helpers.cpp:270: error: ‘int wxPyApp::FilterEvent’ is not a static
member of ‘class wxPyApp’
src/helpers.cpp:270: error: ‘wxEvent’ was not declared in this scope
src/helpers.cpp:270: error: ‘event’ was not declared in this scope
src/helpers.cpp:270: error: expected ‘,’ or ‘;’ before ‘{’ token
src/helpers.cpp:92: warning: ‘wxPyDefaultEncoding’ defined but not
used
src/helpers.cpp:94: warning: ‘wxPython_dict’ defined but not used
src/helpers.cpp:95: warning: ‘wxPyAssertionError’ defined but not used
src/helpers.cpp:96: warning: ‘wxPyNoAppError’ defined but not used
error: command 'gcc' failed with exit status 1

HI, guys,

I tried wxPython 2.9 too, as it seems much easier as there is already
a build scropt, (http://wxpython.org/builddoc.php).
However, I still failed.

There is such errors:

configure: error: GStreamer not available
Error running configure
ERROR: failed building wxWidgets
Traceback (most recent call last):
  File "build-wxpython.py", line 352, in <module>
    wxbuild.main(wxscript, build_options)
  File "/home/myname/Desktop/wxPython-src-2.9.2.4/build/tools/build-
wxwidgets.py", line 328, in main
    "Error running configure")
  File "/home/myname/Desktop/wxPython-src-2.9.2.4/build/tools/build-
wxwidgets.py", line 62, in exitIfError
    raise builder.BuildError, msg
BuildError

Any suggestions?

Thanks a lot!!

···

On Oct 4, 4:36 pm, pploo <beilus...@gmail.com> wrote:

OS: scientific linux 6 (Red Hat 4.4.5-6); python 2.6.6; gcc 4.4.5;
following build_instructions (http://www.wxpython.org/BUILD-2.8.html);
I use the /opt/wx/2.8/bin/wx-config, the first two steps seem fine.
Problem occurs at step 3, "python setup.py build_ext --inplace --
debug",

Compilation results are as follows:

WARNING: WXWIN not set in environment. Assuming '..'
Found wx-config: /usr/local/bin/wx-config
Using flags: --toolkit=gtk2 --unicode=yes --version=2.8

Warning: No config found to match: /usr/local/bin/wx-config --
toolkit=gtk2 --unicode=yes --version=2.8 --cxxflags
in /usr/local/lib/wx/config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config --list to see all configs available in
the default prefix.

Warning: No config found to match: /usr/local/bin/wx-config --
toolkit=gtk2 --unicode=yes --version=2.8 --libs
in /usr/local/lib/wx/config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config --list to see all configs available in
the default prefix.

Warning: No config found to match: /usr/local/bin/wx-config --
toolkit=gtk2 --unicode=yes --version=2.8 --basename
in /usr/local/lib/wx/config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config --list to see all configs available in
the default prefix.

Warning: No config found to match: /usr/local/bin/wx-config --
toolkit=gtk2 --unicode=yes --version=2.8 --release
in /usr/local/lib/wx/config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config --list to see all configs available in
the default prefix.

Warning: No config found to match: /usr/local/bin/wx-config --
toolkit=gtk2 --unicode=yes --version=2.8 --prefix
in /usr/local/lib/wx/config
If you require this configuration, please install the desired
library build. If this is part of an automated configuration
test and no other errors occur, you may safely ignore it.
You may use wx-config --list to see all configs available in
the default prefix.

Preparing CORE...
Preparing STC...
Preparing GIZMOS...
running build_ext
building '_core_' extension
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-
D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-
size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g
-pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --
param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -
fwrapv -fPIC -g -DSWIG_TYPE_TABLE=_wxPython_table -
DSWIG_PYTHON_OUTPUT_TUPLE -DWXP_USE_THREAD=1 -UNDEBUG -Iinclude -Isrc -
I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/
atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/
glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/
include/freetype2 -I/usr/include/libpng12 -I/usr/include/python2.6 -c
src/helpers.cpp -o build-gtk2.unicode/temp.linux-x86_64-2.6/src/
helpers.o -g -O0
In file included from src/helpers.cpp:16:
include/wx/wxPython/wxPython_int.h:19:19: error: wx/wx.h: No such file
or directory
include/wx/wxPython/wxPython_int.h:21:25: error: wx/busyinfo.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:22:22: error: wx/caret.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:23:25: error: wx/choicebk.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:24:24: error: wx/clipbrd.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:25:25: error: wx/colordlg.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:26:23: error: wx/config.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:27:23: error: wx/cshelp.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:28:25: error: wx/dcmirror.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:29:21: error: wx/dcps.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:30:24: error: wx/dirctrl.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:31:23: error: wx/dirdlg.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:32:23: error: wx/numdlg.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:33:20: error: wx/dnd.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:34:24: error: wx/docview.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:35:24: error: wx/encconv.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:36:25: error: wx/fdrepdlg.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:37:25: error: wx/fileconf.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:38:24: error: wx/filesys.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:39:24: error: wx/fontdlg.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:40:24: error: wx/fs_inet.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:41:23: error: wx/fs_mem.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:42:23: error: wx/fs_zip.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:43:24: error: wx/gbsizer.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:44:25: error: wx/geometry.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:45:25: error: wx/htmllbox.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:46:22: error: wx/image.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:47:25: error: wx/imaglist.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:48:21: error: wx/intl.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:49:23: error: wx/laywin.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:50:25: error: wx/listbook.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:51:25: error: wx/minifram.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:52:25: error: wx/notebook.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:53:22: error: wx/print.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:54:25: error: wx/printdlg.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:55:24: error: wx/process.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:56:24: error: wx/progdlg.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:57:24: error: wx/sashwin.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:58:25: error: wx/spinbutt.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:59:25: error: wx/spinctrl.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:60:23: error: wx/splash.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:61:25: error: wx/splitter.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:62:25: error: wx/statline.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:63:23: error: wx/stream.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:64:23: error: wx/sysopt.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:65:24: error: wx/taskbar.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:66:23: error: wx/tglbtn.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:67:23: error: wx/tipwin.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:68:25: error: wx/toolbook.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:69:24: error: wx/tooltip.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:70:25: error: wx/treebook.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:71:22: error: wx/vlbox.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:72:24: error: wx/vscroll.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:73:24: error: wx/dateevt.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:74:25: error: wx/datectrl.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:75:22: error: wx/power.h: No such
file or directory
include/wx/wxPython/wxPython_int.h:76:26: error: wx/hyperlink.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:77:27: error: wx/pickerbase.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:78:26: error: wx/clrpicker.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:79:27: error: wx/filepicker.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:80:31: error: wx/fontpicker.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:81:25: error: wx/collpane.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:82:25: error: wx/srchctrl.h: No
such file or directory
include/wx/wxPython/wxPython_int.h:83:33: error: wx/generic/
datectrl.h: No such file or directory
src/helpers.cpp:53:25: error: wx/mimetype.h: No such file or directory
In file included from src/helpers.cpp:16:
include/wx/wxPython/wxPython_int.h:99: error: expected class-name
before ‘{’ token
include/wx/wxPython/wxPython_int.h:101: error: expected ‘)’ before
‘evtType’
include/wx/wxPython/wxPython_int.h:104: error: ISO C++ forbids
declaration of ‘wxEvent’ with no type
include/wx/wxPython/wxPython_int.h:104: error: ‘wxEvent’ declared as a
‘virtual’ field
include/wx/wxPython/wxPython_int.h:104: error: expected ‘;’ before ‘*’
token
include/wx/wxPython/wxPython_int.h:105: error: expected ‘;’ before ‘}’
token
include/wx/wxPython/wxPython_int.h:112: error: ‘wxPoint2DDouble’ does
not name a type
include/wx/wxPython/wxPython_int.h:113: error: ‘wxRect2DDouble’ does
not name a type
include/wx/wxPython/wxPython_int.h:136: error: variable or field
‘wxPyEventThunker’ declared void
include/wx/wxPython/wxPython_int.h:136: error: ‘wxObject’ was not
declared in this scope
include/wx/wxPython/wxPython_int.h:136: error: expected primary-
expression before ‘,’ token
include/wx/wxPython/wxPython_int.h:136: error: ‘wxEvent’ was not
declared in this scope
include/wx/wxPython/wxPython_int.h:136: error: ‘event’ was not
declared in this scope
include/wx/wxPython/wxPython_int.h:139: error: ISO C++ forbids
declaration of ‘wxChar’ with no type
include/wx/wxPython/wxPython_int.h:139: error: expected ‘,’ or ‘...’
before ‘*’ token
include/wx/wxPython/wxPython_int.h:141: error: ISO C++ forbids
declaration of ‘wxChar’ with no type
include/wx/wxPython/wxPython_int.h:141: error: expected ‘,’ or ‘...’
before ‘*’ token
include/wx/wxPython/wxPython_int.h:144: error: ISO C++ forbids
declaration of ‘wxChar’ with no type
include/wx/wxPython/wxPython_int.h:144: error: expected ‘,’ or ‘...’
before ‘*’ token
include/wx/wxPython/wxPython_int.h:145: error: ISO C++ forbids
declaration of ‘wxChar’ with no type
include/wx/wxPython/wxPython_int.h:145: error: expected ‘,’ or ‘...’
before ‘*’ token
include/wx/wxPython/wxPython_int.h:148: error: ISO C++ forbids
declaration of ‘wxString’ with no type
include/wx/wxPython/wxPython_int.h:148: error: expected ‘,’ or ‘...’
before ‘&’ token
include/wx/wxPython/wxPython_int.h:149: error: ‘wxString’ does not
name a type
include/wx/wxPython/wxPython_int.h:151: error: ‘wxObject’ was not
declared in this scope
include/wx/wxPython/wxPython_int.h:151: error: ‘source’ was not
declared in this scope
include/wx/wxPython/wxPython_int.h:151: error: expected primary-
expression before ‘bool’
include/wx/wxPython/wxPython_int.h:151: error: expected primary-
expression before ‘bool’
include/wx/wxPython/wxPython_int.h:151: error: initializer expression
list treated as compound expression
include/wx/wxPython/wxPython_int.h:152: error: ‘wxSizer’ was not
declared in this scope
include/wx/wxPython/wxPython_int.h:152: error: ‘source’ was not
declared in this scope
include/wx/wxPython/wxPython_int.h:152: error: expected primary-
expression before ‘bool’
include/wx/wxPython/wxPython_int.h:152: error: initializer expression
list treated as compound expression
include/wx/wxPython/wxPython_int.h:155: error: ‘wxWindow’ was not
declared in this scope
include/wx/wxPython/wxPython_int.h:155: error: ‘win’ was not declared
in this scope
include/wx/wxPython/wxPython_int.h:236: error: expected constructor,
destructor, or type conversion before ‘*’ token
include/wx/wxPython/wxPython_int.h:242: error: expected constructor,
destructor, or type conversion before ‘*’ token
include/wx/wxPython/wxPython_int.h:243: error: expected constructor,
destructor, or type conversion before ‘*’ token
include/wx/wxPython/wxPython_int.h:244: error: expected constructor,
destructor, or type conversion before ‘*’ token
include/wx/wxPython/wxPython_int.h:245: error: expected constructor,
destructor, or type conversion before ‘*’ token
include/wx/wxPython/wxPython_int.h:246: error: expected constructor,
destructor, or type conversion before ‘*’ token
include/wx/wxPython/wxPython_int.h:247: error: expected constructor,
destructor, or type conversion before ‘*’ token
include/wx/wxPython/wxPython_int.h:249: error: ‘wxSize’ has not been
declared
include/wx/wxPython/wxPython_int.h:250: error: ‘wxPoint’ has not been
declared
include/wx/wxPython/wxPython_int.h:251: error: ‘wxRealPoint’ has not
been declared
include/wx/wxPython/wxPython_int.h:252: error: ‘wxRect’ has not been
declared
include/wx/wxPython/wxPython_int.h:253: error: ‘wxColour’ has not been
declared
include/wx/wxPython/wxPython_int.h:254: error: ‘wxPoint2D’ has not
been declared
include/wx/wxPython/wxPython_int.h:255: error: ‘wxRect2D’ has not been
declared
include/wx/wxPython/wxPython_int.h:258: error: ISO C++ forbids
declaration of ‘wxChar’ with no type
include/wx/wxPython/wxPython_int.h:258: error: expected ‘,’ or ‘...’
before ‘*’ token
include/wx/wxPython/wxPython_int.h:269: error: ISO C++ forbids
declaration of ‘wxArrayString’ with no type
include/wx/wxPython/wxPython_int.h:269: error: expected ‘,’ or ‘...’
before ‘&’ token
include/wx/wxPython/wxPython_int.h:270: error: ISO C++ forbids
declaration of ‘wxArrayInt’ with no type
include/wx/wxPython/wxPython_int.h:270: error: expected ‘,’ or ‘...’
before ‘&’ token
include/wx/wxPython/wxPython_int.h:271: error: ISO C++ forbids
declaration of ‘wxArrayDouble’ with no type
include/wx/wxPython/wxPython_int.h:271: error: expected ‘,’ or ‘...’
before ‘&’ token
include/wx/wxPython/wxPython_int.h:290: error: expected class-name
before ‘{’ token
include/wx/wxPython/wxPython_int.h:291: error: ISO C++ forbids
declaration of ‘DECLARE_ABSTRACT_CLASS’ with no type
include/wx/wxPython/wxPython_int.h:292: error: expected ‘;’ before
‘public’
include/wx/wxPython/wxPython_int.h:297: error: ‘wxEvent’ has not been
declared
include/wx/wxPython/wxPython_int.h:326: error: expected class-name
before ‘,’ token
include/wx/wxPython/wxPython_int.h:327: error: ISO C++ forbids
declaration of ‘DECLARE_ABSTRACT_CLASS’ with no type
include/wx/wxPython/wxPython_int.h:328: error: expected ‘;’ before
‘public’
include/wx/wxPython/wxPython_int.h:333: error: ISO C++ forbids
declaration of ‘wxEvent’ with no type
include/wx/wxPython/wxPython_int.h:333: error: ‘wxEvent’ declared as a
‘virtual’ field
include/wx/wxPython/wxPython_int.h:333: error: expected ‘;’ before ‘*’
token
include/wx/wxPython/wxPython_int.h:334: error: expected ‘;’ before ‘}’
token
include/wx/wxPython/wxPython_int.h:337: error: expected class-name
before ‘,’ token
include/wx/wxPython/wxPython_int.h:338: error: ISO C++ forbids
declaration of ‘DECLARE_ABSTRACT_CLASS’ with no type
include/wx/wxPython/wxPython_int.h:339: error: expected ‘;’ before
‘public’
include/wx/wxPython/wxPython_int.h:344: error: ISO C++ forbids
declaration of ‘wxEvent’ with no type
include/wx/wxPython/wxPython_int.h:344: error: ‘wxEvent’ declared as a
‘virtual’ field
include/wx/wxPython/wxPython_int.h:344: error: expected ‘;’ before ‘*’
token
include/wx/wxPython/wxPython_int.h:345: error: expected ‘;’ before ‘}’
token
include/wx/wxPython/wxPython_int.h:375: error: ISO C++ forbids
declaration of ‘wxChar’ with no type
include/wx/wxPython/wxPython_int.h:375: error: expected ‘,’ or ‘...’
before ‘*’ token
include/wx/wxPython/wxPython_int.h:376: error: ISO C++ forbids
declaration of ‘wxChar’ with no type
include/wx/wxPython/wxPython_int.h:376: error: expected ‘,’ or ‘...’
before ‘*’ token
include/wx/wxPython/wxPython_int.h:377: error: ISO C++ forbids
declaration of ‘wxChar’ with no type
include/wx/wxPython/wxPython_int.h:377: error: expected ‘,’ or ‘...’
before ‘*’ token
include/wx/wxPython/wxPython_int.h:378: error: ISO C++ forbids
declaration of ‘wxChar’ with no type
include/wx/wxPython/wxPython_int.h:378: error: expected ‘,’ or ‘...’
before ‘*’ token
include/wx/wxPython/wxPython_int.h:387: error: ISO C++ forbids
declaration of ‘wxString’ with no type
include/wx/wxPython/wxPython_int.h:387: error: expected ‘;’ before ‘*’
token
include/wx/wxPython/wxPython_int.h:388: error: expected identifier
before ‘*’ token
include/wx/wxPython/wxPython_int.h:388: error: ISO C++ forbids
declaration of ‘wxString’ with no type
include/wx/wxPython/wxPython_int.h:388: error: ‘wxString’ declared as
function returning a function
include/wx/wxPython/wxPython_int.h:389: error: ISO C++ forbids
declaration of ‘wxString’ with no type
include/wx/wxPython/wxPython_int.h:389: error: expected ‘,’ or ‘...’
before ‘&’ token
include/wx/wxPython/wxPython_int.h:395: error: ISO C++ forbids
declaration of ‘wxPoint’ with no type
include/wx/wxPython/wxPython_int.h:395: error: expected ‘;’ before ‘*’
token
include/wx/wxPython/wxPython_int.h:396: error: ISO C++ forbids
declaration of ‘wxBitmap’ with no type
include/wx/wxPython/wxPython_int.h:396: error: expected ‘;’ before ‘*’
token
include/wx/wxPython/wxPython_int.h:397: error: ISO C++ forbids
declaration of ‘wxString’ with no type
include/wx/wxPython/wxPython_int.h:397: error: expected ‘;’ before ‘*’
token
include/wx/wxPython/wxPython_int.h:398: error: ISO C++ forbids
declaration of ‘wxAcceleratorEntry’ with no type
include/wx/wxPython/wxPython_int.h:398: error: expected ‘;’ before ‘*’
token
include/wx/wxPython/wxPython_int.h:400: error: ‘wxSize’ has not been
declared
include/wx/wxPython/wxPython_int.h:401: error: ‘wxPoint’ has not been
declared
include/wx/wxPython/wxPython_int.h:402: error: ‘wxRealPoint’ has not
been declared
include/wx/wxPython/wxPython_int.h:403: error: ‘wxRect’ has not been
declared
include/wx/wxPython/wxPython_int.h:404: error: ‘wxColour’ has not been
declared
include/wx/wxPython/wxPython_int.h:405: error: ‘wxPoint2D’ has not
been declared
include/wx/wxPython/wxPython_int.h:408: error: ISO C++ forbids
declaration of ‘wxChar’ with no type
include/wx/wxPython/wxPython_int.h:408: error: expected ‘,’ or ‘...’
before ‘*’ token
include/wx/wxPython/wxPython_int.h:417: error: expected ‘;’ before ‘(’
token
include/wx/wxPython/wxPython_int.h:418: error: expected ‘;’ before ‘(’
token
include/wx/wxPython/wxPython_int.h:422: error: ISO C++ forbids
declaration of ‘wxArrayString’ with no type
include/wx/wxPython/wxPython_int.h:422: error: expected ‘,’ or ‘...’
before ‘&’ token
include/wx/wxPython/wxPython_int.h:423: error: ISO C++ forbids
declaration of ‘wxArrayInt’ with no type
include/wx/wxPython/wxPython_int.h:423: error: expected ‘,’ or ‘...’
before ‘&’ token
include/wx/wxPython/wxPython_int.h:438: error: ISO C++ forbids
declaration of ‘wxArrayDouble’ with no type
include/wx/wxPython/wxPython_int.h:438: error: expected ‘,’ or ‘...’
before ‘&’ token
include/wx/wxPython/wxPython_int.h:439: error: ISO C++ forbids
declaration of ‘wxPoint2D’ with no type
include/wx/wxPython/wxPython_int.h:439: error: expected ‘;’ before ‘*’
token
include/wx/wxPython/wxPython_int.h:440: error: ‘wxRect2D’ has not been
declared
include/wx/wxPython/wxPython_int.h:458: error: expected class-name
before ‘{’ token
include/wx/wxPython/wxPython_int.h:477: error: expected class-name
before ‘{’ token
include/wx/wxPython/wxPython_int.h:519: error: expected class-name
before ‘{’ token
include/wx/wxPython/wxPython_int.h:530: error: expected ‘;’ before ‘(’
token
include/wx/wxPython/wxPython_int.h:531: error: expected ‘;’ before ‘(’
token
include/wx/wxPython/wxPython_int.h:532: error: expected ‘;’ before ‘(’
token
include/wx/wxPython/wxPython_int.h:539: error: ‘wxImage’ has not been
declared
include/wx/wxPython/wxPython_int.h:539: error: ‘wxInputStream’ has not
been declared
include/wx/wxPython/wxPython_int.h:541: error: ‘wxImage’ has not been
declared
include/wx/wxPython/wxPython_int.h:541: error: ‘wxOutputStream’ has
not been declared
include/wx/wxPython/wxPython_int.h:543: error: ‘wxInputStream’ has not
been declared
include/wx/wxPython/wxPython_int.h:544: error: ‘wxInputStream’ has not
been declared
include/wx/wxPython/wxPython_int.h:626: error: expected class-name
before ‘{’ token
include/wx/wxPython/wxPython_int.h:627: error: ISO C++ forbids
declaration of ‘DECLARE_ABSTRACT_CLASS’ with no type
include/wx/wxPython/wxPython_int.h:629: error: expected ‘;’ before
‘public’
include/wx/wxPython/wxPython_int.h:654: error: ‘wxEvent’ has not been
declared
include/wx/wxPython/wxPython_int.h:657: error: ISO C++ forbids
declaration of ‘wxString’ with no type
include/wx/wxPython/wxPython_int.h:657: error: expected ‘,’ or ‘...’
before ‘&’ token
include/wx/wxPython/wxPython_int.h:658: error: ISO C++ forbids
declaration of ‘wxString’ with no type
include/wx/wxPython/wxPython_int.h:658: error: expected ‘,’ or ‘...’
before ‘&’ token
include/wx/wxPython/wxPython_int.h:666: error: ‘wxString’ does not
name a type
include/wx/wxPython/wxPython_int.h:672: error: ISO C++ forbids
declaration of ‘wxString’ with no type
include/wx/wxPython/wxPython_int.h:672: error: expected ‘,’ or ‘...’
before ‘&’ token
In file included from src/helpers.cpp:17:
include/wx/wxPython/pyistream.h:27: error: ISO C++ forbids declaration
of ‘wxInputStream’ with no type
include/wx/wxPython/pyistream.h:27: error: expected ‘;’ before ‘*’
token
include/wx/wxPython/pyistream.h:30: error: expected ‘)’ before ‘*’
token
include/wx/wxPython/pyistream.h:63: error: ‘wxSeekMode’ has not been
declared
include/wx/wxPython/pyistream.h: In member function ‘char
wxPyInputStream::Peek()’:
include/wx/wxPython/pyistream.h:56: error: ‘m_wxis’ was not declared
in this scope
include/wx/wxPython/pyistream.h: In member function ‘char
wxPyInputStream::GetC()’:
include/wx/wxPython/pyistream.h:57: error: ‘m_wxis’ was not declared
in this scope
include/wx/wxPython/pyistream.h: In member function ‘size_t
wxPyInputStream::LastRead()’:
include/wx/wxPython/pyistream.h:58: error: ‘m_wxis’ was not declared
in this scope
include/wx/wxPython/pyistream.h: In member function ‘bool
wxPyInputStream::CanRead()’:
include/wx/wxPython/pyistream.h:59: error: ‘m_wxis’ was not declared
in this scope
include/wx/wxPython/pyistream.h: In member function ‘bool
wxPyInputStream::Eof()’:
include/wx/wxPython/pyistream.h:60: error: ‘m_wxis’ was not declared
in this scope
include/wx/wxPython/pyistream.h: In member function ‘bool
wxPyInputStream::Ungetch(char)’:
include/wx/wxPython/pyistream.h:61: error: ‘m_wxis’ was not declared
in this scope
include/wx/wxPython/pyistream.h: In member function ‘long unsigned int
wxPyInputStream::SeekI(long unsigned int, int)’:
include/wx/wxPython/pyistream.h:64: error: ‘m_wxis’ was not declared
in this scope
include/wx/wxPython/pyistream.h: In member function ‘long unsigned int
wxPyInputStream::TellI()’:
include/wx/wxPython/pyistream.h:65: error: ‘m_wxis’ was not declared
in this scope
include/wx/wxPython/pyistream.h: At global scope:
include/wx/wxPython/pyistream.h:72: error: expected class-name before
‘{’ token
include/wx/wxPython/pyistream.h:75: error: ‘wxFileOffset’ does not
name a type
include/wx/wxPython/pyistream.h:89: error: ‘wxFileOffset’ does not
name a type
include/wx/wxPython/pyistream.h:90: error: ‘wxFileOffset’ does not
name a type
include/wx/wxPython/pyistream.h:105: error: ISO C++ forbids
declaration of ‘wxOutputStream’ with no type
include/wx/wxPython/pyistream.h:105: error: expected ‘;’ before ‘*’
token
include/wx/wxPython/pyistream.h:108: error: expected ‘)’ before ‘*’
token
include/wx/wxPython/pyistream.h:134: error: ‘wxSeekMode’ has not been
declared
include/wx/wxPython/pyistream.h:134: error: ‘wxFromStart’ was not
declared in this scope
include/wx/wxPython/pyistream.h: In member function ‘void
wxPyOutputStream::PutC(char)’:
include/wx/wxPython/pyistream.h:132: error: ‘m_wxos’ was not declared
in this scope
include/wx/wxPython/pyistream.h: In member function ‘size_t
wxPyOutputStream::LastWrite()’:
include/wx/wxPython/pyistream.h:133: error: ‘m_wxos’ was not declared
in this scope
include/wx/wxPython/pyistream.h: In member function ‘long unsigned int
wxPyOutputStream::SeekO(long unsigned int, int)’:
include/wx/wxPython/pyistream.h:135: error: ‘m_wxos’ was not declared
in this scope
include/wx/wxPython/pyistream.h: In member function ‘long unsigned int
wxPyOutputStream::TellO()’:
include/wx/wxPython/pyistream.h:136: error: ‘m_wxos’ was not declared
in this scope
include/wx/wxPython/pyistream.h: At global scope:
include/wx/wxPython/pyistream.h:143: error: expected class-name before
‘{’ token
include/wx/wxPython/pyistream.h:146: error: ‘wxFileOffset’ does not
name a type
include/wx/wxPython/pyistream.h:160: error: ‘wxFileOffset’ does not
name a type
include/wx/wxPython/pyistream.h:161: error: ‘wxFileOffset’ does not
name a type
In file included from src/helpers.cpp:19:
include/wx/wxPython/twoitem.h:19: error: ISO C++ forbids declaration
of ‘wxChar’ with no type
include/wx/wxPython/twoitem.h:19: error: expected ‘,’ or ‘...’ before
‘*’ token
include/wx/wxPython/twoitem.h: In function ‘bool
wxPyTwoIntItem_helper(PyObject*, T**, int)’:
include/wx/wxPython/twoitem.h:24: error: ‘name’ was not declared in
this scope
include/wx/wxPython/twoitem.h:45: error: ‘wxString’ was not declared
in this scope
include/wx/wxPython/twoitem.h:45: error: expected ‘;’ before ‘msg’
include/wx/wxPython/twoitem.h:46: error: ‘msg’ was not declared in
this scope
include/wx/wxPython/twoitem.h:46: error: there are no arguments to
‘wxT’ that depend on a template parameter, so a declaration of ‘wxT’
must be available
include/wx/wxPython/twoitem.h:46: note: (if you use ‘-fpermissive’, G+
+ will accept your code, but allowing the use of an undeclared name is
deprecated)
include/wx/wxPython/twoitem.h:46: error: ‘name’ was not declared in
this scope
src/helpers.cpp: At global scope:
src/helpers.cpp:182: error: ‘wxApp’ has not been declared
src/helpers.cpp:182: error: expected constructor, destructor, or type
conversion before ‘;’ token
src/helpers.cpp:185: error: definition of implicitly-declared
‘wxPyApp::wxPyApp()’
src/helpers.cpp: In destructor ‘wxPyApp::~wxPyApp()’:
src/helpers.cpp:195: error: ‘wxApp’ has not been declared
src/helpers.cpp: In member function ‘int wxPyApp::MainLoop()’:
src/helpers.cpp:208: error: ‘DeletePendingObjects’ was not declared in
this scope
src/helpers.cpp:209: error: ‘wxTopLevelWindows’ was not declared in
this scope
src/helpers.cpp:211: error: ‘m_exitOnFrameDelete’ was not declared in
this scope
src/helpers.cpp:211: error: ‘Later’ was not declared in this scope
src/helpers.cpp:212: error: ‘Yes’ was not declared in this scope
src/helpers.cpp:215: error: ‘wxApp’ has not been declared
src/helpers.cpp: In member function ‘virtual bool
wxPyApp::OnInitGui()’:
src/helpers.cpp:224: error: ‘wxApp’ has not been declared
src/helpers.cpp: In member function ‘virtual int wxPyApp::OnExit()’:
src/helpers.cpp:239: error: ‘wxApp’ has not been declared
src/helpers.cpp: In member function ‘virtual void
wxPyApp::ExitMainLoop()’:
src/helpers.cpp:266: error: ‘wxApp’ has not been declared
src/helpers.cpp: At global scope:
src/helpers.cpp:270: error: ‘int wxPyApp::FilterEvent’ is not a static
member of ‘class wxPyApp’
src/helpers.cpp:270: error: ‘wxEvent’ was not declared in this scope
src/helpers.cpp:270: error: ‘event’ was not declared in this scope
src/helpers.cpp:270: error: expected ‘,’ or ‘;’ before ‘{’ token
src/helpers.cpp:92: warning: ‘wxPyDefaultEncoding’ defined but not
used
src/helpers.cpp:94: warning: ‘wxPython_dict’ defined but not used
src/helpers.cpp:95: warning: ‘wxPyAssertionError’ defined but not used
src/helpers.cpp:96: warning: ‘wxPyNoAppError’ defined but not used
error: command 'gcc' failed with exit status 1

See the thread I started re 2.9 on Ubuntu - haven't got it totally working but your problem is due to "libgconf" missing, at least that made it go away for me on Ubuntu.

I think the only outstanding thing I have is that "libwx_gtk2*" get placed in "/usr/local/lib" as I didn't give it a "installdir" option during the build.

I guess I either have to have that folder in my path or .....? Not sure what the clean solution is.

Werner

Needed to run:

sudo ldconfig /usr/local/lib

now "import wx" works fine for me.

Don't know if this is the correct thing to do or if there is a cleaner solution.

On the next problem, for some reason Py 2.7 on Ubuntu 10.10 doesn't have zlib support.

Werner

···

On 10/04/2011 05:20 PM, werner wrote:

See the thread I started re 2.9 on Ubuntu - haven't got it totally working but your problem is due to "libgconf" missing, at least that made it go away for me on Ubuntu.

I think the only outstanding thing I have is that "libwx_gtk2*" get placed in "/usr/local/lib" as I didn't give it a "installdir" option during the build.

I guess I either have to have that folder in my path or .....? Not sure what the clean solution is.

Werner

@ Werner,

Maybe this will help with your zlib issue: http://stackoverflow.com/questions/4047212/installing-python-2-7-on-ubuntu-10-4

···

Mike Driscoll

Blog: http://blog.pythonlibrary.org

Mike,

@ Werner,

Maybe this will help with your zlib issue: zlib - Installing Python-2.7 on Ubuntu 10.4 - Stack Overflow

Thanks for that link.

Noted that Ubuntu 10.10 has 2.7 in the repo now, so got rid of my manually installed one and installed the official one.

Got that working and zlib is fine, now I just need to get wx to work again.

Now I get:
undefined symbol: PyUnicodeUCS2_FromEncodedObject

I am just doing a "clean" build again of wxPython 2.9 - guessing that the Unicode compile option of my "new" standard Python isn't the same then the manually installed was - that is what one gets if one doesn't really know what one is doing:-) .

Werner

···

On 10/04/2011 06:08 PM, Mike Driscoll wrote:

This is telling you that the wx-config it found in /usr/local/bin does not provide the build options required by wxPython. Is that the one that you built in the first part of the build instructions or did you use a different prefix? If so then you need to either make sure that that version of wx-config is found first on the PATH or explicitly tell wxPython's setup.py to use the new on by passing WX_CONFIG="/full/path/to/wx-config" on the command line.

BTW, it's usually sufficient to just copy/paste the dozen or so lines around the first error/warning, not the thousands of lines of the whole build.

···

On 10/4/11 7:36 AM, pploo wrote:

OS: scientific linux 6 (Red Hat 4.4.5-6); python 2.6.6; gcc 4.4.5;
following build_instructions (http://www.wxpython.org/BUILD-2.8.html);
I use the /opt/wx/2.8/bin/wx-config, the first two steps seem fine.
Problem occurs at step 3, "python setup.py build_ext --inplace --
debug",

Compilation results are as follows:

WARNING: WXWIN not set in environment. Assuming '..'
Found wx-config: /usr/local/bin/wx-config
     Using flags: --toolkit=gtk2 --unicode=yes --version=2.8

   Warning: No config found to match: /usr/local/bin/wx-config --
toolkit=gtk2 --unicode=yes --version=2.8 --cxxflags

--
Robin Dunn
Software Craftsman

Hi, Robin, thanks for the insightful explanation.

At very beginning, I downloaded wxpython, and directly typed "./
configure" without setting explicitly any prefix,
I guess that is the reason that "wx-config found in /usr/local/bin".

Then, I encountered some compilation problems (very similar to the
results I pasted above: file not found, etc.),
as result, I tried to set "/opt/wx/2.8/" and also set the PATH, etc.
to see if it is possible to solve the problem.
Besides, I changed the 'WX_CONFIG="/opt/wx/2.8/bin/wx-config..."' in
build_options.py (I guess here is the place to set new config)
Unfortunately, I did not succeed.

OK, tomorrow, I will ignore this "/opt/wx/2.8/" and try to use "/usr/
local/bin" to see if it is better.

···

On Oct 4, 8:27 pm, Robin Dunn <ro...@alldunn.com> wrote:

On 10/4/11 7:36 AM, pploo wrote:

> OS: scientific linux 6 (Red Hat 4.4.5-6); python 2.6.6; gcc 4.4.5;
> following build_instructions (http://www.wxpython.org/BUILD-2.8.html);
> I use the /opt/wx/2.8/bin/wx-config, the first two steps seem fine.
> Problem occurs at step 3, "python setup.py build_ext --inplace --
> debug",

> Compilation results are as follows:

> WARNING: WXWIN not set in environment. Assuming '..'
> Found wx-config: /usr/local/bin/wx-config
> Using flags: --toolkit=gtk2 --unicode=yes --version=2.8

> Warning: No config found to match: /usr/local/bin/wx-config --
> toolkit=gtk2 --unicode=yes --version=2.8 --cxxflags

This is telling you that the wx-config it found in /usr/local/bin does
not provide the build options required by wxPython. Is that the one
that you built in the first part of the build instructions or did you
use a different prefix? If so then you need to either make sure that
that version of wx-config is found first on the PATH or explicitly tell
wxPython's setup.py to use the new on by passing
WX_CONFIG="/full/path/to/wx-config" on the command line.

BTW, it's usually sufficient to just copy/paste the dozen or so lines
around the first error/warning, not the thousands of lines of the whole
build.

--
Robin Dunn
Software Craftsmanhttp://wxPython.org