fjvallarino/monomer

build problems with nanovg

N0lim opened this issue · 1 comments

N0lim commented

System: Linux Fedora 35
GHC version: 8.10.5
cabal-install version 3.2.0.0 compiled using version 3.2.1.0 of the Cabal library

build-depends:    base ^>=4.14.0.0
                , mtl >= 2.2.2
                , monomer
bash-5.1$ cabal build --minimize-conflict-set
Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] trying: TrophicModels-0.1.0 (user goal)
[__1] trying: monomer-1.5.0.0 (dependency of TrophicModels)
[__2] trying: nanovg-0.8.1.0 (dependency of monomer)
[__3] rejecting: nanovg:-stb_truetype (conflict: pkg-config package glew-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: nanovg, monomer, nanovg:stb_truetype,
TrophicModels
N0lim commented

Solution:

sudo dnf install SDL2-devel
sudo dnf install glew-devel

read the tutorial carefully
https://github.com/fjvallarino/monomer/blob/main/docs/tutorials/00-setup.md