Message: Ubuntu 12.04 64bit problems Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Sad Ubuntu 12.04 64bit problems 

Forum: Installation and Configuration
Date: 07 Feb, 2013
From: <matt_b>

Hi,

I am trying to get geant4.9.6 installed on Ubuntu 12.04 64bit, but OpenGL is causing some headaches:

1) If it set -DGEANT4_USE_INVENTOR=ON then I seem to end up in a conflict between motif and OpenGL.  With inventor-dev on (which then needs lesstif2-dev), I run make and get told there is no libxml.so.  Thats fine, so I put on libmotif-dev, and it removes inventor-dev and then I run make and it tells me it can't find inventor0.so.

ok, so give up on using Inventor, I think Qt should be good enough for what I need to do so...

2) When setting -DGEANT4_USE_QT=ON -DGEANT4_USE_INVENTOR=OFF, I type

make -j2

I it errors, ok, so I just run

make G4OpenGL VERBOSE=1 and I get the following at 100%

It gets through to 100% and I then get the following error:

[100%] Building CXX object source/visualization/OpenGL/CMakeFiles/G4OpenGL.dir/src/G4OpenGLViewer.cc.o
cd /home/balmerm/Geant/geant4.9.6/source/visualization/OpenGL && /usr/bin/c++   -DG4OpenGL_EXPORTS -DG4_STORE_TRAJECTORY -DG4VERBOSE -DG4VIS_BUILD_OPENGL_DRIVER -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DG4VIS_BUILD_OPENGLQT_DRIVER -DG4INTY_BUILD_QT -DG4UI_BUILD_QT_SESSION -DQT_NO_DEBUG -W -Wall -pedantic -Wno-non-virtual-dtor -Wno-long-long -Wwrite-strings -Wpointer-arith -Woverloaded-virtual -pipe -std=c++98 -O2 -DNDEBUG -fPIC -I/home/balmerm/Geant/geant4.9.6/geant4.9.6-build/source/externals/clhep/include -I/home/balmerm/Geant/geant4.9.6/geant4.9.6-build/source/digits_hits/hits/include -I/home/balmerm/Geant/geant4.9.6/geant4.9.6-build/source/geometry/management/include -I/home/balmerm/Geant/geant4.9.6/geant4.9.6-build/source/geometry/solids/CSG/include -I/home/balmerm/Geant/geant4.9.6/geant4.9.6-build/source/geometry/solids/specific/include -I/home/balmerm/Geant/geant4.9.6/geant4.9.6-build/source/global/HEPGeometry/include -I/home/balmerm/Geant/geant4.9.6/geant4.9.6-build/source/global/management/include -I/home/balmerm/Geant/geant4.9.6/geant4.9.6-build/source/graphics_reps/include -I/home/balmerm/Geant/geant4.9.6/geant4.9.6-build/source/intercoms/include -I/home/balmerm/Geant/geant4.9.6/geant4.9.6-build/source/interfaces/basic/include -I/home/balmerm/Geant/geant4.9.6/geant4.9.6-build/source/interfaces/common/include -I/home/balmerm/Geant/geant4.9.6/geant4.9.6-build/source/tracking/include -I/home/balmerm/Geant/geant4.9.6/geant4.9.6-build/source/visualization/externals/gl2ps/include -I/home/balmerm/Geant/geant4.9.6/geant4.9.6-build/source/visualization/management/include -I/home/balmerm/Geant/geant4.9.6/geant4.9.6-build/source/visualization/modeling/include -I/usr/include/qt4 -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/home/balmerm/Geant/geant4.9.6/geant4.9.6-build/source/visualization/OpenGL/include    -o CMakeFiles/G4OpenGL.dir/src/G4OpenGLViewer.cc.o -c /home/balmerm/Geant/geant4.9.6/geant4.9.6-build/source/visualization/OpenGL/src/G4OpenGLViewer.cc
/home/balmerm/Geant/geant4.9.6/geant4.9.6-build/source/visualization/OpenGL/src/G4OpenGLViewer.cc: In member function ‘virtual void G4OpenGLViewer::SetView()’:
/home/balmerm/Geant/geant4.9.6/geant4.9.6-build/source/visualization/OpenGL/src/G4OpenGLViewer.cc:297:47: error: ‘gluLookAt’ was not declared in this scope
/home/balmerm/Geant/geant4.9.6/geant4.9.6-build/source/visualization/OpenGL/src/G4OpenGLViewer.cc: In member function ‘void G4OpenGLViewer::Pick(GLdouble, GLdouble)’:
/home/balmerm/Geant/geant4.9.6/geant4.9.6-build/source/visualization/OpenGL/src/G4OpenGLViewer.cc:428:53: error: ‘gluPickMatrix’ was not declared in this scope
/home/balmerm/Geant/geant4.9.6/geant4.9.6-build/source/externals/clhep/include/CLHEP/Units/PhysicalConstants.h: At global scope:
/home/balmerm/Geant/geant4.9.6/geant4.9.6-build/source/externals/clhep/include/CLHEP/Units/PhysicalConstants.h:79:21: warning: ‘CLHEP::electron_charge’ defined but not used [-Wunused-variable]
make[3]: *** [source/visualization/OpenGL/CMakeFiles/G4OpenGL.dir/src/G4OpenGLViewer.cc.o] Error 1
make[3]: Leaving directory `/home/balmerm/Geant/geant4.9.6'
make[2]: *** [source/visualization/OpenGL/CMakeFiles/G4OpenGL.dir/all] Error 2
make[2]: Leaving directory `/home/balmerm/Geant/geant4.9.6'
make[1]: *** [source/visualization/OpenGL/CMakeFiles/G4OpenGL.dir/rule] Error 2
make[1]: Leaving directory `/home/balmerm/Geant/geant4.9.6'
make: *** [G4OpenGL] Error 2


If I set -DGEANT4_USE_QT=OFF, then I get through to the end ok and it is happy.

I think I am not alone in this problem:

http://hypernews.slac.stanford.edu/HyperNews/geant4/get/installconfig/1441/1/1/1.html

Any help would be very much appreciated as I am pretty much stuck now.

Matt.

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Feedback: Re: Ubuntu 12.04 64bit problems   (Ben Morgan - 07 Feb, 2013)
(_ None: Re: Ubuntu 12.04 64bit problems   (matt_b - 11 Feb, 2013)
(_ Ok: Re: Ubuntu 12.04 64bit problems   (matt_b - 13 Feb, 2013)
(_ Ok: Re: Ubuntu 12.04 64bit problems   (Pierre Gorel - 29 Aug, 2013)
 Add Message Add Message
to: "Ubuntu 12.04 64bit problems"

 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 ]