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.
2条答案
按热度按时间ojsjcaue1#
可以使用Brew安装库
xtupzzrd2#
我将扩展Juraj Paulo's answer,因为只是brew安装freeimage对我不起作用。
步骤1:
brew install freeimage
步骤2:在mgcb搜索的其中一个目录中创建一个到libfreeimage.dylib的符号链接。
例如:
sudo ln -s /opt/homebrew/Cellar/freeimage/3.18.0/lib/libfreeimage.dylib /usr/local/lib/libfreeimage