boost-windows编译

  • boost编译:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
bjam stage variant=debug release --stagedir="F:\libraries\boost_1_65_1" --with-locale --with-filesystem --with-iostreams --with-program_options --with-thread --with-log --with-context  --with-coroutine --with-date_time --with-program_options --with-regex --with-signals --with-python  --with-system --with-serialization    --layout=versioned threading=multi toolset=msvc-14.1  address-model=64
runtime-link=static
bjam stage variant=debug release --stagedir="F:\libraries\boost_1_67_0" --with-filesystem --with-iostreams --with-program_options --with-thread --with-log --with-context --with-coroutine --with-date_time --with-program_options --with-regex --with-signals --with-python --with-system --with-serialization --with-random --with-locale --with-fiber --layout=versioned threading=multi toolset=msvc-14.1 address-model=64

bjam stage variant=debug release --stagedir="F:\libraries\boost_1_67_0" --with-regex --layout=versioned threading=multi toolset=msvc-14.1 address-model=64

静态链接:runtime-link=static
bjam stage variant=debug release --stagedir="F:\libraries\boost_1_67_0" --with-log --layout=versioned threading=multi toolset=msvc-14.0 address-model=64 runtime-link=static
boost 需要编译的库
--with-atomic
--with-chrono
--with-context
--with-date_time
--with-exception
--with-filesystem
--with-graph
--with-graph_parallel
--with-iostreams
--with-locale
--with-math
--with-mpi
--with-program_options
--with-python
--with-random
--with-regex
--with-serialization
--with-signals
--with-system
--with-test
--with-thread
--with-timer
--with-wave
--with-log
--with-coroutine
  • 全编译
1
2
3
bjam stage variant=debug release —stagedir="F:\libraries\boost_1_67_0"  —with-libraries=all   —layout=versioned threading=multi toolset=msvc-14.1 address-model=64
bjam stage --toolset=msvc-14.0 architecture=x86 address-model=64 --without-graph --without-graph_parallel --stagedir="X:\QSC_120\boost\boost_1_58_0\newbuild" link=static runtime-link=shared runtime-link=static threading=multi debug release
bjam stage --toolset=msvc-14.0 architecture=x86 --stagedir="X:\QSC_120\boost\boost_1_58_0\newbuild" link=static runtime-link=shared runtime-link=static threading=multi debug release
1
2
3
4
cd Boost-for-Android
./build-android.sh ndk_dir --with-libraries=date_time,system,random --arch=armeabi,armeabi-v7a
./build-android.sh /Users/fisher/DevTools/AdrStudioTools/sdk/ndk-bundle --arch=armeabi,armeabi-v7a --boost=1.58.0
./build-android.sh /Users/fisher/DevTools/AdrStudioTools/android-ndk-r16b --boost=1.65.1 --prefix=install

https://blog.csdn.net/an04g4k/article/details/39554407
https://blog.csdn.net/liwenlong_only/article/details/80242765


转载请注明来源,欢迎指出任何有错误或不够清晰的表达。可以邮件至 xiyugee@qq.com