Build wxPython 2.9.4.0 on Ubuntu 12.10

On 64-bit Ubuntu 12.10, freshly installed, when I try to build wxPython using

~/Downloads/wxPython-src-2.9.4.0/wxPython$ sudo python2.7 build-wxpython.py --build_dir=…/bld --install

I get this fatal error:

src/helpers.cpp:32:36: fatal error: wx/gtk/private/win_gtk.h: No such file or directory

I do find at the top level the directory include/wx/gtk/private/, and it does contain the file win_gtk.h.

Hi.

wx/gtk/private/win_gtk.h: No such file or directory

Have a look at Robin's comments at the middle of this page:

https://groups.google.com/forum/?fromgroups=#!topic/wxpython-users/e27JioMs1fs

There is a known minor problem.

HTH,

Stavros

Thanks much. It now builds.

It simply adds wx/gtk/dc.h to the list of files that should be installed, and removes an unneeded include of a private wx header from the wxPython code. Perhaps you had a previous install of wx that had that header installed already.

···

On 1/8/13 4:39 PM, Steve Spicklemire wrote:

I tried to post this to a new topic.. but it apparently didn't go
through. Now I see that it would be better to post here anyway. :wink:

I notice that if I build on debian-amd64 of Ubuntu 12.04 (i386) I don't
need this patch, but on Ubuntu 12.10 (amd64) I do.

Does that seem strange to anyone else? I don't see much in the patch
that seems platform specific.

--
Robin Dunn
Software Craftsman