下载
1 boost_1_43_0.tar.gz
2 tar -zxvf boost_1_43_0.tar.gz
3 设置环境变量
export PATH=$PATH:/opt/timesys/toolchains/armv5l-linux/bin/
3. 进入目录执行./bootstrap.sh, 此时形成bjam文件和project-config.jam
4. 编辑project-config.jam, 仅修改using gcc这行。因为我使用的是arm-linux-gcc,所以将其改以下即可:
using gcc : : arm51v-linux-gcc ;
5. 执行./bjam stage,编译asio
./bjam --with-system --with-thread --with-date_time --with-regex --with-serialization stage
6. 形成的静态和动态库文件就在stage目录下.
如果全部编译会如下:
- chrono : building
- date_time : building
- exception : building
- filesystem : building
- graph : building
- graph_parallel : building
- iostreams : building
- locale : building
- math : building