linux gnome 环境编译wxpython的问题

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

linux gnome 环境编译wxpython的问题

opensuse, gnome, wxPython-src-,
1。 python的command line界面,help(wx)出错:
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
>>> help(wx)
  File "/usr/local/lib64/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/", line 242, in __repr__
    def __repr__(self):                 return ' wx.Colour' + str(self.Get(True))
  File "/usr/local/lib64/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/", line 230, in Get
    return _gdi_.Colour_Get(*args, **kwargs)
TypeError: in method 'Colour_Get', expected argument 1 of type 'wxColour *'

2。在demo.py运行后打开界面里面的Help --> Open Widget Inspector 无法打开,界面出错:
  File "/usr/local/lib64/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/", line 10, in <module>
    import _stc
ImportError: No module named _stc

widget 编译参数如下(和官网比加了很多ms无意义的enable):
./configure --prefix=/opt/wx/  --with-gtk=2 --enable-monolithic --with-gnomeprint --with-opengl --enable-debug --enable-debug_gdb --enable-geometry --enable-graphics_ctx --enable-sound --with-sdl --enable-mediactrl --enable-display --enable-optimize --enable-unicode --enable-debug_flag --with-gnomevfs --enable-listctrl --enable-debug_info --enable-gui --enable-shared --enable-debugreport --enable-timer --enable-threads  --enable-docview --enable-help --enable-button --enable-scrollbar --with-opengl
        make $* \
            && make -C contrib/src/gizmos $* \
            && make -C contrib/src/stc $*
 make install

python build
 python2.5 build_ext --inplace --debug(又按官网介绍编译)
python install

Post: send [hidden email]
Subscribe: send subscribe to [hidden email]
Unsubscribe: send unsubscribe to  [hidden email]
Detail Info: