I am trying out https://owickstrom.github.io/gi-gtk-declarative/ and was trying to follow the instructions for using it on MacOS.
I add the following to dependencies in package.yaml: gi-gtk, gi-gtk-declarative, gi-gtk-declarative-app-simple
I followed the instructions for installing system dependencies for MacOS here: https://github.com/haskell-gi/haskell-gi#installation
Specifically installing the three required packages using brew and setting the PKG_CONFIG_PATH=/usr/local/opt/libffi/lib/pkgconfig
Next when I try to run stack build, the process encounters the following error:
<command line>: can't load .so/.DLL for: /Users/sam/.stack/snapshots/x86_64-osx/lts-13.19/8.6.4/lib/x86_64-osx-ghc-8.6.4/libHSgi-gio-2.0.19-7OCgNZnEEEh4XbhFBPrEBZ-ghc8.6.4.dylib (dlopen(/Users/sam/.stack/snapshots/x86_64-osx/lts-13.19/8.6.4/lib/x86_64-osx-ghc-8.6.4/libHSgi-gio-2.0.19-7OCgNZnEEEh4XbhFBPrEBZ-ghc8.6.4.dylib, 5): Symbol not found: _g_content_type_get_mime_dirs
I ran nm -gu /Users/sam/.stack/snapshots/x86_64-osx/lts-13.19/8.6.4/lib/x86_64-osx-ghc-8.6.4/libHSgi-gio-2.0.19-7OCgNZnEEEh4XbhFBPrEBZ-ghc8.6.4.dylib | grep _g_content_type_get_mime_dirs which lists the symbol as existing in this dylib file.
I'm not sure if the problem is caused by stack, brew or haskell-gi but I raise the issue here to start the investigation.
I am trying out https://owickstrom.github.io/gi-gtk-declarative/ and was trying to follow the instructions for using it on MacOS.
I add the following to
dependenciesin package.yaml: gi-gtk, gi-gtk-declarative, gi-gtk-declarative-app-simpleI followed the instructions for installing system dependencies for MacOS here: https://github.com/haskell-gi/haskell-gi#installation
Specifically installing the three required packages using brew and setting the PKG_CONFIG_PATH=/usr/local/opt/libffi/lib/pkgconfig
Next when I try to run
stack build, the process encounters the following error:I ran
nm -gu /Users/sam/.stack/snapshots/x86_64-osx/lts-13.19/8.6.4/lib/x86_64-osx-ghc-8.6.4/libHSgi-gio-2.0.19-7OCgNZnEEEh4XbhFBPrEBZ-ghc8.6.4.dylib | grep _g_content_type_get_mime_dirswhich lists the symbol as existing in this dylib file.I'm not sure if the problem is caused by stack, brew or haskell-gi but I raise the issue here to start the investigation.