Skip to content

Solved: Error when compiling SHAD with GMT #254

@renatobhf

Description

@renatobhf

When building SHAD with GMT, during linking I had many errors for undefined references to hwloc functions, which are dependencies of GMT. At first I checked GMT compilation, and Cmake properly detected Hwloc. hwloc was properly installed, so I checked the SHAD compilation and despite it linking to libgmt.a, it did not include the library in the compilation. I think the error is in the compilation of libgmt.a, which should include all of its dependencies statically.

But, for now, the solution was to add
set(GMT_LIBRARIES ${GMT_LIBRARIES} "-lhwloc")
to line 78 of SHAD/cmake/config.cmake

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions