# building castor from source code

**URL:** <https://castor-project.discourse.group/t/building-castor-from-source-code/103>\
**Category:** General Discussions\
**Created:** [July 29, 2019, 7:19pm UTC](https://castor-project.discourse.group/t/building-castor-from-source-code/103 "2019-07-29T19:19:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sveta](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@Sveta](https://castor-project.discourse.group/u/Sveta)\
**Post date:** [July 29, 2019, 7:19pm UTC](https://castor-project.discourse.group/t/building-castor-from-source-code/103/1 "2019-07-29T19:19:07Z")

</div>

Hi everybody,

I downloaded the source and did:

export CASTORCONFIG=/home/research/sveta/castor\_v2.1/config  
export CASTOR\_ROOT=1

make

I am getting:

Making dependencies for toolkits/castor-datafileConversionEx.cc ...  
toolkits/castor-datafileConversionEx.cc:49:12: fatal error: 'TROOT.h' file not found  
#include "TROOT.h"

Does this mean that I should install ROOT independently and point to it somewhere in config files?

Thanks,

Svetlana

---

<div class="post-metadata">

**Author:** ![tmerlin](https://yyz2.discourse-cdn.com/free1/user_avatar/castor-project.discourse.group/tmerlin/32/216_2.png) [@tmerlin](https://castor-project.discourse.group/u/tmerlin)\
**Post date:** [July 31, 2019, 1:40pm UTC](https://castor-project.discourse.group/t/building-castor-from-source-code/103/2 "2019-07-31T13:40:29Z")

</div>

Hi Svetlana,

You only need ROOT with CASToR if you wish to reconstruct simulated data from GATE. In this case, ROOT must indeed be installed first. The Makefile should directly find its location though. Let me know if it's not the case.

Best,

Thibaut
