[C++-sig] Re: building boost.python on windows

David Abrahams dave at boost-consulting.com
Wed May 12 18:13:38 CEST 2004


"Olivier Ravard" <olivier.ravard at novagrid.com> writes:

> ----- Original Message -----
> From: "David Abrahams" <dave at boost-consulting.com>
> To: <c++-sig at python.org>
> Sent: Wednesday, May 12, 2004 2:43 PM
> Subject: [C++-sig] Re: building boost.python on windows
>
>
>> "Olivier Ravard" <olivier.ravard at novagrid.com> writes:
>>
>> >> "Olivier Ravard" <olivier.ravard at novagrid.com> writes:
>> >>
>> >> >>
>> >> >> Please post the command-line you used and the command-lines produced
>> >> >> by bjam (you can pass -n or -d+2 to see those -- do they look OK to
>> >> >> you?), along with the first few errors.
>> >> >>
>> >> >
>> >> > Finally, I compiled boost.python with mingw and it works...
>> >>
>> >> We'd still like to see the requested information so we can fix
>> >> whatever bug caused your problem.
>> >>
>> > Here is all the commands I've made :
>> >
>> >
>> > set PYTHON_ROOT=c:\Python23
>> > set PYTHON_VERSION=2.3
>> > set MSVCDir="c:\Program Files\Microsoft Visual C++ Toolkit 2003"
>> > bjam "-sTOOLS=vc7.1"
>> >
>> > Everythings compiles well until :
>>
>> Ah.  The problem is that the free VC++ toolkit only ships with a
>> static runtime library, but Boost.Python is configured to link with a
>> dynamic one.  I'm not sure whether it will work, but you might try
>>
>> bjam "-sTOOLS=vc7.1" "-sBUILD=<runtime-link>static".
>>
>
> Here is the result:
>
> bjam "-sTOOLS=vc7.1" "-sBUILD=<runtime-link>static"
> skipping <@boost!libs!python!build>boost_python.dll due to incompatible
> build requirements <runtime-link>dynamic.
> skipping <@boost!libs!python!build>libboost_python.lib due to incompatible
> build requirements <runtime-link>dynamic.
> skipping <@boost!libs!python!build>boost_python.dll due to incompatible
> build requirements <runtime-link>dynamic.
> skipping <@boost!libs!python!build>libboost_python.lib due to incompatible
> build requirements <runtime-link>dynamic.
> ...found 8 targets...
>

In tools/build/v1/python.jam, please try changing:

      <runtime-link>dynamic

to

      <default><runtime-link>dynamic

and try again.

Thanks!

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com





More information about the Cplusplus-sig mailing list