Skip to content

osx compilation problem probably with boost #97

@alexkaiser

Description

@alexkaiser

Hello, I have a compilation error with cmake that appears to be a problem with a boost template.
error: no template named 'if_c' in namespace 'boost::mpl'; did you mean 'boost::move_detail::if_c'?
Is there an easy way to resolve this error please? I am on an M1 mac with packages from brew. More full output follows.

Thank you,
Alex

In file included from /Users/alex/software/TetWild/src/tetwild/BSPSubdivision.cpp:12:
In file included from /Users/alex/software/TetWild/src/tetwild/BSPSubdivision.h:16:
In file included from /Users/alex/software/TetWild/src/tetwild/CGALTypes.h:15:
In file included from /Users/alex/software/TetWild/extern/libigl/external/cgal/Installation/lib/cmake/CGAL/../../../../Kernel_23/include/CGAL/Exact_predicates_exact_constructions_kernel.h:29:
In file included from /Users/alex/software/TetWild/extern/libigl/external/cgal/Installation/lib/cmake/CGAL/../../../../Cartesian_kernel/include/CGAL/Simple_cartesian.h:29:
In file included from /Users/alex/software/TetWild/extern/libigl/external/cgal/Installation/lib/cmake/CGAL/../../../../Cartesian_kernel/include/CGAL/Cartesian/Cartesian_base.h:29:
In file included from /Users/alex/software/TetWild/extern/libigl/external/cgal/Installation/lib/cmake/CGAL/../../../../Kernel_23/include/CGAL/basic.h:45:
In file included from /Users/alex/software/TetWild/extern/libigl/external/cgal/Installation/lib/cmake/CGAL/../../../../Number_types/include/CGAL/number_type_basic.h:60:
In file included from /Users/alex/software/TetWild/extern/libigl/external/cgal/Installation/lib/cmake/CGAL/../../../../Number_types/include/CGAL/double.h:31:
/Users/alex/software/TetWild/extern/libigl/external/cgal/Installation/lib/cmake/CGAL/../../../../Algebraic_foundations/include/CGAL/number_utils.h:205:10: error: no template named 'if_c' in namespace 'boost::mpl'; did you mean 'boost::move_detail::if_c'?
typename boost::mpl::if_c< 
         ^~~~~~~~~~~~~~~~
         boost::move_detail::if_c
/opt/homebrew/include/boost/move/detail/meta_utils_core.hpp:37:8: note: 'boost::move_detail::if_c' declared here
struct if_c
       ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions