Opened 12 years ago

Closed 9 years ago

#2200 closed task (worksforme)

gdalwin32 binary distrib laks libecwj2

Reported by: lmezei Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: 1.5.0
Severity: normal Keywords: ecw libecwj2.dll
Cc: hobu, Mateusz Łoskot

Description

gdal1.5 binary distribution for windows can't load ECW (and MrSID) plugin.

Dependancy Walker reports that it is linked again the missing libecwj2.dll.

Mapserver binary distribution includes this dll, but it is a different version with some missing entry points.

The *.lib and *.h files would also be nice to have.

Attachments (1)

libecwj2.zip (437.9 KB) - added by lmezei 12 years ago.
libecwj2.dll

Download all attachments as: .zip

Change History (13)

comment:1 Changed 12 years ago by warmerdam

Status: newassigned

László,

Can you point me to the binaries you are having problems with?

comment:2 Changed 12 years ago by warmerdam

Hello Frank,

I downloaded the binary from here: http://download.osgeo.org/gdal/win32/1.5/gdalwin32exe150.zip

Yours, L.M.

comment:3 Changed 12 years ago by warmerdam

I have downloaded the referenced gdalwin32exe150.zip and used the visual studio "depends.exe" application to inspect the gdal15.dll. It does not have any apparent dependency on an ecw DLL, so I'm quite confused now why you think it does.

comment:4 in reply to:  3 Changed 12 years ago by lmezei

First I started "gdalinfo --formats" in a command window with the ecw plugin installed in "gdalplugins" subdir. It resulted in a "module not found" message for me. I thought this is because of a missing dll, so I started gdalinfo in Dependancy Walker with "--formats" set as input parameter. It identified the problem: libecwj2.dll was missing from my installation.

If I remove the ecw plugin there is no error message. That's why I think that gdalinfo loads the plugins at run time and if it founds the ecw plugin it tries to load it, but it implicitly tries to load libecwj2.dll since the plugin (and not gdal15.dll) is linked against the missing dll. I'm not sure about depend.exe, but Dependancy Walker is also able to discover the run time linking problems - not just the load time ones.

I think you will need to point me to the ecw plugin you are using. This is clearly the problem, not the base win32 gdal dlls.

The ecw plugin can be found here: http://download.osgeo.org/gdal/win32/1.5/ Its name is: gdalwin32ecw150.zip (gdal_ECW.dll)

comment:5 Changed 12 years ago by warmerdam

Cc: hobu added

I was going to appologise for not realizing I had published this plugin, but now I'm pretty sure it wasn't me! Perhaps Howard?

I'll add him to the cc: to check and if not I'll ask on the mailing list.

comment:6 Changed 12 years ago by FabioFagundes

Please check the README_ECW.txt (distributed within http://download.osgeo.org/gdal/win32/1.5/gdalwin32ecw150.zip)

I was having the same problem and the file was useful (I was lacking the ERMapper Image Compression SDK files) :

GDAL 1.5.0 MrSID Plugin

Install

This plugin libecw 3.3 in order to function. These files can be downloaded from http://www.ermapper.com/ProductView.aspx?t=28

comment:7 Changed 12 years ago by FabioFagundes

Ok,

That was not enough because the binary (in my case, gdalinfo.exe) was built depending with the single shared libecwj2.dll library.

The single shared libecwj2.dll library can be built from the ERMapper Image Compression SDK Source Code, but I guess it really should be distributed instead.

Regards.

comment:8 Changed 12 years ago by lmezei

I agree.

libecwj2.dll can't be downloaded in binary form from ERMapper's site. Finally I managed to compile this dll from source, but it is not a trivial task (eg. compilation guide "strongly suggests" preinstallation of MS Platform SDK, but it is a must in case of MSVC 2008 Express Edition).

Regards, László M.

comment:9 Changed 12 years ago by FabioFagundes

Dear László M.,

Would you please attach the compiled library to this thread ?

I'm using MSVC 2008 Express Edition and may take some hours to download the MS Platform SDK's DVD image.

Thanks.

Changed 12 years ago by lmezei

Attachment: libecwj2.zip added

libecwj2.dll

comment:10 Changed 12 years ago by lmezei

Here you are.

L.M.

comment:11 Changed 11 years ago by Mateusz Łoskot

Cc: Mateusz Łoskot added
Keywords: ecw added

comment:12 Changed 9 years ago by warmerdam

Resolution: worksforme
Status: assignedclosed

no action required.

Note: See TracTickets for help on using tickets.