当我使用bcp导出boost线程时,如何克服构建错误? [英] how to overcome building error when I'm using bcp to export boost thread?
问题描述
我正在使用boost bcp 工具从boost导出 thread 库.导出库的布局是
I'm using boost bcp tool to export thread library from boost. The layout of exported library is
- Jamroot
+ libs
|----- + thread
|----- + build
|----- - Jamfile.v2
+ boost
+ doc
现在,当我在构建库中运行 bjam 时,就会得到我的提示:
Now when I run bjam in build library is getting me :
boostcpp.jam: No such file or directory
../../../Jamroot:138: in modules.load
rule boostcpp.set-version unknown in module Jamfile</Users/miladrezayee/Softwares/developer/boost_1_53_0/tmp1>
/Users/miladrezayee/Softwares/developer/boost_1_53_0/tools/build/v2/build/project.jam:317: in load-jamfile
/Users/miladrezayee/Softwares/developer/boost_1_53_0/tools/build/v2/build/project.jam:62: in load
/Users/miladrezayee/Softwares/developer/boost_1_53_0/tools/build/v2/build/project.jam:115: in load-parent
/Users/miladrezayee/Softwares/developer/boost_1_53_0/tools/build/v2/build/project.jam:430: in initialize
/Users/miladrezayee/Softwares/developer/boost_1_53_0/tools/build/v2/build/project.jam:308: in load-jamfile
/Users/miladrezayee/Softwares/developer/boost_1_53_0/tools/build/v2/build/project.jam:62: in load
/Users/miladrezayee/Softwares/developer/boost_1_53_0/tools/build/v2/build/project.jam:168: in project.find
/Users/miladrezayee/Softwares/developer/boost_1_53_0/tools/build/v2/build-system.jam:570: in load
我导出了 system libray,并且当我在build文件夹中运行* bjam时,它会成功编译.我为什么不编译 thread 库?有人知道 thread 库出了什么问题吗?
I exported system libray and when I run *bjam in build folder, it compiles successfully. I don't why thread library can't compile? Anybody have any idea what is going wrong with thread library?
推荐答案
好吧,我发现了应该像下面的
Ok, I found the solution you should bcp like the following
$ bcp build /path/of/exported/thread
$ bcp chrono /path/of/exported/thread
现在,我可以在导出的线程库的根路径上运行bjam,并且编译成功.
Now I can run bjam on root path of exported thread library and it's compiling successfully.
这篇关于当我使用bcp导出boost线程时,如何克服构建错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!