Update: I added –disable-stl. No compile or
install errors.
Ran setup.py and got much further before it crashed:
The error I get is:
src/gtk/_misc_wrap.cpp: In function PyObject* _wrap_Sound_Play(PyObject*, PyObject*, PyObject*)':src/gtk/_misc_wrap.cpp:17377: error:
wxSOUND_ASYNC’ undeclared
(first use this function)
src/gtk/_misc_wrap.cpp:17377: error: (Each undeclared
identifier is reported only once for each function it appears in.)
src/gtk/_misc_wrap.cpp: In function `PyObject*
_wrap_Sound_PlaySound(PyObject*, PyObject*, PyObject*)’:
src/gtk/_misc_wrap.cpp:17421: error: `wxSOUND_ASYNC’
undeclared (first use this function)
src/gtk/_misc_wrap.cpp: In function `PyObject*
_wrap_DateTime_SetToTheWeek(PyObject*, PyObject*, PyObject*)’:
src/gtk/_misc_wrap.cpp:25296: warning: `SetToTheWeek’ is
deprecated (declared at /opt/wx/2.8/include/wx-2.8/wx/datetime.h:724)
src/gtk/_misc_wrap.cpp: In function `PyObject*
_wrap_DateTime_GetWeek(PyObject*, PyObject*, PyObject*)’:
src/gtk/_misc_wrap.cpp:25359: warning: `GetWeek’ is
deprecated (declared at /opt/wx/2.8/include/wx-2.8/wx/datetime.h:727)
src/gtk/misc_wrap.cpp: In function `void init_misc()’:
src/gtk/_misc_wrap.cpp:42144: error: `wxSOUND_SYNC’
undeclared (first use this function)
src/gtk/_misc_wrap.cpp:42145: error: `wxSOUND_ASYNC’
undeclared (first use this function)
src/gtk/_misc_wrap.cpp:42146: error: `wxSOUND_LOOP’
undeclared (first use this function)
error: command ‘gcc’ failed with exit status 1
I make the wxGTK build with:
…/configure \
–prefix=/opt/wx/2.8 \
–with-opengl \
–disable-stl \
–enable-unicode \
–enable-optimise \
–enable-debug_flag \
–enable-dataviewctrl \
–enable-rpath=/opt/wx/2.8/lib \
–disable-sound \
Why is it trying to compile wxSOUND?
Any ideas on which switch I need to change?
Thanks
karl
Subject:
Re: [wxPython-users] wxPython build v2.8.3.0 on redhad REL3
21:00:20 -0700
···
From: Robin Dunn
Date: Thu, 03 May 2007
Karl Kobata wrote:
> I need help !!!
>
> I am able to build the wxWidgets just fine on the redhat REL3
> workstations and install them as described in the BUILD. However when I
> execute the “python setup.py build_ext –inplace –debug”
>
>
>
> I get the following error when compiling helper.cpp:
>
> In file included from src/helpers.cpp:16:
>
> include/wx/wxPython/wxPython_int.h:154: error: `wxListBase' was not
> declared in this scope
Did you use --enable-stl when you configured wxGTK? If so, don't. If
not then try --disable-stl.
--
Robin Dunn
Software Craftsman
[http://wxPython.org](http://wxPython.org) Java give you jitters? Relax with wxPython!