# ROOt Libs

**URL:** <https://root-forum.cern.ch/t/root-libs/14127>\
**Category:** Garfield++\
**Created:** [April 11, 2012, 11:16pm UTC](https://root-forum.cern.ch/t/root-libs/14127 "2012-04-11T23:16:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![haitham](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/3be4f8/32.png) [@haitham](https://root-forum.cern.ch/u/haitham)\
**Post date:** [April 11, 2012, 11:16pm UTC](https://root-forum.cern.ch/t/root-libs/14127/1 "2012-04-11T23:16:18Z")

</div>

Hi:  
I am trying to compile garfroot.C (to use Root prompt in Garfield (simulation package)) which contains:  
##########################  
#include   
#include   
#include

#include \<TROOT.h\>  
#include \<TRint.h\>

#include “Plotting.hh”

int main(int argc, char \* argv[]) {

std::cout \<\< “Welcome to Garfield++\n”;  
Garfield::plottingEngine.SetDefaultStyle();

TRint\* app = new TRint(“Garfield”, &argc, argv, 0, 0);

app-\>Run(kTRUE);

}

###########################################

using the following makefile:  
##########################################  
OBJDIR = $(GARFIELD\_HOME)/Object  
SRCDIR = $(GARFIELD\_HOME)/Source  
INCDIR = $(GARFIELD\_HOME)/Include  
HEEDDIR = $(GARFIELD\_HOME)/Heed  
LIBDIR = $(GARFIELD\_HOME)/Library

# Compiler flags

CFLAGS = -Wall -Wextra -Wno-long-long   
`root-config --cflags`   
-O3 -fno-common -c   
-I$(INCDIR) -I$(HEEDDIR)

# Debug flags

CFLAGS += -g

LDFLAGS = `root-config --evelibs` -lGeom -lRint -lgfortran -lm  
LDFLAGS += -L$(LIBDIR) -Wl,–whole-archive -lGarfield -Wl,–no-whole-archive  
#LDFLAGS += -all\_load  
LDFLAGS += -g

garfroot: garfroot.C  
$(CXX) $(CFLAGS) garfroot.C  
$(CXX) -o garfroot garfroot.o $(LDFLAGS)  
rm garfroot.o  
##############################################  
I have the following error message:

/usr/bin/ld: cannot find -lEve  
/usr/bin/ld: cannot find -lRGL

Are those libs related to ROOT libs or C++ libs ?

(I can not find them online or in the synaptic package manager)

Please send me the name of the libs that I have to install or a link to them if possible. (I am installing root 5.32.01 in UBUNTU 11.10) or a a clue to what to do next?

Thanks

---

<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 12, 2012, 3:42pm UTC](https://root-forum.cern.ch/t/root-libs/14127/2 "2012-04-12T15:42:34Z")

</div>

Hi,

[quote]/usr/bin/ld: cannot find -lEve  
/usr/bin/ld: cannot find -lRGL

Are those libs related to ROOT libs or C++ libs ?[/quote]Both are optional library in ROOT, they usually do not build when the opengl library are not install. I.e. (see [root.cern.ch/drupal/content/build-prerequisites](http://root.cern.ch/drupal/content/build-prerequisites)), you may need to install at least mesa-libGL-devel and glew-devel (and/or xlibmesa-glu-dev and libglew1.5-dev).

Cheers,  
Philippe.

---

<div class="post-metadata">

**Author:** ![haitham](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/3be4f8/32.png) [@haitham](https://root-forum.cern.ch/u/haitham)\
**Post date:** [April 13, 2012, 3:12pm UTC](https://root-forum.cern.ch/t/root-libs/14127/3 "2012-04-13T15:12:04Z")

</div>

Thanks for your fast reply, I tried to use debian packages for the libs you suggested, but unfortunately it is working, I wonder if the library structure affects its function in some cases( a bug), I think I do not have the right to bother you about this, I may look in an open gl forum as hope to find an answer. Thanks again Philippe.

---

<div class="post-metadata">

**Author:** ![Pepe\_Le\_Pew](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pepe_le_pew/32/12365_2.png) [@Pepe\_Le\_Pew](https://root-forum.cern.ch/u/Pepe_Le_Pew)\
**Post date:** [April 13, 2012, 3:33pm UTC](https://root-forum.cern.ch/t/root-libs/14127/4 "2012-04-13T15:33:48Z")

</div>

You need to “configure” and “make” your ROOT from scratch (after you installed these missing “devel” packages).  
After the “configure” step, make sure that the “config.log” file contains “Result: Enabled support for … opengl, …” somewhere near its end.  
After the “make” step, try to:

```auto
find ./ -name "libRGL.*"
find ./ -name "libEve.*"

```

You should see at least four files:  
./lib/libRGL.rootmap  
./lib/libRGL.so  
./lib/libEve.rootmap  
./lib/libEve.so

---

<div class="post-metadata">

**Author:** ![haitham](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/3be4f8/32.png) [@haitham](https://root-forum.cern.ch/u/haitham)\
**Post date:** [April 14, 2012, 2:08pm UTC](https://root-forum.cern.ch/t/root-libs/14127/5 "2012-04-14T14:08:11Z")

</div>

Thanks Pepe there are installed now.

---

<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:** [June 21, 2018, 2:41pm UTC](https://root-forum.cern.ch/t/root-libs/14127/6 "2018-06-21T14:41:05Z")

</div>

Closed on June 21, 2018, 2:41pm UTC

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