Error message when boost is not found is confusing
Mantis Issue 1086, reported by mgrizonnet, assigned to gpasero, created: 2015-10-20
Trying to compile OTB from source, I found the message when boost header files are not found a little bit confusing.
Cmake is unable to find Boost libraries (which was true in my case as boost development package was not installed), but after that there is a message saying that boost version is 0.0.0 which is too old (lower thant 1.35)
CMake Error at /usr/share/cmake/Modules/FindBoost.cmake:1247 (message): Unable to find the requested Boost libraries.
Boost version: 0.0.0
Boost include path: /usr/include
Detected version of Boost is too old. Requested version was 1.35 (or newer). Call Stack (most recent call first): Modules/ThirdParty/Boost/otb-module-init.cmake:3 (find_package) CMake/OTBModuleEnablement.cmake:356 (include) CMakeLists.txt:309 (include)
1446733370 - gpaseroWhen I set a wrong Boost_DIR, I get the following error :
CMake Error at /usr/share/cmake-2.8/Modules/FindBoost.cmake:1131 (message): Unable to find the requested Boost libraries.
Unable to find the Boost header files. Please set BOOST_ROOT to the root directory containing Boost or BOOST_INCLUDEDIR to the directory containing Boost's headers. Call Stack (most recent call first): Modules/ThirdParty/Boost/otb-module-init.cmake:3 (find_package) CMake/OTBModuleEnablement.cmake:356 (include) CMakeLists.txt:310 (include)
I am using CMake 2.8.12 . Which version of CMake did you use ? Did you had a Boost header in /usr/include ? It is more a CMake issue, I don't know if actions must be done on OTB side.
1446794207 - grizonnetmIndeed boost headers were not yet installed on my system.
I found the cmake error regarding the version found and the detected version confusing in this case.
It is not so important and if it is more a CMake issue not much