Message: How to compile examples with cmake and Qt support? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question How to compile examples with cmake and Qt support? 

Forum: (Graphical) User Interfaces
Date: 14 Jul, 2011
From: Mojca Miklavec <Mojca Miklavec>

I tried to follow instructions in INSTALL.g4cmake to make examples (example N02 in particular) run with Qt.

I tried to create the following CMakeLists.txt:

cmake_minimum_required(VERSION 2.6.4 FATAL_ERROR)
project(exampleN02)

find_package(Geant4 REQUIRED COMPONENTS qt)
include(${Geant4_USE_FILE})

GEANT4_COLLATE_APPLICATION_SOURCES(EXAMPLEN02_SOURCES)

add_executable(exampleN02 ${EXAMPLEN02_SOURCES})
target_link_libraries(exampleN02 ${Geant4_LIBRARIES})

it compiles fine and runs, but I don't get any Qt interface. It just prints out some initalizations and quits. What am I missing?

Thank you,
   Mojca

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

1 Feedback: Re: How to compile examples with cmake and Qt support?   (Ben Morgan - 17 Jul, 2011)
(_ Ok: Re: How to compile examples with cmake and Qt support?   (Mojca Miklavec - 18 Jul, 2011)
 Add Message Add Message
to: "How to compile examples with cmake and Qt support?"

 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 ]