UPDATE 2015.3.18
fedora 21中编译:
# yum install mingw* libtool* auto-buildrequires intltool glib2-devel icoutils msitools
# ./autogen.sh
# mingw64-configure
# mingw64-make -j4
# rpmbuild -bb mingw-virt-viewer.spec
编译msi过程中,可能会提示缺少storageencryption.rng,从以下地址下载即可。
https://raw.githubusercontent.com/wido/libvirt/master/docs/schemas/storageencryption.rng
在fedora环境中,需要的有spice-gtk,libusbx,usbredir,remote-review,全部下载最新git源
spice-gtk,usbredir
http://cgit.freedesktop.org/spice
libusbx
git://github.com/libusbx/libusbx.git
remote-viewer
git.fedorahosted.org/git/virt-viewer.git
libusbx和usbredir:
mingw32-configure;mingw32-make;mingw32-make install
spice-gtk:
mingw32-configure –with-sasl=no –with-audio=gstreamer –enable-smartcard=no –with-gtk=2.0 –without-python
因为virtviewer要gtk2.0的,所以这也就2.0的;mingw32下没找到pygtk,图省事儿就不要python了,其他的缺啥下啥
mingw32-make mingw32-make install
virt-viewer:
mingw32-configure mingw32-make mingw32-make install
生成remote viewer.exe
安装包
运行nsiswrapper生成windows安装包
nsiswrapper --run --name "Virt-Viewer" --outfile "Virt-Viewer-for-Windows.exe" --with-gtk /usr/i686-pc-mingw32/sys-root/mingw/bin/virt-viewer.exe
缺少的dll从网上下或者windows环境中安装的virtviewer加到$PATH中
这样会缺少三个xml文件,在virtviewer/src里,直接copy过去
export PATH=$PATH:/usr/i686-pc-mingw32/sys-root/mingw/bin:.
windows client中使用usbredir:
需要libwdi或者zadig或者usbclerk
链接
todo:
只有libvirt不是最新的了,可是目前来看没影响
我自己编译remote viewer 各种缺包啊
先是
No package ‘glib-2.0’ found
No package ‘gthread-2.0’ found
No package ‘gmodule-export-2.0’ found
然后网上说 安装libgnomeui-devel就行,结果
Error: Package: source-highlight-3.1.6-3.el6.x86_64 (epel)
Requires: libboost_regex.so.5()(64bit)
然后各种装 boost rpm包,还是不行,就自己编译安装 boost, 结果各种 fatal error..
./boost/python/detail/wrap_python.hpp:50:23: fatal error: pyconfig.h: No such file or directory
求指教
我是在fedora18和debian下编译的,epel下没试过,你需要的包这些都有,还有配置选项要控制一下
能够发我一个支持usb重定向的 remote-viewer? thx
windows的?
这个remote viewer中的USB重定向问题怎么解决?谢谢
usbclerk