sdl2-mixer compilation error
Hello, I have cloned the repo and tried building it with stack $ stack build
, it fails with the following error:
sdl2 > [37 of 39] Compiling SDL.Event
sdl2 > [38 of 39] Compiling SDL
sdl2 > [39 of 39] Compiling SDL.Video.Vulkan
sdl2 > copy/register
sdl2 > Installing library in /home/madjestic/.stack/snapshots/x86_64-linux-tinfo6/067c295492e087e7634e2082c5361e6beef8c42a447f9fa6e3251cebc3be3da5/9.2.4/lib/x86_64-linux-ghc-9.2.4/sdl2-2.5.3.3-CGnwGmOcz6p2yTkMubcCm9
sdl2 > Registering library for sdl2-2.5.3.3..
Building all executables for `sdl2-mixer' once. After a successful build of all of them, only specified executables will be rebuilt.
sdl2-mixer > configure (lib + exe)
Configuring sdl2-mixer-1.2.0.0...
Cabal-simple_mPHDZzAJ_3.6.3.0_ghc-9.2.4: The pkg-config package 'SDL2_mixer'
version >=2.0.0 is required but it could not be found.
Completed 45 action(s).
-- While building package sdl2-mixer-1.2.0.0 (scroll up to its section to see the error) using:
/home/madjestic/.stack/setup-exe-cache/x86_64-linux-tinfo6/Cabal-simple_mPHDZzAJ_3.6.3.0_ghc-9.2.4 --verbose=1 --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.6.3.0 configure --with-ghc=/home/madjestic/.stack/programs/x86_64-linux/ghc-tinfo6-9.2.4/bin/ghc-9.2.4 --with-ghc-pkg=/home/madjestic/.stack/programs/x86_64-linux/ghc-tinfo6-9.2.4/bin/ghc-pkg-9.2.4 --user --package-db=clear --package-db=global --package-db=/home/madjestic/.stack/snapshots/x86_64-linux-tinfo6/067c295492e087e7634e2082c5361e6beef8c42a447f9fa6e3251cebc3be3da5/9.2.4/pkgdb --package-db=/home/madjestic/Projects/Haskell/sdl2-mixer/.stack-work/install/x86_64-linux-tinfo6/067c295492e087e7634e2082c5361e6beef8c42a447f9fa6e3251cebc3be3da5/9.2.4/pkgdb --libdir=/home/madjestic/Projects/Haskell/sdl2-mixer/.stack-work/install/x86_64-linux-tinfo6/067c295492e087e7634e2082c5361e6beef8c42a447f9fa6e3251cebc3be3da5/9.2.4/lib --bindir=/home/madjestic/Projects/Haskell/sdl2-mixer/.stack-work/install/x86_64-linux-tinfo6/067c295492e087e7634e2082c5361e6beef8c42a447f9fa6e3251cebc3be3da5/9.2.4/bin --datadir=/home/madjestic/Projects/Haskell/sdl2-mixer/.stack-work/install/x86_64-linux-tinfo6/067c295492e087e7634e2082c5361e6beef8c42a447f9fa6e3251cebc3be3da5/9.2.4/share --libexecdir=/home/madjestic/Projects/Haskell/sdl2-mixer/.stack-work/install/x86_64-linux-tinfo6/067c295492e087e7634e2082c5361e6beef8c42a447f9fa6e3251cebc3be3da5/9.2.4/libexec --sysconfdir=/home/madjestic/Projects/Haskell/sdl2-mixer/.stack-work/install/x86_64-linux-tinfo6/067c295492e087e7634e2082c5361e6beef8c42a447f9fa6e3251cebc3be3da5/9.2.4/etc --docdir=/home/madjestic/Projects/Haskell/sdl2-mixer/.stack-work/install/x86_64-linux-tinfo6/067c295492e087e7634e2082c5361e6beef8c42a447f9fa6e3251cebc3be3da5/9.2.4/doc/sdl2-mixer-1.2.0.0 --htmldir=/home/madjestic/Projects/Haskell/sdl2-mixer/.stack-work/install/x86_64-linux-tinfo6/067c295492e087e7634e2082c5361e6beef8c42a447f9fa6e3251cebc3be3da5/9.2.4/doc/sdl2-mixer-1.2.0.0 --haddockdir=/home/madjestic/Projects/Haskell/sdl2-mixer/.stack-work/install/x86_64-linux-tinfo6/067c295492e087e7634e2082c5361e6beef8c42a447f9fa6e3251cebc3be3da5/9.2.4/doc/sdl2-mixer-1.2.0.0 --dependency=base=base-4.16.3.0 --dependency=bytestring=bytestring-0.11.3.1 --dependency=data-default-class=data-default-class-0.1.2.0-CQYBH38PFES4dDyailJWvd --dependency=lifted-base=lifted-base-0.2.3.12-GR9UxeYpvwuB6tw1kBmbFT --dependency=monad-control=monad-control-1.0.3.1-GUowGCcH8pF8zTgO3n351l --dependency=sdl2=sdl2-2.5.3.3-CGnwGmOcz6p2yTkMubcCm9 --dependency=template-haskell=template-haskell-2.18.0.0 --dependency=vector=vector-0.12.3.1-Hddy6V8vsSo1TcgpO1FCg0 --exact-configuration --ghc-option=-fhide-source-paths
Process exited with code: ExitFailure 1
$ stack --version
Version 2.9.1, Git revision 409d56031b4240221d656db09b2ba476fe6bb5b1 x86_64 hpack-0.35.0
$ which stack
/home/madjestic/.ghcup/bin/stack
$ which ghc
/home/madjestic/.ghcup/bin/ghc
$ ghc -V
The Glorious Glasgow Haskell Compilation System, version 9.2.5
Could you tell me what am I doing wrong, please?
Thanks, Vlad