Installing Openslide with Matlab toolbox

Jocelyn Barker jbarker2 at stanford.edu
Mon Jun 30 19:32:32 EDT 2014


Hello Mr. Gilbert,

I changed the lines that read as such:

*Original:*

// if possible, produce compiler warnings when deprecated functions
// are used
#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
# define OPENSLIDE_DEPRECATED() __attribute__((deprecated))
#else
# define OPENSLIDE_DEPRECATED()
#endif

#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)
# define OPENSLIDE_DEPRECATED_FOR(f) \
  __attribute__((deprecated("Use " #f " instead")))
#else
# define OPENSLIDE_DEPRECATED_FOR(f) OPENSLIDE_DEPRECATED()
#endif



*Changed: *// if possible, produce compiler warnings when deprecated
functions
// are used
#define OPENSLIDE_DEPRECATED()
#define OPENSLIDE_DEPRECATED_FOR(f) OPENSLIDE_DEPRECATED()

*The result was the new error:*

Error using loadlibrary>lFullPath (line 587)
Could not find file openslide.h.

Error in loadlibrary (line 220)
        header=lFullPath(header);

Error in openslide_load_library (line 40)
loadlibrary('libopenslide-0.dll','openslide.h','alias','openslidelib')

*The libopenslide.so.0 change did non significanly chance the error
message:*

Error using loadlibrary>lFullPath (line 587)
Could not find file openslide.h.

Error in loadlibrary (line 220)
        header=lFullPath(header);

Error in openslide_load_library (line 40)
loadlibrary('libopenslide.so.0','openslide.h','alias','openslidelib')



Thank you again for your help,

Jocelyn


On Fri, Jun 27, 2014 at 3:47 PM, Jocelyn Barker <jbarker2 at stanford.edu>
wrote:

> Hi Mr. Gilbert,
>
> I am sorry I didn't do this today, I have been running around like crazy.
> I will get back to you on Monday.
>
> My version of Matlab is 2012b
>
> Thank you
>
> Jocelyn
>
>
> On Thu, Jun 26, 2014 at 5:43 PM, Benjamin Gilbert <bgilbert at cs.cmu.edu>
> wrote:
>
>> On 06/26/2014 01:34 PM, Jocelyn Barker wrote:
>>
>>> Failed to parse type '( deprecated (" Use " " openslide_get_level_count
>>> " " instead "))) int32_t openslide_get_layer_count ( openslide_t * osr'
>>> original input '( deprecated (" Use " " openslide_get_level_count " "
>>> instead "))) int32_t openslide_get_layer_count ( openslide_t * osr '
>>> Found on line 162 of input from line 422 of file
>>> /usr/include/openslide/openslide.h
>>> Error parsing argument for function __attribute__ function may be
>>> invalid.
>>>
>>
>> Okay, MATLAB seems to be choking on the __attribute__ declarations.  In
>> openslide-features.h, there are two blocks talking about
>> OPENSLIDE_DEPRECATED and OPENSLIDE_DEPRECATED_FOR.  Replace those with:
>>
>> #define OPENSLIDE_DEPRECATED()
>> #define OPENSLIDE_DEPRECATED_FOR(f) OPENSLIDE_DEPRECATED()
>>
>> and try again.  Please try with and without the "libopenslide.so.0"
>> change in openslide_load_library.m.  I'm trying to narrow down which things
>> need to be fixed.
>>
>> Also, what version of MATLAB are you using?
>>
>> --Benjamin Gilbert
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andrew.cmu.edu/pipermail/openslide-users/attachments/20140630/cc5a9e6d/attachment.html 


More information about the openslide-users mailing list