hushaojie04 / libgdx

Automatically exported from code.google.com/p/libgdx
0 stars 0 forks source link

FreeType error on Android 1.5/1.6 #1126

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This issue had previously been reported in issue 973, which is marked as fixed, 
but occurs with the latest nightlies. On Android 1.5 and 1.6 (devices and 
emulator) calling FreeTypeFontGenerator.generateData() results in the following 
stack trace:

java.lang.UnsatisfiedLinkError: getSize
at com.badlogic.gdx.graphics.g2d.freetype.FreeType$Face.getSize(Native Method)
at 
com.badlogic.gdx.graphics.g2d.freetype.FreeType$Face.getSize(FreeType.java:150)
at 
com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator.generateData(FreeTy
peFontGenerator.java:108)

Original issue reported on code.google.com by lj3...@googlemail.com on 14 Nov 2012 at 11:57

GoogleCodeExporter commented 9 years ago
This same error is also on Android 2.2. Tested it with the emulator.

Original comment by kawingc...@gmail.com on 14 Dec 2012 at 12:48

GoogleCodeExporter commented 9 years ago
I retested it with Android v2.2 and it's working. I've probably done something 
wrong with settings before.

First I though it was ARMv6, but the emulator is using ARMv6 without problem. I 
tried this with v1.5 and it crashes.

In the Android project folder I got:
armeabi
- libandroidgl20.so
- libgdx.so
- libgdx-freetype.so

armeabi-v7a
- libandroidgl20.so
- libgdx.so
- libgdx-freetype.so

- gdx-backend-android.jar
- gdx-backend-android.sources.jar

Original comment by kawingc...@gmail.com on 18 Dec 2012 at 12:34

GoogleCodeExporter commented 9 years ago
There seems to be a problem with the JNI impl on 1.5. I'm not sure i want to 
put in the effort to fix this. 1.5 is now at a usage percentage that we should 
try to get rid of any 1.5 specific code. This will help us to clean up the code 
base of the android backend quite a bit.

Original comment by badlogicgames on 16 Mar 2013 at 10:37