lobis
November 26, 2021, 12:58am
1
What is the correct way to initialize a TEveManager
in a standalone application?
Currently I am trying
#include <TApplication.h>
#include <TEveManager.h>
int main(int argc, char** argv) {
TApplication app("App", &argc, argv);
TEveManager::Create();
app.Run();
return 0;
}
But I get the following error:
terminate called after throwing an instance of 'TEveException'
what(): TEveManager::Create ROOT is running in batch mode.
How can I run a TEve application in a standalone program?
Thanks!
matevz
November 30, 2021, 8:20pm
3
This should really work, have you linked in the graphics libs, eg, stuff returned by root-config --evelibs
?
Maybe calling app.InitializeGraphics()
could help.
If all this doesn’t help, are you able to open other GUI / histograms from that session? Is it a remote one?
Cheers,
Matevz
lobis
November 30, 2021, 9:38pm
4
Thanks, I am not sure what was happening but now it works. It was wierd because the graphics window from TGeoManager was working while this wasn’t. Probably some silly mistake on my part.
Thanks.
system
Closed
December 14, 2021, 9:38pm
5
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.