Skip to content

Installing mcnp2cad on a Mac  #54

Description

@petersondroogh

I was hoping to run mcnp2cad on my mac. I was able to install cgm and armadillo on my mac. But it still did not work. I got the following error and was wondering if you have any thoughts


make
c++ -g -std=c++11 -Wall -Wextra -DUSING_CGMA -DHAVE_IGEOM_CONE -I/include -o mcnp2cad mcnp2cad.o MCNPInput.o volumes.o geometry.o ProgOptions.o   -L/lib -larmadillo
ld: warning: directory not found for option '-L/lib'
Undefined symbols for architecture x86_64:
  "CubitMessage::warningFlag", referenced from:
      CubitMessage::set_warning_flag(bool) in mcnp2cad.o
  "CubitMessage::get_message_handler()", referenced from:
      CubitSilence::CubitSilence() in mcnp2cad.o
  "CubitMessage::set_message_handler(CubitMessageHandler*)", referenced from:
      CubitSilence::CubitSilence() in mcnp2cad.o
      CubitSilence::~CubitSilence() in mcnp2cad.o
  "CubitMessage::infoFlag", referenced from:
      CubitMessage::set_info_flag(bool) in mcnp2cad.o
  "CubitMessage::instance()", referenced from:
      _main in mcnp2cad.o
      CubitSilence::CubitSilence() in mcnp2cad.o
      CubitSilence::~CubitSilence() in mcnp2cad.o
  "CubitObserver::register_static_observer(CubitObserver*)", referenced from:
      RefEntityFactory::instance() in mcnp2cad.o
  "RefEntityFactory::compress_ref_ids(char const*, int)", referenced from:
      GeometryContext::createGeometry() in mcnp2cad.o
  "RefEntityFactory::instance_", referenced from:
      RefEntityFactory::instance() in mcnp2cad.o
  "RefEntityFactory::RefEntityFactory(RefEntityFactory*)", referenced from:
      RefEntityFactory::instance() in mcnp2cad.o
  "GeometryQueryTool::set_export_allint_version(int)", referenced from:
      _main in mcnp2cad.o
  "GeometryQueryTool::instance(GeometryQueryEngine*)", referenced from:
      _main in mcnp2cad.o
  "_igeom_addenttoset_", referenced from:
      GeometryContext::tagGroups() in mcnp2cad.o
  "_igeom_copyent_", referenced from:
      GeometryContext::defineLatticeNode(CellCard&, iBase_EntityHandle_Private*, iBase_EntityHandle_Private*, int, int, int, std::__1::vector<iBase_EntityHandle_Private*, std::__1::allocator<iBase_EntityHandle_Private*> >&) in mcnp2cad.o
      GeometryContext::defineUniverse(int, iBase_EntityHandle_Private*, Transform const*) in mcnp2cad.o
      GeometryContext::createGraveyard(iBase_EntityHandle_Private*&) in mcnp2cad.o
      GeneralQuadraticSurface::elliptic_cone(iGeom_Instance_Private*&, double) in volumes.o
  "_igeom_createbrick_", referenced from:
      GeometryContext::createGraveyard(iBase_EntityHandle_Private*&) in mcnp2cad.o
      BoxVolume::getHandle(bool, iGeom_Instance_Private*&, double) in volumes.o
      RppVolume::getHandle(bool, iGeom_Instance_Private*&, double) in volumes.o
  "_igeom_createcone_", referenced from:
      ConeSurface::getHandle(bool, iGeom_Instance_Private*&, double) in volumes.o
      TrcVolume::getHandle(bool, iGeom_Instance_Private*&, double) in volumes.o
      GeneralQuadraticSurface::elliptic_cone(iGeom_Instance_Private*&, double) in volumes.o
  "_igeom_createcylinder_", referenced from:
      CylinderSurface::getHandle(bool, iGeom_Instance_Private*&, double) in volumes.o
      RccVolume::getHandle(bool, iGeom_Instance_Private*&, double) in volumes.o
      RecVolume::getHandle(bool, iGeom_Instance_Private*&, double) in volumes.o
      GeneralQuadraticSurface::elliptic_cyl(iGeom_Instance_Private*&, double) in volumes.o
  "_igeom_createentset_", referenced from:
      GeometryContext::tagGroups() in mcnp2cad.o
  "_igeom_createsphere_", referenced from:
      makeWorldSphere(iGeom_Instance_Private*&, double) in volumes.o
      SphereSurface::getHandle(bool, iGeom_Instance_Private*&, double) in volumes.o
      EllipsoidSurface::getHandle(bool, iGeom_Instance_Private*&, double) in volumes.o
  "_igeom_createtorus_", referenced from:
      TorusSurface::getHandle(bool, iGeom_Instance_Private*&, double) in volumes.o
  "_igeom_deleteent_", referenced from:
      GeometryContext::defineLatticeNode(CellCard&, iBase_EntityHandle_Private*, iBase_EntityHandle_Private*, int, int, int, std::__1::vector<iBase_EntityHandle_Private*, std::__1::allocator<iBase_EntityHandle_Private*> >&) in mcnp2cad.o
      GeometryContext::defineUniverse(int, iBase_EntityHandle_Private*, Transform const*) in mcnp2cad.o
      intersectIfPossible(iGeom_Instance_Private*, iBase_EntityHandle_Private*, iBase_EntityHandle_Private*, iBase_EntityHandle_Private**, bool) in mcnp2cad.o
      GeometryContext::populateCell(CellCard&, iBase_EntityHandle_Private*, iBase_EntityHandle_Private*) in mcnp2cad.o
  "_igeom_getdescription_", referenced from:
      GeometryContext::tagGroups() in mcnp2cad.o
      GeometryContext::tagCellIDsAsEntNames() in mcnp2cad.o
      GeometryContext::mapSanityCheck(iBase_EntityHandle_Private**, unsigned long) in mcnp2cad.o
      GeometryContext::defineLatticeNode(CellCard&, iBase_EntityHandle_Private*, iBase_EntityHandle_Private*, int, int, int, std::__1::vector<iBase_EntityHandle_Private*, std::__1::allocator<iBase_EntityHandle_Private*> >&) in mcnp2cad.o
      boundBoxesIntersect(iGeom_Instance_Private*, iBase_EntityHandle_Private*, iBase_EntityHandle_Private*) in mcnp2cad.o
      GeometryContext::defineUniverse(int, iBase_EntityHandle_Private*, Transform const*) in mcnp2cad.o
      intersectIfPossible(iGeom_Instance_Private*, iBase_EntityHandle_Private*, iBase_EntityHandle_Private*, iBase_EntityHandle_Private**, bool) in mcnp2cad.o
      ...
  "_igeom_getentboundbox_", referenced from:
      boundBoxesIntersect(iGeom_Instance_Private*, iBase_EntityHandle_Private*, iBase_EntityHandle_Private*) in mcnp2cad.o
  "_igeom_getentities_", referenced from:
      GeometryContext::mapSanityCheck(iBase_EntityHandle_Private**, unsigned long) in mcnp2cad.o
  "_igeom_getnumoftype_", referenced from:
      GeometryContext::mapSanityCheck(iBase_EntityHandle_Private**, unsigned long) in mcnp2cad.o
  "_igeom_getrootset_", referenced from:
      GeometryContext::mapSanityCheck(iBase_EntityHandle_Private**, unsigned long) in mcnp2cad.o
  "_igeom_gettaghandle_", referenced from:
      GeometryContext::tagGroups() in mcnp2cad.o
      GeometryContext::tagCellIDsAsEntNames() in mcnp2cad.o
  "_igeom_gettagsizebytes_", referenced from:
      GeometryContext::tagGroups() in mcnp2cad.o
      GeometryContext::tagCellIDsAsEntNames() in mcnp2cad.o
  "_igeom_imprintents_", referenced from:
      GeometryContext::createGeometry() in mcnp2cad.o
  "_igeom_intersectents_", referenced from:
      intersectIfPossible(iGeom_Instance_Private*, iBase_EntityHandle_Private*, iBase_EntityHandle_Private*, iBase_EntityHandle_Private**, bool) in mcnp2cad.o
      embedWithinWorld(bool, iGeom_Instance_Private*&, double, iBase_EntityHandle_Private*, bool) in volumes.o
  "_igeom_mergeents_", referenced from:
      GeometryContext::createGeometry() in mcnp2cad.o
  "_igeom_moveent_", referenced from:
      applyTransform(Transform const&, iGeom_Instance_Private*&, iBase_EntityHandle_Private*&) in volumes.o
      applyReverseTransform(Transform const&, iGeom_Instance_Private*&, iBase_EntityHandle_Private*&) in volumes.o
      SphereSurface::getHandle(bool, iGeom_Instance_Private*&, double) in volumes.o
      EllipsoidSurface::getHandle(bool, iGeom_Instance_Private*&, double) in volumes.o
      CylinderSurface::getHandle(bool, iGeom_Instance_Private*&, double) in volumes.o
      ConeSurface::getHandle(bool, iGeom_Instance_Private*&, double) in volumes.o
      TrcVolume::getHandle(bool, iGeom_Instance_Private*&, double) in volumes.o
      ...
  "_igeom_newgeom_", referenced from:
      _main in mcnp2cad.o
  "_igeom_reflectent_", referenced from:
      applyTransform(Transform const&, iGeom_Instance_Private*&, iBase_EntityHandle_Private*&) in volumes.o
  "_igeom_rotateent_", referenced from:
      applyTransform(Transform const&, iGeom_Instance_Private*&, iBase_EntityHandle_Private*&) in volumes.o
      applyReverseTransform(Transform const&, iGeom_Instance_Private*&, iBase_EntityHandle_Private*&) in volumes.o
      CylinderSurface::getHandle(bool, iGeom_Instance_Private*&, double) in volumes.o
      ConeSurface::getHandle(bool, iGeom_Instance_Private*&, double) in volumes.o
      TorusSurface::getHandle(bool, iGeom_Instance_Private*&, double) in volumes.o
      GeneralQuadraticSurface::elliptic_cone(iGeom_Instance_Private*&, double) in volumes.o
      GeneralQuadraticSurface::elliptic_cyl(iGeom_Instance_Private*&, double) in volumes.o
      ...
  "_igeom_save_", referenced from:
      GeometryContext::createGeometry() in mcnp2cad.o
  "_igeom_scaleent_", referenced from:
      EllipsoidSurface::getHandle(bool, iGeom_Instance_Private*&, double) in volumes.o
      TorusSurface::getHandle(bool, iGeom_Instance_Private*&, double) in volumes.o
  "_igeom_sectionent_", referenced from:
      PlaneSurface::getHandle(bool, iGeom_Instance_Private*&, double) in volumes.o
      HexVolume::getHandle(bool, iGeom_Instance_Private*&, double) in volumes.o
  "_igeom_setdata_", referenced from:
      GeometryContext::tagCellIDsAsEntNames() in mcnp2cad.o
  "_igeom_setentsetdata_", referenced from:
      GeometryContext::tagGroups() in mcnp2cad.o
  "_igeom_subtractents_", referenced from:
      GeometryContext::defineCell(CellCard&, bool, iBase_EntityHandle_Private*) in mcnp2cad.o
      GeometryContext::createGraveyard(iBase_EntityHandle_Private*&) in mcnp2cad.o
      embedWithinWorld(bool, iGeom_Instance_Private*&, double, iBase_EntityHandle_Private*, bool) in volumes.o
  "_igeom_uniteents_", referenced from:
      GeometryContext::defineCell(CellCard&, bool, iBase_EntityHandle_Private*) in mcnp2cad.o
      ConeSurface::getHandle(bool, iGeom_Instance_Private*&, double) in volumes.o
      GeneralQuadraticSurface::elliptic_cone(iGeom_Instance_Private*&, double) in volumes.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [mcnp2cad] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions