# ROOT\_GENERATE\_DICTIONARY and ROOT-conda problem

**URL:** <https://root-forum.cern.ch/t/root-generate-dictionary-and-root-conda-problem/61924>\
**Category:** ROOT\
**Tags:** cmake\
**Created:** [October 12, 2024, 12:43pm UTC](https://root-forum.cern.ch/t/root-generate-dictionary-and-root-conda-problem/61924 "2024-10-12T12:43:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dbaron](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/43a26b/32.png) [@dbaron](https://root-forum.cern.ch/u/dbaron)\
**Post date:** [October 12, 2024, 12:43pm UTC](https://root-forum.cern.ch/t/root-generate-dictionary-and-root-conda-problem/61924/1 "2024-10-12T12:43:07Z")

</div>

Dear Experts,

We have a project configured with the CMakeLists.txt that I have **attached to the topic.**

Our project uses the `ROOT_GENERATE_DICTIONARY` command and compiles without problems when I use a ROOT installation on either:

- Lxplus
- ROOT build from source.
- Homebrew.

However, the project does not compile when using a `conda` installation.  
The compilation fails in the dictionary generation part with the following error:

```auto
[11%] Building CXX object CMakeFiles/FastFrames_dict.dir/FastFrames_dict.cxx.o
/gluster/home/dmoreno/CondaEnvs/envs/FF/bin/x86_64-conda-linux-gnu-c++ -DVECCORE_ENABLE_VC -I/gluster/home/dmoreno/FF/fastframes -Wall -Wextra -Wshadow -pedantic -O3 -g -std=c++20 -fPIC -Wno-shadow -MD -MT CMakeFiles/FastFrames_dict.dir/FastFrames_dict.cxx.o -MF CMakeFiles/FastFrames_dict.dir/FastFrames_dict.cxx.o.d -o CMakeFiles/FastFrames_dict.dir/FastFrames_dict.cxx.o -c /gluster/home/dmoreno/FF/build/FastFrames_dict.cxx
/gluster/home/dmoreno/FF/build/FastFrames_dict.cxx:13:10: fatal error: ROOT/RConfig.hxx: No such file or directory
   13 | #include "ROOT/RConfig.hxx"
      | ^ ~~~~~~~~~~~~~~~~~
compilation terminated.

```

As you can see, the ROOT include directories are not being properly propagated to the dictionary.

I checked that in my ROOT `conda` installation I have the `lib` / `include` and `cmake` folders in the correct location where ROOT is being picked up from. So If I do:

```auto
(FF) [dmoreno@wn3801260 FF]$ which root
~/CondaEnvs/envs/FF/bin/root

(FF) [dmoreno@wn3801260 FF]$ ls ~/CondaEnvs/envs/FF
bin compiler_compat config etc geom include lib LICENSE man sbin ssl ui5 x86_64-conda_cos6-linux-gnu
cmake conda-meta doc fonts icons js libexec macros README share tutorials var x86_64-conda-linux-gnu

(FF) [dmoreno@wn3801260 FF]$ ls ~/CondaEnvs/envs/FF/cmake/
modules ROOTConfig-targets.cmake ROOTConfig-version.cmake RootTestDriver.cmake
ROOTConfig.cmake ROOTConfig-targets-release.cmake RootMacros.cmake ROOTUseFile.cmake

```

Are there any expected problems when using `ROOT_GENERATE_DICTIONARY` and `conda`?

Thanks in advance for your help!

\_ROOT Version: ROOT 6.32.02  
\_Platform: Built for linuxx8664gcc  
\_Compiler: gcc

* * *

---

<div class="post-metadata">

**Author:** ![dbaron](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/43a26b/32.png) [@dbaron](https://root-forum.cern.ch/u/dbaron)\
**Post date:** [October 12, 2024, 12:48pm UTC](https://root-forum.cern.ch/t/root-generate-dictionary-and-root-conda-problem/61924/2 "2024-10-12T12:48:30Z")

</div>

[CMakeLists.txt](https://root-forum.cern.ch/uploads/short-url/4gMW2DEE6piwNyoa9w6LtjNis49.txt) (6.0 KB)

Sorry, forgot the attachment!

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [October 13, 2024, 6:43am UTC](https://root-forum.cern.ch/t/root-generate-dictionary-and-root-conda-problem/61924/3 "2024-10-13T06:43:45Z")

</div>

Hi,

I add in the loop @vpadulan .  
Have you checked that the file is there?

Best,  
D

---

<div class="post-metadata">

**Author:** ![dbaron](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/43a26b/32.png) [@dbaron](https://root-forum.cern.ch/u/dbaron)\
**Post date:** [October 13, 2024, 11:55am UTC](https://root-forum.cern.ch/t/root-generate-dictionary-and-root-conda-problem/61924/4 "2024-10-13T11:55:15Z")

</div>

Hi @Danilo , thanks for your reply.

Yes, the file is there.

Cheers, Diego

---

<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:** [October 27, 2024, 11:55am UTC](https://root-forum.cern.ch/t/root-generate-dictionary-and-root-conda-problem/61924/5 "2024-10-27T11:55:19Z")

</div>

Closed on October 27, 2024, 11:55am UTC

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