|
Boost-Build : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2007-10-04 15:14:18
On Thursday 04 October 2007 21:23:41 Mat Marcus wrote:
> I am running 32bit windows XP. I would like to use bbv2 (from 1.34.1) to
> build 64bit exectuables. I read some threads on this list from January and
> July, but I remain unclear on the exact command-line invocation/user-
> config.jam that will work. One attempt:
>
> ### user-config.jam
>
> import toolset : using ;
> using msvc ;
>
> ### invocation
> bjam address-model=64 regex
>
> ### result
> compile-c-c++
> bin.v2\libs\regex\build\msvc-8.0\debug\address-model-64\threading-multi\c_regex_traits.obj
> 'cl' is not recognized as an internal or external command,
> operable program or batch file.
>
> ---
>
> I also tried adding:
> using msvc : 8.0amd : "C:\\Program Files (x86)\\Microsoft Visual Studio
> 8\\VC\\BIN\\amd64\\cl.exe" ;
>
> to my user config and then invoking as:
> bjam --toolset=msvc-8.0amd address-model=64 regex
>
> In this case, things seem to start out ok, but instead of compilation, I got
> a series of dialog boxes indicating that an attempt was being made to
> directly execute rsp files. Presumably vcvarsall.bat is not being invoked.
> Finally, I tried adding:
>
> msvc.configure 8.0 : "<command>c:\\Program Files (x86)\\Microsoft Visual
> Studio 8\\VC\\BIN\\amd64\\cl" "<setup>C:\\Program Files (x86)\\Microsoft
> Visual Studio 8\\VC\\vcvarsall.bat" ;
>
> to my user-config.jam (based on a message from Dave A. from July). This only
> results in:
> C:\home\user-config.jam:34: in modules.load
> rule msvc.configure unknown in module user-config.
>
> Could someone please tell me exactly what I must do to succeed in this
> endeavor?
I believe you have to explicitly configure msvc, providing the path of the regular
32-bit compiler, like this:
using msvc : 8.0 : "C:\\Program Files (x86)\\Microsoft Visual Studio 8\\VC\\BIN\\cl.exe" ;
and then, you should say:
bjam address-model=64
or
bjam address-model=64 architecture=opteron
I've just some fruitfull off-list discussion with Ilya Sokolov, who
explained quite some details about msvc 64-bit support, but haven't yet converted
that to docs.
- Volodya
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