hi list,

OS: Windows, Python binding: old generation, Compiler: MSVS 2005 (MSVC
8)
I have built Gdal-1.6.0 using older MSVC++ 6 (python 2.4) and ran it for
2 months without problem.  

Now I am building Gdal-1.6.0 using MSVC 8 and python 2.5.  Everything
else stayed the same. Build went fine.
But when I ran old-generation Python codes (e.g. OpenEV18), I got:

Traceback (most recent call last):
    import gdal
  File "C:\test\OpenEV\pymod\gdal.py", line 191, in <module>
    import _gdal
ImportError: No module named _gdal

I checked _gdal.dll. It has been generated in \local_install\pymod\
along with _gdal.dll.manifest
I then ran "mt -manifest _gdal.dll.manifest -outputresource:_gdal.dll;2"
and getting the same error.

I remade gdal by changing two lines in Gdal-1.6.0's name.opt:
        !IFNDEF MSVC_VER
        MSVC_VER=1400

        # Location of Visual C++ directory (only required for following
SETARGV stuff)
        VCDIR = C:\Program Files\Microsoft Visual Studio 8\VC
But still getting the same error.

Is this the MSVC's dll manifest problem or something else?

thanks,
Shawn



_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to