编译新版本spice-gtk
来源:互联网 发布:.net软件开发工程师 编辑:程序博客网 时间:2024/05/17 17:41
在CentOS 7环境下编译新版本spice-gtk,但是碰到几个问题:
spice-protocol协议版本要求。
在spice-gtk中,运行./autogen,提示spice-protocol版本不匹配。从git上clone当前spice-protocol,autogen,configure,make,make install。还是同样的错误提示出来。
经过比较发现,CentOS通过yum install的spice-protocol安装的位置/usr/include下,其中pkg-config的pc文件路径在/usr/share/pkgconfig/spice-protocol.pc。
但是git下代码安装的路径在/usr/local下。
pkg-config首先判断到/usr/share下的pc文件,那/usr/local/share下的pc文件就不起作用了。
那重新编译git下的内容,./configure –prefix=/opt/local,安装到指定路径下。
尝试:
export SPICE_PROTOCOL_CFLAGS=/opt/local/include/spice-1
export SPICE_PROTOCOL_LIBS=
不起作用。
最后:
export PKG_CONFIG_PATH=/opt/local/share/pkgconfig
顺利通过这个问题。
安装spice-gtk需要的包
spice-gtk的README要求安装很多包:
. or install:gtk3-devel spice-protocol intltoolopenssl-devel pulseaudio-libs-devel pixman-develgobject-introspection-devel libjpeg-turbo-devel zlib-develcyrus-sasl-devel gtk-doc. The GStreamer backend needs:gstreamer1-devel gstreamer1-plugins-base-devel gstreamer1-plugins-good gstreamer1-plugins-bad-free. If you build from git, you'll also need:libtool automake vala vala-tools perl-Text-CSV
大部分直接安装都没有问题,除了perl-Text-CSV。
通过yum install perl-Text-CSV是找不到的,只有一个perl-Text-CSV-XS的包。但是在spice-gtk的autogen的时候,还是会找不到perl-Text-CSV。
$ perl -MCPAN -e shellcpan> install Text::CSV_XS
即可解决该包的缺失。
然后,autogen提示epoxy
包缺失,继续yum install libepoxy-devel
和yum install libepoxy
。
后提示configure: WARNING: The avdec_h264 GStreamer element(s) are missing. You should be able to find them in the gstreamer-libav 1.0 package.
yum也找不到相关的库,目前无法继续编译
- 编译新版本spice-gtk
- fedora16编译spice-gtk
- 编译windows下的spice-gtk
- Ubuntu16.04下编译spice-gtk
- Centos7 SPICE 源码编译安装(2)----- 编译spice-gtk-0.31.tar.bz2
- spice-gtk error
- spice-gtk安装
- 编译spice-client
- Spice 客户端GTK版本,安装依赖环境
- 编译GTK
- 安装spice-gtk-0.9 on ubuntu 10.04 (1)
- 新版本ffmpeg编译
- spice
- Ubuntu 12.04 Spice源码编译安装方法
- 在centos7下spice代码编译
- 编译安装gtk
- DirectFB+GTK交叉编译
- 交叉编译GTK+----Makefile
- IPV6 Socket编程
- 深入研究java.lang.ThreadLocal类
- wrk 压力测试
- HOJ cake
- linux系统下的vim编辑器的用法
- 编译新版本spice-gtk
- 226. Invert Binary Tree | 翻转二叉树
- OpenCV on Mac OSX: A step-by-step guide
- dlnd-your-first-neural-network中反向传播的笔记
- oracle简单命令
- 62. Unique Paths -Medium
- c#虚拟路径
- 5.CSS图像绘制之:条纹背景
- 栈与队列(六)之总结篇