.. | index | nget | id3ed | alarmwatch | cfv | fchksum | par2ls | gvidm | libglfps | rmdirr | *py-ext-cross*

Some Random Babbling

Up until now, there has not been much/any information on the web about cross compiling python modules. I hope to rectify (at least a sub-set of) that problem.

This page focuses on cross-compiling on a linux host to a win32 target, using the mingw32 cross-compiler. (If you run debian, simply apt-get install mingw32.) The information was mainly gleaned from Instructions for Python Extensions with GCC/mingw32 which focuses on building modules with the win32 native mingw32 compiler. In addition, all the files available there are only for Python 1.5.

Ideally, one could just specify some sort of cross-compilation arg to distutils. However (as of Python 2.3), no such option exists. Therefore, we will have to make do with a Makefile.

There are 3 general things that must be taken into account when cross-compiling:

The Meat

Notes

The information on this page has been successfully used with Python2.3 and Mingw32 api 2.3 / gcc 3.2.1. Your milage may vary.

Comments may be directed to: Matthew Mueller <donut AT dakotacom DOT net>.


Last Update: 2006-04-05 19:07:03 PDT | Last Edit: 2003-08-23 17:55:05 PDT
frames|tables|simple