fjvallarino / monomer

An easy to use, cross platform, GUI library for writing Haskell applications.
BSD 3-Clause "New" or "Revised" License
588 stars 44 forks source link

libfreetype-dev dependecy needed on Linux, missing from setup.md #318

Open t-c-acc opened 5 months ago

t-c-acc commented 5 months ago

Hi, I'm running Debian 12, cabal 3.10.3.0, and I was going to install monomer by running cabal run after adding monomer to my .cabal.

Cabal could not resolve dependencies until I installed libfreetype-dev.

This is the output of cabal gen-bounds

Resolving dependencies...
Error: cabal: Could not resolve dependencies:
[__0] trying: guitests-0.1.0.0 (user goal)
[__1] trying: monomer-1.6.0.1 (dependency of guitests)
[__2] trying: nanovg-0.8.1.0 (dependency of monomer)
[__3] rejecting: nanovg:-stb_truetype (conflict: pkg-config package
freetype2-any, not found in the pkg-config database)
[__3] rejecting: nanovg:+stb_truetype (manual flag can only be changed
explicitly)
[__3] fail (backjumping, conflict set: nanovg, nanovg:stb_truetype)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: monomer, nanovg, nanovg:stb_truetype,
guitests
Try running with --minimize-conflict-set to improve the error message.

I'm opening this issue because this dependency (libfreetype-dev), or a way to avoid it, should be included in the setup tutorial (docs/tutorials/00-setup.md).