Skip to content

--use_syswx stopped working in 4.1.1 because it targets an unreleased wxWidgets version #1909

@stefantalpalaru

Description

@stefantalpalaru

Operating system: Linux
wxPython version & source: 4.1.1, self-built
Python version & source: 2.7.18, distro

Description of the problem:

Build fails with a system wxWidgets-3.1.4, due to API changes in the unreleased 3.1.5 targeted by this released 4.1.1.

../../../../sip/cpp/sip_corewxTextEntryDialog.cpp:125:10: error: ‘void sipwxTextEntryDialog::EnableVisibleFocus(bool)’ marked ‘override’, but does not override
  125 |     void EnableVisibleFocus(bool) SIP_OVERRIDE;
      |          ^~~~~~~~~~~~~~~~~~
../../../../sip/cpp/sip_corewxTextEntryDialog.cpp: In member function ‘void sipwxTextEntryDialog::EnableVisibleFocus(bool)’:
../../../../sip/cpp/sip_corewxTextEntryDialog.cpp:681:31: error: ‘EnableVisibleFocus’ is not a member of ‘wxTextEntryDialog’
  681 |          ::wxTextEntryDialog::EnableVisibleFocus(enabled);
      |                               ^~~~~~~~~~~~~~~~~~
../../../../sip/cpp/sip_corewxTextEntryDialog.cpp: In function ‘PyObject* meth_wxTextEntryDialog_EnableVisibleFocus(PyObject*, PyObject*, PyObject*)’:
../../../../sip/cpp/sip_corewxTextEntryDialog.cpp:1927:60: error: ‘class wxTextEntryDialog’ has no member named ‘EnableVisibleFocus’
 1927 |             (sipSelfWasArg ? sipCpp-> ::wxTextEntryDialog::EnableVisibleFocus(enabled) : sipCpp->EnableVisibleFocus(enabled));
      |                                                            ^~~~~~~~~~~~~~~~~~
../../../../sip/cpp/sip_corewxTextEntryDialog.cpp:1927:98: error: ‘class wxTextEntryDialog’ has no member named ‘EnableVisibleFocus’
 1927 |             (sipSelfWasArg ? sipCpp-> ::wxTextEntryDialog::EnableVisibleFocus(enabled) : sipCpp->EnableVisibleFocus(enabled));
      |                                                                                                  ^~~~~~~~~~~~~~~~~~

https://docs.wxwidgets.org/trunk/classwx_window.html#ad0798adc95b19f956e7ac1e7fda6333d - also says "This method is only implemented on Mac." but it tries to compile it on Linux.

Full build log, after running DOXYGEN=/usr/bin/doxygen python build.py dox etg --nodoc and python build.py build_py --use_syswx --no_magic --jobs=1 --verbose --release: https://gist.github.com/stefantalpalaru/ad08cde162580e2aa09a2492f29cf916

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions