You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building an empty project with gi-gtk and haskell-gi-base, on an apple silicon Mac, you will run into the following issue:
Linking /Users/jameshobson/Documents/Haskell/gtk4-elm/dist-newstyle/tmp/src-77102/gi-glib-2.0.26/dist/setup/setup ...
Did not find a GI repository for GLib-2.0 in ["/usr/local/share/gir-1.0","/usr/share/gir-1.0"].
CallStack (from HasCallStack):
error, called at lib/Data/GI/GIR/Repository.hs:89:20 in hskll-g-0.26.1-bd0bfefb:Data.GI.GIR.Repository
This is because brew installs into /opt/homebrew on the apple silicon platforms. It used to install into /usr/local
Temporary Workaround
I have made a simple symlink with sudo ln -s /opt/homebrew/share/gir-1.0 /usr/local/share/. and it appears to be building fine. I'm sure there was a less hacky fix I could have done with an environment variable, but I didn't investigate into much!
The text was updated successfully, but these errors were encountered:
I have added a workaround in e095096 for this. Do you think you could test that version (removing the symlinks you added) and see if that works for you? If so I'll upload a new version to hackage with the fix.
Hello!
The Problem
When building an empty project with
gi-gtk
andhaskell-gi-base
, on an apple silicon Mac, you will run into the following issue:This is because brew installs into
/opt/homebrew
on the apple silicon platforms. It used to install into/usr/local
Temporary Workaround
I have made a simple symlink with
sudo ln -s /opt/homebrew/share/gir-1.0 /usr/local/share/.
and it appears to be building fine. I'm sure there was a less hacky fix I could have done with an environment variable, but I didn't investigate into much!The text was updated successfully, but these errors were encountered: