Wednesday, June 20, 2007

Compiling Boost for x64

Boost 1.34 has arrived. Actually it arrived about a month ago, but having had another round of stressful days, nights and weeks at work, and subsequently a much welcome vacation; I haven't been able to catch up with the world till now. I noticed that they've done some updates to the functor libraries, and I'm keen on benchmarking that against my synchronization library, ThreadSynch. As noted on in the source code -- for those who have taken the time to read that -- I do quite a few function object copies, and I'm curious on how that's affected by this version.

Before I start poking around with benchmarks, and other ThreadSynch updates, I thought I'd share my first impressions on the Boost 1.34 package, installation-wise. It appears that the binary packs made available for Windows are missing a few vital libraries, such as the test execution monitor, so rebuilding from source seems to be the only alternative. While doing that, I also noticed that there are no x64 binaries available, so I built those as well. That part is actually my main point, since the Boost Build docs fail to mention the option you apparently need to throw on to make that work.

Step by step Boost x64 + MSVC2005 build guide:

  1. Get Boost 1.34 source zip, from boost.org or sourceforge.
  2. Get the binary distribution of Boost Jam, also from boost.org or sourceforge.
  3. Launch the VS2005 x64 command environment.
  4. Go to the boost source root folder, and do a
    c:\bjampath\bjam --toolset=msvc address-model=64 --stagedir=stage64 stage
  5. Add the x64 lib path (boost\stage64\lib, if compiled as above) to the x64 library paths in the VS user preferences.
  6. Re-compile!
A few notes:
  • Notice that address-model isn't prefixed with the double dashes; that's intentional! If you prefix it, it will not work.
  • You can add -j%NUMBER_OF_PROCESSORS% to the bjam parameters. This will cause a number of commands to execute in parallel if you've got more cores / CPUs.

3 kommentarer:

Alexey said...

Well-spoken! It would be well for this note to be included into Boost's FAQ, since it is exactly and comprehensively describe what is to do.

However, this is the hit in Google when searching "Compile boost library for x64"

Anonymous said...

Making holic gold is the old question : Honestly there is no fast way to make lots of holic money . Sadly enough a lot of the people that all of a sudden come to with millions of holic online gold almost overnight probably duped . Although there are a lot of ways to make lots of cheap holic goldhere I will tell you all of the ways that I know and what I do to make holic online money.

As a new player , you may need some game guides or information to enhance yourself.
kal geons is one of the hardest theme for every class at the beginning . You must have a good way to manage your kal gold.If yor are a lucky guy ,you can earn so many kal online geons by yourself . But if you are a not , I just find a nice way to get kal online gold. If you need , you can buy kalonline Geons at our website . Go to the related page and check the detailed information . Once you have any question , you can connect our customer service at any time .

Anonymous said...

aion chinaaion china gold,
aion cn goldaion chinese gold,
aion gold chinaaion gold chinese,
china aion goldchinese aion gold,
aion china kinaaion chinese kina,
aion kina chinachina aion kina,
aion china buybuy aion china,
aion chinese server goldaion cn server gold,
aion china server goldchina aion server gold,
chinese aion server goldaion chinese server gold,
aion cn server kinaaion china server kina,
china aion server kinachinese aion server kina