2017-06-13 120 views
0

在項目config.jam中,我看到一行升壓不是所有建設圖書館

$ 
# List of --with-<library> and --without-<library>$ 
# options. If left empty, all libraries will be built.$ 
# Options specified on the command line completely$ 
# override this variable.$ 
libraries = ;$ 

,仍然

bootstrap.sh --prefix=/my/target/location/ 
./b2 install 

不建的所有庫。僅下面的一個:

Component configuration: 

- atomic     : building 
- chrono     : building 
- container    : building 
- context     : building 
- coroutine    : building 
- coroutine2    : building 
- date_time    : building 
- exception    : building 
- fiber     : building 
- filesystem    : building 
- graph     : building 
- graph_parallel   : building 
- iostreams    : building 
- locale     : building 
- log      : building 
- math      : building 
- metaparse    : building 
- mpi      : building 
- program_options   : building 
- python     : building 
- random     : building 
- regex     : building 
- serialization   : building 
- signals     : building 
- system     : building 
- test      : building 
- thread     : building 
- timer     : building 
- type_erasure    : building 
- wave      : building 

我所面臨的問題,becaues circular_buffer心不是在組件中可用。

+0

這些美元符號是否存在於實際文件中?他們不應該,而且之後應該有一堆其他的'option.set'行。 – gavinb

回答

0

並非所有的Boost組件都需要內置到庫中 - 很多都是「僅標頭」,因此整個實現在.hpp文件中定義。

它看起來像上面的組件列表只是那些需要相應的庫,這是'構建'步驟正在做的事情。

運行安裝腳本並驗證目標中是否存在include/boost/circular_buffer.hpp,因爲這確實是僅包含標頭的組件。

+0

include/boost/circular_buffer.hpp位於源代碼(boost)中,但不是我使用--prefix定義的目標。也許./b2不會將所有內容複製到目標中?我怎樣才能強制安裝腳本來做到這一點? – infoclogged

+0

顯示「Component Build:」行後,您應該看到大量行顯示「common.copy 」,其中一行應該是「.../include/boost/circular_buffer.hpp」。我剛剛下載了t骨,運行了上面列出的相同的兩個命令,並驗證了循環緩衝區頭部確實已安裝到目標文件夾中。應該不需要強制任何東西。上述內容後打印什麼? – gavinb

+0

它不存在。 http://rn0.me/show/RKxd0TZk8bs4iQLYeehA/。 – infoclogged