gpt4 book ai didi

ubuntu - boost 不包含/lib 目录吗?

转载 作者:行者123 更新时间:2023-12-04 18:43:24 24 4
gpt4 key购买 nike

我正在尝试构建 boost 1.74.0来自源的库,以便生成带有 cmake 的 make 文件.我看不懂:根据boost install page,建库应该会生成lib小路。但是我只看到库 小号 文件夹。
我使用

./bootstrap.sh --with-libraries=system
sudo apt-get install libbz2-dev
./b2 toolset=gcc cxxflags=-std=gnu++0x
并得到了输出
Performing configuration checks

- default address-model : 64-bit (cached)
- default architecture : x86 (cached)

Building the Boost C++ Libraries.



Component configuration:

- atomic : not building
- chrono : not building
- container : not building
- context : not building
- contract : not building
- coroutine : not building
- date_time : not building
- exception : not building
- fiber : not building
- filesystem : not building
- graph : not building
- graph_parallel : not building
- headers : not building
- iostreams : not building
- locale : not building
- log : not building
- math : not building
- mpi : not building
- nowide : not building
- program_options : not building
- python : not building
- random : not building
- regex : not building
- serialization : not building
- stacktrace : not building
- system : building
- test : not building
- thread : not building
- timer : not building
- type_erasure : not building
- wave : not building

...found 165 targets...
...updating 10 targets...
boost-install.generate-cmake-config- bin.v2/libs/headers/build/stage/boost_headers-config.cmake
boost-install.generate-cmake-config- bin.v2/libs/system/build/stage/boost_system-config.cmake
boost-install.generate-cmake-config-version- bin.v2/libs/system/build/stage/boost_system-config-version.cmake
common.copy /home/vm-umic/boost/boost_1_74_0/stage/lib/cmake/boost_system-1.74.0/boost_system-config.cmake
common.copy /home/vm-umic/boost/boost_1_74_0/stage/lib/cmake/boost_system-1.74.0/boost_system-config-version.cmake
common.copy /home/vm-umic/boost/boost_1_74_0/stage/lib/cmake/boost_headers-1.74.0/boost_headers-config.cmake
boost-install.generate-cmake-config-version- bin.v2/libs/headers/build/stage/boost_headers-config-version.cmake
common.copy /home/vm-umic/boost/boost_1_74_0/stage/lib/cmake/boost_headers-1.74.0/boost_headers-config-version.cmake
...updated 10 targets...


The Boost C++ Libraries were successfully built!

The following directory should be added to compiler include paths:

/home/vm-umic/boost/boost_1_74_0

The following directory should be added to linker library paths:

/home/vm-umic/boost/boost_1_74_0/stage/lib
所以我认为它有效。我看到 include小路。但我看不到 lib小路。只有 libs小路?
lib路径在哪里?为什么没有建好。
编辑:
文档的相关摘录如下。如您所见,它指出在顶层应该有一个 lib\路径?文档有错吗?
boost_1_73_0\ .................The “boost root directory”
index.htm .........A copy of www.boost.org starts here
boost\ .........................All Boost Header files
lib\ .....................precompiled library binaries
libs\ ............Tests, .cpps, docs, etc., by library
index.html ........Library documentation starts here
algorithm\
any\
array\
…more libraries…
status\ .........................Boost-wide test suite
tools\ ...........Utilities, e.g. Boost.Build, quickbook, bcp
more\ ..........................Policy documents, etc.
doc\ ...............A subset of all Boost library docs
(这取自文档 1.74,尽管它在此摘录的顶部说 1.73)。
我问这一切的原因是因为我想明确地将不同的文件夹交给 cmake。 .

最佳答案

libs您找到的目录是源(库 TU、测试、示例和文档)所在的位置。
仔细看:
enter image description here

Just to be sure, note the stage/ in there.

关于ubuntu - boost 不包含/lib 目录吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66018034/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com