1. 程式人生 > >【POCO】POCO學習總結(四)——MinGW編譯poco

【POCO】POCO學習總結(四)——MinGW編譯poco

在window下使用MinGW編譯poco

使用MSYS

下載MSYS
安裝

執行mingw-get-setup.exe,只選擇安裝msys-base(mingw我使用Qt中自帶的)

配置

開啟C:\MinGW\msys\1.0\msys.bat,在開頭新增

set PATH=D:\2-software\qt\qt5.6\Tools\mingw492_32\bin:$PATH

注:set PATH=[MinGW的目錄]

執行MSYS

雙擊C:\MinGW\msys\1.0\msys.bat,進入終端介面,執行gcc -v檢視版本是否正確。

編譯poco

1 進入poco的原始碼目錄中,執行配置命令

./configure --minimal --config=MinGW --no-tests --no-samples   --shared --static

2 make
執行完畢,在poco-1.7.9/lib/MinGW中將會出現相應的庫

3 make install
(該步驟沒有親自驗證,可能有誤)
如果在-prefix中指定安裝路徑,則在該目錄中生成bin、include、lib等。