Message: Undefined Qt, Unexpected token "(" and hang while running example B1 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Undefined Qt, Unexpected token "(" and hang while running example B1 

Forum: Installation and Configuration
Date: 24 Jun, 2013
From: fatin hamimi mustafa <fatin hamimi mustafa>

Hi,

I encountered 3 problems while installing Geant4.9.6, which I think might related to each other.

I use CMake2.8.11.1 (.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 CMake2.8.11.1 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:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Undefined Qt, Unexpected token   (John Allison - 25 Jun, 2013)
2 Note: Re: Undefined Qt, Unexpected token   (Ben Morgan - 28 Jun, 2013)
1 Ok: Re: Undefined Qt, Unexpected token   (fatin hamimi mustafa - 29 Jun, 2013)
 Add Message Add Message
to: "Undefined Qt, Unexpected token "(" and hang while running example B1"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]