OTB libraries are linked with Xinerama library even if Xinerama is not selected in CMake configuration
Mantis Issue 465, reported by sdinot, assigned to jmichel, created: 2012-01-07
- CMake sets Xinerama as not found when this library is not installed on the system :
$ grep -i xinerama * CMakeCache.txt:X11_Xinerama_INCLUDE_PATH:PATH=X11_Xinerama_INCLUDE_PATH-NOTFOUND CMakeCache.txt:X11_Xinerama_LIB:FILEPATH=X11_Xinerama_LIB-NOTFOUND CMakeCache.txt:X11_Xinerama_INCLUDE_PATH-ADVANCED:INTERNAL=1 CMakeCache.txt:X11_Xinerama_LIB-ADVANCED:INTERNAL=1
- But ldd tries to link Xinerama to OTB libraries even so:
$ make -j 3 [...] Linking CXX shared library ../../bin/libOTBIO.so /usr/bin/ld: cannot find -lXinerama collect2: ld returned 1 exit status make[2]: *** [bin/libOTBGui.so.3.11.0] Error 1 make[1]: *** [Code/Gui/CMakeFiles/OTBGui.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 59%] Built target OTBHyperspectral [ 61%] Built target OTBIO make: *** [all] Error 2
1429260013 - julienWe do not have a GUI library anymore. Is this still an issue ?
1447150840 - julienNo feedback and building system changed completely, so this should not be an issue anymore.