Closed ad-si closed 4 years ago
+1 Were you able to resolve this? I ran into the same issue trying to build gi-gtk on macOS 10.14.3.
Sorry I don't have a Mac available to test on. This does look very much like https://github.com/owickstrom/komposition/issues/85, where gobject-introspection
had not been installed. Can you verify if you have the same problem?
The problem is with the upstream glib library. Here's a workaround https://github.com/haskell-gi/haskell-gi/issues/218
Did anyone get this to work?
Nope, not yet. The workaround seemed to fix the first error, but I got another one…
Hi, I'm also struggling to install on MacOS Catalina.
one command mentioned in the installation instruction is failed on my mac:
brew install gst-plugins-good --with-gtk+3
Error: invalid option: --with-gtk+3
Tried to install it without this options
brew install gst-plugins-good
but finally stack install
didn't worked for me also. Don't know whether the error is related to the previous. Are there any hints what to look at?
$ stack install gi-pango > configure gi-pango > [1 of 2] Compiling Main ( /private/var/folders/89/kmz0d66952vf0kl_f95zcc2m0000gn/T/stack12175/gi-pango-1.0.19/Setup.hs, /private/var/folders/89/kmz0d66952vf0kl_f95zcc2m0000gn/T/stack12175/gi-pango-1.0.19/.stack-work/dist/x86_64-osx/Cabal-2.4.0.1/setup/Main.o ) gi-pango > [2 of 2] Compiling StackSetupShim ( /Users/avilinski/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs, /private/var/folders/89/kmz0d66952vf0kl_f95zcc2m0000gn/T/stack12175/gi-pango-1.0.19/.stack-work/dist/x86_64-osx/Cabal-2.4.0.1/setup/StackSetupShim.o ) gi-pango > Linking /private/var/folders/89/kmz0d66952vf0kl_f95zcc2m0000gn/T/stack12175/gi-pango-1.0.19/.stack-work/dist/x86_64-osx/Cabal-2.4.0.1/setup/setup ... gi-pango > Configuring gi-pango-1.0.19... gi-pango > setup: An 'autogen-module' is neither on 'exposed-modules' or 'other-modules'. gi-pango > -- While building package gi-pango-1.0.19 using: /private/var/folders/89/kmz0d66952vf0kl_f95zcc2m0000gn/T/stack12175/gi-pango-1.0.19/.stack-work/dist/x86_64-osx/Cabal-2.4.0.1/setup/setup --builddir=.stack-work/dist/x86_64-osx/Cabal-2.4.0.1 configure --user --package-db=clear --package-db=global --package-db=/Users/avilinski/.stack/snapshots/x86_64-osx/362b730d790cab2c4ae90f4e46ab1c67cf6896e43dafabe25ac40f00f0a5c97b/8.6.5/pkgdb --libdir=/Users/avilinski/.stack/snapshots/x86_64-osx/362b730d790cab2c4ae90f4e46ab1c67cf6896e43dafabe25ac40f00f0a5c97b/8.6.5/lib --bindir=/Users/avilinski/.stack/snapshots/x86_64-osx/362b730d790cab2c4ae90f4e46ab1c67cf6896e43dafabe25ac40f00f0a5c97b/8.6.5/bin --datadir=/Users/avilinski/.stack/snapshots/x86_64-osx/362b730d790cab2c4ae90f4e46ab1c67cf6896e43dafabe25ac40f00f0a5c97b/8.6.5/share --libexecdir=/Users/avilinski/.stack/snapshots/x86_64-osx/362b730d790cab2c4ae90f4e46ab1c67cf6896e43dafabe25ac40f00f0a5c97b/8.6.5/libexec --sysconfdir=/Users/avilinski/.stack/snapshots/x86_64-osx/362b730d790cab2c4ae90f4e46ab1c67cf6896e43dafabe25ac40f00f0a5c97b/8.6.5/etc --docdir=/Users/avilinski/.stack/snapshots/x86_64-osx/362b730d790cab2c4ae90f4e46ab1c67cf6896e43dafabe25ac40f00f0a5c97b/8.6.5/doc/gi-pango-1.0.19 --htmldir=/Users/avilinski/.stack/snapshots/x86_64-osx/362b730d790cab2c4ae90f4e46ab1c67cf6896e43dafabe25ac40f00f0a5c97b/8.6.5/doc/gi-pango-1.0.19 --haddockdir=/Users/avilinski/.stack/snapshots/x86_64-osx/362b730d790cab2c4ae90f4e46ab1c67cf6896e43dafabe25ac40f00f0a5c97b/8.6.5/doc/gi-pango-1.0.19 --dependency=Cabal=Cabal-2.4.1.0-IBbax5zHztPeovxF8fJKx --dependency=base=base-4.12.0.0 --dependency=bytestring=bytestring-0.10.8.2 --dependency=containers=containers-0.6.0.1 --dependency=gi-glib=gi-glib-2.0.17-He3SeHEEYb1DWiT4TpX9ev --dependency=gi-gobject=gi-gobject-2.0.19-HLSOgyjJxUE2zYdtgISec5 --dependency=haskell-gi=haskell-gi-0.21.5-B7oEYie8Wik99xbtCPMhIP --dependency=haskell-gi-base=haskell-gi-base-0.21.5-B7L3HQFSPkOFeLcsLCK63O --dependency=haskell-gi-overloading=haskell-gi-overloading-1.0-6w3IXGDooXgu3RA2LfTuf --dependency=text=text-1.2.3.1 --dependency=transformers=transformers-0.5.6.2 --exact-configuration --ghc-option=-fhide-source-paths Process exited with code: ExitFailure 1
Works for me with cabal install
now. Maybe bumping to a newer stack
snapshot will work?
Anyone else that can confirm it works on macOS now?
It will fail with the current stack.yaml, but should work with the following (which uses GHC 8.8.1):
resolver: nightly-2019-12-29
packages:
- .
extra-deps:
- ffmpeg-light-0.12.2.2
- fused-effects-0.1.2.1
- gi-atk-2.0.21
- gi-cairo-1.0.23
- gi-gdk-3.0.22
- gi-gdkpixbuf-2.0.23
- gi-gio-2.0.25
- gi-glib-2.0.23
- gi-gobject-2.0.22
- gi-graphene-1.0.1
- gi-gsk-4.0.1
- gi-gst-1.0.22
- gi-gtk-3.0.32
- gi-gtk-declarative-0.6.2
- gi-pango-1.0.22
- indexed-extras-0.2
- massiv-0.2.5.0
- massiv-io-0.1.9.0
- motor-0.4.0
- row-types-0.3.0.0
allow-newer: true
If you just want to get a working Komposition on macOS, then try brew install komposition
.
Nice, brew install komposition
works for me. This fixes the issue for me. Feel free to close it 🙃
Describe the bug I ran the installation instruction from the website, but I get following errror after running
stack install
:Desktop (please complete the following information):