Problem 1900

Summary: Unable to compile Geant4 on Debian/Ubuntu using Qt5
Product: Geant4 Reporter: Michele Renda <michele.renda>
Component: cmakeAssignee: Ben Morgan <Ben.Morgan>
Status: CLOSED INVALID    
Severity: minor    
Priority: P4    
Version: 10.2   
Hardware: All   
OS: Linux   
Attachments: patch

Description Michele Renda 2016-10-12 15:02:55 CEST
Created attachment 420 [details]
patch

I was trying to compile Geant4 in a fresh installed Debian machine without installing any Qt4 package (only Qt5 package was existing).

Unfortunately the compilation is failing because it was unable to find -lQtGui.

In Debian 8 (and Ubuntu) system, to allow the concurrent existence of Qt4 and Qt5 have renamed the:
  libQtCore.so libQtGui.so libQtWidgets.so libQtPrintSupport.so
to:
  libQt5Core.so libQt5Gui.so libQt5Widgets.so libQt5PrintSupport.so

To be able to compile Geant4 with Qt5 I created the attached patch. Unfortunately I don't think it is universally applicable because Scientific Linux may have a different naming convention (I did not check).
Comment 1 Ben Morgan 2016-10-13 13:19:45 CEST
The patch is for the GNUmake system - could you clarify whether you were trying to build Geant4 itself, or an end user application please?

Building Geant4 with GNUmake is no longer supported, and is provided now only to build applications using Geant4 (and even then for convenience).
Comment 2 Michele Renda 2016-10-17 13:39:24 CEST
Hello, sorry for late answer.
I had the possibility to double check, and indeed, it is not a problem for CMake (he guess correctly the right libraries).

Closing this issue as INVALID.

Thank you and best regards