how to overcome building error when I'm using bcp to export boost thread?

↘锁芯ラ 提交于 2019-12-12 19:22:40

问题


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

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

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?


回答1:


Ok, I found the solution you should bcp like the following

$ bcp build /path/of/exported/thread 
$ bcp chrono /path/of/exported/thread

Now I can run bjam on root path of exported thread library and it's compiling successfully.



来源:https://stackoverflow.com/questions/14809934/how-to-overcome-building-error-when-im-using-bcp-to-export-boost-thread

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!