[MMTK] building on windows with mingw

John Michelsen jmichelz@mail.com
Tue, 16 Jul 2002 20:17:20 -0500


Hi Konrad,

How's it going?  I was just trying to build mmtk with mingw on windows and thought I should send you what I found out.  Some of the examples crashed so this may not be the best way to do it.
Not sure if that has to do with not having netcdf set up correctly or
maybe the lib2def step.

John


download mingw from http://sourceforge.net/project/showfiles.php?group_id=2435
extract it to c:/mingw
add the c:/mingw/bin to your PATH environment variable
test using 'C:\>gcc -v'
Should print out 'Reading specs from c:/mingw/bin/../lib/gcc-lib/mingw32/2.95.3-5/specs'

download http://starship.python.net/crew/kernr/mingw32/Py-mingw32-tools.zip
extract lib2def.py to C:\Python22\libs
replace Python15 with Python22 and python15 with python22 in lib2def.py
run C:\Python22\libs>lib2def.py python22.lib > python22.def
run C:\Python22\libs>dlltool --dllname python22.dll --def python22.def --output-lib libpython22.a

download http://puma.dkrz.de/puma/download/netcdf/netcdf-3.4.zip
extract netcdf.h to C:\Python22\Lib\site-packages\MMTK-2.2\Include\MMTK

run C:\Python22\Lib\site-packages\MMTK-2.2>setup.py build --compiler=mingw32
run C:\Python22\Lib\site-packages\MMTK-2.2>setup.py install

-- 
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

Save up to $160 by signing up for NetZero Platinum Internet service.
http://www.netzero.net/?refcd=N2P0602NEP8