Opened 4 years ago
Closed 12 months ago
#60866 closed enhancement (wontfix)
ROOTSYS in root6
Reported by: | yszhang95 | Owned by: | yszhang95 |
---|---|---|---|
Priority: | Low | Milestone: | |
Component: | ports | Version: | 2.6.2 |
Keywords: | Cc: | mojca (Mojca Miklavec) | |
Port: | root6 |
Description
I want to integrate ROOT with external packages. Packages can be found https://gitlab.cern.ch/cburgard/RooFitExtensions I have the following errors
By not providing "FindROOT.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "ROOT", but CMake did not find one. Could not find a package configuration file provided by "ROOT" with any of the following names: ROOTConfig.cmake root-config.cmake Add the installation prefix of "ROOT" to CMAKE_PREFIX_PATH or set "ROOT_DIR" to a directory containing one of the above files. If "ROOT" provides a separate development package or SDK, be sure it has been installed.
I checked the link https://root-forum.cern.ch/t/integrating-root-using-cmake/20195/3 I suppose the errors are from system cannot find ROOTSYS. I searched a bit and did not find any solutions in MacPorts. Could the maintainer have a look?
Best regards
Change History (3)
comment:1 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | mojca added |
---|---|
Owner: | set to cjones051073 |
Status: | new → assigned |
comment:2 Changed 12 months ago by yszhang95
Owner: | changed from cjones051073 to yszhang95 |
---|
comment:3 Changed 12 months ago by cjones051073 (Chris Jones)
Resolution: | → wontfix |
---|---|
Status: | assigned → closed |
The macPorts root installation indeed is designed to not rely on ROOTSYS being set. If you need this you are expected to set it yourself by hand.
Note: See
TracTickets for help on using
tickets.
I finally found the solution. This is nothing to do with MacPorts.
One should do either
source /opt/local/libexec/root6/bin/thisroot.sh
orcmake -DROOT_DIR=/opt/local/libexec/root6/share/root/cmake