繁体   English   中英

使用python 2.7在centos机器上安装wxPython

[英]Installing wxPython on centos machine using python 2.7

我正在使用python 2.7在centos机器上安装WxPython 3.0。

即使使用disable-mediactrl,安装也会搜索GSTreamer并给出错误

configure: error: GStreamer not available

尽管GSTreamer可以在机器上使用。

以下是两个此类构建的详细信息:

我的想法是关闭mediactrl,所以我使用以下选项

python build-wxpython.py --extra_setup=disable-mediactrl  --build_dir=../bld

要么

python build-wxpython.py --extra_setup="--disable-mediactrl  --build_dir=../bld

但是,它仍会搜索GSTreamer并输出下面列出的错误消息。 我重新安装了GSTreamer 0.10并进入\\usr\\lib\\GSTreamer 0.10 ,但是,我收到了相同的错误消息

错误信息 :

checking what is the type of the third argument of getsockname... socklen_t checking what is the type of the fifth argument of getsockopt... socklen_t checking for linux/joystick.h... yes checking for python... /home/aptRoot/tools/python/64/Python-2.7/bin/python checking for WEBKIT... configure: WARNING: webkitgtk not found. configure: WARNING: WebKit not available, disabling wxWebView checking for CAIRO... yes checking for cairo_push_group... yes checking for GST... configure: WARNING: GStreamer 0.10 not available, falling back to 0.8 checking for GST... configure: WARNING: GStreamer 0.8/0.10 not available. configure: error: GStreamer not available Error running configure ERROR: failed building wxWidgets Traceback (most recent call last):   File "build-wxpython.py", line 378, in <module>
    wxbuild.main(wxscript, build_options)   File "/home/hemadris/iAPT/install/wxPython-src-3.0.0.0/build/tools/build-wxwidgets.py", line 364, in main
    "Error running configure")   File "/home/hemadris/iAPT/install/wxPython-src-3.0.0.0/build/tools/build-wxwidgets.py", line 80, in exitIfError
    raise builder.BuildError(msg) BuildError

我发现做yum install gstreamer-plugins-base-devel给它带来了它所需的依赖。 转到wx PyPi页面以查看依赖项列表。

即使我在centos 6.4上尝试过installin wxPython 3.0.0.0版本,但也遇到了同样的错误

试试这个命令

rpm -qa | grep gstreamer

..检查您的操作系统中是否有gstreamer开发包。

如果没有,则运行configure,make,make install命令

如果我们遵循构建方法,那么_html.cpp中也会出现一些错误

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM