I have been trying to compile castor with ROOT but I keep running into this error with C++ standard mismatch. I have already tried to force castor to be compiled with C++ 17 by setting the cmake flag CXX_FLAGS, but it still doesn’t solve the problem. Has anyone figured out how to successfully install castor with ROOT? Any insight would be greatly appreciated!!
P.S. here is the error I am getting:
/home/rwk0525/softwares/root_install/include/TVirtualPad.h:69:24: note: deduced return type only available with -std=c++14 or -std=gnu++14 In file included from /home/rwk0525/xinran-experiments/OneDrive_1_7-2-2024/castor_v2.1/include/management/gDataConversionUtilities.hh:51, from /home/rwk0525/xinran-experiments/OneDrive_1_7-2-2024/castor_v2.1/src/management/gDataConversionUtilities.cc:32: /home/rwk0525/softwares/root_install/include/TFile.h:332:45: error: ‘std::string_view’ has not been declared static Bool_t SetCacheFileDir(std::string_view cacheDir, Bool_t operateDisconnected = kTRUE, ^~~~~~~~~~~ [ 51%] Building CXX object CMakeFiles/castor-recon.dir/src/image/vDeformation.cc.o [ 52%] Building CXX object CMakeFiles/castor-recon.dir/src/image/vImageConvolver.cc.o make[2]: *** [CMakeFiles/castor-datafileExplorer.dir/build.make:594: CMakeFiles/castor-datafileExplorer.dir/src/management/gDataConversionUtilities.cc.o] Error 1 make[2]: *** Waiting for unfinished jobs… [ 52%] Building CXX object CMakeFiles/castor-recon.dir/src/image/vImageProcessingModule.cc.o make[1]: *** [CMakeFiles/Makefile2:139: CMakeFiles/castor-scannerLUTExplorer.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs…