Preprocezzor
Preprocezzor

Reputation: 307

Monogame Pipeline Error on Mac: System.DllNotFoundException: libfreeimage.dylib

I started a new project and I use Monogame (Pipeline) and the Xamarin Studio on my Mac. I installed Mono, Xamarin Studio and the latest version of Monogame (including Pipeline) for Mac. I've created a new Monogame project via Xamarin and everything worked fine.

Now I want to add a picture to my project via Pipeline. I added it to the project and pressed "Build". Sadly I get an Error.

The Error Message looks like this:

Importer 'TextureImporter' had unexpected failure!
System.DllNotFoundException: libfreeimage.dylib

Looks like libfreeimage is missing but I wasn't able to find a solution for this yet.

It works perfectly on my Windows.

Thanks

EDIT:

Fixed by installing the stand alone version for Mac.

Upvotes: 2

Views: 936

Answers (2)

Filip Jeretina
Filip Jeretina

Reputation: 71

I will expand on Juraj Paulo's answer as just brew installing freeimage didn't work for me.
Step 1: brew install freeimage
Step 2: Create a symbolic link to libfreeimage.dylib in one of the directories searched by mgcb.
For example: sudo ln -s /opt/homebrew/Cellar/freeimage/3.18.0/lib/libfreeimage.dylib /usr/local/lib/libfreeimage

Upvotes: 3

Juraj Paulo
Juraj Paulo

Reputation: 353

You can install the library using Brew

brew install freeimage

Upvotes: 4

Related Questions