[MMTK] compile mmtk on cygwin?

Michael Sorich mike_sorich@hotmail.com
Wed, 8 May 2002 09:56:09 +0930


I have previously posted the changes required. In summary:
(1) add "#define M_PI 3.14159265358979323846" to MINGW/include/math.h
(so nonbonded.c will compile)
(2) change usleep(10) in MMTK_forcefield.c to sleep(10)

With these changes, all you should need to do is run "setup.py
--compiler=mingw32"(the default compiler on windows is Visual C++). You
will need to have MinGW setup properly to compile python extensions,
however this is pretty simple to do (see
http://python.org/dev/doc/devel/inst/non-ms-compilers.html). 

Michael


-----Original Message-----
From: mmtk-admin@starship.python.net
[mailto:mmtk-admin@starship.python.net] On Behalf Of Konrad Hinsen
Sent: Wednesday, 8 May 2002 12:17 AM
To: Michael Sorich
Cc: mmtk@starship.python.net; 'quch quch'
Subject: Re: [MMTK] compile mmtk on cygwin?

"Michael Sorich" <mike_sorich@hotmail.com> writes:

> I have managed to compile MMTK-2.2b8 on windows using the MinGW
compiler
> (http://www.mingw.org/). Only a couple small changes to the C source
> were required. If you are using Python-2.1, I can send you the .pyd
> files I have compiled.

Could you send me those changes, and perhaps some instructions for
building MMTK with MinGW? I am getting more and more requests for help
with Windows installation, but at the moment I cannot help much
because I have zero Windows programming experience and even hardly any
experience with using Windows. Ideally, I'd make sure that the final
release of MMTK 2.2 can be compiled under Windows with at least one
compiler (ideally a free one), and put installation instructions on the
Web site.

Konrad.
--
------------------------------------------------------------------------
-------
Konrad Hinsen                            | E-Mail:
hinsen@cnrs-orleans.fr
Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-2.38.25.56.24
Rue Charles Sadron                       | Fax:  +33-2.38.63.15.17
45071 Orleans Cedex 2                    | Deutsch/Esperanto/English/
France                                   | Nederlands/Francais
------------------------------------------------------------------------
-------
_______________________________________________
mmtk maillist  -  mmtk@starship.python.net
http://starship.python.net/mailman/listinfo/mmtk

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 19/04/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 19/04/2002