Chinaunix

标题: linux平台编译windows spice client [打印本页]

作者: loulou13    时间: 2014-02-19 10:36
标题: linux平台编译windows spice client
最近一直在捣鼓redhat spice client,尝试各种方法都未果,现向各位大虾求助。
需求是这样的,公司现在要做一个windows 版本的spice client, 在源码的基础上进行二次开发,结果一直卡在编译环节,始终解决不了。

方案一:
环境: centos 6.4
编译工具: i686-pc-mingw32
spice client版本: spice-gtk-0.23

1. 执行configure。
mingw32-configure --without-sasl --with-gtk=2.0 --with-audio=gstreamer --without-python --enable-usbredir=yes --enable-smartcard=no
刚开是报依赖的动态库找不到,原因是mingw32搜索动态库采用是i686-pc-mingw32-pkg-config,搜索路径是/usr/i686-pc-mingw32/sys-root/mingw/lib/pkgconfig/, 把相关的依赖包从/usr/lib64/pkgconfig/目录下拷贝到该目录即解决。
但是,有一个动态库的检测始终通不过,configure报如下错误:
checking for jpeg_destroy_decompress in -ljpeg... no
configure: error: libjpeg not found
尝试各种方法都不行(已安装libjpeg-turbo-1.2.1-3.el6_5.x86_64,libjpeg-turbo-devel-1.2.1-3.el6_5.x86_64,libjpeg-turbo-static-1.2.1-3.el6_5.x86_64)。

方案二:
环境:ubuntu12.04
编译工具:i586-ming32msvc
spice client版本:spice-gtk-0.23

1. 执行 configure
/configure --prefix=/usr/i586-mingw32msvc --enable-maintainer-mode --with-audio=gstreamer --host=i586-mingw32msvc --build=x86_64-linux --enable-smartcard=yes --enable-usbredir=yes --enable-gtk-doc --with-gtk=3.0
遇到同样的错误:checking for jpeg_destroy_decompress in -ljpeg... no
configure: error: libjpeg not found (已安装libjpeg-dev包)

整了好多天,实在弄不出来,恳请各位大虾指点迷津,小弟在这里先拜谢了。
作者: thinalai    时间: 2014-02-20 09:56
本帖最后由 thinalai 于 2014-02-20 09:56 编辑

回复 1# loulou13


    交叉编译有自己的Include环境, 与你安装的系统开发包是不相关的, 你需要手动交叉编译依赖的库
作者: flyzzy    时间: 2014-02-21 15:16
网上找的spice-client-win32.zip http://pan.baidu.com/s/1eQmno8U
作者: loulou13    时间: 2014-02-22 16:32
回复 2# thinalai


    好的,我试试,谢谢了
作者: loulou13    时间: 2014-02-22 16:34
回复 3# flyzzy


    这个我之前也找到了,不过没有源码,只有库和头文件,不过还是谢谢了




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2