Error in File Open dataset in monteverdi
Mantis Issue 154, reported by jturner, assigned to jmalik, created: 2010-05-07
While I was trying to try to use SVM, following Youtube-OTB, I got a strange display files/folders error in File browser (screenshot attached).
And I got the following error in Terminal: Generic Msg Debug: View: Received event InstanceCreated from module Reader0
Manuel Suggested me to do: The best way to resolve it is to: -recompile the OTB using the internal version of FLTK (cmake option OTB_USE_EXTERNAL_FLTK = OFF) -recompile Monteverdi But I get this error: I got this error: [ 0%] Building CXX object Utilities/FLTK/src/CMakeFiles/fltk.dir/filename_list.o /home/anrr/sources/OrfeoToolbox-3.2.1/Utilities/FLTK/src/filename_list.cxx: In function ‘int fl_filename_list(const char*, dirent***, int ()(dirent**, dirent**))’: /home/anrr/sources/OrfeoToolbox-3.2.1/Utilities/FLTK/src/filename_list.cxx:74: error: invalid conversion from ‘int ()(const void*, const void*)’ to ‘int ()(const dirent**, const dirent**)’ /home/anrr/sources/OrfeoToolbox-3.2.1/Utilities/FLTK/src/filename_list.cxx:74: error: initializing argument 4 of ‘int scandir(const char, dirent***, int ()(const dirent), int (*)(const dirent**, const dirent**))’ make[2]: *** [Utilities/FLTK/src/CMakeFiles/fltk.dir/filename_list.o] Error 1 make[1]: *** [Utilities/FLTK/src/CMakeFiles/fltk.dir/all] Error 2 make: *** [all] Error 2
OS: Ubuntu9.10
1273808597 - christopOn 32 bits platforms
1282125674 - julienmthe internal FLTK version compiles OK on 32 bits platform, thanks to a fix in the FLTK code, near line 74 :
#if ( defined(GLIBC) && __GLIBC_PREREQ(2, 10) ) int n = scandir(d, list, 0, (int()(const dirent **, const dirent **))sort); #else int n = scandir(d, list, 0, (int()(const void*, const void*))sort); #endif /* ( defined(GLIBC) && __GLIBC_PREREQ(2, 10) ) */