- 论坛徽章:
- 0
|
最近一直在捣鼓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包)
整了好多天,实在弄不出来,恳请各位大虾指点迷津,小弟在这里先拜谢了。 |
|