Problem 1900 - Unable to compile Geant4 on Debian/Ubuntu using Qt5
Summary: Unable to compile Geant4 on Debian/Ubuntu using Qt5
Status: CLOSED INVALID
Alias: None
Product: Geant4
Classification: Unclassified
Component: cmake (show other problems)
Version: 10.2
Hardware: All Linux
: P4 minor
Assignee: Ben Morgan
URL:
Depends on:
Blocks:
 
Reported: 2016-10-12 15:02 CEST by Michele Renda
Modified: 2016-12-09 13:24 CET (History)
0 users

See Also:


Attachments
patch (1.64 KB, text/plain)
2016-10-12 15:02 CEST, Michele Renda
Details

Note You need to log in before you can comment on or make changes to this problem.
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