/Users/vanoel/snoplus/snoing/root-5.34.36/math/mathmore/src/GSLFunctionWrapper.h:34:10: fatal error: 'gsl/gsl_math.h' file not found
#include "gsl/gsl_math.h"
I most definitely don’t have gsl-config, but I do have the gsl libraries installed in a typical location. Also, if the PATH is also not set correctly then I doubt that CMake will find this app and it is not cleared that @lawlieto even installed it for that matter.
EDIT: I thought we were disucssing ROOT 6 here. The following may not apply to ROOT 5.34.36
There should be a message if GSL wasn’t found. @lawlieto I think it would be useful if you posted your CMakeCache.txt and the full output of CMake.
Here is the check for GSL from cmake/modules/SearchInstalledSoftware.cmake (ROOT 6.10.04):
if(mathmore OR builtin_gsl)
message(STATUS "Looking for GSL")
if(NOT builtin_gsl)
find_package(GSL 1.10)
if(NOT GSL_FOUND)
if(fail-on-missing)
message(FATAL_ERROR "GSL package not found and 'mathmore' component if required ('fail-on-missing' enabled). "
"Alternatively, you can enable the option 'builtin_gsl' to build the GSL libraries internally.")
else()
message(STATUS "GSL not found. Set variable GSL_DIR to point to your GSL installation")
message(STATUS " Alternatively, you can also enable the option 'builtin_gsl' to build the GSL libraries internally'")
message(STATUS " For the time being switching OFF 'mathmore' option")
set(mathmore OFF CACHE BOOL "" FORCE)
endif()
endif()
else()
...
The build dir was contained within the src dir, after deleting the src directory and unpacking again, and building out of directory the same error occured
/Users/vanoel/snoplus/snoing/install/gsl-1.16/bin/gsl-config exists and returns the correct paths
I’ve also tried specifying -DGSL_DIR with the gsl installation, the same error occurs
CMAKE doesn’t report an error after looking for GSL
-- Looking for GSL
-- Found GSL: /usr/local/include (found suitable version "1.16", minimum required is "1.10")
Using the builtin gsl for now and that works. Full log of failed build attached below: