Problem compiling an extension with MS Visual C++ Toolkit 2003

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andreas

    #1

    Problem compiling an extension with MS Visual C++ Toolkit 2003

    Extension:
    ---------------
    pyshapelib 0.3 with Python 2.4

    Problem:
    -------------
    D:\Python24\Lib \site-packages\shapel ib\setup>pytest .py
    Traceback (most recent call last):
    File "D:\Python24\Li b\site-packages\shapel ib\setup\pytest .py", line
    1, in ?
    import shapelib, dbflib, shptree
    File "D:\Python24\Li b\site-packages\shapel ib\setup\shapel ib.py", line
    2, in ?
    import shapelibc
    ImportError: DLL load failed: Das angegebene Modul wurde nicht
    gefunden.
    Windows Message: MSVCR80.dll not found.

    Informations:
    ------------------
    ..NET Framework runtime and associated files are installed.

    ..NET Framework SDK installed.

    Windows SDK installed.

    Visual C++ Toolkit 2003 installed.

    msvccompiler.py edited. Key on my machine is
    ....\MicrosoftS DK\InstalledSDK s\8F9E5EF3-A9A5-491B-A889-C58EFFECE8B3.

    vcvars32.bat edited.
    [color=blue]
    >python setup.py build[/color]
    running build
    running build_py
    creating build
    creating build\lib.win32-2.4
    copying shapelib.py -> build\lib.win32-2.4
    copying dbflib.py -> build\lib.win32-2.4
    running build_ext
    building 'shapelibc' extension
    creating build\temp.win3 2-2.4
    creating build\temp.win3 2-2.4\Release
    ...
    cl.exe seems to be o.k.
    ...
    ... Toolkit 2003\bin\link.e xe ... ... shapelibc.pyd ... shapelibc.lib
    ....
    ==>
    MSVCRT.lib(crtd ll.obj) : warning LNK4229:
    invalid directive '/manifestdepende ncy:type='win32 '
    name='Microsoft .VC80.CRT'
    version='8.0.50 608.0'
    processorArchit ecture='x86'
    publicKeyToken= '1fc8b3b9a1e18e 3b'' encountered; ignored
    <==
    ....[color=blue]
    >python setup.py install[/color]
    running install
    running build
    running build_py
    running build_ext
    running install_lib
    copying build\lib.win32-2.4\shapelibc.p yd ->
    D:\Python24\Lib \site-packages
    copying build\lib.win32-2.4\shptree.pyd ->
    D:\Python24\Lib \site-packages
    copying build\lib.win32-2.4\dbflibc.pyd ->
    D:\Python24\Lib \site-packages

    Question:
    --------------
    Has anyone an idea ?

    Thanks,
    Andreas

Working...