# Garfield running issue

**URL:** <https://root-forum.cern.ch/t/garfield-running-issue/43076>\
**Category:** Garfield++\
**Created:** [January 12, 2021, 4:00pm UTC](https://root-forum.cern.ch/t/garfield-running-issue/43076 "2021-01-12T16:00:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahmer\_k](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ahmer_k/32/24214_2.png) [@ahmer\_k](https://root-forum.cern.ch/u/ahmer_k)\
**Post date:** [January 12, 2021, 4:00pm UTC](https://root-forum.cern.ch/t/garfield-running-issue/43076/1 "2021-01-12T16:00:02Z")

</div>

i have installed the garfield and it was running right but now i’m again running an example by creating build with in the example directory and then copying that build and sourcing all and cmake but at the time of make there is no file and all the generating and written in example directory but this should have to be in build which directory i have copied. can any one help what’s the issue? @hschindl

 ![Screenshot from 2021-01-12 20-51-42](https://root-forum.cern.ch/uploads/default/original/3X/1/a/1ab5e53740ab71e060225ddf06c19ccb949b51cc.jpeg)

* * *

---

<div class="post-metadata">

**Author:** ![hschindl](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/977dab/32.png) [@hschindl](https://root-forum.cern.ch/u/hschindl)\
**Post date:** [January 12, 2021, 9:01pm UTC](https://root-forum.cern.ch/t/garfield-running-issue/43076/2 "2021-01-12T21:01:41Z")

</div>

There is a mistake in the `cmake` command you gave. Instead of

```auto
cmake /home/ahmer/Desktop/garfield-v2 /home/ahmer/Desktop/garfield-v2/Examples/Geant4GarfieldInterface

```

it should read

```auto
cmake /home/ahmer/Desktop/garfield-v2/Examples/Geant4GarfieldInterface

```

or simply

```auto
cmake ..

```

So… please delete all temporary files in `/home/ahmer/Desktop/garfield-v2/Examples/Geant4GarfieldInterface`, remove the `build` folder and try again.

---

<div class="post-metadata">

**Author:** ![ahmer\_k](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ahmer_k/32/24214_2.png) [@ahmer\_k](https://root-forum.cern.ch/u/ahmer_k)\
**Post date:** [January 13, 2021, 3:29pm UTC](https://root-forum.cern.ch/t/garfield-running-issue/43076/3 "2021-01-13T15:29:11Z")

</div>

ok dear i’ll do like this.

---

<div class="post-metadata">

**Author:** ![ahmer\_k](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ahmer_k/32/24214_2.png) [@ahmer\_k](https://root-forum.cern.ch/u/ahmer_k)\
**Post date:** [January 13, 2021, 3:39pm UTC](https://root-forum.cern.ch/t/garfield-running-issue/43076/4 "2021-01-13T15:39:51Z")

</div>

dear i don’t know why this all happening all was running fine. still getting issue. all files must be written to build folder but it is writing them into geant4garfieldinterface. then no make file error.

 ![Screenshot from 2021-01-13 20-35-05](https://root-forum.cern.ch/uploads/default/original/3X/e/5/e560471212da259d843642aeba16c3ff85e1487f.jpeg)

---

<div class="post-metadata">

**Author:** ![hschindl](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/977dab/32.png) [@hschindl](https://root-forum.cern.ch/u/hschindl)\
**Post date:** [January 19, 2021, 11:20am UTC](https://root-forum.cern.ch/t/garfield-running-issue/43076/5 "2021-01-19T11:20:59Z")

</div>

Your directory `~/Desktop/garfield-v2/Examples/Geant4GarfieldInterface` has a number of files and subdirectories in it that shouldn’t be there. There are probably smarter ways to do this, but what you could do to clean this up is:

- Go to the directory `~/Desktop/garfield-v2/Examples/Geant4GarfieldInterface`
- Type `git status .`
- Delete all files and folders that are listed as “Untracked files”

---

<div class="post-metadata">

**Author:** ![ahmer\_k](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ahmer_k/32/24214_2.png) [@ahmer\_k](https://root-forum.cern.ch/u/ahmer_k)\
**Post date:** [January 19, 2021, 4:56pm UTC](https://root-forum.cern.ch/t/garfield-running-issue/43076/6 "2021-01-19T16:56:34Z")

</div>

ok dear thanks a lot… 🙂

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [February 2, 2021, 4:56pm UTC](https://root-forum.cern.ch/t/garfield-running-issue/43076/7 "2021-02-02T16:56:41Z")

</div>

Closed on February 2, 2021, 4:56pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
