Boost logo

Boost Users :

Subject: Re: [Boost-users] 64 bits migration problems
From: Klaim - Joël Lamotte (mjklaim_at_[hidden])
Date: 2013-01-11 08:17:51


On Fri, Jan 11, 2013 at 1:27 PM, simone pilozzi <simonepilozzi_at_[hidden]>wrote:

> I can't. I followed this procedure but failed
>
> http://stackoverflow.com/questions/2629421/how-to-use-boost-in-visual-studio-2010
> But, when running bootstrap there was this error
> .\build.bat is not recognized
> In fact I have boost-build.jam but not build.bat in my root.
> Anyway can you outline your compiling procedure ? I have VS2010 and Boost
> 1.51
>

This is indeed not the proper way to compile recent boost versions.
You should use b2 (that is the build tool, replacing bjam).
The instructions are there:
http://www.boost.org/doc/libs/1_52_0/more/getting_started/windows.html
(or there for 1.51:
http://www.boost.org/doc/libs/1_51_0/more/getting_started/windows.html but
I believe it's the same)

My personal boost build script look like that:
   call bootstrap.bat
   call b2 <insert your options here> install

The actual script is (I'm building for VS2010, vs2012 in both 32 and 64bit
- I use this batch script outside the boost directory where I got all the
sources):

cd .\boost
call bootstrap.bat
call b2 --prefix=. --buid-type=complete toolset=msvc-10.0 architecture=x86
install
call b2 --prefix=. --buid-type=complete --libdir=./lib/x64
toolset=msvc-10.0 architecture=x86 address-model=64 install
call b2 --prefix=. --buid-type=complete toolset=msvc-11.0 architecture=x86
install
call b2 --prefix=. --buid-type=complete --libdir=./lib/x64
toolset=msvc-11.0 architecture=x86 address-model=64 install

Hope it helps.

Joel Lamotte



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net