Coder Social home page Coder Social logo

g4fx's Introduction

g4fx

Getting Started

Build Instructions

Following assumes ubuntu based distros

Required packages

apt-get install docker \ 
                build-essential \
                libvtk9-qt-dev \
                libvtk9.1-qt \
                libcgal-dev \
                libgmp-dev \
                libmpfr-dev \
                libboost-all-dev \
                libxerces-c-dev \
                cmake \
                cmake-curses-gui \
                libxmu-dev \
                x11vnc \
                wget \
                git \
                libxi-dev \
                libglfw3-dev

For OpenCascade Support

apt-get install libocct-data-exchange-dev \
                libocct-draw-dev \
                libocct-foundation-dev \
                libocct-modeling-algorithms-dev \
                libocct-modeling-data-dev \
                libocct-ocaf-dev \
                libocct-visualization-dev \
                occt-draw \
                occt-misc
export G4FX_ROOT=git clone location
export G4FX_DATA_ROOT=$G4FX_ROOT/testfiles

Build clhep

wget https://proj-clhep.web.cern.ch/proj-clhep/dist1/clhep-2.4.6.0.tgz && \
    tar -xf clhep-2.4.6.0.tgz && rm -rf clhep-2.4.6.0.tgz && \
    mkdir clhep-build && cd clhep-build && cmake -DCMAKE_INSTALL_PREFIX=$G4FX_ROOT/.install ../2.4.6.0/CLHEP/ && \
    make -j4 && make install && cd ../ && rm -rfv 2.4.6.0 clhep-build

Build Geant4

git clone https://gitlab.cern.ch/geant4/geant4.git &&\
    cd geant4 && git checkout geant4-11.1-release && cd ../ &&\
    mkdir geant4-build && cd geant4-build &&\
    cmake ../geant4 -DCMAKE_INSTALL_PREFIX=$G4FX_ROOT/.install -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_GDML=ON -DGEANT4_USE_OPENGL_X11=ON -DGEANT4_USE_RAYTRACER_X11=ON -DGEANT4_USE_VTK=ON && make -j4 && make install && cd ../ &&\
    echo 'source /usr/local/bin/geant4.sh' >> ~/.bashrc

Building g4fx

mkdir $G4FX_ROOT/.build
cd $G4FX_ROOT/.build
cmake .. -DCMAKE_PREFIX_PATH=$G4FX_ROOT/.install -DCMAKE_MODULE_PATH=$G4FX_ROOT/.install/lib/cmake/Geant4
make -j8

Setting up Clion

Settings -> Build and Deploy -> CMake -> CMake Options

-DCMAKE_MODULE_PATH=$G4FX_ROOT/.install/lib/cmake/Geant4 -DCMAKE_PREFIX_PATH=$G4FX_ROOT/.install

g4fx's People

Contributors

dboogert avatar stewartboogert avatar

Watchers

 avatar

g4fx's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.