- 論壇徽章:
- 0
|
最近一直在搗鼓redhat spice client,嘗試各種方法都未果,現(xiàn)向各位大蝦求助。
需求是這樣的,公司現(xiàn)在要做一個windows 版本的spice client, 在源碼的基礎(chǔ)上進(jìn)行二次開發(fā),結(jié)果一直卡在編譯環(huán)節(jié),始終解決不了。
方案一:
環(huán)境: centos 6.4
編譯工具: i686-pc-mingw32
spice client版本: spice-gtk-0.23
1. 執(zhí)行configure。
mingw32-configure --without-sasl --with-gtk=2.0 --with-audio=gstreamer --without-python --enable-usbredir=yes --enable-smartcard=no
剛開是報依賴的動態(tài)庫找不到,原因是mingw32搜索動態(tài)庫采用是i686-pc-mingw32-pkg-config,搜索路徑是/usr/i686-pc-mingw32/sys-root/mingw/lib/pkgconfig/, 把相關(guān)的依賴包從/usr/lib64/pkgconfig/目錄下拷貝到該目錄即解決。
但是,有一個動態(tài)庫的檢測始終通不過,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)。
方案二:
環(huán)境:ubuntu12.04
編譯工具:i586-ming32msvc
spice client版本:spice-gtk-0.23
1. 執(zhí)行 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包)
整了好多天,實在弄不出來,懇請各位大蝦指點迷津,小弟在這里先拜謝了。 |
|