problems building wxpython-2.8.8.0

Hello!

I am the maintainer of the wxPython build-script for Slackware, which is
available here: http://slackbuilds.org/repository/12.1/libraries/wxPython/

I just saw the update to 2.8.8.0 and tried updating the script for it, but it
wouldn't build. Here's the error I get:

In file included from src/gtk/_gdi_wrap.cpp:2737:
include/wx/wxPython/wxPython.h: In function ‘bool wxPyCoreAPI_IMPORT()’:
include/wx/wxPython/wxPython.h:39: warning: deprecated conversion from string
constant to ‘char*’
include/wx/wxPython/wxPython.h:39: warning: deprecated conversion from string
constant to ‘char*’
src/gtk/_gdi_wrap.cpp: In function ‘PyObject*
_wrap_new_GnomePrintDC(PyObject*, PyObject*, PyObject*)’:
src/gtk/_gdi_wrap.cpp:25351: error: ‘wxGnomePrintDC’ was not declared in this
scope
src/gtk/_gdi_wrap.cpp:25351: error: ‘result’ was not declared in this scope
src/gtk/_gdi_wrap.cpp:25370: error: expected primary-expression before ‘)’
token
src/gtk/_gdi_wrap.cpp:25370: error: expected `;' before ‘new’
src/gtk/_gdi_wrap.cpp: In function ‘PyObject*
_wrap_GnomePrintDC_SetResolution(PyObject*, PyObject*, PyObject*)’:
src/gtk/_gdi_wrap.cpp:25399: error: ‘wxGnomePrintDC’ has not been declared
src/gtk/_gdi_wrap.cpp: In function ‘PyObject*
_wrap_GnomePrintDC_GetResolution(PyObject*, PyObject*)’:
src/gtk/_gdi_wrap.cpp:25417: error: ‘wxGnomePrintDC’ was not declared in this
scope
src/gtk/_gdi_wrap.cpp:25417: error: expected `;' before ‘::’ token
src/gtk/_gdi_wrap.cpp: In function ‘PyObject* _wrap_PenList_AddPen(PyObject*,
PyObject*, PyObject*)’:
src/gtk/_gdi_wrap.cpp:32373: warning: ‘AddPen’ is deprecated (declared
at /tmp/SBo/wxPython-src-2.8.8.0/include/wx/gdicmn.h:516)
src/gtk/_gdi_wrap.cpp: In function ‘PyObject*
_wrap_PenList_RemovePen(PyObject*, PyObject*, PyObject*)’:
src/gtk/_gdi_wrap.cpp:32411: warning: ‘RemovePen’ is deprecated (declared
at /tmp/SBo/wxPython-src-2.8.8.0/include/wx/gdicmn.h:517)
src/gtk/_gdi_wrap.cpp: In function ‘PyObject*
_wrap_BrushList_AddBrush(PyObject*, PyObject*, PyObject*)’:
src/gtk/_gdi_wrap.cpp:32504: warning: ‘AddBrush’ is deprecated (declared
at /tmp/SBo/wxPython-src-2.8.8.0/include/wx/gdicmn.h:526)
src/gtk/_gdi_wrap.cpp: In function ‘PyObject*
_wrap_BrushList_RemoveBrush(PyObject*, PyObject*, PyObject*)’:
src/gtk/_gdi_wrap.cpp:32542: warning: ‘RemoveBrush’ is deprecated (declared
at /tmp/SBo/wxPython-src-2.8.8.0/include/wx/gdicmn.h:527)
src/gtk/_gdi_wrap.cpp: In function ‘PyObject*
_wrap_FontList_AddFont(PyObject*, PyObject*, PyObject*)’:
src/gtk/_gdi_wrap.cpp:32694: warning: ‘AddFont’ is deprecated (declared
at /tmp/SBo/wxPython-src-2.8.8.0/include/wx/gdicmn.h:539)
src/gtk/_gdi_wrap.cpp: In function ‘PyObject*
_wrap_FontList_RemoveFont(PyObject*, PyObject*, PyObject*)’:
src/gtk/_gdi_wrap.cpp:32732: warning: ‘RemoveFont’ is deprecated (declared
at /tmp/SBo/wxPython-src-2.8.8.0/include/wx/gdicmn.h:540)
src/gtk/_gdi_wrap.cpp: In function ‘void* _p_wxGnomePrintDCTo_p_wxDC(void*)’:
src/gtk/_gdi_wrap.cpp:39961: error: ‘wxGnomePrintDC’ was not declared in this
scope
src/gtk/_gdi_wrap.cpp:39961: error: expected primary-expression before ‘void’
src/gtk/_gdi_wrap.cpp:39961: error: expected `)' before ‘void’
src/gtk/_gdi_wrap.cpp: In function ‘void*
_p_wxGnomePrintDCTo_p_wxObject(void*)’:
src/gtk/_gdi_wrap.cpp:40165: error: ‘wxGnomePrintDC’ was not declared in this
scope
src/gtk/_gdi_wrap.cpp:40165: error: expected primary-expression before ‘void’
src/gtk/_gdi_wrap.cpp:40165: error: expected `)' before ‘void’
error: command 'gcc' failed with exit status 1

I took a closer look and thought this might be somehow related to
libgnomeprint. I checked whether wxPython configured with "--with-gnomeprint"
and it did. So I tried "--without-gnomeprint", as I didn't have libgnomeprint
installed. However, it wouldn't work either; same error.
Next thought was, maybe libgnomeprint is now a hard dependency, so I installed
libgnomeprint (2.18.0) and tried again. But I would still get the same error.

Can anyone help me please?

Grs,
Heinz

Heinz Wiesinger wrote:

I took a closer look and thought this might be somehow related to libgnomeprint. I checked whether wxPython configured with "--with-gnomeprint" and it did. So I tried "--without-gnomeprint", as I didn't have libgnomeprint installed. However, it wouldn't work either; same error.
Next thought was, maybe libgnomeprint is now a hard dependency, so I installed libgnomeprint (2.18.0) and tried again. But I would still get the same error.

Try installing the dev files for libgnomeprintui too. The wxPython sources will be fixed shortly to not need it, but for now it is expecting that the wxGnomePrintDC class is available, and it is automatically disabled if not all of the support libs/devs are installed.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Hello,

Hello!

I am the maintainer of the wxPython build-script for Slackware, which is
available here: SlackBuilds.org - wxPython

Small request for the Slackware build. In the past I have noticed that it doesn't build wxWidgets with '--enable-graphics_ctx' which causes the GraphicsContext classes to be not available and raise a NotImplementedError when they are called from wxPython. In order to improve compatibility with the official release could you please add '--enable-graphics_ctx' to the configure step for the wxWidgets build scripts.

Thanks,

Cody Precord

···

On Jun 26, 2008, at 12:56 PM, Heinz Wiesinger wrote:

Thanks. That did work.
Will there be a 2.8.8.1 release including the fix?

Grs,
Heinz

···

Am Donnerstag, 26. Juni 2008 21:55:27 schrieb Robin Dunn:

Heinz Wiesinger wrote:
> I took a closer look and thought this might be somehow related to
> libgnomeprint. I checked whether wxPython configured with
> "--with-gnomeprint" and it did. So I tried "--without-gnomeprint", as I
> didn't have libgnomeprint installed. However, it wouldn't work either;
> same error.
> Next thought was, maybe libgnomeprint is now a hard dependency, so I
> installed libgnomeprint (2.18.0) and tried again. But I would still get
> the same error.

Try installing the dev files for libgnomeprintui too. The wxPython
sources will be fixed shortly to not need it, but for now it is
expecting that the wxGnomePrintDC class is available, and it is
automatically disabled if not all of the support libs/devs are installed.

Cody Precord wrote:

Hello,

> Hello!
>
> I am the maintainer of the wxPython build-script for Slackware,
> which is
> available here:
> SlackBuilds.org - wxPython

Small request for the Slackware build. In the past I have noticed that
it doesn't build wxWidgets with '--enable-graphics_ctx' which causes
the GraphicsContext classes to be not available and raise a
NotImplementedError when they are called from wxPython. In order to
improve compatibility with the official release could you please add
'--enable-graphics_ctx' to the configure step for the wxWidgets build
scripts.

Actually it's already in my local script for 2.8.8.0. I must have overlooked
it in the Documentation when searching for the right configure-options last
time.

Grs,
Heinz

···

On Jun 26, 2008, at 12:56 PM, Heinz Wiesinger wrote:

Heinz Wiesinger wrote:

···

Am Donnerstag, 26. Juni 2008 21:55:27 schrieb Robin Dunn:

Heinz Wiesinger wrote:

I took a closer look and thought this might be somehow related to
libgnomeprint. I checked whether wxPython configured with
"--with-gnomeprint" and it did. So I tried "--without-gnomeprint", as I
didn't have libgnomeprint installed. However, it wouldn't work either;
same error.
Next thought was, maybe libgnomeprint is now a hard dependency, so I
installed libgnomeprint (2.18.0) and tried again. But I would still get
the same error.

Try installing the dev files for libgnomeprintui too. The wxPython
sources will be fixed shortly to not need it, but for now it is
expecting that the wxGnomePrintDC class is available, and it is
automatically disabled if not all of the support libs/devs are installed.

Thanks. That did work.
Will there be a 2.8.8.1 release including the fix?

Yes.

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Any progress on this?

···

On Fri, 27 Jun 2008 09:05:46 -0700 Robin Dunn <robin@alldunn.com> wrote:

Heinz Wiesinger wrote:
> Am Donnerstag, 26. Juni 2008 21:55:27 schrieb Robin Dunn:
>> Heinz Wiesinger wrote:
>>> I took a closer look and thought this might be somehow related to
>>> libgnomeprint. I checked whether wxPython configured with
>>> "--with-gnomeprint" and it did. So I tried
>>> "--without-gnomeprint", as I didn't have libgnomeprint installed.
>>> However, it wouldn't work either; same error.
>>> Next thought was, maybe libgnomeprint is now a hard dependency,
>>> so I installed libgnomeprint (2.18.0) and tried again. But I
>>> would still get the same error.
>> Try installing the dev files for libgnomeprintui too. The wxPython
>> sources will be fixed shortly to not need it, but for now it is
>> expecting that the wxGnomePrintDC class is available, and it is
>> automatically disabled if not all of the support libs/devs are
>> installed.
>
> Thanks. That did work.
> Will there be a 2.8.8.1 release including the fix?

Yes.

--
gcc-porting, by design, by neglect
treecleaner, for a fact or just for effect
wxwidgets @ gentoo EFFD 380E 047A 4B51 D2BD C64F 8AA8 8346 F9A4 0662

Ryan Hill wrote:

···

On Fri, 27 Jun 2008 09:05:46 -0700 > Robin Dunn <robin@alldunn.com> wrote:

Heinz Wiesinger wrote:

Am Donnerstag, 26. Juni 2008 21:55:27 schrieb Robin Dunn:

Heinz Wiesinger wrote:

I took a closer look and thought this might be somehow related to
libgnomeprint. I checked whether wxPython configured with
"--with-gnomeprint" and it did. So I tried
"--without-gnomeprint", as I didn't have libgnomeprint installed.
However, it wouldn't work either; same error.
Next thought was, maybe libgnomeprint is now a hard dependency,
so I installed libgnomeprint (2.18.0) and tried again. But I
would still get the same error.

Try installing the dev files for libgnomeprintui too. The wxPython
sources will be fixed shortly to not need it, but for now it is
expecting that the wxGnomePrintDC class is available, and it is
automatically disabled if not all of the support libs/devs are
installed.

Thanks. That did work.
Will there be a 2.8.8.1 release including the fix?

Yes.

Any progress on this?

It was going to be last weekend, but I didn't get a couple things finished that I wanted to do. On Monday my DSL died and it took until today to get it repaired. Now I need to figure out where I left off on the wxPython work and see what still needs done...

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!