2013-07-22 63 views
1

理論上,需要使用b2來構建助推器。在我的情況下,與b2 --build-dir=c:\boost\ --toolset=msvc complete stage當「b2」不起作用時,我該如何構建Boost

這將產生一個警告the --build-dir option was specified but Jamroot at '.' specified no project id the --build-dir option will be ignored(看起來無害的),然後是致命的通知[原文]`

could not find main target complete 
assuming it is a name of file to create. 
could not find main target stage 
assuming it is a name of file to create. 

顯然目標已被重命名。什麼是建立正確的目標?

谷歌搜索只發現幾個點擊,沒有在當前(1.54.0)增強版本。

+4

你可以嘗試使用'b2 --build-dir = c:\ boost \ toolset = msvc --build-type = complete stage'?我懷疑這個問題是由於你使用'complete'。您需要從包含'boost','doc','libs','more'等的目錄中執行此操作。 – llonesmiz

+0

@cv_and_he:+1,看起來好多了。 – MSalters

回答

2

公認的目標名稱取決於構建類型。由於命令行缺少--buildtype=,因此下一個標記complete被錯誤地解釋爲目標並且無法識別。下一個標記stage是一個目標,但未被識別,因爲buildtype未設置。

相關問題