Undeclared identifier 'TEveManager'

Dear Experts,
I’m trying to run tutorials/eve/geom_atlas.C. I’ve root-6.16.00.

I get this error:
/home/testa/root_v6/root-6.16.00/tutorials/eve/geom_atlas.C:12:4: error: use of undeclared identifier ‘TEveManager’
TEveManager::Create();

Best regards, Marianna.

Hi Marianna,

the tutorial doesn’t include any headers, so it’s not possible to compile it. I assume you ran it like

root [...]/geom_atlas.C+

Try removing the “+” to run it in interpreted mode.

Hi Stephan,
I run it in interpreted mode.

root [0] .x geom_atlas.C
In file included from input_line_10:1:
/home/testa/root_v6/root-6.16.00/tutorials/eve/geom_atlas.C:12:4: error: use of undeclared identifier ‘TEveManager’
TEveManager::Create();
/home/testa/root_v6/root-6.16.00/tutorials/eve/geom_atlas.C:15:4: error: use of undeclared identifier ‘gGeoManager’
gGeoManager = gEve->GetGeometry(“http://root.cern.ch/files/atlas.root”);
/home/testa/root_v6/root-6.16.00/tutorials/eve/geom_atlas.C:15:18: error: use of undeclared identifier ‘gEve’

Ok. Apparently, 3D graphics are missing. I will invite @couet and @bellenot to help with this.

What might help is if you answer these two questions:

  • Did you compile root yourself?
  • What configuration did you use when you configured it?

@matevz can also help as it is TEve related.

Did you compile root yourself?

yes
What configuration did you use when you configured it?
I did not set any configuration, I just compiled:
mkdir obj; cd obj; cmake …; make -j 4"
and
source /root/bin/thisroot.csh

I’d guess you’re missing opengl development libraries (on rh mesa-libGLU-devel. not sure what it’s called on Debian/Ubuntu, maybe just devel -> dev?). Without those eve is not built, either.

Do you see opengl listed in your features?

matevz@black ~> root-config --features
asimage astiff builtin_afterimage builtin_clang builtin_davix builtin_ftgl builtin_gl2ps builtin_glew builtin_llvm builtin_lz4 builtin_vdt builtin_xxhash clad cling davix exceptions explicitlink gdml http imt mathmore opengl pch python roofit root7 shared ssl thread tmva vdt x11 xft xml xrootd

You will also see this list after you run cmake.

Cheers,
Matevz

HI,
I don’t have opengl libraries:
root-config --features
asimage astiff builtin_afterimage builtin_clang builtin_freetype builtin_ftgl builtin_glew builtin_llvm builtin_lz4 builtin_lzma builtin_openssl builtin_pcre builtin_tbb builtin_xxhash clad cling cxx11 exceptions explicitlink gdml http imt pch python roofit shared ssl thread tmva vdt x11 xft xrootd

How could I install them