[gdal-dev] Supporting ECW as a plugin. (Windows)

Daniele Romagnoli dany.geotools at gmail.com
Tue Dec 9 12:37:45 EST 2008

Hi again list,
I'm back to work on setting ECW format as a GDAL external plugin on windows
XP with visual studio 7.1 (nmake command line).

I have some issues...
My main steps are:
- building GDAL without ECW
- building ECW driver on frmts/ecw separately.
- configuring an ENV variable GDAL_DRIVER_PATH linking to the location where
the gdal_ECW_JP2ECW.DLL have been built.
- running gdalinfo to test things.

When running gdalinfo I get this error:
 ERROR 1: Can't find requested entry point: GDALRegister_ECW_JP2ECW

Indeed, putting the generated DLL in the "depends/dependency walker" tool, I
have only noticed the presence of the following two functions:
- GDALRegister_ECW
- GDALRegister_JP2ECW

whilst the GDALDriverManager:autoLoadDrivers function does:
1) looks for a DLL in the specified GDAL_DRIVER_PATH --->
2) tries to call GDALRegister_ECW_JP2ECW function (missing).

The weird thing is that "ecwdataset.cpp" contains that function but the
generated DLL doesn't contain it.
I have also noticed that the ECW plugin available here (
http://download.osgeo.org/gdal/win32/1.5/) doesn't contain that registration

Does anyone already successfully used the ECW as a separated plugin on
Am I doing something wrong?
Any tips/suggestion would be really appreciated.

Best Regards,

Eng. Daniele Romagnoli
Software Engineer

GeoSolutions S.A.S.
Via Carignoni 51
55041 Camaiore (LU)

phone: +39 0584983027
fax:     +39 0584983027
mob:   +39 328 0559267


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

More information about the gdal-dev mailing list