REve on standalone application with CMAKE

Dear all,

I’m trying to create a standalone application with REve by means of CMAKE. When building the application I get the following error:

undefined reference to `ROOT::Experimental::REveManager::Create()'

I am adding all the required headers to the code, and tried adding all libraries in CMake to make sure I wasn’t missing anything, but the error persists:

ROOT::Core ROOT::Imt ROOT::RIO
ROOT::Net ROOT::Hist ROOT::Graf ROOT::Graf3d
ROOT::Gpad ROOT::ROOTVecOps ROOT::Tree
ROOT::TreePlayer ROOT::Rint ROOT::Postscript
ROOT::Matrix ROOT::Physics ROOT::MathCore
ROOT::Thread ROOT::MultiProc ROOT::ROOTDataFrame

I have no errors if I run e.g. even_demo.C from the tutorials.

I’m using a conda environment for running the code, and I’m not sure if it’s built with the root7 option. I’d guess it does since I can run the examples.

I’m sure I’m missing something simple in the setup, but I just cannot find the source of the problem. Any help would be greatly appreciated.

ROOT Version: 6.32 (from conda environment)
Platform: Not Provided
Compiler: Not Provided


Hi,

Try to add ROOT::ROOTEve to list of linked libraries.

Regards,
Sergey

1 Like

@linev many thanks! It works now.

Funny that I don’t see it when running root-config --libs

Thank you again.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.