Hello folks,

I pushed my jai /gdal native fragements to a branch (
https://github.com/fgdrf/udig-platform/tree/jai) a few minutes ago.

On win 7 its a bit strange that some required libraries are only available
as 64bit versions. Its not possible to load gdal_ECW_JP2ECW.dll because of
its dependencies. However, I got gdal natives started as a fragment of
net.refractions.udig.libs but the Activator of the plugin initialize a
class, that comes from a fragment if available. If the class loads the libs
in a specific order to resolve dependencies correctly. Afterwards, it
checks, whether a ECW extension is available
: GDALUtilities.isDriverAvailable("ECW"), if it returns true a extension
will be registered in
ExtensionRegistry net.refractions.udig.catalog.ui.fileFormat.
On my machine I could select ecw files in Add Data wizard (because of
catalog.imageio extenstion points) but afterwards the wizard never finished
because GDALUtilities.isDriverAvailable("ECW") was always false. Ok, if the
extension is not available, the files cant be chosen anymore.

Just to wrap up, its a status we can talk about and properly test on pure
windows 32 bit machines.

TODO's:
- create native fragments for linux 32 and 64 bit (can' test right now,
will install OSGEO Live DVD later this month to check it out)
- feedback is required to check design issues
- refactoring of folder structure (from root/libs to root/plugins folder

I thank you so much for your help! Please feel free to add comments and
questions at the branch sources;

Cheers, Frank

2012/1/5 Frank Gasdorf <[email protected]>

> Thanks Daniele!
>
> I tried both, 64 and 32 bit builds from 
> http://vbkto.dyndns.org<http://vbkto.dyndns.org/sdk/PackageList.aspx?file=release-1310-gdal-1-7-3-mapserver-5-6-5.zip>/sdk!
> But unfortunately the DependencyWalker shows that gpsvc.dll and IEShims.dll
> can not be resolved. In addition to the mapserver packages I downloaded the
> JRA for windows 32bit and analyzed the containing gdaljni.dll with
> dependency walker as well, same result the two libraries mentioned above
> are not accessible.
>
> My windows version is 6.1.7601 Service Pack 1 Build 7601 (windows 7 64 bit)
>
> I guess the gdal bundles work well on XP 32bit, but in 64bit modus seems
> something to be broken (on windows, not gdal).
>
> Could anybody please crosscheckt this on an other win 7 64bit machine with
> http://udig.refractions.net/files/downloads/udig-1.3.1.win32.win32.x86_64.exeI
>  assume, the message in log would look like this: Can't
> find dependent libraries
>
> Any suggestions?
> -Frank
>
>
> 2012/1/5 Daniele Romagnoli <[email protected]>
>
>> Hi Frank,
>>
>> On Thu, Jan 5, 2012 at 11:26 AM, Frank Gasdorf <
>> [email protected]> wrote:
>>
>>> Hm, I'm a bit confused. Installed a 32 bit jdk, I thought the libraries
>>> from gdal where build for an 32 bit environment and therefor it requires
>>> the 32 bit mvc-dll's, I'm wrong?
>>>
>>> The net.reflactions.udig.libs bundle contains imageio-ext-gdal-bindings
>>> in version 1.7, I assume I need a 1.7.x gdal release. At the given download
>>> site (http://vbkto.dyndns.org/sdk/) the newest version is 1.6. I guess
>>> I come noth further that way, can I?
>>>
>>
>> release-1600 refers to the msvc version
>>
>>
>> http://vbkto.dyndns.org/sdk/PackageList.aspx?file=release-1310-gdal-1-7-3-mapserver-5-6-5.zip
>>
>> http://vbkto.dyndns.org/sdk/PackageList.aspx?file=release-1400-gdal-1-7-3-mapserver-5-6-5.zip
>>
>> http://vbkto.dyndns.org/sdk/PackageList.aspx?file=release-1500-gdal-1-7-3-mapserver-5-6-5.zip
>>
>> http://vbkto.dyndns.org/sdk/PackageList.aspx?file=release-1600-gdal-1-7-3-mapserver-5-6-5.zip
>>
>>
>>  Daniele
>>
>>
>>
>>>
>>> Cheers,
>>> Frank
>>>
>>>
>>> 2012/1/5 Daniele Romagnoli <[email protected]>
>>>
>>>> HI Frank,
>>>>
>>>> On Thu, Jan 5, 2012 at 11:07 AM, Frank Gasdorf <
>>>> [email protected]> wrote:
>>>>
>>>>> A college of mine helped a bit to find out what's going on: I used
>>>>> DependencyWalker.org to check what's missing on my host (win 7 64 bit).
>>>>>
>>>>> Right now it, the following two libraries can't be resolved:
>>>>> GPSVC.dll and
>>>>> IEShims.dll
>>>>>
>>>>> Anyway, both can be found on my machine :
>>>>>
>>>>> c:\Windows\winsxs\amd64_microsoft-windows-grouppolicy-base_31bf3856ad364e35_6.1.7601.17514_none_8649674dfda23046\
>>>>> c:\Program Files (x86)\Internet Explorer\
>>>>>
>>>>
>>>> Is it one of these 2 paths on your "PATH" environment variable?
>>>>
>>>> If you still have troubles you can also consider using a different
>>>> native lib set (since you are using windows64 instead of windows32).
>>>> You can try one of these:
>>>> http://vbkto.dyndns.org/sdk/
>>>>
>>>> You can also check for some suggestions on the imageio-ext mailing list
>>>> about Windows 64:
>>>>
>>>> http://java.net/projects/imageio-ext/lists/users/archive/2011-11/message/2
>>>>
>>>> Hope this helps. Please let me know how is going on.
>>>> Regards,
>>>> Daniele
>>>>
>>>>
>>>>>
>>>>> Do you have any idea, how to solve this?
>>>>> Cheers
>>>>> -Frank
>>>>>
>>>>>
>>>>> 2012/1/5 Frank Gasdorf <[email protected]>
>>>>>
>>>>>> Hallo list,
>>>>>>
>>>>>> in addition to the native library support for jai/imagio I'm working
>>>>>> on bundles for gdal natives, where the net.refractions.udig.libs bundle
>>>>>> with its imageio-ext-xxxx dependencies is the host plugin for the native
>>>>>> fragments.
>>>>>> I tested on windows and added all native libraries to the fragment
>>>>>> but at runtime I get the following error:
>>>>>>
>>>>>> org.gdal.libs.win32\gdaljni.dll: Can't find dependent libraries
>>>>>>
>>>>>>
>>>>>> I'm wondering, which lib is in addition necessary and where to find
>>>>>> it. I downloaded natives for windows from
>>>>>> http://java.net/projects/imageio-ext/downloads/download/Releases/Dependencies/GDAL/NativeLibraries/1.7.3/Windows32/gdal1.7.3-win32.zip
>>>>>>
>>>>>> I had a look at the sources of GDALUtilities.java (
>>>>>> http://java.net/projects/imageio-ext/sources/svn/content/tags/1.1.2/library/gdalframework/src/main/java/it/geosolutions/imageio/gdalframework/GDALUtilities.java?rev=1326)
>>>>>> and the only System.loadLibrary() call is in the loadGDAL() method.
>>>>>>
>>>>>> Any suggestions? BTW, I was following the installation/configuration
>>>>>> guide at :
>>>>>> http://udig.refractions.net/confluence/display/ADMIN/JRE+for+Windows
>>>>>>
>>>>>> Thanks a lot, Frank
>>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> User-friendly Desktop Internet GIS (uDig)
>>>>> http://udig.refractions.net
>>>>> http://lists.refractions.net/mailman/listinfo/udig-devel
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> -------------------------------------------------------
>>>> Ing. Daniele Romagnoli
>>>> GeoSolutions S.A.S.
>>>> Software Engineer
>>>>
>>>> Via Poggio alle Viti 1187
>>>> 55054  Massarosa (LU)
>>>> Italy
>>>>
>>>> phone: +39 0584 962313
>>>> fax:      +39 0584 962313
>>>>
>>>> http://www.geo-solutions.it
>>>> http://geo-solutions.blogspot.com/
>>>> http://www.youtube.com/user/GeoSolutionsIT
>>>> http://it.linkedin.com/in/danieleromagnoli
>>>>
>>>>
>>>> -------------------------------------------------------
>>>>
>>>>
>>>
>>
>>
>> --
>> -------------------------------------------------------
>> Ing. Daniele Romagnoli
>> GeoSolutions S.A.S.
>> Software Engineer
>>
>> Via Poggio alle Viti 1187
>> 55054  Massarosa (LU)
>> Italy
>>
>> phone: +39 0584 962313
>> fax:      +39 0584 962313
>>
>> http://www.geo-solutions.it
>> http://geo-solutions.blogspot.com/
>> http://www.youtube.com/user/GeoSolutionsIT
>> http://it.linkedin.com/in/danieleromagnoli
>>
>>
>> -------------------------------------------------------
>>
>>
>
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to