Message: Compilation pb with QT Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Compilation pb with QT 

Forum: Installation and Configuration
Date: 19 Dec, 2013
From: Olivier Dadoun <Olivier Dadoun>

Hello,

I am trying to install geant4 on ubuntu (gcc version 4.8.1). I have used this cmake command to generate my makefile

cmake -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_QT=ON ../geant4.10.00

When I type make I have this error:

[ 84%] Built target G4error_propagation-static
[ 84%] Building CXX object source/interfaces/CMakeFiles/G4interfaces-static.dir/basic/src/G4UIExecutive.cc.o
In file included from /usr/include/qt5/QtCore/qnamespace.h:45:0,
                 from /usr/include/qt5/QtCore/qobjectdefs.h:45,
                 from /usr/include/qt5/QtCore/qobject.h:47,
                 from /home/elkheche/HEPSofts/geant4.10.00/source/interfaces/basic/include/G4UIQt.hh:39,
                 from /home/elkheche/HEPSofts/geant4.10.00/source/interfaces/basic/src/G4UIExecutive.cc:33:
/usr/include/qt5/QtCore/qglobal.h:1079:4: error: #error "You must build your code with position independent code if Qt was built with -reduce-relocations. " "Compile your code with -fPIC or -fPIE."
 #  error "You must build your code with position independent code if Qt was built with -reduce-relocations. "\
    ^
make[2]: *** [source/interfaces/CMakeFiles/G4interfaces-static.dir/basic/src/G4UIExecutive.cc.o] Error 1
make[1]: *** [source/interfaces/CMakeFiles/G4interfaces-static.dir/all] Error 2
make: *** [all] Error 2

Do you have any idea what's going on ? By advance thank you cheers Olivier PS: I have install qt using : apt-get install qt-sdk

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

1 None: Re: Compilation pb with QT   (Olivier Dadoun - 08 Jan, 2014)
(_ None: Re: Compilation pb with QT   (Olivier Dadoun - 09 Jan, 2014)
 Add Message Add Message
to: "Compilation pb with QT"

 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 ]