Software/Geant4/Installation/Qt

From PBTWiki
Revision as of 14:41, 23 May 2016 by SimonJolly (talk | contribs) (Created page with "=== Qt4 === ; Website : http://qt-project.org ; Latest version : 4.8.6 (24 April 2014) ; Source tarball : <code>src/geant4-prerequisites/qt/qt-everywhere-opensource-src-4.8.6.ta...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Qt4

Website
http://qt-project.org
Latest version
4.8.6 (24 April 2014)
Source tarball
src/geant4-prerequisites/qt/qt-everywhere-opensource-src-4.8.6.tar.gz

Notes:

  • Qt5 version 5.3.1 is available but not officially supported by Geant4.
  • For installation, Qt4 does not support installation into a sandbox directory (i.e. there are no options prefix or DESTDIR defined for command make install). This has to be managed manually as can be seen in the installation and stow commands.
  • The tarball extracts to a rather long folder name. To follow the installation commands below, rename this to src/qt-4.8.6.

Installation commands:

cd /unix/pbt/software/build
../src/qt-4.8.6/configure -prefix /unix/pbt/software/dev -prefix-install -docdir /unix/pbt/software/dev/share/doc/qt4 -plugindir /unix/pbt/software/dev/share/qt-4.8.6/plugins -importdir /unix/pbt/software/dev/share/qt-4.8.6/imports -datadir /unix/pbt/software/dev/share/qt-4.8.6/data -translationdir /unix/pbt/software/dev/share/qt-4.8.6/translations -examplesdir /unix/pbt/software/dev/share/qt-4.8.6/examples -demosdir /unix/pbt/software/dev/share/qt-4.8.6/demos -release -opensource -optimized-qmake -opengl
make
make install

Stow commands:

cd /unix/pbt/software/dev
mkdir -p stow/qt-4.8.6/bin
mv bin/assistant bin/designer bin/lconvert bin/linguist bin/lrelease bin/lupdate bin/moc bin/pixeltool bin/q* bin/rcc bin/uic* bin/xml* stow/qt-4.8.6/bin/
mv include stow/qt-4.8.6/
mkdir -p stow/qt-4.8.6/lib
mv lib/libQt* lib/pkgconfig stow/qt-4.8.6/lib/
mkdir -p stow/qt-4.8.6/share/doc
mv share/doc/qt4 stow/qt-4.8.6/share/doc/
mv share/qt-4.8.6 stow/qt-4.8.6/share/
mv tests stow/qt-4.8.6/share/
cd /unix/pbt/software/dev/stow
stow qt-4.8.6