# Creating an application: root-config: TreeViewer missing?

**URL:** <https://root-forum.cern.ch/t/creating-an-application-root-config-treeviewer-missing/63356>\
**Category:** Newbie\
**Tags:** root\
**Created:** [April 10, 2025, 2:43pm UTC](https://root-forum.cern.ch/t/creating-an-application-root-config-treeviewer-missing/63356 "2025-04-10T14:43:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Salomon](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/salomon/32/18000_2.png) [@Salomon](https://root-forum.cern.ch/u/Salomon)\
**Post date:** [April 10, 2025, 2:43pm UTC](https://root-forum.cern.ch/t/creating-an-application-root-config-treeviewer-missing/63356/1 "2025-04-10T14:43:55Z")

</div>

* * *

_ROOT Version:_ 6.32.04  
_Platform:_ linuxx8664gcc  
_Compiler:_ c++ (Ubuntu 13.2.0-23ubuntu4) 13.2.0

* * *

Hello,

Thank you for your manual to [Create a user application with ROOT](https://root.cern/manual/creating_a_user_application/#batch-example-generating-a-pdf-file).

I try the following command to link ROOT libraries but TreeViewer seems to be missing:

```bash
$ docker run rootproject/root:6.32.04-ubuntu24.04 root-config --glibs --cflags --libs | tr ' ' '\n'
-L/opt/root/lib
-lGui
-lCore
-lImt
-lRIO
-lNet
-lHist
-lGraf
-lGraf3d
-lGpad
-lROOTVecOps
-lTree
-lTreePlayer
-lRint
-lPostscript
-lMatrix
-lPhysics
-lMathCore
-lThread
-lMultiProc
-lROOTDataFrame
-Wl,-rpath,/opt/root/lib
-pthread
-lm
-ldl
-rdynamic
-pthread
-std=c++17
-m64
-I/opt/root/include

```

```bash
$ docker run rootproject/root:6.32.04-ubuntu24.04 root-config --glibs --cflags --libs | tr ' ' '\n' | grep "lTreeViewer"

```

Is it normal?

Best Regards,

---

<div class="post-metadata">

**Author:** ![ferhue](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ferhue/32/29462_2.png) [@ferhue](https://root-forum.cern.ch/u/ferhue)\
**Post date:** [April 10, 2025, 3:52pm UTC](https://root-forum.cern.ch/t/creating-an-application-root-config-treeviewer-missing/63356/2 "2025-04-10T15:52:46Z")

</div>

Yes, not ideal. There are many missing libraries in root-config.

My suggestion is to just include the libraries you need for your program.

For example, if you need the class TTreeViewer, you would go to [ROOT: TTreeViewer Class Reference](https://root.cern.ch/doc/master/classTTreeViewer.html)

scroll all the way down, and there it tells you it belongs to library -lTreeViewer.

---

<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 10, 2025, 4:32pm UTC](https://root-forum.cern.ch/t/creating-an-application-root-config-treeviewer-missing/63356/3 "2025-04-10T16:32:57Z")

</div>

Many libraries `TreeViewer`, `TreePlayer` are plugins that are not intended to use be used directly and are automatically loaded when (indirectly) needed and thus should not be listed in `root-config --libs`

---

<div class="post-metadata">

**Author:** ![ferhue](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ferhue/32/29462_2.png) [@ferhue](https://root-forum.cern.ch/u/ferhue)\
**Post date:** [April 10, 2025, 5:33pm UTC](https://root-forum.cern.ch/t/creating-an-application-root-config-treeviewer-missing/63356/4 "2025-04-10T17:33:38Z")

</div>

It’s weird though that TTreePlayer is listed by --libs

---

<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 11, 2025, 10:58pm UTC](https://root-forum.cern.ch/t/creating-an-application-root-config-treeviewer-missing/63356/5 "2025-04-11T22:58:58Z")

</div>

yes it is weird ☹
