[C++-sig] Re: building boost.python on windows
Olivier Ravard
olivier.ravard at novagrid.com
Wed May 12 16:40:32 CEST 2004
----- 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...
>
> If, in libs/python/test
>
> bjam "-sTOOLS=vc7.1" "-sBUILD=<runtime-link>static" test
>
> shows no errors, I would feel confident that it's OK. Otherwise I
> would say you probably have to shell out for the real VC++.
>
> --
> Dave Abrahams
> Boost Consulting
> http://www.boost-consulting.com
>
>
> _______________________________________________
> C++-sig mailing list
> C++-sig at python.org
> http://mail.python.org/mailman/listinfo/c++-sig
More information about the Cplusplus-sig
mailing list