oliskir created page: usage authored by Oliver Kirsebom's avatar Oliver Kirsebom
......@@ -9,32 +9,22 @@ Follow the installation instructions from the [official GEANT4 website](http://g
## 3. Install VeikonKone
1. Install ``git``
It is most likely already installed. Run `git --version` to check. If it is not installed, run `sudo apt-get install git cmake`
1. Install ``git``. It is most likely already installed. Run `git --version` to check. If it is not installed, run `sudo apt-get install git cmake`
2. Get CMake: `sudo apt-get install cmake`
3. Add your ssh key to you gitlab profile
1. (if you already have a ssh key skip this)
`ssh-keygen -t rsa -C "<your_email>"`
2. Copy the output from
`cat ~/.ssh/id_rsa.pub`
3. Insert it here
https://git.kern.phys.au.dk/profile/keys
1. (if you already have a ssh key skip this): `ssh-keygen -t rsa -C "<your_email>"`
2. Copy the output: `cat ~/.ssh/id_rsa.pub`
3. Insert it here: https://git.kern.phys.au.dk/profile/keys
4. In the parent directory to where you want AUSAlib
`git clone git@git.kern.phys.au.dk:oliskir/VeikonKone.git`
4. Download VeikonKone: `git clone git@git.kern.phys.au.dk:oliskir/VeikonKone.git`
5. cd into the program directory
`cd VeikonKone`
5. cd into the program directory: `cd VeikonKone`
6. switch to latest stable edition
`git checkout master`
7. Open the script `docmake.sh` using your preferred editor (e.g. gedit) and modify the line
```cmake -DCMAKE_BUILD_TYPE=DEBUG -DGeant4_DIR=/home/oliskir/src/geant4/geant4.10.2-install/lib/Geant4-10.2.0 $pwd -DCMAKE_BUILD_TYPE=DEBUG``` so it reflects the actual location of your GEANT4 installation
7. Open the script `docmake.sh` using your preferred editor (e.g. gedit) and edit the line `cmake -DCMAKE_BUILD_TYPE=DEBUG -DGeant4_DIR=/home/oliskir/src/geant4/geant4.10.2-install/lib/Geant4-10.2.0 $pwd -DCMAKE_BUILD_TYPE=DEBUG` so the path is correct
7. Build a makefile by running the script: `./docmake.sh`
7. Build a makefile by running the script
`./docmake.sh`
8. Build VeikonKone
`make -jN` (where `N` is the number of cores on your computer)
\ No newline at end of file
8. Build VeikonKone: `make -jN` (where `N` is the number of cores on your computer)
\ No newline at end of file