|Message: Undefined Qt, Unexpected token "(" and hang while running example B1||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
I encountered 3 problems while installing Geant4.9.6, which I think might related to each other.
I use CMake22.214.171.124 (.dmg file binary distribution - for mac) version to build and install Geant4.9.6 (Geant4.9.6.p02.tar.gz) on Mac OSX 10.7.4. After creating build directory, I run the cmake commands within the build directory;
1) The first problem is can't find Qt4
cmake -DCMAKE_INSTALL_PREFIX=/users/abc/geant4.9.6-install -DGEANT4_USE_OPENGL_X11=ON -DGEANT4_USE_RAYTRACER_X11=ON -DQT_QMAKE_EXECUTABLE=/users/abc/qt/bin/qmake -DGEANT4_USE_QT=ON /applications/geant4.9.6
The output as followings;
-- The C compiler identification is Clang 4.2.0 -- The CXX compiler identification is Clang 4.2.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Clang version : Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn) Target: x86_64-apple-darwin11.4.0 Thread model: posix -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Found EXPAT: /usr/lib/libexpat.dylib (found version "2.0.1") CMake Error at /Applications/CMake 2.8-11.app/Contents/share/cmake-2.8/Modules/FindQt4.cmake:1382 (message): Found unsuitable Qt version "" from NOTFOUND, this code requires Qt 4.x Call Stack (most recent call first): cmake/Modules/Geant4InterfaceOptions.cmake:86 (find_package) CMakeLists.txt:84 (include)
-- Configuring incomplete, errors occurred!
I already check that CMake126.96.36.199 version uses Qt4.8.0 version.
2) Unexpected token while key in source geant4.csh
192-168-1-12:bin abc$ cd /users/abc/geant4.9.6-install/bin ; source geant4.csh -bash: /users/abc/geant4.9.6-install/bin/geant4.csh: line 24: syntax error near unexpected token `(' -bash: /users/abc/geant4.9.6-install/bin/geant4.csh: line 24: `set ARGS=($_)'
3) I also had problem with visualisation installation. Eventhough I already enable -DGEANT4_USE_OPENGL_X11 (the command as in no 1), suddenly it went hang after tried example B1. No 'Idle' word appeare to key in. (Due to error of enabling -DGEANT4_USE_QT because of Qt version is not found, then I just enabled -DGEANT4_USE_OPENGL_X11 and -DGEANT4_USE_TRAYTRACER_X11 only )
[100%] Built target exampleB1 "/Applications/CMake 2.8-11.app/Contents/bin/cmake" -E cmake_progress_start /Users/abc/B1-build/CMakeFiles 0 Kais-MacBook-Pro:B1-build abc$ ls CMakeCache.txt exampleB1 init_vis.mac CMakeFiles exampleB1.in run1.mac Makefile exampleB1.out run2.mac cmake_install.cmake init.mac vis.mac Kais-MacBook-Pro:B1-build abc$ ./exampleB1
************************************************************* Geant4 version Name: geant4-09-06-patch-02 (17-May-2013) Copyright : Geant4 Collaboration Reference : NIM A 506 (2003), 250-303 WWW : http://cern.ch/geant4 *************************************************************
<<< Reference Physics List QBBC Checking overlaps for volume Envelope ... OK! Checking overlaps for volume Shape1 ... OK! Checking overlaps for volume Shape2 ... OK! WARNING: G4QInelastic is deprecated and will be removed in GEANT4 version 10.0. ### Adding tracking cuts for neutron TimeCut(ns)= 10000 KinEnergyCut(MeV)= 0 Visualization Manager instantiating with verbosity "warnings (3)"... Visualization Manager initialising... Registering graphics systems...
You have successfully registered the following graphics systems. Current available graphics systems are: ASCIITree (ATree) DAWNFILE (DAWNFILE) G4HepRep (HepRepXML) G4HepRepFile (HepRepFile) OpenGLImmediateX (OGLI, OGLIX) OpenGLStoredX (OGL, OGLS, OGLSX) RayTracer (RayTracer) RayTracerX (RayTracerX) VRML1FILE (VRML1FILE) VRML2FILE (VRML2FILE) gMocrenFile (gMocrenFile)
Registering model factories...
You have successfully registered the following model factories. Registered model factories: generic drawByCharge drawByParticleID drawByOriginVolume drawByAttribute
Registered filter factories: chargeFilter particleFilter originVolumeFilter attributeFilter
You have successfully registered the following user vis actions. Run Duration User Vis Actions: none End of Event User Vis Actions: none End of Run User Vis Actions: none
Some /vis commands (optionally) take a string to specify colour. Available colours: black, blue, brown, cyan, gray, green, grey, magenta, red, white, yellow
Available UI session types: [ GAG, tcsh, csh ] /control/saveHistory /run/verbose 2
# # 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 600x600-0+0 /vis/sceneHandler/create OGL /vis/viewer/create ! ! 600x600-0+0
Thanks in advanced
|Inline Depth:||Outline Depth:||Add message:|