Home | News | Documentation | Download

Trouble enabling geocad tool

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), 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). I have configured ROOT’s Building 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.

<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

@agheata Perhaps you can help?

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

1 Like