Software/Geant4/Installation/Qt: Difference between revisions

From PBTWiki
Jump to navigation Jump to search
(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...")
 
No edit summary
Line 1: Line 1:
=== Qt4 ===
== Introduction ==
 
<code>Qt</code> [https://en.wikipedia.org/wiki/Qt_(software) "is a cross-platform application framework that is widely used for developing application software that can be run on various software and hardware platforms with little or no change in the underlying codebase, while still being a native application with the capabilities and speed thereof"].
 
For <code>Geant4</code>, the <code>Qt</code> headers and libraries are required in order to allow visualisation and interaction through the <code>Qt</code> user interface.
 
== Details ==


; Website : http://qt-project.org
; Website : http://qt-project.org
; Latest version : 4.8.6 (24 April 2014)
; Source URL : http://download.qt.io/official_releases/qt/5.6/5.6.0/submodules/
; Source tarball : <code>src/geant4-prerequisites/qt/qt-everywhere-opensource-src-4.8.6.tar.gz</code>
; Installed version : 5.6.0 (24 April 2014)
; Source code : <code>src/geant4-prerequisites/qt/qtbase-opensource-src-5.6.0.tar.gz</code>


Notes:
== Installation Notes ==
* <code>Qt5</code> version 5.3.1 is available but not officially supported by <code>Geant4</code>.
 
* For installation, <code>Qt4</code> does not support installation into a sandbox directory (i.e. there are no options <code>prefix</code> or <code>DESTDIR</code> defined for command <code>make install</code>). This has to be managed manually as can be seen in the installation and stow commands.
<code>Geant4</code> supports <code>Qt 4.6</code> or higher (<code>Qt 4.8</code> or higher on Mac).
* The tarball extracts to a rather long folder name. To follow the installation commands below, rename this to <code>src/qt-4.8.6</code>.
 
<code>Qt</code> is available in a number of different versions and with a vast array of submodules.  Only the "qtbase" submodule is required to compile all the elements required for <code>Geant4</code>. The various different installer and source code options can be found at: http://www.qt.io/download-open-source/
 
For installation, <code>Qt</code> does not support installation into a sandbox directory (i.e. there are no options <code>prefix</code> or <code>DESTDIR</code> defined for command <code>make install</code>) and must be given the installation directory with the <code>-prefix</code> option.  As such, to recompile <code>Qt</code> for different target directories, the <code>configure</code> script must be rerun with a modified <code>-prefix /path/to/dest</code> option. This has to be managed manually as can be seen in the installation commands below.
 
The tarball extracts to a rather long folder name. To follow the installation commands below, rename this to <code>src/qt-5.6.0</code>.
 
Some instructions on the correct package to download and the various compilation flags were provided by Ben Morgan at Warwick, along with this configuration script:
 
https://github.com/SuperNEMO-DBD/homebrew-cadfael/blob/master/Formula/qt5-base.rb
 
== Installation ==


Installation commands:
Installation commands:
Line 14: Line 32:
<pre>
<pre>
cd /unix/pbt/software/build
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
mkdir -pv qt/qt-5.6.0
cd qt/qt-5.6.0
../../../src/qt-5.6.0/configure -prefix /unix/pbt/software/dev/qt-5.6.0 -release -opensource -confirm-licence -nomake tests -nomake examples -optimized-qmake -opengl -qt-xcb
make
make
make install
make install
</pre>
Stow commands:
<pre>
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
</pre>
</pre>

Revision as of 15:48, 23 May 2016

Introduction

Qt "is a cross-platform application framework that is widely used for developing application software that can be run on various software and hardware platforms with little or no change in the underlying codebase, while still being a native application with the capabilities and speed thereof".

For Geant4, the Qt headers and libraries are required in order to allow visualisation and interaction through the Qt user interface.

Details

Website
http://qt-project.org
Source URL
http://download.qt.io/official_releases/qt/5.6/5.6.0/submodules/
Installed version
5.6.0 (24 April 2014)
Source code
src/geant4-prerequisites/qt/qtbase-opensource-src-5.6.0.tar.gz

Installation Notes

Geant4 supports Qt 4.6 or higher (Qt 4.8 or higher on Mac).

Qt is available in a number of different versions and with a vast array of submodules. Only the "qtbase" submodule is required to compile all the elements required for Geant4. The various different installer and source code options can be found at: http://www.qt.io/download-open-source/

For installation, Qt does not support installation into a sandbox directory (i.e. there are no options prefix or DESTDIR defined for command make install) and must be given the installation directory with the -prefix option. As such, to recompile Qt for different target directories, the configure script must be rerun with a modified -prefix /path/to/dest option. This has to be managed manually as can be seen in the installation commands below.

The tarball extracts to a rather long folder name. To follow the installation commands below, rename this to src/qt-5.6.0.

Some instructions on the correct package to download and the various compilation flags were provided by Ben Morgan at Warwick, along with this configuration script:

https://github.com/SuperNEMO-DBD/homebrew-cadfael/blob/master/Formula/qt5-base.rb

Installation

Installation commands:

cd /unix/pbt/software/build
mkdir -pv qt/qt-5.6.0
cd qt/qt-5.6.0
../../../src/qt-5.6.0/configure -prefix /unix/pbt/software/dev/qt-5.6.0 -release -opensource -confirm-licence -nomake tests -nomake examples -optimized-qmake -opengl -qt-xcb
make
make install