在centos7下spice代码编译

在centos7下spice代码编译

目标还是两个spice的包:spice-protocol和spice-gtk

rpm -q xxx(查询 已安装的rpm包)
rpm -e –nodeps xxx

由于yum安装和移除都会处理依赖关系,所以移除原有老版本的spice包的时候,需要用rpm
rpm -e –nodeps xxx

配置的时候,需要增加几个选项,适应centos的风格
$ ./configure –prefix=/usr –localstatedir=/var –sysconfdir=/etc –libdir=/usr/lib64

spice-protocol spice spice-gtk都是从git上clone来的。

1)安装virt-manager
yum install virt-manager

相关的包会安装好,而且可以运行

2)spice-protocol
rpm -e –nodeps spice-protocol
./autogen
./configure –prefix=/usr –localstatedir=/var –sysconfdir=/etc –libdir=/usr/lib64
make
make install

3)spice
rpm -e –nodeps spice-server-0.12.4-20.el7_3.x86_64
yum install glib2-devel pixman-devel celt051-devel openssl-devel libjpeg-turbo-devel cyrus-sasl-devel alsa-lib-devel libcacard-devel
yum install gstreamer1 gstreamer1-plugins-base-devel gstreamer1-plugins-bad-free gstreamer1-plugins-bad-free-devel gstreamer1-plugins-base-tools
yum install epel-release
yum install lz4 lz4-devel
yum install gstream1-plugins-ugly gstream1-libav
(然后加nux的repo,直接安装gstream1-plugins-ugly和gstream1-libav)
./configure –prefix=/usr –localstatedir=/var –sysconfdir=/etc –libdir=/usr/lib64
make
make install
(git clone下来的spice编译出错,还是下载0.13.3)

不建议编译代码,要涉及很多codec。

另外在centos中,没有gstreame

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值