OTB cmake configuration warns for a gdal/geotiff conflict but I can open tiff file
Mantis Issue 512, reported by mgrizonnet, assigned to ghost, created: 2012-02-06
I use the gdal packaged by the OTB team available on the ppa : https://launchpad.net/~otb/+archive/orfeotoolbox-stable-ubuntugis
and I get the warning message during the cmake configuration of OTB about the TIFF conflict.
I saw the same behaviour I think with the gdal package available on thze ubuntugis-unstable ppa.
CMake Warning at CMake/ImportGdal.cmake:208 (MESSAGE): CHECK_XTIFFOPEN_SYMBOL test failed : your platform exhibits a gdal/geotiff conflict. Opening a TIF file may generate a crash. This is most probably because the gdal library you configuredembeds its own version of libgeotiff and is ABI incompatible with the system libgeotiff
You might consider building GDAL yourself without using --with-hide-internal-symbolsand pointing GEOTIFF_INCLUDE_DIRS to the geotiff headers included in gdal sources Call Stack (most recent call first): CMakeLists.txt:218 (INCLUDE)
1328522260 - julienmThis is ok.
We manage the link order for executables so that they can open a tiff. But this is still unsafe : build and the qgis plugins, you will get a crash when accessing a TIFF.
"Opening a TIF file may generate a crash" : as long as you're lucky, no pb. if you get a crash, you had been warned ;)
Still, we should update the warning message, and encourage to use gdal 1.9 with --with-rename-internal-libtiff-symbols=yes (cf http://wiki.orfeo-toolbox.org/index.php/Quantum_GIS_access_to_OTB_applications), and forget about the geotiff/tiff headers trick.