add DICOM (aka supp 145) support #142 Build Problem

Mathieu Malaterre mathieu.malaterre at gmail.com
Fri Sep 11 04:56:10 EDT 2015


Ivo,

On Fri, Sep 11, 2015 at 10:41 AM, Ivo Rakar <ivo23061987 at gmail.com> wrote:
> Hi Mathieu!
>
>
>>> Thank you for your help, unfortunately this time I got the following
>>> message:
>>>
>>> Assertion failed!
>>>
>>> Program: C:\Program Files\Java\jre1.8.0_31\bin\javaw.exe
>>> File: src/openslide-decode-dicom.c, Line 933
>>>
>>> Expression: stream
>
>>This line (although a little cryptic) indicate that the file could not
>>be open for reading. I suspect you entered an invalid path:
>
>>https://github.com/malaterre/openslide/blob/dicom-wsi/src/openslide-decode-dicom.c#L933
>
>>You may want to print what's in `err` just to be sure.
>
> Sorry for the late response, I tried to resolve the problem but I don't seem
> to find a solution.
>
> The error in C is the following:
>
> "Couldn't open .\DOG15_20: No such file or directory"
>
> I have downloaded dcmtk from offis and run the following commands in
> cygwin:
>
> $ mv Dog_15x15_20x.dcm DOG15_20
> $ mv Dog_15x15_40x.dcm DOG15_40
> $ dcmmkdir --output-file DOGDIR --general-purpose-dvd DOG15_20 DOG15_40
>
> Every file is in the same directory.

Try changing this line:

https://github.com/malaterre/openslide/blob/dicom-wsi/src/openslide-vendor-dicom.c#L189

From:

char *end = strrchr(filename, '/');

into:

char *end = strrchr(filename, '\\');

Thanks


More information about the openslide-users mailing list