# Trouble enabling geocad tool

**URL:** <https://root-forum.cern.ch/t/trouble-enabling-geocad-tool/37792>\
**Category:** Newbie\
**Created:** [January 30, 2020, 8:01pm UTC](https://root-forum.cern.ch/t/trouble-enabling-geocad-tool/37792 "2020-01-30T20:01:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bresim](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/cab0a1/32.png) [@Bresim](https://root-forum.cern.ch/u/Bresim)\
**Post date:** [January 30, 2020, 8:01pm UTC](https://root-forum.cern.ch/t/trouble-enabling-geocad-tool/37792/1 "2020-01-30T20:01:42Z")

</div>

Hello,  
I have installed Root version 6.14 from source so I can enable the TGeoCad interface ([https://iopscience.iop.org/article/10.1088/1742-6596/523/1/012017](https://iopscience.iop.org/article/10.1088/1742-6596/523/1/012017)), no longer available in the latest release versions, apparently. I need it in order to convert some Root ALICE geometries to STEP for a project. I followed the instructions for installing the latest version of Open Cascade using Cmake ([https://dev.opencascade.org/doc/overview/html/occt\_dev\_guides\_\_building\_cmake.html](https://dev.opencascade.org/doc/overview/html/occt_dev_guides__building_cmake.html)). I have configured ROOT’s Building Options ([https://root.cern.ch/building-root#options](https://root.cern.ch/building-root#options)) to enable geocad, but when I run the following command to build Root, from its build directory, I get an error message.

```auto
<ROOT_BUILD_DIR>$ cmake --build .
[94%] Generating G__GeoCad.cxx, ../../lib/libGeoCad_rdict.pcm, ../../lib/libGeoCad.rootmap
In file included from input_line_12:8:
In file included from <ROOT_BUILD_DIR>/include/TOCCToStep.h:22:
<OPENCASCADE_INSTALL_DIR>/include/opencascade/STEPCAFControl_Writer.hxx:237:3: error: no template named 'NCollection_Vector'
  NCollection_Vector<Handle(StepRepr_RepresentationItem)> myGDTAnnotations;
  ^
Error: <ROOT_BUILD_DIR>/bin/rootcling: compilation failure (<ROOT_BUILD_DIR>/lib/libGeoCad701d78dadb_dictUmbrella.h)
geom/geocad/CMakeFiles/G __GeoCad.dir/build.make:71: recipe for target 'geom/geocad/G__ GeoCad.cxx' failed
make[2]: *** [geom/geocad/G__GeoCad.cxx] Error 1
CMakeFiles/Makefile2:28262: recipe for target 'geom/geocad/CMakeFiles/G__GeoCad.dir/all' failed
make[1]: *** [geom/geocad/CMakeFiles/G__GeoCad.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2

```

_ROOT Version: 6.14.00_  
_Platform: Ubuntu 18.04.3 LTS_

Could someone help me out?  
I undestand this is not exclusively about ROOT but I appreciate any help I can get.  
Thank you in advance!  
Breno

---

<div class="post-metadata">

**Author:** ![jblomer](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@jblomer](https://root-forum.cern.ch/u/jblomer)\
**Post date:** [January 31, 2020, 9:30am UTC](https://root-forum.cern.ch/t/trouble-enabling-geocad-tool/37792/2 "2020-01-31T09:30:42Z")

</div>

@agheata Perhaps you can help?

---

<div class="post-metadata">

**Author:** ![agheata](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/agheata/32/37311_2.png) [@agheata](https://root-forum.cern.ch/u/agheata)\
**Post date:** [January 31, 2020, 3:08pm UTC](https://root-forum.cern.ch/t/trouble-enabling-geocad-tool/37792/3 "2020-01-31T15:08:14Z")

</div>

Hi, it looks like there are some incompatible changes in the OCC version you have installed. Maybe try with an older version of OpenCascade.  
Cheers, Andrei
