Question
Asked 5th Nov, 2013

GEANT4 visualisation problem - can you help?

I am running Geant4.9.6 on MAC OS X 10.6.8. When I try to use OpenGL I receive the following error message:
/vis/open OGL
parameter value is not listed in the candidate List.
Parameter is out of candidate list (index 0)
Candidates : ATree DAWNFILE HepRepXML HepRepFile RayTracer VRML1FILE VRML2FILE gMocrenFile
Instead, I tried using HepRep format as suggested in the list. However, this time, HepRApp (visualisation tool for HepRep format) does not like the data file with HepRep extension created by geant4.9.6 example B1.
Any ideas about possible things that might be going wrong?

Most recent answer

Issam Mouhti
Ibn Zohr University - Agadir
Ok. Thank you Ashok Tiwari.

Popular answers (1)

Oliver Diaz
University of Barcelona
Hi Oznur,
I remember I had a similar issue. Ccmake automatically looked for the Qt drivers, but for some reason it was looking at the wrong path, so I had to change the path manually.
I am afraid I don't have the Mac PC with me at the moment and I can't remember the exact path. In case it helps, in my Ubuntu pc the path is /usr/local/Trolltech/Qt-4.8.5/
I also found the following link which might help: http://geant4.in2p3.fr/spip.php?article84&lang=en
Oliver
3 Recommendations

All Answers (13)

Syed Bilal Ahmad
Sunnybrook Health Sciences Centre
Hi there,
I don't know much about the MAC OS however I know sometimes the HepRApp browser creates problems when you don't have a proper version of java run time environment installed in your system. I my system the Hep files doesn't open when I use JAVA 7 but there is no problem opening them with Sun Java. Try installing sun java I hope you would at-least be able to see the *.heprep files.
1 Recommendation
Öznur Apsimon
The University of Manchester
Hey,
thank you very much! I will try this today and let you know if this was the cause.
Cheers, O.
Oliver Diaz
University of Barcelona
Dear Öznur, I recently install Geant4.9.6 in two MAC computers.
In my case I used the Qt drivers for visualisation without problems. I would suggest you to use ccmake when installing Geant4, so you can set the different options for visualisation more easily.
1 Recommendation
Öznur Apsimon
The University of Manchester
Hi Oliver,
I found out that I have a Qt version 7.7 and during the build I receive an error complaining about the Qt version. It requires Gt.4.x. What do you think? Is it risky to try and downgrade my Qt version?
----
Sorry correcting myself; I think it is not a versioning problem. It can not find where the Qt executable is located. I will set it by hand but I can not find it either :)
Any ideas about where Qt executable is located on Mac OS?
Cheers,
Oznur
2 Recommendations
Oliver Diaz
University of Barcelona
Hi Oznur,
I remember I had a similar issue. Ccmake automatically looked for the Qt drivers, but for some reason it was looking at the wrong path, so I had to change the path manually.
I am afraid I don't have the Mac PC with me at the moment and I can't remember the exact path. In case it helps, in my Ubuntu pc the path is /usr/local/Trolltech/Qt-4.8.5/
I also found the following link which might help: http://geant4.in2p3.fr/spip.php?article84&lang=en
Oliver
3 Recommendations
Öznur Apsimon
The University of Manchester
Thank you Oliver, I think I am nearly managing it manually, too. Finally I saw the light in the end of the tunnel...
Cheers, Oznur
Oliver Diaz
University of Barcelona
Excellent!
Good luck with the rest of the installation ;-)
Öznur Apsimon
The University of Manchester
Hello again,
Now I think I have everything installed properly. But the problem is QT is not defined in the candidates list and I am receiving the following error message. I can not make geant4 give up using OGL. Any help will be highly appreciated...
****************************************************************************************************************
# Visualization setting
/control/execute vis.mac
# Macro file for the visualization setting in the initialization phase
# of the B1 example when running in interactive mode
#
# Use these open statements to open selected visualization
#
# Use this open statement to create an OpenGL view:
/vis/open OGL
parameter value is not listed in the candidate List.
***** Illegal parameter (0) </vis/open OGL> *****
***** Batch is interrupted!! *****
****************************************************************************************************************
Cheers,
Oznur
Syed Bilal Ahmad
Sunnybrook Health Sciences Centre
Dear Oznur,
QT also uses openGL for visualization. Try adding this line in the main.cc file of your application.
#ifdef G4UI_USE
G4UIExecutive * ui = new G4UIExecutive(argc,argv, "qt");
(I hope this line would already be there all you have to do is add "qt" at the end).
if qt is installed correctly then it should run as soon as you execute the program.
I would also recommend checking whether you actually turned the visualization on during the Geant4 installation process.
Also could you tell me the HepRApp browser worked after sun java installation.
Cheers
Dr. Bilal
Veli Capali
T.C. Süleyman Demirel Üniversitesi
Geant4 visual library is not installed on my mac. I'm using g4view for visualization. You can download g4viev from the app store. 
Issam Mouhti
Ibn Zohr University - Agadir
Hello,
I am running Geant4.10.04.p01 on LINUX 16 When I try to use OpenGL I receive the following error message:
[
parameter value (OGL) is not listed in the candidate List.
Candidates are: ATree DAWNFILE HepRepFile HepRepXML RayTracer VRML1FILE VRML2FILE gMocrenFile
]
do you have an idea to solve this problem?
Ashok Tiwari
@ Indiana University School of Medicine
Hello Issam,
Hope you already solved your problem. If not, then you can recompile Geant4 from the scratch.
I have faced the similar situation and solved it easily by recompiling it again. During recompilation you may want to turn on openGL, Qt, RayTracer etc. (based on your needs), but you have to install these visualization applications before.
Ashok
1 Recommendation
Issam Mouhti
Ibn Zohr University - Agadir
Ok. Thank you Ashok Tiwari.

Similar questions and discussions

Related Publications

Chapter
Log BasicsAdjusting syslogd BehaviorFinding LogsUnderstanding the Console and System LogsLooking for Useful InformationSummary
Chapter
If you’ve administered UNIX or Linux systems in the past, or if you’re making a living doing that now, you’ll find many similarities between the administrative tools on those computers and those included with Mac OS X. The lineup is not a perfect match, but it’s close enough in many cases. Apple has made some modifications to Mac OS X tools for its...
Chapter
How Keychains WorkWhat Keychains Can StoreUnderstanding Keychain AlertsSafari and the KeychainUsing Keychain AccessSummary
Got a technical question?
Get high-quality answers from experts.