[gdal-dev] _gdal.dll problem on Windows using MSVC 8
Gong, Shawn (Contractor)
Shawn.Gong at drdc-rddc.gc.ca
Fri Apr 24 16:36:22 EDT 2009
OS: Windows, Python binding: old generation, Compiler: MSVS 2005 (MSVC
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):
File "C:\test\OpenEV\pymod\gdal.py", line 191, in <module>
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:
# Location of Visual C++ directory (only required for following
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?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gdal-dev