linux gnome 环境编译wxpython的问题

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

linux gnome 环境编译wxpython的问题

MaLi-3
opensuse, gnome, wxPython-src-2.8.7.1,
全程编译无错,demo代码运行暂未发现无法运行问题,但是出现下面2个出错:
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/_gdi.py", 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/_gdi.py", 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/stc.py", 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

wxpython编译如下:
python setup.py build
 python2.5 setup.py build_ext --inplace --debug(又按官网介绍编译)
python setup.py install




_______________________________________________
python-chinese
Post: send [hidden email]
Subscribe: send subscribe to [hidden email]
Unsubscribe: send unsubscribe to  [hidden email]
Detail Info: http://python.cn/mailman/listinfo/python-chinese