[C++-sig] Re: boost.python + mingw + msvc python
Dominic
user at example.net
Sun May 2 00:41:33 CEST 2004
Daniel Holth wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Have any of you used a mingw compiled Boost.Python to compile an
> extension for MSVC python (the standard python.org python)?
Yes, I've created a custom libpython23.a file with
I think impdef or such from the free borland command line
compiler and the dlltools from mingw.
Then I set PYTHON_LIB_PATH to where I stored the libpython23.a
and PYTHON_ROOT to the standard Python directory.
Afterwards I used bjam -sTOOLS=gcc-nocygwin to build the
example supplied with boost python. Since I used cygwin
I had to recompile bjam before boost, because cygwin has
different absolute path names. That's also the reason why
the tests in the example failed. However if you manually
copy the dll-files to the python src directory everything
runs as expected. I've only compiled boost-python and it's
dependencies.
The supplied commands and path-names are recovered from
memory and might be wrong.
A similar route should also work with mingw. I wonder
if there even is a difference between
-mno-cygwin and plain mingw.
Ciao,
Dominic
> I've had a pretty straightforwards experience using ming to compile
> Boost.Python (on an XP box, sadly NOT cross compiled from a Linux
> machine) making gcc libraries for various dlls, and I can compile the
> extension itself.
>
> Unfortunately when I try to import the extension I get a vague sort of
> 'dll not found' error.
>
> I know this is vague, I just would like to know if anyone has
> succeeded in compiling a working Python+Boost.Python extension this
> way. I'm trying to wrap ogg, vorbis and theora.
> (http://dingoskidneys.com/oggpy/)
>
> Thanks,
>
> Daniel
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>
> iD8DBQFAc3mOVh4W2pVfoMsRAo8UAKCFAmvreyuAe2Tw0kbo/NYY+tqYCgCgj8SH
> ltTCEyTB4cAhaouFDOMeo/g=
> =Zilu
> -----END PGP SIGNATURE-----
More information about the Cplusplus-sig
mailing list