# Root +garfield installation by cmake

**URL:** <https://root-forum.cern.ch/t/root-garfield-installation-by-cmake/28617>\
**Category:** Garfield++\
**Created:** [April 8, 2018, 1:28pm UTC](https://root-forum.cern.ch/t/root-garfield-installation-by-cmake/28617 "2018-04-08T13:28:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yiyunli](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/y/5f8ce5/32.png) [@yiyunli](https://root-forum.cern.ch/u/yiyunli)\
**Post date:** [April 8, 2018, 1:28pm UTC](https://root-forum.cern.ch/t/root-garfield-installation-by-cmake/28617/1 "2018-04-08T13:28:58Z")

</div>

I’m installing Garfield by the guidance: [http://garfieldpp.web.cern.ch/garfieldpp/getting-started/](http://garfieldpp.web.cern.ch/garfieldpp/getting-started/)  
I face one problem, libGarfield seems not be generated when I installed it by cmake

```auto
collect2: error: ld returned 1 exit status
CMakeFiles/Garfield.dir/build.make:2964: recipe for target 'lib/libGarfield.so.0.2.0' failed
make[2]: *** [lib/libGarfield.so.0.2.0] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/Garfield.dir/all' failed
make[1]: *** [CMakeFiles/Garfield.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

```

I would appreciate it if anyone can help me with this problem.

---

<div class="post-metadata">

**Author:** ![pcanal](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pcanal/32/12439_2.png) [@pcanal](https://root-forum.cern.ch/u/pcanal)\
**Post date:** [April 9, 2018, 5:01pm UTC](https://root-forum.cern.ch/t/root-garfield-installation-by-cmake/28617/2 "2018-04-09T17:01:03Z")

</div>

The ‘real’ reason of the failure seems to have been listed before the text included in your post. Without this information, we have no way of knowing why the linking failed.

Cheers,  
Philippe.

PS. Note that we do not maintain nor support Garfield++ … 🙂

---

<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:** [April 23, 2018, 5:01pm UTC](https://root-forum.cern.ch/t/root-garfield-installation-by-cmake/28617/3 "2018-04-23T17:01:05Z")

</div>

Closed on April 23, 2018, 5:01pm UTC

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