onega@ub-laptop:~$ tar xvjf Downloads/boost_1_48_0.tar.bz2
onega@ub-laptop:~/boost_1_48_0$ du -sh
419M
onega@ub-laptop:~/boost_1_48_0$./bootstrap.sh
onega@ub-laptop:~/boost_1_48_0$ time./b2 variant=release link=static runtime-link=shared threading=multi
...
gcc.archivebin.v2/libs/filesystem/build/gcc-4.6.1/release/link-static/threading-multi/libboost_filesystem.a
common.copystage/lib/libboost_filesystem.a
...failed updating 28 targets...
...skipped 3 targets...
...updated 503 targets...
real 7m31.343s
user 7m0.362s
sys 0m22.629s
onega@ub-laptop:~/boost_1_48_0$ sudo ./b2 install
remove boost_1_44_0 libraries from/usr/local/lib
onega@ub-laptop:~/boost_1_48_0$ sudo -s
root@ub-laptop:~/boost_1_48_0# find /usr/local/lib -name "*44*" | xargs rm
root@ub-laptop:~/boost_1_48_0# su onega
onega@ub-laptop:~/boost_1_48_0$ du -sh
565M
Build boost_1_48_0.tar.bz2 on Windows XP via VC++ 2008
download timeit.exe from Windows 2003 Resource Kit
download du.exe from sysinternals
download icu4c-4_4_2-src.tgz and build it. Note: icu4c-4_6_1-src.tgz and icu4c-4_8_1_1-src.tgz only provides VC++ 2010 project files.
G:\src\icu4c-4_4_2-src>c:\tools\timeit.exe devenv icu\source\allinone\allinone.sln /Build "Debug|Win32"
Version Number: Windows NT 5.1 (Build 2600)
Exit Time: 1:10 pm, Saturday, November 26 2011
Elapsed Time: 0:05:52.397
Process Time: 0:00:13.156
System Calls: 14302984
Context Switches: 5671218
Page Faults: 6210036
Bytes Read: 4090425485
Bytes Written: 1063078424
Bytes Other: 54560737
G:\src\icu4c-4_4_2-src>c:\tools\timeit.exe devenv icu\source\allinone\allinone.sln /Build "Release|Win32"
Version Number: Windows NT 5.1 (Build 2600)
Exit Time: 1:14 pm, Saturday, November 26 2011
Elapsed Time: 0:03:36.005
Process Time: 0:00:09.062
System Calls: 9138612
Context Switches: 2112111
Page Faults: 4133377
Bytes Read: 3267500813
Bytes Written: 543078480
Bytes Other: 31802906
download boost-log-1.0.zip and extract into boost_1_48 source folder
start build:
call "%VS90COMNTOOLS%/../../vc/bin/vcvars32.bat"
c:\tools\sysinternals\du.exe g:\src\boost_1_48_0 >> buildtime.txt
cd /d G:\src\boost_1_48_0
@echo Update G:\src\boost_1_48_0/tools/build/v2/user-config.jam
call bootstrap.bat
echo "build boost_1_48_0 start" >> buildtime.txt
time /t >> buildtime.txt
c:\tools\timeit.exe b2.exe --without-log --toolset=msvc stage --build-type=complete -sBZIP2_SOURCE=D:\opensource\bzip2-1.0.5 -sZLIB_SOURCE=D:\opensource\zlib-1.2.5 -sICU_PATH=G:\src\icu4c-4_4_2-src\icu >> msvc90.log
time /t >> buildtime.txt
b2 --show-libraries >> buildtime.txt
c:\tools\timeit.exe b2.exe --with-log --toolset=msvc stage --build-type=complete define=BOOST_FILESYSTEM_VERSION=2 define=BOOST_ASIO_DISABLE_STD_ARRAY
time /t >> buildtime.txt
c:\tools\sysinternals\du.exe g:\src\boost_1_48_0 >> buildtime.txt
echo "build finished" >> buildtime.txt
It takes 65minutes building boost without boost.log. It takes 18 minutes building boost.log.
if b2.exe failed to check ICU:
- has_icu builds : no
check log file G:\src\boost_1_48_0\bin.v2\config.log
Use the following command to check icu:
b2.exe --with-regex --toolset=msvc stage --build-type=complete -sBZIP2_SOURCE=D:\opensource\bzip2-1.0.5 -sZLIB_SOURCE=D:\opensource\zlib-1.2.5 -sICU_PATH=G:\src\icu4c-4_4_2-src\icu -n