How To Install earcut-hpp-devel on Fedora 36

In this tutorial we learn how to install earcut-hpp-devel in Fedora 36. earcut-hpp-devel is Fast, header-only polygon triangulation

Introduction

In this tutorial we learn how to install earcut-hpp-devel on Fedora 36.

What is earcut-hpp-devel

A C++ port of earcut.js, a fast, header-only polygon triangulation library. The library implements a modified ear slicing algorithm, optimized by z-order curve hashing and extended to handle holes, twisted polygons, degeneracies and self-intersections in a way that doesn’t guarantee correctness of triangulation, but attempts to always produce acceptable results for practical data like geographical shapes. It’s based on ideas from FIST Polygons by Martin Held and Triangulation by Ear Clipping by David Eberly.

We can use yum or dnf to install earcut-hpp-devel on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install earcut-hpp-devel.

Install earcut-hpp-devel on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install earcut-hpp-devel using dnf by running the following command:

sudo dnf -y install earcut-hpp-devel

Install earcut-hpp-devel on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install earcut-hpp-devel using yum by running the following command:

sudo yum -y install earcut-hpp-devel

How To Uninstall earcut-hpp-devel on Fedora 36

To uninstall only the earcut-hpp-devel package we can use the following command:

sudo dnf remove earcut-hpp-devel

earcut-hpp-devel Package Contents on Fedora 36

/usr/include/mapbox
/usr/include/mapbox/earcut.hpp
/usr/share/doc/earcut-hpp-devel
/usr/share/doc/earcut-hpp-devel/CHANGELOG.md
/usr/share/doc/earcut-hpp-devel/README.md
/usr/share/licenses/earcut-hpp-devel
/usr/share/licenses/earcut-hpp-devel/LICENSE

References

Summary

In this tutorial we learn how to install earcut-hpp-devel on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).