# How to compile .cxx files in TMVA

**URL:** <https://root-forum.cern.ch/t/how-to-compile-cxx-files-in-tmva/22082>\
**Category:** TMVA\
**Created:** [October 21, 2016, 9:05am UTC](https://root-forum.cern.ch/t/how-to-compile-cxx-files-in-tmva/22082 "2016-10-21T09:05:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![swanski82](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/d9b06d/32.png) [@swanski82](https://root-forum.cern.ch/u/swanski82)\
**Post date:** [October 21, 2016, 9:05am UTC](https://root-forum.cern.ch/t/how-to-compile-cxx-files-in-tmva/22082/1 "2016-10-21T09:05:43Z")

</div>

Dear experts,

it could be a stupid question but since I upgrade my ROOT version to 6.06.08, I can not find a way to compile .cxx files in TMVA. I know it is different than the previous versions - such that there is no macros inside tmva directory. I.e I’d like to change efficiencies.cxx which is under $ROOTSYS/tmva/tmvagui/src/ , indeed changing file not a problem but I could not achieve to compile it. I tried g++, make, c++ commands so far and nothing seems to work.

Any help would be appreciated. Thanks in advance.

---

<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:** [October 24, 2016, 7:22am UTC](https://root-forum.cern.ch/t/how-to-compile-cxx-files-in-tmva/22082/2 "2016-10-24T07:22:38Z")

</div>

Hi,

if you followed the instruction at [root.cern.ch/building-root](https://root.cern.ch/building-root) to build ROOT, all you need is to execute ‘make install’ while your current directory is the build directory.

Cheers,  
Philippe.

---

<div class="post-metadata">

**Author:** ![swanski82](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/d9b06d/32.png) [@swanski82](https://root-forum.cern.ch/u/swanski82)\
**Post date:** [October 24, 2016, 12:27pm UTC](https://root-forum.cern.ch/t/how-to-compile-cxx-files-in-tmva/22082/3 "2016-10-24T12:27:08Z")

</div>

Hi,

thanks for the response.

I most likely build it with old-fashioned method. I’d rather not to use cmake for some reason.

Best

---

<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:** [October 24, 2016, 12:28pm UTC](https://root-forum.cern.ch/t/how-to-compile-cxx-files-in-tmva/22082/4 "2016-10-24T12:28:54Z")

</div>

Even if you did build it the old fashion way doing `make all` or `make install` should do the trick.

---

<div class="post-metadata">

**Author:** ![swanski82](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/d9b06d/32.png) [@swanski82](https://root-forum.cern.ch/u/swanski82)\
**Post date:** [October 24, 2016, 12:51pm UTC](https://root-forum.cern.ch/t/how-to-compile-cxx-files-in-tmva/22082/5 "2016-10-24T12:51:36Z")

</div>

I have nothing more than following in the $ROOTSYS/build directory :

win  
version\_number  
version.cxx  
unix  
package  
[Module.mk](http://Module.mk)  
CMakeLists.txt  
misc  
rmkdepend  
dummy.d

make install does not work for any of them.

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:** [October 24, 2016, 1:14pm UTC](https://root-forum.cern.ch/t/how-to-compile-cxx-files-in-tmva/22082/6 "2016-10-24T13:14:38Z")

</div>

HI,

This is not the build directory i was refering to. The ‘build’ directory I was refering to was the directory that was the current directory when you did ‘configure’ then ‘make’ originally.

Cheers,  
Philippe.
