Boost logo

Boost-Build :

Subject: Re: [Boost-build] Difficulty configuring boost.build for MSVC 9.0
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-12-22 16:48:01


AMDG

Ian Emmons wrote:
>> Boost.Build uses
>> HKEY_LOCAL_MACHINE\SOFTWARE\\Microsoft\VisualStudio\9.0\Setup\VC
>> or
>> HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\\Microsoft\VisualStudio\9.0\Setup\VC
>>
>> to find the installation directory of msvc 9.0.
>
> The first key doesn't exist. ("...\VisualStudio\9.0\Setup" does, but
> it has no VC sub-key.) The second key does exist. It's default value
> is null, and it has a single named value called "ProductDir", whose
> value is "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\",
> which is exactly the directory where the vcvarsall.bat script is located.
>
> I tried accessing this key under "Users" permissions, and I didn't
> have any trouble reading the registry value or accessing the
> vcvarsall.bat file, so this doesn't appear to be a permissions problem.
>
> Do you have any idea what's going wrong here? Does bjam emit any sort
> of log file that might show details of the error?

The attached patch for msvc.jam prints out extra diagnostic information
when searching the registry.

>>> notice: msvc-8.0 detected, command: 'C:\Program Files
>>> (x86)\Microsoft Visual Studio 8\VC\bin\cl.exe'
>>> notice: msvc-7.1 detected, command: 'C:\Program Files
>>> (x86)\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe'
>>
>> Somehow the autodetection isn't working. What version of Boost.Build
>> are you using?
>
> Sorry, I meant to include that in my last email. The command "bjam
> --version" reports:
>
> Boost.Build V2 (Milestone 12)
> Boost.Jam 03.1.17

Unfortunately this is not enough info. The version of Boost.Build
included in C++ Boost since 1.35 have msvc 9 support, but the
milestone 12 that was released separately came just before
support for msvc 9 was added.

The file tools/msvc.jam should have a bunch of version specific information
towards the end. Check to see whether this includes msvc-9.0.

In Christ,
Steven Watanabe




Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk