<div dir="ltr"><div><div><div><div><div>Hello,<br><br></div>I have installed openslide-tools and libopenslide dev on Ubuntu I believe successfully, but when I try to use it with the Matlab toolbox found here:<br><br><a href="http://www.medicalimagecomputing.net/software/openslide-matlab-toolbox-reading-whole-slide-images/">http://www.medicalimagecomputing.net/software/openslide-matlab-toolbox-reading-whole-slide-images/</a><br>
<br></div>I get a series of errors that prevents anything from working. I try to load the library with openslide_load_library and get the error at the bottom of this email. I think the top bit is just warnings having to do with loading the libraries in Matlab, but I believe the bottom errors are actually related to the base openslide package.<br>
<br></div>I am not sure if the problem is with openslide or the Matlab toolbox, but any help would be greatly appreciated.<br><br></div>Thank you,<br><br></div>Jocelyn<br><div><div><div><br>Error loading library intermediate output follows.<br>
The actual error is at the end of this output.<br>*********<br><br>Type '' was not found. Defaulting to type error.<br><br>Found on line 103 of input from line 67 of file /usr/include/openslide/openslide.h<br><br>
Failed to parse type '( visibility (" default "))) _Bool openslide_can_open ( char * filename' original input '( visibility (" default "))) _Bool openslide_can_open ( const char * filename '<br>
Found on line 103 of input from line 67 of file /usr/include/openslide/openslide.h<br>Error parsing argument for function __attribute__ function may be invalid.<br><br>Type '' was not found. Defaulting to type error.<br>
<br>Found on line 106 of input from line 81 of file /usr/include/openslide/openslide.h<br><br>Failed to parse type '( visibility (" default "))) openslide_t * openslide_open ( char * filename' original input '( visibility (" default "))) openslide_t * openslide_open ( const char * filename '<br>
Found on line 106 of input from line 81 of file /usr/include/openslide/openslide.h<br>Error parsing argument for function __attribute__ function may be invalid.<br><br>Type '' was not found. Defaulting to type error.<br>
<br>Found on line 109 of input from line 92 of file /usr/include/openslide/openslide.h<br><br>Failed to parse type '( visibility (" default "))) int32_t openslide_get_level_count ( openslide_t * osr' original input '( visibility (" default "))) int32_t openslide_get_level_count ( openslide_t * osr '<br>
Found on line 109 of input from line 92 of file /usr/include/openslide/openslide.h<br>Error parsing argument for function __attribute__ function may be invalid.<br><br>Type '' was not found. Defaulting to type error.<br>
<br>Found on line 133 of input from line 182 of file /usr/include/openslide/openslide.h<br><br>Failed to parse type '( visibility (" default "))) void openslide_close ( openslide_t * osr' original input '( visibility (" default "))) void openslide_close ( openslide_t * osr '<br>
Found on line 133 of input from line 182 of file /usr/include/openslide/openslide.h<br>Error parsing argument for function __attribute__ function may be invalid.<br><br>Type '' was not found. Defaulting to type error.<br>
<br>Found on line 136 of input from line 227 of file /usr/include/openslide/openslide.h<br><br>Failed to parse type '( visibility (" default "))) char * openslide_get_error ( openslide_t * osr' original input '( visibility (" default "))) const char * openslide_get_error ( openslide_t * osr '<br>
Found on line 136 of input from line 227 of file /usr/include/openslide/openslide.h<br>Error parsing argument for function __attribute__ function may be invalid.<br><br>Type '' was not found. Defaulting to type error.<br>
<br>Found on line 139 of input from line 302 of file /usr/include/openslide/openslide.h<br><br>Failed to parse type '( visibility (" default "))) char * * openslide_get_property_names ( openslide_t * osr' original input '( visibility (" default "))) const char * const * openslide_get_property_names ( openslide_t * osr '<br>
Found on line 139 of input from line 302 of file /usr/include/openslide/openslide.h<br>Error parsing argument for function __attribute__ function may be invalid.<br><br>Type '' was not found. Defaulting to type error.<br>
<br>Found on line 145 of input from line 345 of file /usr/include/openslide/openslide.h<br><br>Failed to parse type '( visibility (" default "))) char * * openslide_get_associated_image_names ( openslide_t * osr' original input '( visibility (" default "))) const char * const * openslide_get_associated_image_names ( openslide_t * osr '<br>
Found on line 145 of input from line 345 of file /usr/include/openslide/openslide.h<br>Error parsing argument for function __attribute__ function may be invalid.<br><br>Type '' was not found. Defaulting to type error.<br>
<br>Found on line 158 of input from line 400 of file /usr/include/openslide/openslide.h<br><br>Failed to parse type '( visibility (" default "))) char * openslide_get_version ( void' original input '( visibility (" default "))) const char * openslide_get_version ( void '<br>
Found on line 158 of input from line 400 of file /usr/include/openslide/openslide.h<br>Error parsing argument for function __attribute__ function may be invalid.<br><br>Type '' was not found. Defaulting to type error.<br>
<br>Found on line 162 of input from line 422 of file /usr/include/openslide/openslide.h<br><br>Failed to parse type '( visibility (" default "))) __attribute__ (( deprecated (" Use " " openslide_get_level_count " " instead "))) int32_t openslide_get_layer_count ( openslide_t * osr' original input '( visibility (" default "))) __attribute__ (( deprecated (" Use " " openslide_get_level_count " " instead "))) int32_t openslide_get_layer_count ( openslide_t * osr '<br>
Found on line 162 of input from line 422 of file /usr/include/openslide/openslide.h<br>Error parsing argument for function __attribute__ function may be invalid.<br>*********<br>Error using loadlibrary (line 419)<br>Building openslidelib_thunk_glnxa64 failed. Compiler output is:<br>
gcc -I"/usr/local/MATLAB/R2012b/extern/include" -D_GNU_SOURCE -fexceptions -fPIC<br>-fno-omit-frame-pointer -pthread -I"/usr/local/MATLAB/R2012b/bin" -I"/usr/include/openslide"<br>"openslidelib_thunk_glnxa64.c" -o "openslidelib_thunk_glnxa64.so" -Wl,-E -shared<br>
openslidelib_thunk_glnxa64.c:25:30: error: expected declaration specifiers or ‘...’ before<br>string constant<br> EXPORT_EXTERN_C (visibility("default")))_Boolopenslide_can_open(char*filenameThunk(void<br> fcn(),const char *callstack,int stacksize)<br>
^<br>openslidelib_thunk_glnxa64.c:34:30: error: expected declaration specifiers or ‘...’ before<br>string constant<br> EXPORT_EXTERN_C (visibility("default")))openslide_t*openslide_open(char*filenameThunk(void<br>
fcn(),const char *callstack,int stacksize)<br> ^<br>openslidelib_thunk_glnxa64.c:43:30: error: expected declaration specifiers or ‘...’ before<br>string constant<br> EXPORT_EXTERN_C<br> (visibility("default")))int32_topenslide_get_level_count(openslide_t*osrThunk(void<br>
fcn(),const char *callstack,int stacksize)<br> ^<br>openslidelib_thunk_glnxa64.c:52:30: error: expected declaration specifiers or ‘...’ before<br>string constant<br> EXPORT_EXTERN_C (visibility("default")))voidopenslide_close(openslide_t*osrThunk(void<br>
fcn(),const char *callstack,int stacksize)<br> ^<br>openslidelib_thunk_glnxa64.c:61:30: error: expected declaration specifiers or ‘...’ before<br>string constant<br> EXPORT_EXTERN_C (visibility("default")))char*openslide_get_error(openslide_t*osrThunk(void<br>
fcn(),const char *callstack,int stacksize)<br> ^<br>openslidelib_thunk_glnxa64.c:70:30: error: expected declaration specifiers or ‘...’ before<br>string constant<br> EXPORT_EXTERN_C<br> (visibility("default")))char*const*openslide_get_property_names(openslide_t*osrThunk(void<br>
fcn(),const char *callstack,int stacksize)<br> ^<br>openslidelib_thunk_glnxa64.c:79:30: error: expected declaration specifiers or ‘...’ before<br>string constant<br> EXPORT_EXTERN_C<br> (visibility("default")))char*const*openslide_get_associated_image_names(openslide_t*osrThunk(void<br>
fcn(),const char *callstack,int stacksize)<br> ^<br>openslidelib_thunk_glnxa64.c:88:30: error: expected declaration specifiers or ‘...’ before<br>string constant<br> EXPORT_EXTERN_C (visibility("default")))char*openslide_get_version(voidThunk(void<br>
fcn(),const char *callstack,int stacksize)<br> ^<br>openslidelib_thunk_glnxa64.c:97:30: error: expected declaration specifiers or ‘...’ before<br>string constant<br> EXPORT_EXTERN_C<br> (visibility("default")))__attribute__((deprecated("Use""openslide_get_level_count""instead")))int32_topenslide_get_layer_count(openslide_t*osrThunk(void<br>
fcn(),const char *callstack,int stacksize)<br> ^<br><br><br>Error in openslide_load_library (line 40)<br>loadlibrary('libopenslide-0.dll','openslide.h','alias','openslidelib')<br>
</div></div></div></div>