<div dir="ltr"><div>Hello Mr. Gilbert,<br><br></div>I changed the lines that read as such:<br><div><div><br></div><div><b>Original:</b><br></div><div><br>// if possible, produce compiler warnings when deprecated functions<br>
// are used<br>#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)<br># define OPENSLIDE_DEPRECATED() __attribute__((deprecated))<br>#else<br># define OPENSLIDE_DEPRECATED()<br>#endif<br><br>#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)<br>
# define OPENSLIDE_DEPRECATED_FOR(f) \<br> __attribute__((deprecated("Use " #f " instead")))<br>#else<br># define OPENSLIDE_DEPRECATED_FOR(f) OPENSLIDE_DEPRECATED()<br>#endif<br><br></div><div><b>Changed:<br>
<br></b>// if possible, produce compiler warnings when deprecated functions<br>// are used<br>#define OPENSLIDE_DEPRECATED()<br>#define OPENSLIDE_DEPRECATED_FOR(f) OPENSLIDE_DEPRECATED()<br><b><br></b></div><div><b>The result was the new error:</b><br>
<br>Error using loadlibrary>lFullPath (line 587)<br>Could not find file openslide.h.<br><br>Error in loadlibrary (line 220)<br> header=lFullPath(header);<br><br>Error in openslide_load_library (line 40)<br>loadlibrary('libopenslide-0.dll','openslide.h','alias','openslidelib')<br>
<br></div><div><b>The libopenslide.so.0 change did non significanly chance the error message:</b><br><br>Error using loadlibrary>lFullPath (line 587)<br>Could not find file openslide.h.<br><br>Error in loadlibrary (line 220)<br>
header=lFullPath(header);<br><br>Error in openslide_load_library (line 40)<br>loadlibrary('libopenslide.so.0','openslide.h','alias','openslidelib')<br><br></div><div><br><br></div>
<div>
Thank you again for your help,<br><br></div><div>Jocelyn<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jun 27, 2014 at 3:47 PM, Jocelyn Barker <span dir="ltr"><<a href="mailto:jbarker2@stanford.edu" target="_blank">jbarker2@stanford.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi Mr. Gilbert,<br><br>I am sorry I didn't do this today, I have been running around like crazy. I will get back to you on Monday.<br>
<br></div><div>My version of Matlab is 2012b<br></div><div><br>
</div><div>Thank you<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div><br></div>Jocelyn<br></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, Jun 26, 2014 at 5:43 PM, Benjamin Gilbert <span dir="ltr"><<a href="mailto:bgilbert@cs.cmu.edu" target="_blank">bgilbert@cs.cmu.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On 06/26/2014 01:34 PM, Jocelyn Barker wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Failed to parse type '( deprecated (" Use " " openslide_get_level_count<br>
" " instead "))) int32_t openslide_get_layer_count ( openslide_t * osr'<br>
original input '( deprecated (" Use " " openslide_get_level_count " "<br>
instead "))) int32_t openslide_get_layer_count ( openslide_t * osr '<br>
Found on line 162 of input from line 422 of file<br>
/usr/include/openslide/<u></u>openslide.h<br>
Error parsing argument for function __attribute__ function may be invalid.<br>
</blockquote>
<br></div>
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:<br>
<br>
#define OPENSLIDE_DEPRECATED()<br>
#define OPENSLIDE_DEPRECATED_FOR(f) OPENSLIDE_DEPRECATED()<br>
<br>
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.<br>
<br>
Also, what version of MATLAB are you using?<span><font color="#888888"><br>
<br>
--Benjamin Gilbert<br>
<br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>