1
項目設置:
- GameProject [此項目包含遊戲代碼]
- GameProject功能的Android
- GameProject - 桌面
- GameProject-robovm [這是一個robovm項目沒有任何遊離型字體使用完美的工作]
robovm.xml內容:
<config>
<executableName>${app.executable}</executableName>
<mainClass>${app.mainclass}</mainClass>
<os>ios</os>
<arch>thumbv7</arch>
<target>ios</target>
<iosInfoPList>Info.plist.xml</iosInfoPList>
<resources>
<resource>../Grid Puzzle-android/assets/data</resource>
</resources>
<libs>
<lib>/Users/pgs/Desktop/eclipse workspace/libgdx/gdx/libs/ios32/libgdx.a</lib>
<lib>/Users/pgs/Desktop/eclipse workspace/libgdx/extensions/gdx-freetype/libs/ios32/libgdx-freetype.a</lib>
</libs>
<frameworks>
<framework>UIKit</framework>
<framework>OpenGLES</framework>
<framework>QuartzCore</framework>
<framework>CoreGraphics</framework>
</frameworks>
</config>
當運行robovm項目它顯示了以下錯誤:
Exception in thread "main" java.lang.UnsatisfiedLinkError: at com.badlogic.gdx.graphics.g2d.freetype.FreeType$Face.getSize(Native Method) at com.badlogic.gdx.graphics.g2d.freetype.FreeType$Face.getSize(Native Method) at com.badlogic.gdx.graphics.g2d.freetype.FreeType$Face.getSize(FreeType.java) at com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator.generateData(FreeTypeFontGenerator.java) at com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator.generateFont(FreeTypeFontGenerator.java) at com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator.generateFont(FreeTypeFontGenerator.java) at com.pechas.libgdx.font.FontControllerFreeType.loadFont(FontControllerFreeType.java) at com.pechas.libgdx.font.FontControllerFreeType.addFont(FontControllerFreeType.java) at com.pechas.libgdx.font.FontControllerFreeType.loadFonts(FontControllerFreeType.java) at com.pechas.libgdx.font.FontControllerFreeType.(FontControllerFreeType.java) at com.pechas.environments.Environment2D.(Environment2D.java) at com.pechas.platforms.platformLibgdx.create(platformLibgdx.java) at com.badlogic.gdx.backends.iosrobovm.IOSGraphics.draw(IOSGraphics.java) at com.badlogic.gdx.backends.iosrobovm.IOSGraphics$1.draw(IOSGraphics.java) at org.robovm.cocoatouch.uikit.UIView$Callbacks.draw(UIView.java) at org.robovm.cocoatouch.uikit.UIApplication.UIApplicationMain(Native Method)
這兒還有沒有人端口FreeType字體用法RoboVM遊戲? 這個問題的任何指南...?在其他網站
問題鏈接:
- Libgdx論壇鏈接:http://www.badlogicgames.com/forum/viewtopic.php?f=11&t=9960
- Robovm谷歌羣:這個問題也被張貼在RoboVM谷歌組。