[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


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



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20090424/db977276/attachment.html


More information about the gdal-dev mailing list