wxPython with wxGTK3/Broadway (HTML5-based) backend

I succeeded in compiling wxPython but import wx fails:
   File "/home/anna/dev/wx/wxPython/demo/Main.py", line 59, in <module>
     import wx
   File "/home/anna/dev/wx/wxPython/wx/__init__.py", line 45, in <module>
     from wx._core import *
   File "/home/anna/dev/wx/wxPython/wx/_core.py", line 4, in <module>
     import _core_
ImportError:
/home/anna/dev/wx/wxPython/wxpy-bld/lib/libwx_gtk3u_core-2.9.so.5:
undefined symbol: _Z15wxCharCodeWXToXi

$ echo _Z15wxCharCodeWXToXi|c++filt
wxCharCodeWXToX(int)

wxCharCodeWXToX(int) is implemented in wxWidgets/src/unix/utilsx11.cpp only in wxGTK/X11 port. It seem like you have built wxGTK/Broadway but your wxPython object files expects wxGTK/X11 or it is wxUIActionSimulator object file left from wxGTK/X11 in wxGTK/Broadway build (class wxUIActionSimulator is not implemented in wxGTK/Broadway). You need clean up both wxPython and wxWidgets repositories to be sure (git clean -df) and remove build directories and ensure that untracked files also removed (git status -u) and rebuild everything.

  So I tried to build Phoenix from source, but it fails:

/home/anna/dev/wx/Phoenix/bin/sip-4.14.4-linux -w -o -T -g -I
/home/anna/dev/wx/Phoenix/src -I /home/anna/dev/wx/Phoenix/sip/gen -c
/tmp/tmpJxXQkz -b sip/cpp/_core.sbf -X pycode_core:wx/core.py
sip/gen/_core.sip
sip: sip/gen/wxdatetime.sip:276: The struct/class has already been defined
Command '/home/anna/dev/wx/Phoenix/bin/sip-4.14.4-linux -w -o -T -g -I
/home/anna/dev/wx/Phoenix/src -I /home/anna/dev/wx/Phoenix/sip/gen -c
/tmp/tmpJxXQkz -b sip/cpp/_core.sbf -X pycode_core:wx/core.py
sip/gen/_core.sip' failed with exit code 1.
Finished command: sip (0.53s)

It looks like there is problem with generation sip files that is not related with wxWidgets build. Try to clean up repository and build sip without building wxPython:
     python build.py dox etg --nodoc sip
And what code is placed in sip/gen/wxdatetime.sip:276 line? What "The struct/class has already been defined"?

Regards,
Kolya.

···

On 07/13/2013 06:22 PM, Anna Petr�ov� wrote: