Fedora27安装wxPython2.8.12.1时遇到的问题及解决

来源:互联网 发布:java new string 参数 编辑:程序博客网 时间:2024/05/28 16:16

1.下载wxWidgets:https://sourceforge.net/projects/wxpython/files/wxPython/2.8.12.1/

wxwidgets2.8_2.8.12.1.orig.tar.gz

wxPython2.8-2.8.12.1-1.src.rpm

创建安装目录:

mkdir -p /usr/local/wx/2.8

2.解压之后,进入wxwidgets目录

 ./configure --prefix=/usr/local/wx/2.8 --with-gtk --enable-gtk2 --enable-unicode 

可能会出现的问题:

*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
configure: error:
The development files for GTK+ were not found. For GTK+ 2, please
ensure that pkg-config is in the path and that
gtk+-2.0.pc
is
installed
. For GTK+ 1.2 please check that gtk-config is in the path,
and that the version is 1.2.3 or above. Also check that the
libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
--libs' are in the LD_LIBRARY_PATH or equivalent.

尝试的操作:

yum -y install gtk2-devel binutils-devel

可能出现的问题:

configure: error: OpenGL libraries not available
尝试的操作:

yum install mesa-libGL-devel

yum install mesa-libGLU-devel

3.编译:

make

出现的问题:

make: *** [Makefile:11973:.pch/wxprec_basedll/wx/wxprec.h.gch] 错误 127




原创粉丝点击