Skip to content

Commit

Permalink
After Ubuntu 16.10 version,
Browse files Browse the repository at this point in the history
create-app modified
pro file modified
  • Loading branch information
deepaksamuel committed Apr 21, 2020
1 parent 39171cb commit 1f01dca
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 1 deletion.
15 changes: 15 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
Latest update:
Run the create-app file: source create-app and the app is automatically created



The following needs to be run before building Geant4 on a clean system (only if you are building from the source):
#install git
sudo apt-get install git
#install cmake
sudo apt-add-repository 'deb https://apt.kitware.com/ubuntu/ xenial main'
sudo apt-get update
sudo apt-get install cmake
sudo apt-get install libxerces-c-dev
sudo apt-get install qt5-default
sudo apt-get install libxmu-dev



//Old instructions:
Download from https://github.com/linuxdeploy
a) linuxdeploy
Expand Down
13 changes: 13 additions & 0 deletions deploy-tools/create-app
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,19 @@ else
cp -r $ROOTSYS/icons simple-app/usr
cp -r $ROOTSYS/lib simple-app/usr
cp -r $ROOTSYS/bin simple-app/usr

echo "If you see errors after h2root, then install gfortran: sudo apt-get install gfortran"
echo "If the ROOT binary is directly downloaded from the website, then the following removals are required!"
rm simple-app/usr/bin/proofd
rm simple-app/usr/lib/libNetxNG.so
rm simple-app/usr/lib/libNetx.so
rm simple-app/usr/lib/libProofx.so
rm simple-app/usr/lib/libXrdProofd.so
rm simple-app/usr/lib/libGenetic.so
rm simple-app/usr/lib/libTMVA.so
rm simple-app/usr/lib/libEGPythia8.so
rm simple-app/usr/lib/libTMVAGui.so


fi

Expand Down
Binary file modified deploy-tools/db.sqlite
Binary file not shown.
19 changes: 19 additions & 0 deletions deploy-tools/install-g4-dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash
#install git
sudo apt-get install git
#install cmake
sudo apt-add-repository 'deb https://apt.kitware.com/ubuntu/ xenial main'
sudo apt-get update
sudo apt-get install cmake
#install libxerces-c-dev
sudo apt-get install libxerces-c-dev
#install qt
sudo apt-get install qt5-default
#install libxmu-dev
sudo apt-get install libxmu-dev

#for ROOT 6.20
sudo apt-get install libxpm-dev
sudo apt-get install libxft-dev
#install qtcreator
sudo apt install qtcreator
11 changes: 10 additions & 1 deletion simple.pro
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,15 @@ message("Please run Qtcreator from the command line and make sure that ROOTSYS a
#Geant4 settings
QMAKE_CXXFLAGS+=$$system(geant4-config --cflags)
LIBS+=$$system(geant4-config --libs)

#for ubuntu 16
#message("Using xerces-c-3.1 for Ubuntu 16. Please change this in the project file, if you are running another OS")
#LIBS+= -L/usr/lib/x86_64-linux-gnu/ -lxerces-c-3.1

#for ubuntu 19
message("Using xerces-c-3.2 for Ubuntu 19. Please change this in the project file, if you are running another OS")
LIBS+= -L/usr/lib/x86_64-linux-gnu/ -lxerces-c-3.2

#ROOT settings
LIBS+=$$system(root-config --glibs)
QMAKE_CXXFLAGS+=$$system(root-config --cflags)
Expand Down Expand Up @@ -192,7 +200,8 @@ DISTFILES += \
deploy-tools/models/cobalt-decay.sim \
deploy-tools/models/cerenkov.sim \
deploy-tools/models/bragg-peak.sim \
deploy-tools/models/ICAL2.sim
deploy-tools/models/ICAL2.sim \
deploy-tools/install-g4-dependencies

RESOURCES += \
resources.qrc
Expand Down

0 comments on commit 1f01dca

Please sign in to comment.