Boost linux安装
来源:互联网 发布:守望先锋帧数优化补丁 编辑:程序博客网 时间:2024/06/06 01:14
前期准备:boost中,用到了别的函数库,所以为了使用boost中相应的功能,需要先安装系统中可能缺失的库
apt-get install mpi-default-dev #安装mpi库
apt-get install libicu-dev #支持正则表达式的UNICODE字符集
apt-get install python-dev #需要python的话
apt-get install libbz2-dev #如果编译出现错误:bzlib.h: No such file or directory
5 Prepare to Use a Boost Library Binary
If you want to use any of the separately-compiled Boost libraries, you'll need to acquire library binaries.
5.1 Easy Build and Install
Issue the following commands in the shell (don't type $; that represents the shell's prompt):
$ cd path/to/boost_1_60_0$ ./bootstrap.sh --help
Select your configuration options and invoke ./bootstrap.sh again without the --help option. Unless you have write permission in your system's /usr/local/ directory, you'll probably want to at least use
$ ./bootstrap.sh --prefix=path/to/installation/prefix
to install somewhere else. Also, consider using the --show-libraries and --with-libraries=library-name-list options to limit the long wait you'll experience if you build everything. Finally,
$ ./b2 install
will leave Boost binaries in the lib/ subdirectory of your installation prefix. You will also find a copy of the Boost headers in the include/ subdirectory of the installation prefix, so you can henceforth use that directory as an #include path in place of the Boost root directory.
skip to the next step
5.2 Or, Build Custom Binaries
If you're using a compiler other than your system's default, you'll need to use Boost.Build to create binaries.
You'll also use this method if you need a nonstandard build variant (see the Boost.Build documentation for more details).
Boost.CMake
There is also an experimental CMake build for boost, supported and distributed separately. See the Boost.CMake wiki page for more information.
5.2.1 Install Boost.Build
Boost.Build is a text-based system for developing, testing, and installing software. First, you'll need to build and install it. To do this:
- Go to the directory tools/build/.
- Run bootstrap.sh
- Run b2 install --prefix=PREFIX where PREFIX is the directory where you want Boost.Build to be installed
- Add PREFIX/bin to your PATH environment variable.
- linux 上 安装 boost
- linux下安装boost
- Linux下安装boost
- linux安装boost
- linux 下安装boost
- Linux环境 Boost安装
- linux下安装boost
- linux 下安装boost
- Linux 编译安装Boost
- linux下安装boost
- linux安装boost
- Linux编译安装boost
- Linux 编译安装Boost
- linux下安装boost
- linux编译安装boost
- Linux 下安装Boost
- Linux 编译安装Boost
- Linux编译安装boost
- 设计模式-外观模式(Facade)
- GridView绑定DataKeyName以及如何取这些值
- 如何无keystore获取apk的签名信息
- java函数回调实现原理
- Android init.rc文件浅析
- Boost linux安装
- sql server 分库分表方案&单表分区
- OpenGL ES之glTexImage2D函数
- 变量与常量
- Unity3D Shader官方教程翻译(三)
- Leetcode(4)-Two Sum
- B树、B-树、B+树、B*树
- 内存溢出之Tomcat内存配置-catalina.sh or catalina.bat
- WebView与js交互