Skip to content

Instantly share code, notes, and snippets.

@mtolly
Last active March 10, 2024 07:35
Show Gist options
  • Save mtolly/384dbe51f4a78d6d2818 to your computer and use it in GitHub Desktop.
Save mtolly/384dbe51f4a78d6d2818 to your computer and use it in GitHub Desktop.
How to build and install the Mono libgdiplus.dll on a Mac with Homebrew (update: no longer needed, see comments)
#!/bin/bash
# First install XQuartz, then...
brew install freetype fontconfig libpng
ln -s /opt/X11/include/X11 /usr/local/include/X11
git clone [email protected]:mono/libgdiplus
cd libgdiplus
./autogen.sh
make install
@Viper5niper
Copy link

Solution for M1 Macbook pro

  1. HOMEBREW_NO_AUTO_UPDATE=1 brew reinstall mono-libgdiplus
  2. sudo ln -s /opt/homebrew/opt/mono-libgdiplus/lib/libgdiplus.dylib /usr/local/lib/liblibgdiplus

now works fine.

Thanks! You saved me man

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment