在windows下執行./configure,make,makeinstall源碼安裝程序spice-gtk


使用MSYS軟件,在我的上一篇博客中有軟件下載地址。本文使用MSYS進行源碼編譯spice-gtk-0.33.

首先打開MSYS軟件,進入你源碼所在目錄,例如:
cd  /c/Users/Admi....../Desktop/spice-gtk-0.33       //wsj注意盤符c:用/c代替
./configure
make
make  install
在安裝前,首先確認你要安裝gcc工具鏈,安裝完畢才可進行編譯(不懂怎么安裝的可以參考我上一篇關於spice安裝的博客),另外各個部分版本號一定要對應,另外32位就所有使用到的包、工具全都要32位,一定要保持一致!!

在make 時出現了第一個錯誤:
python  :import  six  ,no  module six。。。。。。
安裝Python的six模塊就好,記得位數一致
pacman -S mingw-w64-i686-python2-six

第二個錯誤:
make時卡在了Generated_client_demarshallers.c這上面,手動執行了一下python spice_codegen.py,發現缺少pyparsing模塊,繼續安裝:
pacman -S mingw-w64-i686-python2-pyparsing

接着make,第三個錯誤:
*** Error: missing valac! *** You must run autogen.sh or configure --enable-vala
嘗試執行make  clean,然后在./configure時加入
--enable-vala配置選項,重新make

第四個錯誤:
checking for Text::CSV Perl module... not found
configure: error: Text::CSV Perl module is required to compile this package

pacman -S mingw-w64-i686-python2-perl
重新make

第五個錯誤:
checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool
然后在MSYS輸入 pacman -Sl|grep parser-perl,發現已經安裝了,Google之后解決,解決辦法:
MSYS輸入:

perl -e shell -MCPAN
然后選擇y或者是yes
然后輸入:
install XML::Parser進行安裝
等待安裝完畢,繼續make

第六個錯誤:vncdisplaykeymap.c:98:42: fatal error: vncdisplaykeymap_win322xtkbd.c: No such file or directory
 #include "vncdisplaykeymap_win322xtkbd.c"
嘗試:pacman -S  mingw-w64-i686-gtk-vnc(解決中)

 

轉自:http://blog.sina.com.cn/s/blog_166ae58120102xvho.html


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM