Opened 16 years ago
Closed 13 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)
Change History (13)
comment:1 by , 16 years ago
Status: | new → assigned |
---|
comment:2 by , 16 years ago
Hello Frank,
I downloaded the binary from here: http://download.osgeo.org/gdal/win32/1.5/gdalwin32exe150.zip
Yours, L.M.
follow-up: 4 comment:3 by , 16 years ago
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 by , 16 years ago
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 by , 16 years ago
Cc: | 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 by , 16 years ago
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 by , 16 years ago
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 by , 16 years ago
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 by , 16 years ago
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.
comment:11 by , 16 years ago
Cc: | added |
---|---|
Keywords: | ecw added |
László,
Can you point me to the binaries you are having problems with?