Wing的小站

  • 首页
  • IT新闻
  • 技术文章
  • 生活随笔
  • 休闲娱乐
  • 个人作品
  • 留言板
  • 关于博主
JavaFX,Unity3D,Android,IOS,技术教程,生活随笔
  1. 首页
  2. 技术文章
  3. 正文

Libgdx Couldn't load shared library 'libgdx-freetype64.dylib' for target: Mac OS X, 64-bit

2019年7月17日 4177点热度 0人点赞 0条评论

在Mac上使用Libgdx开发时,用到了freetype,结果运行时报错Couldn't load shared library 'libgdx-freetype64.dylib' for target: Mac OS X, 64-bit。

其实就是跨平台问题,我们在使用freetype时,需要在gradle中添加如下代码:

FreeTypeFont Gradle
Core Dependency:
compile "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"

Desktop Dependency:
compile "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-desktop"

这样就正常了。

标签: 暂无
最后更新:2019年7月17日

wing1314

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

COPYRIGHT © 2023 Wing的小站. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

鄂ICP备17006951号-1

42011102000591