[MMTK] MMTK Windows 2000
Lawrence Kelly
lkelly@drew.edu
Wed, 05 Mar 2003 09:40:50 -0500
ATTN: John Michelsen or other Windows experts.
I have installed MMTK-2.2 in the following configuration:
Windows 2000
Python 2.2
MMTK-2.2
ScientificPython-2.2
netcdf-3.5.0
mingw32 compiler
Many of the examples DNA construction and others work fine but others
crash Python. The
visual studio debugging shows this to always be an unhandeled exception
in MMTK_trajectory.pyd.
Any help would be greatly appreciated.
Larry Kelly
The build of MMTK goes as follows
=====================================================================
G:\Python22\MMTK-2.2>python setup.py build --compiler=mingw32
running build
running build_py
running build_ext
building 'MMTK_DCD' extension
skipping Src/MMTK_DCD.c (build\temp.win32-2.2\Release\mmtk_dcd.o up-to-date)
skipping Src/ReadDCD.c (build\temp.win32-2.2\Release\readdcd.o up-to-date)
writing build\temp.win32-2.2\Release\MMTK_DCD.def
e:\mingw\bin\dllwrap.exe -mno-cygwin -mdll -static --entry _DllMain@12
--output-lib build\temp.win32-2.2\Release\libMMTK_DCD.a --def
build\temp.win32-2.2\Release\MMTK_DCD.def -s
build\temp.win32-2.2\Release\mmtk_dcd.o
build\temp.win32-2.2\Release\readdcd.o -Lg:\py
thon22\libs -lpython22 -o build\lib.win32-2.2\MMTK\win32\MMTK_DCD.pyd
building 'MMTK_deformation' extension
skipping Src/MMTK_deformation.c
(build\temp.win32-2.2\Release\mmtk_deformation.o up-to-date)
writing build\temp.win32-2.2\Release\MMTK_deformation.def
e:\mingw\bin\dllwrap.exe -mno-cygwin -mdll -static --entry _DllMain@12
--output-lib build\temp.win32-2.2\Release\libMMTK_deformation.a --def
build\temp.win32-2.2\Release\MMTK_deformation.def -s
build\temp.win32-2.2\Release\mmtk_deformation.o -Lg:\python22\libs
-lpython22 -o build\lib.win32-2.2\MMTK\win32\MMTK_deformation.pyd
building 'MMTK_dynamics' extension
skipping Src/MMTK_dynamics.c
(build\temp.win32-2.2\Release\mmtk_dynamics.o up-to-date)
writing build\temp.win32-2.2\Release\MMTK_dynamics.def
e:\mingw\bin\dllwrap.exe -mno-cygwin -mdll -static --entry _DllMain@12
--output-lib
build\temp.win32-2.2\Release\libMMTK_dynamics.a --def
build\temp.win32-2.2\Release\MMTK_dynamics.def -s
build\temp.win32-2.2\Release\mmtk_dynamics.o -Lg:\python22\libs
-lpython22 -o build\lib.win32-2.2\MMTK\win32\MMTK_dynamics.pyd
building 'MMTK_minimization' extension
skipping Src/MMTK_minimization.c
(build\temp.win32-2.2\Release\mmtk_minimization.o up-to-date)
writing build\temp.win32-2.2\Release\MMTK_minimization.def
e:\mingw\bin\dllwrap.exe -mno-cygwin -mdll -static --entry _DllMain@12
--output-lib build\temp.win32-2.2\Release\libMMTK_minimization.a --def
build\temp.win32-2.2\Release\MMTK_minimization.def -s
build\temp.win32-2.2\Release\mmtk_minimization.o -Lg:\python22\libs
-lpython22 -o build\lib.win32-2.2\MMTK\win32\MMTK_minimization.pyd
building 'MMTK_surface' extension
skipping Src/MMTK_surface.c (build\temp.win32-2.2\Release\mmtk_surface.o
up-to-date)
writing build\temp.win32-2.2\Release\MMTK_surface.def
e:\mingw\bin\dllwrap.exe -mno-cygwin -mdll -static --entry _DllMain@12
--output-lib build\temp.win32-2.2\Release\libMMTK_surface.a -
-def build\temp.win32-2.2\Release\MMTK_surface.def -s
build\temp.win32-2.2\Release\mmtk_surface.o -Lg:\python22\libs
-lpython22 -o build\lib.win32-2.2\MMTK\win32\MMTK_surface.pyd
building 'MMTK_trajectory' extension
e:\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IInclude
-Ig:\python22\include -c Src/MMTK_trajectory.c -o
build\temp.win32-2.2\Release\mmtk_trajectory.o
Src/MMTK_trajectory.c: In function `PyTrajectory_Open':
Src/MMTK_trajectory.c:944: warning: initialization from incompatible
pointer type
writing build\temp.win32-2.2\Release\MMTK_trajectory.def
e:\mingw\bin\dllwrap.exe -mno-cygwin -mdll -static --entry _DllMain@12
--output-lib build\temp.win32-2.2\Release\libMMTK_trajectory.a --def
build\temp.win32-2.2\Release\MMTK_trajectory.def -s
build\temp.win32-2.2\Release\mmtk_trajectory.o -Lg:\python22\libs
-lpython22 -o build\lib.win32-2.2\MMTK\win32\MMTK_trajectory.pyd
building 'MMTK_universe' extension
skipping Src/MMTK_universe.c
(build\temp.win32-2.2\Release\mmtk_universe.o up-to-date)
writing build\temp.win32-2.2\Release\MMTK_universe.def
e:\mingw\bin\dllwrap.exe -mno-cygwin -mdll -static --entry _DllMain@12
--output-lib build\temp.win32-2.2\Release\libMMTK_universe.a
--def build\temp.win32-2.2\Release\MMTK_universe.def -s
build\temp.win32-2.2\Release\mmtk_universe.o -Lg:\python22\libs -lpython22 -
o build\lib.win32-2.2\MMTK\win32\MMTK_universe.pyd
building 'MMTK_forcefield' extension
e:\mingw\bin\dllwrap.exe -mno-cygwin -mdll -static --entry _DllMain@12
--output-lib build\temp.win32-2.2\Release\libMMTK_forcefield.
a --def build\temp.win32-2.2\Release\MMTK_forcefield.def -s
build\temp.win32-2.2\Release\mmtk_forcefield.o
build\temp.win32-2.2\Release\bonded.o
build\temp.win32-2.2\Release\nonbonded.o
build\temp.win32-2.2\Release\ewald.o
build\temp.win32-2.2\Release\sparsefc.o
build\temp.win32-2.2\Release\mpe_fft.o
build\temp.win32-2.2\Release\mpe_misc.o
build\temp.win32-2.2\Release\mpe_mpolec.o
build\temp.win32-2.2\Release\mpe_allocc.o
build\temp.win32-2.2\Release\mpe_mpolelj.o
build\temp.win32-2.2\Release\mpe_alloclj.o build\temp.win32
-2.2\Release\dpmta_serial.o
build\temp.win32-2.2\Release\dpmta_slvmkcell.o
build\temp.win32-2.2\Release\dpmta_slvmcalc.o
build\temp.win32-2.2\Release\dpmta_slvpcalc.o
build\temp.win32-2.2\Release\dpmta_slvmkil.o
build\temp.win32-2.2\Release\dpmta_slvmkhl.o
build\temp.win32-2.2\Release\dpmta_slvcompute.o
build\temp.win32-2.2\Release\dpmta_slvmacro.o
build\temp.win32-2.2\Release\dpmta_slvscale.o
build\temp.win32-2.2\Release\dpmta_timer.o
build\temp.win32-2.2\Release\dpmta_slvglobals.o
build\temp.win32-2.2\Release\dpmta_distmisc.o -Lg:\python22\libs
-lpython22 -o build\lib.win32-2.2\MMTK\win32\MMTK_forcefield.pyd
running build_scripts
============================================================
Only one warning in MMTK_trajectory but the MMTK_trajectory.pyd is compiled.
Tracing back I find that the problem is probably that
Scientific_netcdf.pyd does not get compiled.
===========================================================
Building 'Scientific_netcdf' extension
skipping Src/Scientific_netcdf.c
(build\temp.win32-2.2\Release\scientific_netcdf.o up-to-date)
writing build\temp.win32-2.2\Release\Scientific_netcdf.def
e:\mingw\bin\dllwrap.exe -mno-cygwin -mdll -static --entry _DllMain@12
--output-lib build\temp.win32-2.2\Release\libScientific_netcd
f.a --def build\temp.win32-2.2\Release\Scientific_netcdf.def -s
build\temp.win32-2.2\Release\scientific_netcdf.o -Lg:\Python22\netcd
f-3.5.0\lib -Lg:\python22\libs -lnetcdf -lpython22 -o
build\lib.win32-2.2\Scientific\win32\Scientific_netcdf.pyd
build\temp.win32-2.2\Release\scientific_netcdf.o(.text+0x2e2):Scientific_netcdf.c:
undefined reference to `ncerr'
build\temp.win32-2.2\Release\scientific_netcdf.o(.text+0x2f0):Scientific_netcdf.c:
undefined reference to `ncerr'
build\temp.win32-2.2\Release\scientific_netcdf.o(.text+0x3993):Scientific_netcdf.c:
undefined reference to `ncopts'
dllwrap: gcc exited with status 1
error: command 'dllwrap' failed with exit status 1
===========================================================