xamarin Mac上的Monogame管道错误:System.DllNotFoundException:libfreeimage.dylib

zpgglvta  于 2022-12-07  发布在  Mac
关注(0)|答案(2)|浏览(131)

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.

ojsjcaue

ojsjcaue1#

可以使用Brew安装库

brew install freeimage
xtupzzrd

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

相关问题