BiologyTools / BioFormatsNET6

Bioformats java library converted to .NET6 with IKVM
2 stars 0 forks source link

Whole slide image issue when using IKVM Maven version of package. #3

Closed BiologyTools closed 9 months ago

BiologyTools commented 10 months ago

As discussed in the issue I opened on IKVM whole slide images with any compression fail due to an issue with native lib loader.

BiologyTools commented 10 months ago

Fixed partially with https://github.com/BiologyTools/BioFormatsNET6/commit/2813775b1725e174be421984553051939d1a5d7c Generated the bioformats_package.dll as documented here in the read.me This patch only works for x64 Windows, Linux, and Mac. Fix for ARM is waiting on https://github.com/ikvmnet/ikvm/issues/448

BiologyTools commented 9 months ago

Fixed fully with https://github.com/BiologyTools/BioFormatsNET6/commit/731e1d4669edd579cd19eda367c7c1a2621a8a38 using IKVMReference instead of Maven or ikvmc.exe conversion. Here is the fix:

<IkvmReference Include="bioformats_package.jar">
      <AssemblyName>bioformats_package</AssemblyName>
      <AssemblyVersion>7.1.0.0</AssemblyVersion>
      <AssemblyFileVersion>7.1.0.0</AssemblyFileVersion>
      <DisableAutoAssemblyName>true</DisableAutoAssemblyName>
      <DisableAutoAssemblyVersion>true</DisableAutoAssemblyVersion>
      <FallbackAssemblyName>bioformats_package</FallbackAssemblyName>
      <FallbackAssemblyVersion>7.1.0.0</FallbackAssemblyVersion>
      <Aliases>bioformats_package</Aliases>
      <Compile>google-collect-1.0.jar</Compile>
      <References>google-collect-1.0.jar</References>
    </IkvmReference>
    <IkvmReference Include="google-collect-1.0.jar" />