boost.python + mingw + msvc python
-----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)? 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-----
Daniel Holth <dholth@fastmail.fm> writes:
-----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, all the time.
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/)
Just use bjam with -sTOOLS=mingw -d+2 to build any of the examples. Then you can both see it work, and see the commands used to make it work. -- Dave Abrahams Boost Consulting www.boost-consulting.com
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-----
participants (3)
-
Daniel Holth -
David Abrahams -
Dominic