无法将 boost 安装到其他目录
Can't install boost to another directories
我只想使用Boost库的文件系统。我想要指定目录中的头文件和二进制文件。
所以我做了什么:
下载boost(文件类型:tar.gz(并提取到~/boost_1_05_0
按如下方式运行bootstrap.sh:./bootstrap.sh --with-libraries=filesystem --libdir=~/boost155/lib --includedir=~/boost155/header/
bootstrap生成的project-config.jam的详细信息:
# Boost.Build Configuration
# Automatically generated by bootstrap.sh
import option ;
import feature ;
# Compiler configuration. This definition will be used unless
# you already have defined some toolsets in your user-config.jam
# file.
if ! gcc in [ feature.values <toolset> ]
{
using gcc ;
}
project : default-build <toolset>gcc ;
# 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 = --with-filesystem ;
# These settings are equivivalent to corresponding command-line
# options.
option.set prefix : /usr/local ;
option.set exec-prefix : /usr/local ;
option.set libdir : ~/boost155/lib ;
option.set includedir : ~/boost155/header/ ;
# Stop on first error
option.set keep-going : false ;
然后我跑了/b2
命令结果:
link.jam: No such file or directory
Building the Boost C++ Libraries.
Component configuration:
- atomic : not building
- chrono : not building
- context : not building
- coroutine : not building
- date_time : not building
- exception : not building
- filesystem : building
- graph : not building
- graph_parallel : not building
- iostreams : not building
- locale : not building
- log : not building
- math : not building
- mpi : not building
- program_options : not building
- python : not building
- random : not building
- regex : not building
- serialization : not building
- signals : not building
- system : not building
- test : not building
- thread : not building
- timer : not building
- wave : not building
...patience...
...found 496 targets...
The Boost C++ Libraries were successfully built!
The following directory should be added to compiler include paths:
/home/esys/boost_1_55_0
The following directory should be added to linker library paths:
/home/esys/boost_1_55_0/stage/lib
正如您所看到的,b2没有在我想要的目录中安装库和头。我还检查了文件夹,它是空白的。
我想问题是缺少一个链接。但是在网上搜索什么都没有。
任何想法都将不胜感激:(
您必须运行
./b2 install
而不是简单的
./b2
(通过文档(
相关文章:
- 在执行其他功能的同时播放动画(LED矩阵和Arduino/ESP8266)
- 将数组作为参数传递给函数安全吗?作为第三方职能部门,可以探索他们想要的之外的其他元素
- 在Ubuntu 16.04上安装Cilk时出现问题
- 有没有什么方法可以使用一个函数中定义的常量变量,也可以由c++中同一程序中的其他函数使用
- 在CMakeLists.txt的安装功能中使用.cmake文件有什么用
- C++:如何在CLion IDE中安装Boost
- GL_SHADERSTORAGE_BUFFER位置是否与其他着色器位置冲突
- 为什么我不能在 C++ 中的特定函数重载中调用同一函数的任何其他重载?
- 在其他文件中创建类时在 c++ 项目中不起作用
- 类与私有变量的其他类之间的线程安全性
- 将--whole archive链接器选项与CMake和具有其他库依赖项的库一起使用
- GlobalAlloc而不是其他分配方法
- 全球安装的键盘钩可防止键盘输入其他应用程序
- 创建不需要任何进一步安装即可在其他计算机上工作的可执行文件?
- 如何在 c++ 中拆分字符串而不将其他库安装到标准 Ubuntu 版本
- 是否可以在没有安装 Office Excel 或其他先决条件框架的情况下读取 Qt 或 C++ Excel
- 如何在64位的Win 7上安装python-Levenshtein或其他C/ c++包
- 无法将 boost 安装到其他目录
- 如何在linux RHEL的其他目录下安装SDL2
- 我如何使exe可以在没有其他安装的windows上运行