Message: OpenGL problem Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question OpenGL problem 

Forum: Installation and Configuration
Date: 25 Jul, 2014
From: <Cab>

Hello,

I have some problems installing geant4.10.00.p02 on my 64bit Linux Mint17. I think I installed all the prerequesites (OpenGL, etc). Then I run Cmake in my newly created build-directory with these options

sudo cmake -DCMAKE_INSTALL_PREFIX=/usr/local/geant4/geant4.10.00.p02-install -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_SYSTEM_EXPAT=OFF -DGEANT4_USE_OPENGL_X11=ON /usr/local/geant4/geant4.10.00.p02/

The result output is the following

-- The C compiler identification is GNU 4.8.2 
-- The CXX compiler identification is GNU 4.8.2 
-- 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 
-- 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 
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so 
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found 
-- Looking for gethostbyname 
-- Looking for gethostbyname - found 
-- Looking for connect 
-- Looking for connect - found 
-- Looking for remove 
-- Looking for remove - found 
-- Looking for shmat 
-- Looking for shmat - found 
-- Looking for IceConnectionNumber in ICE 
-- Looking for IceConnectionNumber in ICE - found 
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so 
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so  
-- Looking for sys/types.h 
-- Looking for sys/types.h - found 
-- Looking for stdint.h 
-- Looking for stdint.h - found 
-- Looking for stddef.h 
-- Looking for stddef.h - found 
-- Check size of off64_t 
-- Check size of off64_t - done 
-- Looking for fseeko 
-- Looking for fseeko - found 
-- Looking for unistd.h 
-- Looking for unistd.h - found 
-- Configuring download of missing dataset G4NDL (4.4) 
-- Configuring download of missing dataset G4EMLOW (6.35) 
-- Configuring download of missing dataset PhotonEvaporation (3.0) 
-- Configuring download of missing dataset RadioactiveDecay (4.0) 
-- Configuring download of missing dataset G4NEUTRONXS (1.4) 
-- Configuring download of missing dataset G4PII (1.3) 
-- Configuring download of missing dataset RealSurface (1.0) 
-- Configuring download of missing dataset G4SAIDDATA (1.1) 
-- Configuring download of missing dataset G4ABLA (3.0) 
-- Configuring download of missing dataset G4ENSDFSTATE (1.0) 
CMake Warning (dev) in source/processes/CMakeLists.txt: 
  Policy CMP0022 is not set: INTERFACE_LINK_LIBRARIES defines the link 
  interface.  Run "cmake --help-policy CMP0022" for policy details.  Use the 
  cmake_policy command to set the policy and suppress this warning. 

  Target "G4processes" has an INTERFACE_LINK_LIBRARIES property.  This should 
  be preferred as the source of the link interface for this library but 
  because CMP0022 is not set CMake is ignoring the property and using the 
  link implementation as the link interface instead. 

  INTERFACE_LINK_LIBRARIES: 

    G4digits_hits;G4geometry;G4global;G4intercoms;G4materials;G4particles;G4track;G4processes;G4expat;G4zlib 

  Link implementation: 

    G4digits_hits;G4geometry;G4global;G4intercoms;G4materials;G4particles;G4track;G4expat;G4zlib 

 This warning is for project developers.  Use -Wno-dev to suppress it. 

 -- The following Geant4 features are enabled: 
 GEANT4_BUILD_CXXSTD: Compiling against C++ Standard 'c++98' 
 GEANT4_USE_OPENGL_X11: Build Geant4 OpenGL driver with X11 support 

 -- Configuring done 
 -- Generating done 
 -- Build files have been written to: /usr/local/geant4/geant4.10.00.p02-build

It is similar to the installation guide output except for the Cmake Warning which I don't know what it is. After running make, the compilation takes long time in

 [  3%] [  3%] No patch step for 'G4EMLOW' 
 No update step for 'G4EMLOW' 
 [  3%] No configure step for 'G4EMLOW' 
 [  3%] No build step for 'G4EMLOW' 
 [  3%] No install step for 'G4EMLOW' 
 [  3%] Completed 'G4EMLOW' 
 [  3%] Built target G4EMLOW 
 -- [download 5% complete] 
 -- [download 6% complete] 
 ...
 to 100% 

and then, the compilation blocks after G4NDL installation with the following output

 [  3%] [  3%] No patch step for 'G4NDL' 
 No update step for 'G4NDL' 
 [  3%] No configure step for 'G4NDL' 
 [  3%] No build step for 'G4NDL' 
 [  3%] No install step for 'G4NDL' 
 [  3%] Completed 'G4NDL' 
 [  3%] Built target G4NDL 
 make: *** [all] Error 2

However, when I set -DGEANT4_USE_OPENGL_X11=OFF, the make works all the way. The output during make is somehow different (there is no long time in download of G4EMLOW). I can even run examples but without visualisation. I would really like to have visualisation with OpenGL and the only datasets I would need are RealSurfaces and not G4NDL or others. Any help would be greatly appreciated.

Thanks in advance!

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

1 None: Re: OpenGL problem   (Cab - 25 Jul, 2014)
(_ None: Re: OpenGL problem   (Cab - 25 Jul, 2014)
(_ None: Re: OpenGL problem   (garnier - 25 Jul, 2014)
 Add Message Add Message
to: "OpenGL problem"

 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 ]