... | @@ -32,6 +32,7 @@ See below the code snippet: |
... | @@ -32,6 +32,7 @@ See below the code snippet: |
|
|
|
|
|
```
|
|
```
|
|
apt install -y qtbase5-dev qtbase5-dev-tools qt5-qmake
|
|
apt install -y qtbase5-dev qtbase5-dev-tools qt5-qmake
|
|
|
|
apt install -y qttools5-dev
|
|
apt install -y libxerces-c-dev
|
|
apt install -y libxerces-c-dev
|
|
|
|
|
|
apt install -y gfortran
|
|
apt install -y gfortran
|
... | @@ -39,6 +40,7 @@ apt install -y python3-dev python3-numpy-dev |
... | @@ -39,6 +40,7 @@ apt install -y python3-dev python3-numpy-dev |
|
|
|
|
|
apt install -y libxpm-dev libxft-dev libxmu-dev
|
|
apt install -y libxpm-dev libxft-dev libxmu-dev
|
|
apt install -y libssl-dev
|
|
apt install -y libssl-dev
|
|
|
|
apt install -y qt3d5-dev qt3d5-dev-tools
|
|
|
|
|
|
apt-get install -y libpcre3-dev xlibmesa-glu-dev \
|
|
apt-get install -y libpcre3-dev xlibmesa-glu-dev \
|
|
libglew1.5-dev libftgl-dev libfftw3-dev libcfitsio-dev \
|
|
libglew1.5-dev libftgl-dev libfftw3-dev libcfitsio-dev \
|
... | @@ -54,7 +56,7 @@ sudo apt upgrade |
... | @@ -54,7 +56,7 @@ sudo apt upgrade |
|
```
|
|
```
|
|
On Ubuntu 20.04 all qt dependancies can be installed via qt-defaults package, use the `ubuntu20_deps.sh` script to install dependancies.
|
|
On Ubuntu 20.04 all qt dependancies can be installed via qt-defaults package, use the `ubuntu20_deps.sh` script to install dependancies.
|
|
|
|
|
|
## ROOT Installation TODO
|
|
## ROOT Installation
|
|
|
|
|
|
The ROOT installation is required for some exercises in this tutorial.
|
|
The ROOT installation is required for some exercises in this tutorial.
|
|
|
|
|
... | @@ -71,7 +73,7 @@ sudo chown -R `id -un`:`id -gn` /usr/local/root |
... | @@ -71,7 +73,7 @@ sudo chown -R `id -un`:`id -gn` /usr/local/root |
|
chmod +x /usr/local/root/bin/thisroot.*
|
|
chmod +x /usr/local/root/bin/thisroot.*
|
|
```
|
|
```
|
|
|
|
|
|
All installation steps are summarized in the `install-root-62208-ubuntu20.sh` script.
|
|
All installation steps are summarized in the `install-root-ubuntu22.sh` script.
|
|
|
|
|
|
ROOT is installed in _relocatable_ mode.
|
|
ROOT is installed in _relocatable_ mode.
|
|
To use ROOT, you must set its environment sourcing the *thisroot.sh* script from
|
|
To use ROOT, you must set its environment sourcing the *thisroot.sh* script from
|
... | @@ -96,15 +98,6 @@ Do not forget to install your favorite editor, e.g _Emacs_ : |
... | @@ -96,15 +98,6 @@ Do not forget to install your favorite editor, e.g _Emacs_ : |
|
|
|
|
|
`sudo apt install -y emacs`
|
|
`sudo apt install -y emacs`
|
|
|
|
|
|
You can install the precompiled version of Geant4 provided for this tutorial. You can download the tar file with precompiled Geant4 `geant4_v11.2.0.Linux-ubuntu20-x86_64-gcc9.4.tar.gz` from `cernbox.cern.ch` server. The script `install-geant4-ubuntu20.sh` can be used for downloading and installation of Geant4.
|
|
|
|
|
|
|
|
The tar file with Geant4 11.2.0 binaries for Ubuntu placed on owncloud server
|
|
|
|
https://cernbox.cern.ch/s/gxJhYs7a97CCTAw
|
|
|
|
|
|
|
|
N.B. As the Geant4 setup scripts, geant4.[c]sh and geant4-config, are not relocatable, you need to install Geant4 into `/usr/local/geant4/11.2.0` or to edit these scripts to fix the paths to the data.
|
|
|
|
|
|
|
|
If you install the precompiled version you can skip **Build Geant4** section and go directly to **Environment**.
|
|
|
|
|
|
|
|
## Build Geant4
|
|
## Build Geant4
|
|
|
|
|
|
You can download the Geant4 sources from https://geant4.web.cern.ch/support/download
|
|
You can download the Geant4 sources from https://geant4.web.cern.ch/support/download
|
... | @@ -124,8 +117,10 @@ You need to create a target directory owned by my current user: |
... | @@ -124,8 +117,10 @@ You need to create a target directory owned by my current user: |
|
`sudo mkdir -p /usr/local/geant4/11.2.0`
|
|
`sudo mkdir -p /usr/local/geant4/11.2.0`
|
|
|
|
|
|
`sudo chown -R `id -un`:`id -gn` /usr/local/geant4`
|
|
`sudo chown -R `id -un`:`id -gn` /usr/local/geant4`
|
|
|
|
```
|
|
|
|
|
|
Now you can compile and install Geant4:
|
|
Now you can compile and install Geant4:
|
|
|
|
|
|
```
|
|
```
|
|
mkdir geant4-build
|
|
mkdir geant4-build
|
|
cd geant4-build
|
|
cd geant4-build
|
... | @@ -134,6 +129,7 @@ cmake -DCMAKE_INSTALL_PREFIX=/usr/local/geant4/11.2.0 \ |
... | @@ -134,6 +129,7 @@ cmake -DCMAKE_INSTALL_PREFIX=/usr/local/geant4/11.2.0 \ |
|
-DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_GDML=ON -DGEANT4_USE_QT=ON \
|
|
-DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_GDML=ON -DGEANT4_USE_QT=ON \
|
|
-DGEANT4_USE_OPENGL_X11=ON [-DGEANT4_USE_FREETYPE=ON] ../geant4
|
|
-DGEANT4_USE_OPENGL_X11=ON [-DGEANT4_USE_FREETYPE=ON] ../geant4
|
|
```
|
|
```
|
|
|
|
|
|
The multithreading enabled by default and FREETYPE was optional component
|
|
The multithreading enabled by default and FREETYPE was optional component
|
|
|
|
|
|
```
|
|
```
|
... | | ... | |