LibGDX + gdx-freetype + BlueStacks

时间:2013-11-08 19:17:55

标签: android libgdx bluestacks

我有正确的应用程序在真正的Android设备和桌面上。 Homever当我试图在BlueStacks模拟器上启动它时,我遇到了一些问题。已经下载并添加到libs .so文件中http://libgdx.googlecode.com/svn/tags/0.9.6/extensions/gdx-freetype/libs/linux32/

但仍然:

11-08 21:14:10.280: E/AndroidRuntime(1378): FATAL EXCEPTION: GLThread 9
11-08 21:14:10.280: E/AndroidRuntime(1378): com.badlogic.gdx.utils.GdxRuntimeException: Couldn't load shared library 'gdx-freetype' for target: Linux, 32-bit
11-08 21:14:10.280: E/AndroidRuntime(1378):     at com.badlogic.gdx.utils.SharedLibraryLoader.load(SharedLibraryLoader.java:110)
11-08 21:14:10.280: E/AndroidRuntime(1378):     at com.badlogic.gdx.graphics.g2d.freetype.FreeType.initFreeType(FreeType.java:541)
11-08 21:14:10.280: E/AndroidRuntime(1378):     at com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator.<init>(FreeTypeFontGenerator.java:64)
11-08 21:14:10.280: E/AndroidRuntime(1378):     at com.axl.where.test.create(test.java:153)
11-08 21:14:10.280: E/AndroidRuntime(1378):     at com.badlogic.gdx.backends.android.AndroidGraphics.onSurfaceChanged(AndroidGraphics.java:334)
11-08 21:14:10.280: E/AndroidRuntime(1378):     at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1356)
11-08 21:14:10.280: E/AndroidRuntime(1378):     at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1118)
11-08 21:14:10.280: E/AndroidRuntime(1378): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load gdx-freetype: findLibrary returned null
11-08 21:14:10.280: E/AndroidRuntime(1378):     at java.lang.Runtime.loadLibrary(Runtime.java:429)
11-08 21:14:10.280: E/AndroidRuntime(1378):     at java.lang.System.loadLibrary(System.java:554)
11-08 21:14:10.280: E/AndroidRuntime(1378):     at    com.badlogic.gdx.utils.SharedLibraryLoader.load(SharedLibraryLoader.java:106)
11-08 21:14:10.280: E/AndroidRuntime(1378):     ... 6 more

有什么想法吗? LibGDX 0.9.9

1 个答案:

答案 0 :(得分:5)

您需要在libs目录中添加一个x86文件夹(沿着armeabi文件夹),并在其上复制此文件:

http://libgdx.badlogicgames.com/nightlies/dist/extensions/gdx-freetype/x86/

另外,您正在使用v0.9.6文件o.O使用nightlies:

http://libgdx.badlogicgames.com/nightlies/dist/extensions/gdx-freetype/