Message: Re: repost: GDML on LINUX Machine Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: repost: GDML on LINUX Machine 

Forum: Persistency
Re: None repost: GDML on LINUX Machine (Alex Leatherland)
Date: 12 Dec, 2012
From: Daren Sawkey <Daren Sawkey>

> When trying to run the examples G01, G02, etc; After running cmake the
> make command does not actually build the program as it would for a

Try changing the CMakeLists.txt to the one in 9.6, or the one below works.
I see the same problem as you with version 9.5.patch1 on Scientific Linux.

I don't understand the run-time problem, given that the code doesn't compile
for you.

  --  Daren.

cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
set(name load_gdml)
project(${name})

option(WITH_GEANT4_UIVIS "Build example with Geant4 UI and Vis drivers" ON)
if(WITH_GEANT4_UIVIS)
  find_package(Geant4 REQUIRED ui_all vis_all)
else()
  find_package(Geant4 REQUIRED)
endif()

include(${Geant4_USE_FILE})
include_directories(${PROJECT_SOURCE_DIR}/include)

file(GLOB sources ${PROJECT_SOURCE_DIR}/src/*.cc)
file(GLOB headers ${PROJECT_SOURCE_DIR}/include/*.hh)

add_executable(${name} ${name}.cc ${sources} ${headers})
target_link_libraries(${name} ${Geant4_LIBRARIES})

 Add Message Add Message
to: "Re: repost: GDML on LINUX Machine"

 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 ]