[英]Building boost 1.61.0 with MinGW 5.3.0
好吧,我確實得到了它的工作,但顯然這里討論的boost構建系統中的錯誤仍然是提升1.61。 我通過跳過遇到這個問題的庫並只構建我需要的庫來解決這個問題。 這對我有用。
cd D:\\Dev\\Libs\\boost\\boost_1_61_0\\tools\\build
.\\bootstrap.bat
(如果你跳過這個,第6步將失敗'未知工具集:mingw'... WTF ???) .\\bootstrap.bat mingw
.\\b2.exe install toolset=gcc --prefix=D:\\Dev\\Libs\\boost\\boost_1_61_0\\b2_for_mingw
cd D:\\Dev\\Libs\\boost\\boost_1_61_0
set PATH=%PATH%;D:\\Dev\\Libs\\boost\\boost_1_61_0\\b2_for_mingw\\bin
b2 toolset=gcc --build-type=complete stage --with-filesystem --with-system
(因為我只需要文件系統和系統庫)。 編輯:對於boost 1.64,必須完全跳過步驟5,並且在步驟6中需要指定gcc
而不是mingw
,如用戶fest的評論中所指出的。
@antred的答案非常好。 我只需要進行編譯boost 1.67.0所需的更改如下:
.\\bootstrap.bat gcc
b2 --build-dir="C:\\Program Files\\boost_1_67_0\\build" --prefix="C:\\Program Files\\boost" toolset=gcc install
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.