Problems building wxPython with wxWidgets 2.9 svn trunk

Hi,
I have some trouble building wxPython against the latest wxWidgets (wxGTK 2.9) svn trunk because plenty of interfaces have changed. Which is the latest wxWidgets svn revision that can be used to build the latest wxPython svn trunk? Are there any plans to update wxPython in the near future?
Thanks for your help,
Christoph

Christoph Schmidt-Hieber wrote:

Hi,
I have some trouble building wxPython against the latest wxWidgets (wxGTK 2.9) svn trunk because plenty of interfaces have changed. Which is the latest wxWidgets svn revision that can be used to build the latest wxPython svn trunk? Are there any plans to update wxPython in the near future?

I've just updated the wxPython trunk to be in sync with the wx trunk.

···

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

Hi,

Robin Dunn wrote:

I've just updated the wxPython trunk to be in sync with the wx trunk.

Thanks. I just checked out r52838 and attempted to build against wxWidgets with

$ python2.5 setup.py build_ext --inplace --debug

My wx configuration is gtk2-unicode-debug-2.9. The build fails with:

src/helpers.cpp:33:28: error: wx/gtk/win_gtk.h: No such file or directory

Apparently, this file is still in the source (include/wx/gtk/private/win_gtk.h), but it doesn't get installed anymore. I corrected the path in helpers.cpp, then, the build would fail because wxGCDC doesn't adhere to the new pImpl interface of the wxDC-derived classes. I excluded wxGCDC, re-swigged, and was able to build and install, but the sample applications wouldn't run (sorry, I forgot to keep a copy of the error messages; it said something about "wx.ID_ANY not found in module" or similar). Am I missing some pre-build step?

Christoph

Christoph Schmidt-Hieber wrote:

Hi,

Robin Dunn wrote:

I've just updated the wxPython trunk to be in sync with the wx trunk.

Thanks. I just checked out r52838 and attempted to build against wxWidgets with

$ python2.5 setup.py build_ext --inplace --debug

My wx configuration is gtk2-unicode-debug-2.9. The build fails with:

src/helpers.cpp:33:28: error: wx/gtk/win_gtk.h: No such file or directory

Apparently, this file is still in the source (include/wx/gtk/private/win_gtk.h), but it doesn't get installed anymore. I corrected the path in helpers.cpp, then, the build would fail because wxGCDC doesn't adhere to the new pImpl interface of the wxDC-derived classes.

Did you also update your wxWidgets tree from SVN, and reconfigure, build and install it? If so is the wx-config found first on the PATH the one for that build?

I excluded wxGCDC, re-swigged, and was able to build and install, but the sample applications wouldn't run (sorry, I forgot to keep a copy of the error messages; it said something about "wx.ID_ANY not found in module" or similar).

When you reswigged did you use my patched versioon of 1.3.29, or a stock release of swig?

···

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

Hi,

Robin Dunn wrote:

Did you also update your wxWidgets tree from SVN, and reconfigure, build and install it? If so is the wx-config found first on the PATH the one for that build?

Yes.

When you reswigged did you use my patched versioon of 1.3.29, or a stock release of swig?

No, sorry. I thought the patch would have made it into newer versions of swig. I applied your patch, everything works fine now. I still had to make some changes to the code though, not sure whether that's due to my configuration. I've attached the patch (will require re-swigging).

Thanks for your help,
Christoph

gtk2.patch (2.07 KB)

Christoph Schmidt-Hieber wrote:

Hi,

Robin Dunn wrote:

Did you also update your wxWidgets tree from SVN, and reconfigure, build and install it? If so is the wx-config found first on the PATH the one for that build?

Yes.

When you reswigged did you use my patched versioon of 1.3.29, or a stock release of swig?

No, sorry. I thought the patch would have made it into newer versions of swig. I applied your patch, everything works fine now. I still had to make some changes to the code though, not sure whether that's due to my configuration. I've attached the patch (will require re-swigging).

Please update from SVN and try again.

···

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

Hi,

Robin Dunn wrote:

Christoph Schmidt-Hieber wrote:

No, sorry. I thought the patch would have made it into newer versions of swig. I applied your patch, everything works fine now. I still had to make some changes to the code though, not sure whether that's due to my configuration. I've attached the patch (will require re-swigging).

Please update from SVN and try again.

Checked out r52881 of both wxWidgets and wxPython, worked without any changes to the code. Thank you very much.
Note that the latest wxGtkCalendarCtrl updates in wxWidgets (r52891) will break the wxPython build chain again (which is no issue for me, I'll just stay with 52881 for the time being).

Christoph