[英]Configure boost build on windows
I'm currently trying to build a subset of the boost libraries on my (Windows) machine. 我目前正在尝试在(Windows)计算机上构建Boost库的子集。 In the Linux world it seems to be possible that the desired libraries can be specified by
在Linux世界中,似乎可以通过以下方式指定所需的库:
bootstrap.sh --with-libraries=lib1,lib2,...libn
I assumed that the Windows version bootstrap.bat would have the same command line options but I was wrong, it did not even react to --help
. 我以为Windows版本bootstrap.bat将具有相同的命令行选项,但是我错了,它甚至没有对
--help
做出反应。 Is there a way to avoid building the whole project using the bootstrap.bat
/ bjam.exe
/ b2.exe
approach? 有没有一种方法可以避免使用
bootstrap.bat
/ bjam.exe
/ b2.exe
方法来构建整个项目?
EDIT: Looking into bootstrap.bat
revealed that there are no command line options. 编辑:调查
bootstrap.bat
显示没有命令行选项。 It seems I have to configure project-config.jam
. 看来我必须配置
project-config.jam
。 Currently, there is only one line telling me that it uses the msvc compiler. 当前,只有一行告诉我它使用了msvc编译器。
assuming (for no reason, I know) you are using VisualStudio 2005 (which is msvc-8.0
) you can issue the commands 假设(出于任何原因,我知道)您正在使用VisualStudio 2005(即
msvc-8.0
),则可以发出命令
bootstrap
.\bjam toolset=msvc-8.0 --with-filesystem
to compile, eg, filesystem 进行编译,例如文件系统
Hope it helps 希望能帮助到你
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.